Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding TypeScript to Piranha Playground #577

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion experimental/piranha_playground/data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from piranha_playground.rule_inference.utils.pretty_toml import PrettyTOML
from piranha_playground.rule_inference.utils.rule_utils import RawRuleGraph

LANGUAGES = ["kt", "java", "go", "swift"]
LANGUAGES = ["kt", "java", "go", "swift", "tsx"]


@attr.s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class TemplateParser:
"go": "comment",
"kt": "comment",
"swift": "comment",
"tsx": "comment"
}
template_holes = attr.ib(default=attr.Factory(dict))

Expand Down
1 change: 1 addition & 0 deletions experimental/piranha_playground/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ <h3 class="text-center">Piranha Inference Playground</h3>
<option value="java" selected="selected">Java</option>
<option value="kt">Kotlin</option>
<option value="go">Go</option>
<option value="tsx">TypeScript</option>
</select>
</div>
<div class="col-lg-10 d-flex justify-content-end">
Expand Down