changeset 150:cc569f68a478

all but ignore seems to work
author catherine@dellzilla
date Thu, 20 Nov 2008 16:35:35 -0500
parents 17fa16ca8329
children 2377461a35f3
files ignoreBug.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ignoreBug.py	Thu Nov 20 16:34:17 2008 -0500
+++ b/ignoreBug.py	Thu Nov 20 16:35:35 2008 -0500
@@ -1,5 +1,8 @@
 import pyparsing
 statementParser = pyparsing.Combine(pyparsing.Word(pyparsing.printables)('command') +
-                                            pyparsing.SkipTo('|' + pyparsing.stringEnd)('args') 
+                                            pyparsing.SkipTo('|' ^ pyparsing.stringEnd)('args') 
                                            )('statement')
-print statementParser.parseString('hello there /* you | fish */ box').dump()
\ No newline at end of file
+print statementParser.parseString('hello there /* you | fish */ box').dump()
+statementParser.ignore(pyparsing.cStyleComment)
+print statementParser.parseString('hello there /* you | fish */ box').dump()
+                       
\ No newline at end of file