Skip to content

SuperP4: Looking up values under parent name spacing #173

@kaarthikalagappan

Description

@kaarthikalagappan

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 {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions