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

Class Literal

Expression --+
             |
            Literal


Method Summary
  __init__(self, char, invert)
(char, invert = 0)
  __str__(self)
the corresponding pattern string
  copy(self)
do a deep copy on this Expression tree
    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
  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, 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
  _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
  _select_names(self, names)
internal function used by 'select_names'.

Method Details

__init__(self, char, invert=0)
(Constructor)

(char, invert = 0)

Match the given character or, if 'invert' is true, match a character which is not this character.

__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

Generated by Epydoc 2.1 on Thu Aug 10 20:05:53 2006 http://epydoc.sf.net