Modifier and Type | Class and Description |
---|---|
class |
action_production
A specialized version of a production used when we split an existing
production in order to remove an embedded action.
|
Modifier and Type | Field and Description |
---|---|
protected production |
action_production._base_production
The production we were taken out of.
|
protected production |
reduce_action._reduce_with
The production we reduce with.
|
protected production |
lr_item_core._the_production
The production for the item.
|
static production |
emit.start_production
The start production of the grammar.
|
Modifier and Type | Field and Description |
---|---|
protected static Hashtable<Integer,production> |
production._all
Table of all productions.
|
protected Hashtable<production,production> |
non_terminal._productions
Table of all productions with this non terminal on the LHS.
|
protected Hashtable<production,production> |
non_terminal._productions
Table of all productions with this non terminal on the LHS.
|
Modifier and Type | Method and Description |
---|---|
production |
action_production.base_production()
The production we were taken out of.
|
static production |
production.find(int indx)
Lookup a production by index.
|
production |
reduce_action.reduce_with()
The production we reduce with.
|
production |
lr_item_core.the_production()
The production for the item.
|
Modifier and Type | Method and Description |
---|---|
static Enumeration<production> |
production.all()
Access to all productions.
|
Enumeration<production> |
non_terminal.productions()
Access to productions with this non terminal on the LHS.
|
Modifier and Type | Method and Description |
---|---|
void |
non_terminal.add_production(production prod)
Add a production to our set of productions.
|
static lalr_state |
lalr_state.build_machine(production start_prod)
Build an LALR viable prefix recognition machine given a start
production.
|
protected static void |
emit.emit_action_code(PrintWriter out,
production start_prod)
Emit code for the non-public class holding the actual action code.
|
boolean |
production.equals(production other)
Equality comparison.
|
protected boolean |
lalr_state.fix_with_precedence(production p,
int term_index,
parse_action_row table_row,
parse_action act)
Procedure that attempts to fix a shift/reduce error by using
precedences.
|
static void |
emit.parser(PrintWriter out,
parse_action_table action_table,
parse_reduce_table reduce_table,
int start_st,
production start_prod,
boolean compact_reduces,
boolean suppress_scanner)
Emit the parser subclass with embedded tables.
|
Constructor and Description |
---|
action_production(production base,
non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_len,
String action_str,
int indexOfIntermediateResult)
Constructor.
|
lalr_item(production prod)
Constructor with default position and empty lookahead set.
|
lalr_item(production prod,
int pos,
terminal_set look)
Full constructor.
|
lalr_item(production prod,
terminal_set look)
Constructor with default position (dot at start).
|
lr_item_core(production prod)
Constructor for dot at start of right hand side.
|
lr_item_core(production prod,
int pos)
Full constructor.
|
reduce_action(production prod)
Simple constructor.
|
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.