Additional top-level class in compilation unit: CUP$parser$actions.
| Modifier and Type | Field and Description |
|---|---|
| protected static final short[][] | _action_table
Parse-action table. |
| protected static final short[][] | _production_table
Production table. |
| protected static final short[][] | _reduce_table
|
| protected CUP$parser$actions | action_obj
Instance of action encapsulation class. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public short[][] | action_table()
Implements abstract java_cup. |
| public Symbol | do_action(int
the internal index of the action to be performed. act_num, lr_parser the parser object we are acting for. parser, Stack<E> the parse stack of that object. stack, int the index of the top element of the parse stack. top)Implements abstract java_cup. |
| public int | |
| public int | |
| protected void | init_actions()
Implements abstract java_cup. |
| public short[][] | production_table()
Implements abstract java_cup. |
| public short[][] | reduce_table()
Implements abstract java_cup. reduce_goto table.
|
| public void | report_error(String
an error message. message, Object an extra object reserved for use by specialized subclasses. info)Overrides java_cup. |
| public void | report_fatal_error(String
an error message. message, Object an extra object reserved for use by specialized subclasses. info)
Report a fatal error.
|
| public Symbol | |
| public int | start_production()
Implements abstract java_cup. |
| public int | |
| public void |
| _action_table | back to summary |
|---|---|
| protected static final short[][] _action_table Parse-action table. | |
| _production_table | back to summary |
|---|---|
| protected static final short[][] _production_table Production table. | |
| _reduce_table | back to summary |
|---|---|
| protected static final short[][] _reduce_table
| |
| action_obj | back to summary |
|---|---|
| protected CUP$parser$actions action_obj Instance of action encapsulation class. | |
| parser | back to summary |
|---|---|
| public parser() Default constructor. | |
| parser | back to summary |
|---|---|
| public parser(Scanner s) Constructor which sets the default scanner. | |
| action_table | back to summary |
|---|---|
| public short[][] action_table() Implements abstract java_cup. Access to parse-action table. | |
| do_action | back to summary |
|---|---|
| public Symbol do_action(int act_num, lr_parser parser, Stack<E> stack, int top) throws Exception Implements abstract java_cup. Invoke a user supplied parse action.
| |
| EOF_sym | back to summary |
|---|---|
| public int EOF_sym() Implements abstract java_cup.
| |
| error_sym | back to summary |
|---|---|
| public int error_sym() Implements abstract java_cup.
| |
| init_actions | back to summary |
|---|---|
| protected void init_actions() Implements abstract java_cup. Action encapsulation object initializer. | |
| production_table | back to summary |
|---|---|
| public short[][] production_table() Implements abstract java_cup. Access to production table. | |
| reduce_table | back to summary |
|---|---|
| public short[][] reduce_table() Implements abstract java_cup. Access to | |
| report_error | back to summary |
|---|---|
| public void report_error(String message, Object info) Overrides java_cup. Doc from java_cup. Report a non fatal error (or warning). This method takes a message string and an additional object (to be used by specializations implemented in subclasses). Here in the base class a very simple implementation is provided which simply prints the message to System.err. | |
| report_fatal_error | back to summary |
|---|---|
| public void report_fatal_error(String message, Object info) Overrides java_cup. Doc from java_cup. Report a fatal error. This method takes a message string and an additional object (to be used by specializations implemented in subclasses). Here in the base class a very simple implementation is provided which reports the error then throws an exception. | |
| scan | back to summary |
|---|---|
| public Symbol scan() throws Exception Overrides java_cup. Scan to get the next Symbol. | |
| start_production | back to summary |
|---|---|
| public int start_production() Implements abstract java_cup. Indicates start production. | |
| start_state | back to summary |
|---|---|
| public int start_state() Implements abstract java_cup. Indicates start state. | |
| user_init | back to summary |
|---|---|
| public void user_init() throws Exception Overrides java_cup. User initialization code. | |