Methods Summary |
---|
public int | EOF_sym()EOF Symbol index.return 0;
|
public short[][] | action_table()Access to parse-action table.
return _action_table;
|
public com.sun.java_cup.internal.runtime.Symbol | do_action(int act_num, com.sun.java_cup.internal.runtime.lr_parser parser, java.util.Stack stack, int top)Invoke a user supplied parse action.
/* call code in generated class */
return action_obj.CUP$parser$do_action(act_num, parser, stack, top);
|
public int | error_sym()error Symbol index.return 1;
|
protected void | init_actions()Action encapsulation object initializer.
action_obj = new CUP$parser$actions(this);
|
public short[][] | production_table()Access to production table.
return _production_table;
|
public short[][] | reduce_table()Access to reduce_goto table.
return _reduce_table;
|
public void | report_error(java.lang.String message, java.lang.Object info)
lexer.emit_error(message);
|
public void | report_fatal_error(java.lang.String message, java.lang.Object info)
done_parsing();
lexer.emit_error(message);
System.err.println("Can't recover from previous error(s), giving up.");
System.exit(1);
|
public com.sun.java_cup.internal.runtime.Symbol | scan()Scan to get the next Symbol.
return lexer.next_token();
|
public int | start_production()Indicates start production.return 0;
|
public int | start_state()Indicates start state.return 0;
|
public void | user_init()User initialization code.
lexer.init();
|