[antlr-interest] Resolving Member-References

Jan Gräfen jan.graefen at rwth-aachen.de
Mon Oct 24 19:50:48 PDT 2011


Hey guys,

I have a quick question.

memberReference
     :   (start='this' | start='parent') ('.' member+=(methodCall | 
Identifier))*
     ;

I have this simplified rule above and I want to save all methodCalls and 
Identifiers into $members.
This doesn't seem to work since methodCall is a rule and Identifier is a 
token.
Any idea how to accomplish this?

With kind regards,
Jan


More information about the antlr-interest mailing list