Package org.jboss.byteman.rule.grammar
Class ECAGrammarParser
- java.lang.Object
-
- java_cup.runtime.lr_parser
-
- org.jboss.byteman.rule.grammar.ECAGrammarParser
-
public class ECAGrammarParser extends java_cup.runtime.lr_parser
-
-
Field Summary
Fields Modifier and Type Field Description protected static short[][]
_action_table
protected static short[][]
_production_table
protected static short[][]
_reduce_table
protected org.jboss.byteman.rule.grammar.CUP$ECAGrammarParser$actions
action_obj
-
Constructor Summary
Constructors Constructor Description ECAGrammarParser()
ECAGrammarParser(java_cup.runtime.Scanner s)
ECAGrammarParser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short[][]
action_table()
void
debug_reduce(int prod_num, int nt_num, int rhs_size)
void
debug_shift(java_cup.runtime.Symbol shift_tkn)
java_cup.runtime.Symbol
do_action(int act_num, java_cup.runtime.lr_parser parser, Stack stack, int top)
int
EOF_sym()
void
error(String message)
void
error(String message, int line, int col)
int
error_sym()
int
getErrorCount()
String
getErrors()
String
getFile()
protected void
init_actions()
short[][]
production_table()
short[][]
reduce_table()
void
report_error(String message, Object info)
java_cup.runtime.Symbol
scan()
void
setFile(String file)
int
start_production()
int
start_state()
void
unrecovered_syntax_error(java_cup.runtime.Symbol cur_token)
-
Methods inherited from class java_cup.runtime.lr_parser
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, expected_token_ids, find_recovery_config, get_action, get_reduce, getScanner, getSymbolContainer, getSymbolFactory, parse, parse_lookahead, read_lookahead, report_expected_token_ids, report_fatal_error, restart_lookahead, setScanner, shift_under_error, symbl_name_from_id, syntax_error, try_parse_ahead, unpackFromStrings, user_init
-
-
-
-
Method Detail
-
production_table
public short[][] production_table()
- Specified by:
production_table
in classjava_cup.runtime.lr_parser
-
action_table
public short[][] action_table()
- Specified by:
action_table
in classjava_cup.runtime.lr_parser
-
reduce_table
public short[][] reduce_table()
- Specified by:
reduce_table
in classjava_cup.runtime.lr_parser
-
init_actions
protected void init_actions()
- Specified by:
init_actions
in classjava_cup.runtime.lr_parser
-
do_action
public java_cup.runtime.Symbol do_action(int act_num, java_cup.runtime.lr_parser parser, Stack stack, int top) throws Exception
- Specified by:
do_action
in classjava_cup.runtime.lr_parser
- Throws:
Exception
-
start_state
public int start_state()
- Specified by:
start_state
in classjava_cup.runtime.lr_parser
-
start_production
public int start_production()
- Specified by:
start_production
in classjava_cup.runtime.lr_parser
-
EOF_sym
public int EOF_sym()
- Specified by:
EOF_sym
in classjava_cup.runtime.lr_parser
-
error_sym
public int error_sym()
- Specified by:
error_sym
in classjava_cup.runtime.lr_parser
-
scan
public java_cup.runtime.Symbol scan() throws Exception
- Overrides:
scan
in classjava_cup.runtime.lr_parser
- Throws:
Exception
-
setFile
public void setFile(String file)
-
report_error
public void report_error(String message, Object info)
- Overrides:
report_error
in classjava_cup.runtime.lr_parser
-
unrecovered_syntax_error
public void unrecovered_syntax_error(java_cup.runtime.Symbol cur_token)
- Overrides:
unrecovered_syntax_error
in classjava_cup.runtime.lr_parser
-
error
public void error(String message)
-
error
public void error(String message, int line, int col)
-
getFile
public String getFile()
-
getErrorCount
public int getErrorCount()
-
getErrors
public String getErrors()
-
debug_reduce
public void debug_reduce(int prod_num, int nt_num, int rhs_size)
- Overrides:
debug_reduce
in classjava_cup.runtime.lr_parser
-
debug_shift
public void debug_shift(java_cup.runtime.Symbol shift_tkn)
- Overrides:
debug_shift
in classjava_cup.runtime.lr_parser
-
-