Package Martel :: Module Expression :: Class PassThrough
[hide private]
[frames] | no frames]

Class PassThrough

source code

Expression --+
             |
            PassThrough
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, expression)
(expression)
source code
 
_select_names(self, names)
internal function used by 'select_names'.
source code
 
_modify_leaves(self, func)
internal function for manipulating the leaves of an expression
source code
 
copy(self)
do a deep copy on this Expression tree
source code
 
__str__(self)
the corresponding pattern string
source code
 
group_names(self)
the list of group names used by this Expression and its children
source code
 
_find_groups(self, tag)
return a list of all groups matching the given tag
source code
 
features(self)
return a list of all features
source code

Inherited from Expression: __add__, __or__, make_iterator, make_parser

Method Details [hide private]

__init__(self, expression)
(Constructor)

source code 

(expression)

Match the given subexpression. This class should not be used directly. It is meant for generating specialized parsers which read a record at a time.

_select_names(self, names)

source code 

internal function used by 'select_names'.

Don't call this function. Will likely be removed in future versions.

Overrides: Expression._select_names
(inherited documentation)

_modify_leaves(self, func)

source code 

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.

Overrides: Expression._modify_leaves
(inherited documentation)

copy(self)

source code 

do a deep copy on this Expression tree

Overrides: Expression.copy

__str__(self)
(Informal representation operator)

source code 

the corresponding pattern string

Overrides: Expression.__str__

group_names(self)

source code 

the list of group names used by this Expression and its children

Overrides: Expression.group_names
(inherited documentation)

_find_groups(self, tag)

source code 

return a list of all groups matching the given tag

Overrides: Expression._find_groups
(inherited documentation)

features(self)

source code 

return a list of all features

Overrides: Expression.features