[antlr-interest] Custom token set up from lexer rules

Bertalan Fodor lilypondtool at organum.hu
Thu Feb 21 15:15:52 PST 2008


Hello,

I would like to set up my custom token object from the lexer rules. 
Until now I only found one solution: set some member field in the lexer 
actions, then use that field in the overridden emit method. Isn't there 
a more elegant way for this?

Thank you,

Bert



More information about the antlr-interest mailing list