Re: [Pyparsing] Reading n words
Brought to you by:
ptmcg
From: Andreas M. <and...@gm...> - 2008-09-04 21:25:11
|
Paul McGuire wrote: > Pyparsing includes a built-in helper method, called countedArray. Oh, there it is. Thanks a lot. > Look at the pyparsing source code to see how countedArray uses a Forward > expression that gets its content defined within a parse action attached > to the leading integer. Yes, that's what I was looking for. I have no idea why I have missed forward declarations in the documentation. It's all there. Ciao Andreas ps: I've just started using pyparsing, yesterday. And today, I have a running parser for a file containing geometrical data. That's nice. I like pyparsing. |