|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava_cup.CUP$parser$actions
Cup generated class to encapsulate user supplied action code.
Field Summary | |
(package private) int |
_cur_prec
Current precedence number |
(package private) int |
_cur_side
Current precedence side |
protected non_terminal |
lhs_nt
left hand side non terminal of the current production |
protected int |
MAX_RHS
max size of right hand side we will support |
protected java.lang.String |
multipart_name
string to build up multiple part names |
protected java.util.Hashtable |
non_terms
table of just non terminals -- contains non_terminals indexed by name |
private parser |
parser
|
protected production_part[] |
rhs_parts
array for accumulating right hand side parts |
protected int |
rhs_pos
where we are currently in building a right hand side |
protected non_terminal |
start_nt
declared start non_terminal |
protected java.util.Hashtable |
symbols
table of declared symbols -- contains production parts indexed by name |
Constructor Summary | |
(package private) |
CUP$parser$actions(parser parser)
Constructor |
Method Summary | |
protected production_part |
add_lab(production_part part,
java.lang.String lab)
helper routine to clone a new production part adding a given label |
protected void |
add_precedence(java.lang.String term)
add relevant data to terminals |
protected void |
add_rhs_part(production_part part)
add a new right hand side part |
protected void |
append_multipart(java.lang.String name)
append a new name segment to the accumulated multipart name |
Symbol |
CUP$parser$do_action(int CUP$parser$act_num,
lr_parser CUP$parser$parser,
java.util.Stack CUP$parser$stack,
int CUP$parser$top)
Method with the actual generated action code. |
protected void |
new_rhs()
start a new right hand side |
protected void |
update_precedence(int p)
update the precedences we are declaring |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final int MAX_RHS
protected production_part[] rhs_parts
protected int rhs_pos
protected java.lang.String multipart_name
protected java.util.Hashtable symbols
protected java.util.Hashtable non_terms
protected non_terminal start_nt
protected non_terminal lhs_nt
int _cur_prec
int _cur_side
private final parser parser
Constructor Detail |
CUP$parser$actions(parser parser)
Method Detail |
protected production_part add_lab(production_part part, java.lang.String lab) throws internal_error
internal_error
protected void new_rhs()
protected void add_rhs_part(production_part part) throws java.lang.Exception
java.lang.Exception
protected void append_multipart(java.lang.String name)
protected void update_precedence(int p)
protected void add_precedence(java.lang.String term)
public final Symbol CUP$parser$do_action(int CUP$parser$act_num, lr_parser CUP$parser$parser, java.util.Stack CUP$parser$stack, int CUP$parser$top) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |