view 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
line wrap: on
line source

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()