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

SuperP4: Looking up values under parent name spacing #173

Open
kaarthikalagappan opened this issue May 3, 2022 · 0 comments
Open

SuperP4: Looking up values under parent name spacing #173

kaarthikalagappan opened this issue May 3, 2022 · 0 comments

Comments

@kaarthikalagappan
Copy link
Contributor

dotPrefix nonTypeName production -> the reclassify function is turning identifiers into type identifiers for this production. So when we have a dot before and see a type identifier we need to look up in the parent class.

Latest commit in branch: 0fde6f5

Example is issue2037.p4 in p4c test suite, shown below:

action a() {}
control c() {
    table t {
        actions = { .a; }
        default_action = a;
    }
    apply {}
}
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

No branches or pull requests

1 participant