Trees | Index | Help |
---|
Package Martel :: Module Expression :: Class Expression |
|
Any
,
AnyEol
,
Assert
,
AtBeginning
,
AtEnd
,
Debug
,
Dot
,
ExpressionList
,
Group
,
GroupRef
,
Literal
,
MaxRepeat
,
NullOp
,
PassThrough
,
Str
Method Summary | |
---|---|
returns an Expression to match this Expression then the other one | |
returns an Expression matching this Expression or (if that fails) the other one | |
the corresponding pattern string | |
do a deep copy on this Expression tree | |
return a list of all features | |
the list of group names used by this Expression and its children | |
create an iterator for this regexp; the 'tag' defines a record | |
create a SAX compliant parser for this regexp | |
return a list of all groups matching the given tag | |
internal function for manipulating the leaves of an expression | |
internal function used by 'select_names'. |
Method Details |
---|
__add__(self,
other)
returns an Expression to match this Expression then the other
one
|
__or__(self,
other)
returns an Expression matching this Expression or (if that fails)
the other one
|
__str__(self)
the corresponding pattern string
|
copy(self)do a deep copy on this Expression tree |
features(self)return a list of all features |
group_names(self)the list of group names used by this Expression and its children |
make_iterator(self, tag='record', debug_level=0)create an iterator for this regexp; the 'tag' defines a record |
make_parser(self, debug_level=0)create a SAX compliant parser for this regexp |
_find_groups(self, tag)return a list of all groups matching the given tag |
_modify_leaves(self, func)internal function for manipulating the leaves of an expression This really needs to be some sort of visit pattern, but I'm not sure the best way to do it. THIS METHOD MAY CHANGE. |
_select_names(self, names)internal function used by 'select_names'. Don't call this function. Will likely be removed in future versions. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Jul 16 15:49:00 2005 | http://epydoc.sf.net |