| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Production
A grammar production. Each production maps a single symbol on the left-hand side
to a sequence of symbols on the right-hand side. (In the case of context-free
productions, the left-hand side must be a Nonterminal, and
the right-hand side is a sequence of terminals and
Nonterminals.) terminals can be any immutable hashable object that
is not a Nonterminal. Typically, terminals are strings
representing words, such as "dog" or
"under".
|
|||
|
|||
| Nonterminal |
|
||
sequence of (Nonterminal and (terminal))
|
|
||
integer
|
|
||
bool
|
|
||
bool
|
|
||
string
|
|
||
string
|
|
||
boolean
|
|
||
|
|||
|
|||
int
|
|
||
|
|||
| Nonterminal |
_lhs The left-hand side of the production. |
||
tuple of (Nonterminal and (terminal))
|
_rhs The right-hand side of the production. |
||
|
|||
Construct a new
|
|
|
|
|
|
|
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:47 2011 | http://epydoc.sourceforge.net |