Trees | Index | Help |
|
---|
Package pylilac :: Module Symbol :: Class Terminal |
|
_Symbol
--+
|
Terminal
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)
| |
Compare a terminal to another. | |
__hash__(self)
| |
Build up a verbose representation according to BNF. | |
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)
Compare a terminal to another. Two terminals are equal if their
contents are the same.
|
__repr__(self)
Build up a verbose representation according to BNF.
|
insert_fsa(self, grammar, fsa, initial, final, tag=None)Inserts a sub-FSA in aFSA according to the rules in a grammar .
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Aug 26 09:33:46 2006 | http://epydoc.sf.net |