java_cup

Class parser

public class parser extends lr_parser

CUP v0.10k generated parser.

Version: Sun Jul 25 13:35:26 EDT 1999

Field Summary
protected CUP$parser$actionsaction_obj
Instance of action encapsulation class.
protected static short[][]_action_table
Parse-action table.
protected static short[][]_production_table
Production table.
protected static short[][]_reduce_table
reduce_goto table.
Constructor Summary
parser()
Default constructor.
parser(Scanner s)
Constructor which sets the default scanner.
Method Summary
short[][]action_table()
Access to parse-action table.
Symboldo_action(int act_num, lr_parser parser, Stack stack, int top)
Invoke a user supplied parse action.
interror_sym()
error Symbol index.
intEOF_sym()
EOF Symbol index.
protected voidinit_actions()
Action encapsulation object initializer.
short[][]production_table()
Access to production table.
short[][]reduce_table()
Access to reduce_goto table.
voidreport_error(String message, Object info)
voidreport_fatal_error(String message, Object info)
Symbolscan()
Scan to get the next Symbol.
intstart_production()
Indicates start production.
intstart_state()
Indicates start state.
voiduser_init()
User initialization code.

Field Detail

action_obj

protected CUP$parser$actions action_obj
Instance of action encapsulation class.

_action_table

protected static final short[][] _action_table
Parse-action table.

_production_table

protected static final short[][] _production_table
Production table.

_reduce_table

protected static final short[][] _reduce_table
reduce_goto table.

Constructor Detail

parser

public parser()
Default constructor.

parser

public parser(Scanner s)
Constructor which sets the default scanner.

Method Detail

action_table

public short[][] action_table()
Access to parse-action table.

do_action

public Symbol do_action(int act_num, lr_parser parser, Stack stack, int top)
Invoke a user supplied parse action.

error_sym

public int error_sym()
error Symbol index.

EOF_sym

public int EOF_sym()
EOF Symbol index.

init_actions

protected void init_actions()
Action encapsulation object initializer.

production_table

public short[][] production_table()
Access to production table.

reduce_table

public short[][] reduce_table()
Access to reduce_goto table.

report_error

public void report_error(String message, Object info)

report_fatal_error

public void report_fatal_error(String message, Object info)

scan

public Symbol scan()
Scan to get the next Symbol.

start_production

public int start_production()
Indicates start production.

start_state

public int start_state()
Indicates start state.

user_init

public void user_init()
User initialization code.