appleseedlab / superc

The SuperC Parsing Framework
24 stars 4 forks source link

SuperP4: Looking up values under parent name spacing #173

Open kaarthikalagappan opened 2 years ago

kaarthikalagappan commented 2 years ago

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: 0fde6f5dc14b25f18d6b59bdae4578be98e902fb

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

action a() {}
control c() {
    table t {
        actions = { .a; }
        default_action = a;
    }
    apply {}
}