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

Resolve parser states at once instead of resolving them iteratively. #3875

Merged
merged 3 commits into from
Mar 3, 2023

Conversation

fruffy-bfn
Copy link
Contributor

@fruffy-bfn fruffy-bfn commented Feb 3, 2023

Instead of stepping into a parser state, then removing it from the select expression, we just iterate over all select matches and construct the respective conditions all at once.

@fruffy fruffy force-pushed the parser_states branch 3 times, most recently from 00d7029 to ffec344 Compare February 21, 2023 16:50
@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Feb 21, 2023
@fruffy fruffy force-pushed the parser_states branch 5 times, most recently from 7dec20c to 298d773 Compare February 23, 2023 15:41
@fruffy fruffy mentioned this pull request Mar 2, 2023
@fruffy fruffy marked this pull request as ready for review March 3, 2023 15:58
Copy link
Contributor

@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.

LGTM. Thanks!

@fruffy fruffy merged commit b247d0f into p4lang:main Mar 3, 2023
@fruffy-bfn fruffy-bfn deleted the parser_states branch March 23, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants