Package pylilac :: Module Symbol :: Class Terminal
[frames | no frames]

Class Terminal

_Symbol --+
          |
         Terminal

Known Subclasses:
DelegateTerminal

A terminal symbol.

A terminal symbol can be thought of as an indivisible entity. It is not possible to express a terminal in terms of other terminals or nonterminals.

See Also: NonTerminal

Method Summary
  __init__(self, content)
  __eq__(self, other)
Compare a terminal to another.
  __hash__(self)
  __repr__(self)
Build up a verbose representation according to BNF.
  insert_fsa(self, grammar, fsa, initial, final, tag)
Inserts a sub-FSA in a FSA according to the rules in a grammar.
  match(self, token)
  recognize(self, token)

Method Details

__eq__(self, other)
(Equality operator)

Compare a terminal to another. Two terminals are equal if their contents are the same.
Overrides:
pylilac.Symbol._Symbol.__eq__

__repr__(self)
(Representation operator)

Build up a verbose representation according to BNF.
Overrides:
pylilac.Symbol._Symbol.__repr__ (inherited documentation)

insert_fsa(self, grammar, fsa, initial, final, tag=None)

Inserts a sub-FSA in a FSA according to the rules in a grammar.
Overrides:
pylilac.Symbol._Symbol.insert_fsa (inherited documentation)

Generated by Epydoc 2.1 on Sat Aug 26 09:33:46 2006 http://epydoc.sf.net