Re: [Pyparsing] Slow parsing with indentedBlock()
Brought to you by:
ptmcg
From: Philipp R. <phi...@gm...> - 2009-11-16 14:53:46
|
Am Mon, 16 Nov 2009 02:02:01 -0600 schrieb Paul McGuire: > 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? It's a legacy format, unfortunately. I actually worked through most of the indented examples already. I'm also somewhat new to pyparsing, been doing some tricky things with it, but not to the point where I feel really confident. I was kinda hoping for some pointers to tweak the existing grammar, but that seems to be difficult. Either way you now have a test case for indentedBlock() breaking Packrat, and for those indentedBlock() recursion problems that people were reporting some time ago ;) Philipp |