Top Description Fields Constructors Methods
java_cup

pack-priv Class CUP$parser$actions

Located in compilation unit of java_cup.parser.

extends Object
Class Inheritance

Cup generated class to encapsulate user supplied action code.

Field Summary

Modifier and TypeField 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<K, V>
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<K, V>
symbols

table of declared symbols -- contains production parts indexed by name

Constructor Summary

AccessConstructor and Description
pack-priv
CUP$parser$actions(parser parser)

Constructor

Method Summary

Modifier and TypeMethod 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
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

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
new_rhs()

start a new right hand side

protected void
update_precedence(int p)

update the precedences we are declaring

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_cur_precback to summary
pack-priv int _cur_prec

Current precedence number

_cur_sideback to summary
pack-priv int _cur_side

Current precedence side

lhs_ntback to summary
protected non_terminal lhs_nt

left hand side non terminal of the current production

MAX_RHSback to summary
protected final int MAX_RHS

max size of right hand side we will support

multipart_nameback to summary
protected String multipart_name

string to build up multiple part names

non_termsback to summary
protected Hashtable<K, V> non_terms

table of just non terminals -- contains non_terminals indexed by name

parserback to summary
private final parser parser
rhs_partsback to summary
protected production_part[] rhs_parts

array for accumulating right hand side parts

rhs_posback to summary
protected int rhs_pos

where we are currently in building a right hand side

start_ntback to summary
protected non_terminal start_nt

declared start non_terminal

symbolsback to summary
protected Hashtable<K, V> symbols

table of declared symbols -- contains production parts indexed by name

Constructor Detail

CUP$parser$actionsback to summary
pack-priv CUP$parser$actions(parser parser)

Constructor

Method Detail

add_labback 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_precedenceback to summary
protected void add_precedence(String term)

add relevant data to terminals

add_rhs_partback to summary
protected void add_rhs_part(production_part part) throws Exception

add a new right hand side part

append_multipartback to summary
protected void append_multipart(String name)

append a new name segment to the accumulated multipart name

CUP$parser$do_actionback 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_rhsback to summary
protected void new_rhs()

start a new right hand side

update_precedenceback to summary
protected void update_precedence(int p)

update the precedences we are declaring