changeset 147:cda32481187c

streamlining parsing
author catherine@dellzilla
date Thu, 20 Nov 2008 14:49:15 -0500
parents 9ffb01d8876f
children 01ad9cd681a7
files cmd2.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Thu Nov 20 14:21:11 2008 -0500
+++ b/cmd2.py	Thu Nov 20 14:49:15 2008 -0500
@@ -229,7 +229,8 @@
         >>> print c.p2('simple | piped').dump()
         >>> print c.p2('output into > afile.txt').dump()
         >>> print c.p2('output into;sufx | pipethrume plz > afile.txt').dump()
-        >>> print c.p2('output to paste buffer >> ').dump()               
+        >>> print c.p2('output to paste buffer >> ').dump()
+        >>> print c.p2('ignore the /* commented | > */ stuff;')
         '''        
         outputParser = pyparsing.oneOf(['>>','>'])('output')
         terminatorParser = pyparsing.oneOf(self.terminators)('terminator')