| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
ParserElement --+
|
ParseElementEnhance --+
|
Forward
Forward declaration of an expression to be defined later - used for
recursive grammars, such as algebraic infix notation. When the expression
is known, it is assigned to the Forward variable using the
'<<' operator.
Note: take care when assigning to Forward not to overlook
precedence of operators. Specifically, '|' has a lower precedence than
'<<', so that:
fwdExpr << a | b | c
will actually be evaluated as:
(fwdExpr << a) | b | c
thereby leaving b and c out as parseable alternatives. It is
recommended that you explicitly group the values inserted into the
Forward:
fwdExpr << (a | b | c)
Converting to use the '<<=' operator instead will avoid this problem.
| Nested Classes | |
|
Inherited from |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
| Static Methods | |
|
Inherited from |
| Class Variables | |
|
Inherited from |
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Disables the skipping of whitespace before matching the characters in
the
|
|
Check defined expressions for valid structure, check for infinite recursive definitions.
|
str(x)
|
Make a copy of this
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 21 00:05:44 2016 | http://epydoc.sourceforge.net |