Asif Iqbal wrote:
Read the 5 minute intro on the Wiki, then download the pre-existing examples (download page) and crib from them. Basically your parser rules should start with a lower case letter and your lexer rules with an upper case letter. All your rules here start with upper case and so the lexer is processing them all and of course they are all therefore ambiguous. Also, I recommend that you don't use 'literals' in your parsers when you are starting out, because until you grok the whole parser/lexer thing, they will confuse you. Define everything as a lexer token and you will be less confused. Jim
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
