Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>class tyacc </b> fivewin yacc machine http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Class TYacc     FiveWin YACC Machine
--------------------------------------------------------------------------------
 DATA
--------------------------------------------------------------------------------
 oLex      AS OBJECT              TLex object
 lDebug    AS LOGICAL             Debug mode
 nErrors   AS NUMERIC
 nErrFlag  AS NUMERIC
 nToken    AS NUMERIC             Last token
 nTheState AS NUMERIC             Actual state
 nState    AS NUMERIC  INIT 1     Index into aStates
 nValue    AS NUMERIC  INIT 1     Index into aValues
 aStates   AS ARRAY    INIT {}
 aLen      AS ARRAY               N. of rules of each state
 aValues   AS ARRAY    INIT {}
 aDefRed   AS ARRAY    INIT {}
 aShift    AS ARRAY
 aReduce   AS ARRAY
 aSIndex   AS ARRAY               Array of shift indexes
 aRIndex   AS ARRAY               Array of reduce indexes
 aGIndex   AS ARRAY               Array of goto indexes
 aDGoto    AS ARRAY
 aTable    AS ARRAY
 aLHS      AS ARRAY               Left hand side
 aCheck    AS ARRAY
 aRules    AS ARRAY
 uLValue                          Last left value
 uValue                           Last right value
 bShift    AS BLOCK
 bReduce   AS BLOCK

 METHODS
--------------------------------------------------------------------------------
 New             Constructor from source code
 Parse           Starts processing an input stream (file or string)
 Shift           Shifts to a new state
 Reduce          Reduces from a state and executes the production rule if defined
 Error           Error manager.
 ProdValue       Returns the value of a production member.
 Accept          General acceptacion process when parsing is completed.


See Also: FiveWin.ch

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson