David-Sarah Hopwood wrote: > [email protected] wrote: >> grammar bug; >> bug : EOF; >> fragment NEWLINE : '\n' '\r'? {$channel=HIDDEN;}; >> >> Console: >> [19:14:16] /output/bugLexer.java:50: cannot find symbol >> [19:14:16] symbol : variable _channel >> [19:14:16] location: class bugLexer >> [19:14:16] _channel=HIDDEN; >> [19:14:16] ^ >> [19:14:16] 1 error > > The generated code for mNEWLINE does not contain > > int _channel = DEFAULT_TOKEN_CHANNEL; > ... > state.channel = _channel;
Oh, this is as expected for fragment rules. See John Brodie's reply. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com 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 -~----------~----~----~----~------~----~------~--~---
