Located in compilation unit of java_cup.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | _cur_prec
Current precedence number |
| pack-priv int | _cur_side
Current precedence side |
| protected non_terminal | lhs_nt
left hand side non terminal of the current production |
| protected final int | MAX_RHS
max size of right hand side we will support |
| protected String | multipart_name
string to build up multiple part names |
| protected Hashtable | non_terms
table of just non terminals -- contains non_terminals indexed by name |
| private final 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 Hashtable | symbols
table of declared symbols -- contains production parts indexed by name |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected production_part | add_lab(production_part part, String lab)
helper routine to clone a new production part adding a given label |
| protected void | |
| protected void | |
| protected void | |
| public final Symbol | CUP$parser$do_action(int CUP$parser$act_num, lr_parser CUP$parser$parser, Stack<E> CUP$parser$stack, int CUP$parser$top)
Method with the actual generated action code. |
| protected void | |
| protected void |
| _cur_prec | back to summary |
|---|---|
| pack-priv int _cur_prec Current precedence number | |
| _cur_side | back to summary |
|---|---|
| pack-priv int _cur_side Current precedence side | |
| lhs_nt | back to summary |
|---|---|
| protected non_terminal lhs_nt left hand side non terminal of the current production | |
| MAX_RHS | back to summary |
|---|---|
| protected final int MAX_RHS max size of right hand side we will support | |
| multipart_name | back to summary |
|---|---|
| protected String multipart_name string to build up multiple part names | |
| non_terms | back to summary |
|---|---|
| protected Hashtable<K, V> non_terms table of just non terminals -- contains non_terminals indexed by name | |
| parser | back to summary |
|---|---|
| private final parser parser | |
| rhs_parts | back to summary |
|---|---|
| protected production_part[] rhs_parts array for accumulating right hand side parts | |
| rhs_pos | back to summary |
|---|---|
| protected int rhs_pos where we are currently in building a right hand side | |
| start_nt | back to summary |
|---|---|
| protected non_terminal start_nt declared start non_terminal | |
| symbols | back to summary |
|---|---|
| protected Hashtable<K, V> symbols table of declared symbols -- contains production parts indexed by name | |
| CUP$parser$actions | back to summary |
|---|---|
| pack-priv CUP$parser$actions(parser parser) Constructor | |
| add_lab | back to summary |
|---|---|
| protected production_part add_lab(production_part part, String lab) throws internal_error helper routine to clone a new production part adding a given label | |
| add_precedence | back to summary |
|---|---|
| protected void add_precedence(String term) add relevant data to terminals | |
| add_rhs_part | back to summary |
|---|---|
| protected void add_rhs_part(production_part part) throws Exception add a new right hand side part | |
| append_multipart | back to summary |
|---|---|
| protected void append_multipart(String name) append a new name segment to the accumulated multipart name | |
| CUP$parser$do_action | back to summary |
|---|---|
| public final Symbol CUP$parser$do_action(int CUP$parser$act_num, lr_parser CUP$parser$parser, Stack<E> CUP$parser$stack, int CUP$parser$top) throws Exception Method with the actual generated action code. | |
| new_rhs | back to summary |
|---|---|
| protected void new_rhs() start a new right hand side | |
| update_precedence | back to summary |
|---|---|
| protected void update_precedence(int p) update the precedences we are declaring | |