[antlr-interest] reference tokens{} in other files

John Ridgway john.ridgway at trincoll.edu
Thu Nov 1 14:51:41 PDT 2007


On Nov 1, 2007, at 5:15 PM, Michael LeBlanc wrote:

> On Nov 1, 2007, at 4:59 PM, Johannes Luber wrote:
>
>> That's correct. It's not possible to change that, but adding  
>> fooParser
>> should be a minor inconvenience.
>
> Unless you want to refer to them in case phrases in a switch  
> statement.  Then it's a major inconvenience.

I haven't tried it, but shouldn't
   import static fooParser.*;
work?

Peace
- John




More information about the antlr-interest mailing list