Modifier and Type | Class and Description |
---|---|
class |
action_part
This class represents a part of a production which contains an
action.
|
class |
symbol_part
This class represents a part of a production which is a symbol (terminal
or non terminal).
|
Modifier and Type | Field and Description |
---|---|
protected production_part[] |
production._rhs
A collection of parts for the right hand side.
|
Modifier and Type | Method and Description |
---|---|
production_part |
production.rhs(int indx)
Access to the collection of parts for the right hand side.
|
Modifier and Type | Method and Description |
---|---|
protected String |
production.declare_labels(production_part[] rhs,
int rhs_len,
String final_action)
Declare label names as valid variables within the action string
|
boolean |
production_part.equals(production_part other)
Equality comparison.
|
protected int |
production.merge_adjacent_actions(production_part[] rhs_parts,
int len)
Helper routine to merge adjacent actions in a set of RHS parts
|
protected action_part |
production.strip_trailing_action(production_part[] rhs_parts,
int len)
Helper routine to strip a trailing action off rhs and return it
|
Constructor and Description |
---|
action_production(production base,
non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_len,
String action_str,
int indexOfIntermediateResult)
Constructor.
|
production(non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_l)
Constructor with no action string.
|
production(non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_l,
int prec_num,
int prec_side) |
production(non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_l,
String action_str)
Full constructor.
|
production(non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_l,
String action_str,
int prec_num,
int prec_side) |
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.