-
Notifications
You must be signed in to change notification settings - Fork 80
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
RFC 62 implementation #1327
Merged
Merged
RFC 62 implementation #1327
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
19b7293
prepare for the extension
shaobo-he-aws f3091d2
prototype
shaobo-he-aws dde96e2
Merge remote-tracking branch 'origin/main' into feature/shaobo/extend…
shaobo-he-aws 1cfb5d6
updates
shaobo-he-aws 654e412
updates
shaobo-he-aws 98b55fb
better error messages
shaobo-he-aws 777d074
added evaluator tests
shaobo-he-aws 91b21a2
add more tests
shaobo-he-aws 78a1116
Merge remote-tracking branch 'origin/main' into feature/shaobo/extend…
shaobo-he-aws 9694d2e
updates
shaobo-he-aws 01ecc7e
add comments
shaobo-he-aws 06c7cb0
Merge remote-tracking branch 'origin/main' into feature/shaobo/extend…
shaobo-he-aws 16bed5e
more tests
shaobo-he-aws ea69d81
added a validator test
shaobo-he-aws cd089f3
added a formatter test case
shaobo-he-aws ce31264
Merge remote-tracking branch 'origin/main' into feature/shaobo/extend…
shaobo-he-aws 07ed080
added cst to est conversion
shaobo-he-aws 323feee
review feedback
shaobo-he-aws 1f2d756
more tests
shaobo-he-aws File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wouldn't be trivial since the types are all different, but I wonder if there's some nice way to make this code generic enough to be shared here and in
construct_exprs_extended_has
in the CST to AST conversion. I think we'd just need some sort ofExprBuilder<T>
trait providinghas_attr(T,SmolStr)->T
,get_attr(T, SmolStr)->T
andand(T, T) -> T
. IDK if that'd be worthwhile, but maybe it's an idea that could help share code elsewhere.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to me like a good idea for a followup; this PR is large enough already and I think it would be good to review that trait change on its own
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's a good idea but worth a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be very cool if
cst->{ast,est}
could share all of their code, but that sounds like a lot of work