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

Class Group

Expression --+
             |
            Group


Method Summary
  __init__(self, name, expression, attrs)
(name, expression)
  __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
    Inherited from Expression
  __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
  make_iterator(self, tag, debug_level)
create an iterator for this regexp; the 'tag' defines a record
  make_parser(self, debug_level)
create a SAX compliant parser for this regexp

Method Details

__init__(self, name, expression, attrs=None)
(Constructor)

(name, expression)

Create a group named 'name' which matches the given expression

__str__(self)
(Informal representation operator)

the corresponding pattern string
Overrides:
Martel.Expression.Expression.__str__

copy(self)

do a deep copy on this Expression tree
Overrides:
Martel.Expression.Expression.copy

features(self)

return a list of all features
Overrides:
Martel.Expression.Expression.features

group_names(self)

the list of group names used by this Expression and its children
Overrides:
Martel.Expression.Expression.group_names

Generated by Epydoc 2.1 on Mon Aug 27 16:12:11 2007 http://epydoc.sf.net