Martel :: Expression :: Seq :: Class Seq
[hide private]
[frames] | no frames]

Class Seq

source code

Expression --+    
             |    
ExpressionList --+
                 |
                Seq

An Expression matching a set of subexpressions, in sequential order

Instance Methods [hide private]
 
__init__(self, expressions)
(expressions)
source code
 
__add__(self, other)
returns an Expression to match this Expression then the other one
source code
 
__str__(self)
the corresponding pattern string
source code

Inherited from ExpressionList: copy, features, group_names

Inherited from Expression: __or__, make_iterator, make_parser

Method Details [hide private]

__init__(self, expressions)
(Constructor)

source code 

(expressions)

Match the list of sequential expressions, in order. Each expression starts matching at the point where the previous match finished.

__add__(self, other)
(Addition operator)

source code 

returns an Expression to match this Expression then the other one

Overrides: Expression.__add__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

the corresponding pattern string

Overrides: Expression.__str__