Re: [Pyparsing] Issue with sexpparser example
Brought to you by:
ptmcg
From: Sebastian W. <seb...@ne...> - 2012-04-28 17:52:57
|
Changing the line with: qString = Group(Optional(decimal,default=None)("len") + dblQuotedString.setParseAction(removeQuotes)).setParseAction(verifyLen) to: qString = Group(Optional(decimal,default=None)("len") + dblQuotedString).setParseAction(verifyLen) Works fine. There are any other issue with this change? Thanks, Sebastian -----Original Message----- From: Sebastian Wain [mailto:seb...@ne...] Sent: Saturday, April 28, 2012 1:37 PM To: pyp...@li... Subject: [Pyparsing] Issue with sexpparser example Hi, I am playing with the sexpparser example by Paul. I found that parsing '(a b c)' gives the same result of parsing '(a b "c")' and this can be problematic since c is different than "c". Is that correct? I think the correct result will be to result in an string. Thanks, Sebastian ---------------------------------------------------------------------------- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Pyparsing-users mailing list Pyp...@li... https://lists.sourceforge.net/lists/listinfo/pyparsing-users |