[I read the rest of this thread as well.] The backtrack=true option *destroys* the ability to provide useful error messages. A backtrack+memoize grammar is *much* less efficient in both time and space than a left-factored grammar written for ANTLR with these in mind. The options are potentially useful as a quick hack to test a grammar before left factoring it, but aside from allowing "lazy" development (writing efficient, correct left-factored grammars can be very time consuming), they have no practical benefit.
Sam -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Steven Obua Sent: Monday, June 08, 2009 3:09 PM To: Jim Idle Cc: [email protected] Subject: Re: [antlr-interest] packrat vs. LL(*) Well, with the options I give, it finishes code generation in a few milli seconds. My grammar is very readable (which would be destroyed by left-factoring), the parser is sufficiently fast. In twenty years, it will be even faster. 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 -~----------~----~----~----~------~----~------~--~---
