Modifier and Type | Field and Description |
---|---|
protected terminal_set |
production._first_set
First set of the production.
|
protected terminal_set |
non_terminal._first_set
First set for this non-terminal.
|
protected terminal_set |
lalr_item._lookahead
The lookahead symbols of the item.
|
static terminal_set |
terminal_set.EMPTY
Constant for the empty set.
|
Modifier and Type | Method and Description |
---|---|
terminal_set |
lalr_item.calc_lookahead(terminal_set lookahead_after)
Calculate lookahead representing symbols that could appear after the
symbol that the dot is currently in front of.
|
terminal_set |
production.check_first_set()
Update (and return) the first set based on current NT firsts.
|
terminal_set |
production.first_set()
First set of the production.
|
terminal_set |
non_terminal.first_set()
First set for this non-terminal.
|
terminal_set |
lalr_item.lookahead()
The lookahead symbols of the item.
|
Modifier and Type | Method and Description |
---|---|
boolean |
terminal_set.add(terminal_set other)
Add (union) in a complete set.
|
terminal_set |
lalr_item.calc_lookahead(terminal_set lookahead_after)
Calculate lookahead representing symbols that could appear after the
symbol that the dot is currently in front of.
|
boolean |
terminal_set.equals(terminal_set other)
Equality comparison.
|
boolean |
terminal_set.intersects(terminal_set other)
Determine if this set intersects another.
|
boolean |
terminal_set.is_subset_of(terminal_set other)
Determine if this set is an (improper) subset of another.
|
boolean |
terminal_set.is_superset_of(terminal_set other)
Determine if this set is an (improper) superset of another.
|
void |
lalr_item.propagate_lookaheads(terminal_set incoming)
Propagate incoming lookaheads through this item to others need to
be changed.
|
protected void |
lalr_state.report_conflicts(terminal_set conflict_set)
Produce warning messages for all conflicts found in this state.
|
Constructor and Description |
---|
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).
|
terminal_set(terminal_set other)
Constructor for cloning from another set.
|
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.