java_cup
class CUP$parser$actions extends Object
| Field Summary | |
|---|---|
| protected non_terminal | lhs_nt left hand side non terminal of the current production |
| protected String | multipart_name string to build up multiple part names |
| protected int | MAX_RHS max size of right hand side we will support |
| protected Hashtable | non_terms table of just non terminals -- contains non_terminals indexed by name |
| 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 |
| Method Summary | |
|---|---|
| protected production_part | add_lab(production_part part, String lab) helper routine to clone a new production part adding a given label |
| protected void | add_precedence(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(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, 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 |