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

Class NonTerminal

_Symbol --+
          |
         NonTerminal


A non-terminal symbol.

A non-terminal symbol is that symbol which has the capability of being further defined in terms of terminals and/or non-terminals.

It may be said to be a glyph or mark that is further decomposable.

See Also: Terminal

Method Summary
  __init__(self, reference)
  __eq__(self, other)
Compare a non-terminal to another.
  __hash__(self)
  __repr__(self)
Build up a verbose representation according to BNF.
  dependencies(self)
Compute the non-terminals the symbol depends on.
  insert_fsa(self, grammar, fsa, initial, final, tag)
Inserts a sub-FSA in a FSA according to the rules in a grammar.

Method Details

__eq__(self, other)
(Equality operator)

Compare a non-terminal to another. Two non-terminals are equal if their references 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)

dependencies(self)

Compute the non-terminals the symbol depends on.
Overrides:
pylilac.Symbol._Symbol.dependencies (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