-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add structured annotations to P4 grammar. Issue #789 #796
Merged
mihaibudiu
merged 10 commits into
p4lang:master
from
chrispsommers:csommers/structured-annotations
Apr 6, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d0093c2
Add structured annotations to P4 grammar.
chrispsommers 8725872
Incorporate reviewer feedback: clarify unstructured data types, kv-pa…
chrispsommers 6249bea
Revise Structured Annotations per LDWG meetings and github feedback:
chrispsommers 694a254
Updated per LDWG meetings and GitHub feedback:
chrispsommers 38a60a6
Simplify expressions within StructureAnnotations to base types (no ne…
chrispsommers 49cd5d7
Clarified language on Structured Annotations per reviewer feedback.
chrispsommers 8efc247
Typos s/stucture/structure/
chrispsommers 206f73e
Unstructured and structured annotations may not use the same name;
chrispsommers 797491b
Fixed @Empty example - does not produce an empty expressionList. Adde…
chrispsommers f2ea5b5
Clarifications and more examples of annotations.
chrispsommers 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
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.
Perhaps you can use the grammar from the compiler implementation ; it essentially inlines the structuredAnnotationBody in this rule.
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.
If this suggestion is taken, be sure to patch up those places where the text refers to
structuredAnnotationBody
.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.
What is the advantage of inlining here? I think I like that we have a name for structured annotation bodies.
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.
The spec grammar is almost identical to the bison grammar, because then we know it works. If we deviate it may actually not be implementable. Bison is very peculiar.