kyacc/src/PDA.i3


 Copyright (c) 2000 California Institute of Technology 
 All rights reserved. See the file COPYRIGHT for a full description. 
 $Id: PDA.i3,v 1.2 2001-09-19 15:13:58 wagner Exp $ 

INTERFACE PDA;
IMPORT RuleList;
IMPORT PDATransList;
IMPORT TokSpec;
IMPORT TextIntTbl;
TYPE
  T <: Public;
  Public = OBJECT
    statesArray: REF ARRAY OF PDATransList.T;
    lastShift: INTEGER;
  METHODS
    fmtSymbols(): TEXT;
    symInfo(VAR numSym, lastCode: INTEGER);
  END;
PROCEDURE New(rules: RuleList.T;
              tok: TokSpec.T;
              codeTbl: TextIntTbl.T): T;
PROCEDURE Test(self: T);
END PDA.