| Home | Trees | Index | Help |
|
|---|
| Package lemon :: Package external :: Package gadfly :: Module kjParser :: Class ParseRule |
|
the rule class a rule is defined by a goal nonterminal marker of form (NONTERMFLAG, Name) and a list defining the body which must contain elts of form (KEYFLAG, Name) or (NONTERMFLAG, Name) of (TERMFLAG, Name) and a reduction function which takes a list of the same size as the BodyList (consisting of the results of the evaluations of the previous reductions) and returns an interpretation for the body
| Method Summary | |
|---|---|
__init__(self,
goalNonTerm,
BodyList,
ReductFunction)
| |
__repr__(self)
| |
marshal-able components of a rule... | |
rule.reduce(Stack) pops of the stack elements corresponding... | |
| Method Details |
|---|
components(self)marshal-able components of a rule |
reduce(self, Stack, Context=None)rule.reduce(Stack) pops of the stack elements corresponding to the body of the rule and prepares the appropriate reduction object for evaluation (or not) at higher levels |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Nov 10 15:08:23 2003 | http://epydoc.sf.net |