On Thu, May 21, 2009 at 10:24 AM, Thomas Brandon <[email protected]> wrote: > You should be able to use the importVocab option to specify a common > .tokens file for all lexers to import. Or you can chain the lexers by > having one island grammar import the vocab of the other and then have > the main grammar import that island grammars vocab. That will avoid > the need to keep the manually generated common token file in sync. > Though then you will need to check if ANTLR's build ordering can > handle this dependency or else make sure you enforce the build order > manually or tokens will get out of sync.
You meant tokenVocab...thanks, this did the trick!!! (I get warnings about "no lexer rule corresponding to token ..." but the generated code seems to be OK). Thanks!!! -- Mike J. Bell on gmail 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 -~----------~----~----~----~------~----~------~--~---
