# HG changeset patch # User catherine@dellzilla # Date 1227210555 18000 # Node ID cda32481187cbe3eaa86638eb8bd80521fe0ea52 # Parent 9ffb01d8876f8782bc78e6a6ab124aff5240d050 streamlining parsing diff -r 9ffb01d8876f -r cda32481187c cmd2.py --- 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')