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

match_kind is a base type #1020

Merged
merged 1 commit into from
Feb 28, 2022
Merged

match_kind is a base type #1020

merged 1 commit into from
Feb 28, 2022

Conversation

mihaibudiu
Copy link
Contributor

Signed-off-by: Mihai Budiu [email protected]

See p4lang/p4c#3099 for several P4 programs that cannot be compiled without this change.

Signed-off-by: Mihai Budiu <[email protected]>
@@ -1828,6 +1828,7 @@ P4 supports the following built-in base types:
baseType
: BOOL
| ERROR
| MATCH_KIND
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor nit-pick, but should we go ahead and make the relative order of the other alternatives BIT, INT, and STRING be in the same order as each other between the grammar.mdk and spec files, too?

I see that match_kind was already mentioned in the text of the spec in Section 7.1, so this does look like it was simply an omission in the grammar.

Copy link
Collaborator

@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

Copy link
Collaborator

@jnfoster jnfoster left a comment

Choose a reason for hiding this comment

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

I agree. This was just an omission.

@mihaibudiu mihaibudiu merged commit 039abca into main Feb 28, 2022
@mihaibudiu mihaibudiu deleted the match_kind branch February 28, 2022 18:32
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.

3 participants