On Friday 28 November 2008 15:05, Ilya Sterin wrote: > Based on the grammar you provided it doesn't seem you've defined it > correctly. First, I'd define some of your patterns as lexer tokens. > Try this...
I think it's important to make clear the fact that ANTLR encodes a fixed naming convention that makes rules whose names begin with a lower-case letter produce parser productions and those whose names begin with an upper-case letter produce lexer / scanner rules. It was the first problem I had when first using ANTLR... The next less will be to understand that the scanner / lexer fully processes the input (breaking it into a sequence of tokens) and completes its work before the parser begins executing. Randall Schulz 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 -~----------~----~----~----~------~----~------~--~---
