Table of Contents

Class: Assert Martel/Expression.py

Lookahead assertions: '(?=...)' (?!...)

Base Classes   
Expression
Methods   
__init__
__str__
_modify_leaves
copy
  __init__ 
__init__ (
        self,
        expression,
        invert=0,
        )

(expression, invert = 0)

A non-consuming assertion using the given expression. The default is a positive lookahead, which matches if the expression matches at the current position, but does not affect the character position.

If invert is false, this is a negative lookahead assertion, and matches if the expression does not match. Again, the character position is not affected.

  __str__ 
__str__ ( self )

the corresponding pattern string

  _modify_leaves 
_modify_leaves ( self,  func )

  copy 
copy ( self )

do a deep copy on this Expression tree


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:20 2002 by HappyDoc version 2.0.1