-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Parser] Parser 2.0 part 2 #6162
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
fbe3a5b
Add code from livestream with JK
jroesch 4c61844
Fix errors parsing ResNet
jroesch 432e0d9
Parse metadata section efficiently and do most of plumbing to resolve…
jroesch 71dc90c
WIP
jroesch b940e8b
Change meta reference to an operator
jroesch 089b342
Meta references now work
jroesch a4cfb3f
MetaReference expansion now works
jroesch 0cb6c85
Start working on source map and move diagnostic context
jroesch 4502adc
Convert tokenizer and parser to use new machinery
jroesch 39df873
Kill to_json
jroesch b7dd570
Fix comment in type_infer.cc
jroesch 9968fdf
Remove old parser
jroesch 1113953
Rename parser tests and remove old ones
jroesch 669aafc
Record span end information
jroesch 9be4e7b
Convert to using spans everywhere
jroesch ab782e6
Add span fields back to all Relay constructors
jroesch b7e7fc5
Start passing spans
jroesch 486f779
Pass spans around visitors
jroesch 4daa1fe
Format
jroesch 07f8789
Fix
jroesch 1fcde63
Fix
jroesch 13a4e96
disable reference lint from string helpers
jroesch 4314584
Fix tokenizer
jroesch 46dbc41
Fix issue with empty metadata section
jroesch 9932b9d
Document new span fields and small tweaks
jroesch bb8171c
Formatting
jroesch 597bf25
Add span doc fields
jroesch dc158c1
Add format tweak
jroesch 0e54e6f
Improve errors and fix the semantic version tags in Prelude
jroesch 4557fed
Update gradient.rly
jroesch 7ef4e76
Clean up broken spans
jroesch 10f2531
Clean up parser tests and turn on previously skipped tests
jroesch 16c9276
Update errors to handle skipped cases
jroesch d521757
Tweak
jroesch aaea54a
Tweak
jroesch 99bee2a
Format
jroesch 4510899
Fix some minor issues with ADT tests
jroesch c991440
Format
jroesch 50b517c
Fix path
jroesch 6d1a38d
WIP
jroesch 2e7bdbd
WIP
jroesch e3e5ef8
Fix ir_text_printer
jroesch 2a8d67a
format
jroesch 470bd86
Formatted
jroesch 43dfe42
More formatting
jroesch 7fa4c3f
Repair test cases
jroesch dd61083
Fix CI
jroesch 77397ba
Retrigger CI
jroesch 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,7 +230,3 @@ conda/pkg | |
# nix files | ||
.envrc | ||
*.nix | ||
|
||
# antlr files | ||
*.tokens | ||
*.interp |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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.
I believe what you are trying to achieve here is the range for line[begin, end], column[begin, end].
nit: May be we can rename the variables to reflect the same.
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.
Yeah I think I agree with @ANSHUMAN87. Maybe its better to use "begin_line", "begin_column", "end_line", "end_column"?
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.
I think it should be begin_line, end_line, begin_column, end_column, as both values are related. Maybe even make a small range struct.
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 is kind of painful to refactor due some of the Python code. I still need to update the Python bindings how about I add to tracking issue and we can do in follow up work?