annotate ignoreBug.py @ 149:17fa16ca8329

all but ignore seems to work
author catherine@dellzilla
date Thu, 20 Nov 2008 16:34:17 -0500
parents
children cc569f68a478
rev   line source
149
17fa16ca8329 all but ignore seems to work
catherine@dellzilla
parents:
diff changeset
1 import pyparsing
17fa16ca8329 all but ignore seems to work
catherine@dellzilla
parents:
diff changeset
2 statementParser = pyparsing.Combine(pyparsing.Word(pyparsing.printables)('command') +
17fa16ca8329 all but ignore seems to work
catherine@dellzilla
parents:
diff changeset
3 pyparsing.SkipTo('|' + pyparsing.stringEnd)('args')
17fa16ca8329 all but ignore seems to work
catherine@dellzilla
parents:
diff changeset
4 )('statement')
17fa16ca8329 all but ignore seems to work
catherine@dellzilla
parents:
diff changeset
5 print statementParser.parseString('hello there /* you | fish */ box').dump()