Table of Contents

Class: ParserObj Zope-2.2.1-src/lib/python/Products/ZGadflyDA/gadfly/kjParser.py

Methods   
DoOneReduction
GO
GotoState
ParseError
StackDump
__init__
  DoOneReduction 
DoOneReduction ( self )

DoOneReduction accepts tokens from the stream and pushes them onto the stack until a reduction state is reached.

Resolve the reduction

Exceptions   
EOFError
FlowError
  GO 
GO ( self )

execute parsing until done:

  GotoState 
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 
ParseError (
        self,
        State,
        Token,
        *rest,
        )

Exceptions   
SyntaxError
  StackDump 
StackDump ( self,  N )

  __init__ 
__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


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6