Re: [Pyparsing] Is it possible to optimize this grammar?
Brought to you by:
ptmcg
From: Paul M. <pt...@au...> - 2009-07-09 19:46:01
|
Gustavo - Parsers that have deep operatorPrecedence definitions often benefit from using packrat parsing. Please insert this at the top of your module, right after the import statement (you'll also have to add ParserElement to the list of names imported from the pyparsing module): ParserElement.enablePackrat() Packrat parsing is a kind of parse-time memoization. There is more info on the FAQs page of the wiki. -- Paul |