Re: [Pyparsing] Slow parsing with indentedBlock()
Brought to you by:
ptmcg
From: Paul M. <pt...@au...> - 2009-11-16 08:02:13
|
> I have a problem with indentedBlock() and a relatively simple grammar that > relies on indentation and recursion. I'm seeing extremely long execution > times. On one example that I've attached it doesn't terminate within an > hour. > Yikes! If this is a simple grammar, you do some crazy parsing! You have so much going on in this grammar, have you thought of using something a little simpler, but just as self-descriptive, like JSON perhaps? I know it uses delimiters instead of indentation, but pyparsing seems to be really struggling with this input text. You might also look at some of the indented examples on the pyparsing wiki, and roll your own version of indentedBlock, to see if you can make some better headway. -- Paul |