-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Make it easier to reference user defined types in the schema language #1331
Merged
Conversation
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
tobim
force-pushed
the
story/ch21720/common-symbol-table
branch
from
February 2, 2021 14:53
0c38d22
to
4a0cb8d
Compare
mavam
requested changes
Feb 4, 2021
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 functionality, nice work! I yet have to give it spin locally, but I already went over the code and left a couple of suggestions.
tobim
force-pushed
the
story/ch21720/common-symbol-table
branch
2 times, most recently
from
February 10, 2021 08:24
a0a914e
to
bb1ec78
Compare
The new schema parser makes the schema dsl order-independent. For example: ``` type foo = record{ x: bar #attr2=chirp #attr2=frog #attr3=hog } type bar = int #attr1=cat #attr2=dog ``` Gets accepted and works intuitively. The attributes are merged with the field attributes taking precedence over the attributes from the type. The resolved type of `foo.x` is `int #attr1=cat #attr2=frog #attr3=hog`.
Mostly improved variable and type names. Co-authored-by: Matthias Vallentin <matthias@tenzir.com>
It isn't needed any more for the 2-phase lookup. This also fixes some leftovers from the previous commit integrating some suggested changes from code review.
tobim
force-pushed
the
story/ch21720/common-symbol-table
branch
from
February 11, 2021 22:16
bb1ec78
to
33d8056
Compare
mavam
approved these changes
Feb 12, 2021
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.
Nice work!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📔 Description
📝 Checklist
🎯 Review Instructions