Top Description Fields Constructors Methods
java_cup

public Class action_production

extends production
Class Inheritance

A specialized version of a production used when we split an existing production in order to remove an embedded action. Here we keep a bit of extra bookkeeping so that we know where we came from.
Author
Scott Hudson
Version
last updated: 11/25/95

Field Summary

Modifier and TypeField and Description
protected production
_base_production

The production we were taken out of.

Inherited from java_cup.production:
_action_all_first_set_index_lhs_nullable_nullable_known_num_reductions_rhs_rhs_assoc_rhs_length_rhs_precnext_index

Constructor Summary

AccessConstructor and Description
public
action_production(production
the production we are being factored out of.
base
,
non_terminal
the LHS symbol for this production.
lhs_sym
,
production_part[]
array of production parts for the RHS.
rhs_parts
,
int
how much of the rhs_parts array is valid.
rhs_len
,
String
the trailing reduce action for this production.
action_str
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public production
base_production()

The production we were taken out of.

Inherited from java_cup.production:
actionallcheck_first_setcheck_nullabledeclare_labelsequalsequalsfindfirst_sethashCodeindexis_id_charis_id_startlhsmake_declarationmerge_adjacent_actionsnote_reduction_usenullablenullable_knownnum_reductionsnumberprecedence_numprecedence_sideremove_embedded_actionsrhsrhs_lengthset_nullableset_precedence_numset_precedence_sidestrip_trailing_actionto_simple_stringtoString

Field Detail

_base_productionback to summary
protected production _base_production

The production we were taken out of.

Constructor Detail

action_productionback to summary
public action_production(production base, non_terminal lhs_sym, production_part[] rhs_parts, int rhs_len, String action_str) throws internal_error

Constructor.

Parameters
base:production

the production we are being factored out of.

lhs_sym:non_terminal

the LHS symbol for this production.

rhs_parts:production_part[]

array of production parts for the RHS.

rhs_len:int

how much of the rhs_parts array is valid.

action_str:String

the trailing reduce action for this production.

Method Detail

base_productionback to summary
public production base_production()

The production we were taken out of.