At 10:34 10/10/2009, Reid Rivenburgh wrote: >In my particular case, I think it's okay to let a few illegal >constructs through and catch them further down the line. I was >just hoping that I would be able to easily write a tighter >grammar.
As Jim Idle is fond of pointing out, it's often better to make the grammar fairly tolerant and deal with errors as late as possible (usually in the tree parser) -- that way you have more contextual information and can often produce a better error message. 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 -~----------~----~----~----~------~----~------~--~---
