com.croftsoft.apps.compiler.mini.parse
Class MiniParser

java.lang.Object
  extended by java_cup.runtime.lr_parser
      extended by com.croftsoft.apps.compiler.mini.parse.MiniParser

public class MiniParser
extends java_cup.runtime.lr_parser


Field Summary
protected static short[][] _action_table
          parse action table
protected static short[][] _production_table
          production table
protected static short[][] _reduce_table
          reduce_goto table
protected  com.croftsoft.apps.compiler.mini.parse.CUP$MiniParser$actions action_obj
          instance of action encapsulation class
protected  CUPTokenScanner cupTokenScanner
           
 
Constructor Summary
MiniParser()
          constructor
MiniParser(CUPTokenScanner cupTokenScanner)
           
 
Method Summary
 short[][] action_table()
          access to parse action table
 java_cup.runtime.Symbol do_action(int act_num, java_cup.runtime.lr_parser parser, Stack stack, int top)
          invoke a user supplied parse action
 int EOF_sym()
          EOF Symbol index
 int error_sym()
          error Symbol index
protected  void init_actions()
          action encapsulation object initializer
 short[][] production_table()
          access to production table
 short[][] reduce_table()
          access to reduce_goto table
 java_cup.runtime.Symbol scan()
          scan to get the next Symbol
 int start_production()
          start production
 int start_state()
          start state
 void user_init()
          user initialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_production_table

protected static final short[][] _production_table
production table


_action_table

protected static final short[][] _action_table
parse action table


_reduce_table

protected static final short[][] _reduce_table
reduce_goto table


action_obj

protected com.croftsoft.apps.compiler.mini.parse.CUP$MiniParser$actions action_obj
instance of action encapsulation class


cupTokenScanner

protected CUPTokenScanner cupTokenScanner
Constructor Detail

MiniParser

public MiniParser()
constructor


MiniParser

public MiniParser(CUPTokenScanner cupTokenScanner)
Method Detail

production_table

public short[][] production_table()
access to production table


action_table

public short[][] action_table()
access to parse action table


reduce_table

public short[][] reduce_table()
access to reduce_goto table


init_actions

protected void init_actions()
action encapsulation object initializer


do_action

public java_cup.runtime.Symbol do_action(int act_num,
                                         java_cup.runtime.lr_parser parser,
                                         Stack stack,
                                         int top)
                                  throws Exception
invoke a user supplied parse action

Throws:
Exception

start_state

public int start_state()
start state


start_production

public int start_production()
start production


EOF_sym

public int EOF_sym()
EOF Symbol index


error_sym

public int error_sym()
error Symbol index


user_init

public void user_init()
               throws Exception
user initialization

Throws:
Exception

scan

public java_cup.runtime.Symbol scan()
                             throws Exception
scan to get the next Symbol

Throws:
Exception

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)