Hi all, The import feature of ANTLR is great but I've found what seems to be a bug with ANTLR-3.1.1.
Consider we have: - A lexer grammar L. - A parser grammar P1, importing L. - A parser grammar P2, importing P1 (and L, but it doesn't matter here). As a pure parser grammar, ANTLR doesn't let P1 import L. It produces errors like this: error(103): P1.g:6:0: parser rule letter not allowed in lexer The message denotes some kind of confusion because P1 is the *parser*, so parser rules should be allowed here. If I declare P1 as a combined grammar, ANTLR generates the code for P1 but fails on P2 as import of combined grammars is not supported. So I see no way to go beyond one import level. I can send some example code if needed but this should be easy to reproduce. Does anybody know a workaround for this? Regards, c. List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/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 -~----------~----~----~----~------~----~------~--~---
