Re: [Pyparsing] pyparsing svg - noob
Brought to you by:
ptmcg
From: Donn <don...@gm...> - 2007-11-08 15:22:11
|
> object-like behavior too. I see I overlooked pop() in ParseResults' > methods, I'll try to remember to include that in the next version. Thanks. > (You may have to resort to reading some documentation soon...) I hear you. You've been magnificently patient with me :) > If you really, really, really want to pop your way through the tokens, you > can convert the results to a list by using asList(), and then pop() away! Great! It's an approach my mind likes - it lets me process things logically while in a loop that simply gets shorter as it loops! > floatNum.setParseAction(lambda toks:float(toks[0])) This and your other example are great ideas, I'll give 'em a whirl. I hope I don't hit many more walls, I'm actually aiming at other things and all this parsing kind of hit me over the head. I'll have to change gears and slow down. Thanks again. \d |