Mercurial > python-cmd2
changeset 149:17fa16ca8329
all but ignore seems to work
author | catherine@dellzilla |
---|---|
date | Thu, 20 Nov 2008 16:34:17 -0500 |
parents | 01ad9cd681a7 |
children | cc569f68a478 |
files | ignoreBug.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ignoreBug.py Thu Nov 20 16:34:17 2008 -0500 @@ -0,0 +1,5 @@ +import pyparsing +statementParser = pyparsing.Combine(pyparsing.Word(pyparsing.printables)('command') + + pyparsing.SkipTo('|' + pyparsing.stringEnd)('args') + )('statement') +print statementParser.parseString('hello there /* you | fish */ box').dump() \ No newline at end of file