Table of Contents

Class: Alt Martel/Expression.py

An Expression tree with a list of alternate matches.

A set of expressions: a|b|c

Base Classes   
ExpressionList
Methods   
__init__
__or__
__str__
  __init__ 
__init__ ( self,  expressions )

(expressions)

Match one of a list of alternate expressions. The expressions are tested in their input order.

For example, Alt( (exp1, exp2, exp3) ) means try to match exp1, and if that fails try to match exp2, and if that fails, try to match exp3. If that fails, the match failed.

Exceptions   
TypeError( "Must pass in a list of expressions, not just a single one (put it inside of ()s" )
  __or__ 
__or__ ( self,  other )

  __str__ 
__str__ ( self )

the corresponding pattern string


Table of Contents

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