JFlex

Class LexParse

public class LexParse extends lr_parser

CUP v0.11a beta 20060608 generated parser.
Field Summary
protected CUP$LexParse$actionsaction_obj
Instance of action encapsulation class.
LexScanscanner
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
LexParse()
Default constructor.
LexParse(Scanner s)
Constructor which sets the default scanner.
LexParse(Scanner s, SymbolFactory sf)
Constructor which sets the default scanner.
LexParse(LexScan 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.
CharClassesgetCharClasses()
EOFActionsgetEOFActions()
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)
intstart_production()
Indicates start production.
intstart_state()
Indicates start state.
voiduser_init()
User initialization code.

Field Detail

action_obj

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

scanner

public LexScan scanner

_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

LexParse

public LexParse()
Default constructor.

LexParse

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

LexParse

public LexParse(Scanner s, SymbolFactory sf)
Constructor which sets the default scanner.

LexParse

public LexParse(LexScan 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.

getCharClasses

public CharClasses getCharClasses()

getEOFActions

public EOFActions getEOFActions()

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)

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.