java_cup
public class action_production extends production
Version: last updated: 11/25/95
Field Summary | |
---|---|
protected production | _base_production The production we were taken out of. |
Constructor Summary | |
---|---|
action_production(production base, non_terminal lhs_sym, production_part[] rhs_parts, int rhs_len, String action_str, int indexOfIntermediateResult) Constructor. |
Method Summary | |
---|---|
production | base_production() The production we were taken out of. |
int | getIndexOfIntermediateResult() |
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. indexOfIntermediateResult the index of the result of the previous intermediate action on the stack relative to top, -1 if no previous action
Returns: the index of the result of the previous intermediate action on the stack relative to top, -1 if no previous action