Hi,
I have a grammar in which there can be implicit imports of a few
definitions example:
module A {
enum myEnumA { A1, A2, A3 }
}
module B {
import module A;
function myFuncB (int, myEnumA) {
...
}
}
module Prog {
import B;
myFuncB (1, A2); *
}
*Here A2 is implicitly known to be of type myEnumA, since the
definition of myFuncB is in B and B imports A.
The problem i have is that my parser reports A2 as unknown.
I have not come up with a good and simple solution to this.
I have been thinking along the lines of:
Check definition of myFuncB and if it takes a enum as argument, check
the local module's imports for the definition of that enum.
Any help is really appreciated.
Best Regards Gustaf
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.