Table of Contents
DoOneReduction ( self )
DoOneReduction accepts tokens from the stream and pushes them onto the stack until a reduction state is reached.
Resolve the reduction
GO ( self )
execute parsing until done:
GotoState ( self, rule )
compute the state to goto after a reduction is performed on a rule. Algorithm: determine the state at beginning of reduction and the next state indicated by the head nonterminal of the rule. special case: empty stack and root nonterminal > success.
ParseError ( self, State, Token, *rest, )
StackDump ( self, N )
__init__ ( self, Rulelist, Stream, FSM, Stack, Evaluate=1, Context=None, )
Evaluate determines whether rules should be evaluated after reductions. Context is an argument passed to the list reduction function