Logo Search packages:      
Sourcecode: bauble version File versions

def bauble::utils::pyparsing::ParserElement::copy (   self  )  [inherited]

Make a copy of this ParserElement.  Useful for defining different parse actions
   for the same parsing pattern, using copies of the original parse element.

Reimplemented in bauble::utils::pyparsing::Keyword, and bauble::utils::pyparsing::Forward.

Definition at line 695 of file pyparsing.py.

00695                     :
        """Make a copy of this ParserElement.  Useful for defining different parse actions
           for the same parsing pattern, using copies of the original parse element."""
        cpy = copy.copy( self )
        cpy.parseAction = self.parseAction[:]
        cpy.ignoreExprs = self.ignoreExprs[:]
        if self.copyDefaultWhiteChars:
            cpy.whiteChars = ParserElement.DEFAULT_WHITE_CHARS
        return cpy


Generated by  Doxygen 1.6.0   Back to index