Package java_cup
Class action_production
- java.lang.Object
-
- java_cup.production
-
- java_cup.action_production
-
public class action_production extends production
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected production
_base_production
The production we were taken out of.-
Fields inherited from class java_cup.production
_action, _all, _first_set, _index, _lhs, _nullable, _nullable_known, _num_reductions, _rhs, _rhs_length, next_index
-
-
Constructor Summary
Constructors Constructor Description action_production(production base, non_terminal lhs_sym, production_part[] rhs_parts, int rhs_len, java.lang.String action_str)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description production
base_production()
The production we were taken out of.-
Methods inherited from class java_cup.production
action, action_translate, all, check_first_set, check_nullable, equals, equals, first_set, hashCode, index, is_id_char, is_id_start, label_translate, lhs, merge_adjacent_actions, note_reduction_use, nullable, nullable_known, num_reductions, number, remove_embedded_actions, rhs, rhs_length, strip_trailing_action, to_simple_string, toString, translate_labels
-
-
-
-
Field Detail
-
_base_production
protected production _base_production
The production we were taken out of.
-
-
Constructor Detail
-
action_production
public action_production(production base, non_terminal lhs_sym, production_part[] rhs_parts, int rhs_len, java.lang.String action_str) throws internal_error
Constructor.- Parameters:
base
- the production we are being factored out of.lhs_sym
- the LHS symbol for this production.rhs_parts
- array of production parts for the RHS.rhs_len
- how much of the rhs_parts array is valid.action_str
- the trailing reduce action for this production.- Throws:
internal_error
-
-
Method Detail
-
base_production
public production base_production()
The production we were taken out of.
-
-