JFlex

Class LexParse


public class LexParse
extends java_cup.runtime.lr_parser

CUP v0.11a beta 20060608 generated 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 JFlex.CUP$LexParse$actions
action_obj
Instance of action encapsulation class.
LexScan
scanner

Constructor Summary

LexParse()
Default constructor.
LexParse(LexScan scanner)
LexParse(java_cup.runtime.Scanner s)
Constructor which sets the default scanner.
LexParse(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf)
Constructor which sets the default scanner.

Method Summary

int
EOF_sym()
EOF Symbol index.
short[][]
action_table()
Access to parse-action table.
java_cup.runtime.Symbol
do_action(int act_num, java_cup.runtime.lr_parser parser, java.util.Stack stack, int top)
Invoke a user supplied parse action.
int
error_sym()
error Symbol index.
CharClasses
getCharClasses()
EOFActions
getEOFActions()
protected void
init_actions()
Action encapsulation object initializer.
short[][]
production_table()
Access to production table.
short[][]
reduce_table()
Access to reduce_goto table.
void
report_error(String message, Object info)
void
report_fatal_error(String message, Object info)
int
start_production()
Indicates start production.
int
start_state()
Indicates start state.
void
user_init()
User initialization code.

Field Details

_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.

action_obj

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

scanner

public LexScan scanner

Constructor Details

LexParse

public LexParse()
Default constructor.

LexParse

public LexParse(LexScan scanner)

LexParse

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

LexParse

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

Method Details

EOF_sym

public int EOF_sym()
EOF Symbol index.

action_table

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

do_action

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

error_sym

public int error_sym()
error 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()
            throws java.lang.Exception
User initialization code.