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

Make {#} a single token #3835

Merged
merged 2 commits into from
Jan 12, 2023
Merged

Make {#} a single token #3835

merged 2 commits into from
Jan 12, 2023

Conversation

mihaibudiu
Copy link
Contributor

Signed-off-by: Mihai Budiu [email protected]
As discussed during the January 2023 LDWG meeting.
p4lang/p4-spec#1184 will have to be updated.
This PR also refactors the IR to make it easier to add invalid header unions in a future PR.

Copy link
Contributor

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jafingerhut
Copy link
Contributor

Note that my approval is for the grammar and lexer parts, not the rest of the C++ implementation, which I am not qualified to review at this time.

Question: Is it overkill to add a test case with white space in the middle to verify that it gives an error, e.g. "h1 = { # };" ?

Mihai Budiu added 2 commits January 11, 2023 11:43
Signed-off-by: Mihai Budiu <[email protected]>
Signed-off-by: Mihai Budiu <[email protected]>
@mihaibudiu
Copy link
Contributor Author

Added a negative test.

@jafingerhut
Copy link
Contributor

Thanks for the negative test case. My approval still stands.

@mihaibudiu mihaibudiu merged commit 01b096e into p4lang:main Jan 12, 2023
@mihaibudiu mihaibudiu deleted the invalid branch January 12, 2023 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants