diff 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 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