|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use internal_error | |
---|---|
java_cup |
Uses of internal_error in java_cup |
---|
Methods in java_cup that throw internal_error | |
---|---|
void |
non_terminal.add_production(production prod)
Add a production to our set of productions. |
void |
lalr_state.add_transition(symbol on_sym,
lalr_state to_st)
Add a transition out of this state to another. |
void |
lalr_item_set.add(lalr_item_set other)
Add a complete set, merging lookaheads where items are already in the set |
lalr_item |
lalr_item_set.add(lalr_item itm)
Add a singleton item, merging lookahead sets if the item is already part of the set. |
boolean |
symbol_set.add(symbol_set other)
Add (union) in a complete set. |
boolean |
symbol_set.add(symbol sym)
Add a single symbol to the set. |
boolean |
terminal_set.add(terminal_set other)
Add (union) in a complete set. |
boolean |
terminal_set.add(terminal sym)
Add a single terminal to the set. |
static lalr_state |
lalr_state.build_machine(production start_prod)
Build an LALR viable prefix recognition machine given a start production. |
void |
lalr_state.build_table_entries(parse_action_table act_table,
parse_reduce_table reduce_table)
Fill in the parse table entries for this state. |
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. |
boolean |
production.check_nullable()
Check to see if the production (now) appears to be nullable. |
void |
parse_action_table.check_reductions()
Check the table to ensure that all productions have been reduced. |
void |
lalr_item_set.compute_closure()
Compute the closure of the set using the LALR closure rules. |
static void |
non_terminal.compute_first_sets()
Compute first sets for all non-terminals. |
static void |
non_terminal.compute_nullability()
Compute nullability of all non-terminals. |
boolean |
terminal_set.contains(terminal sym)
Determine if the set contains a particular terminal. |
static void |
Main.dump_grammar()
Produce a human readable dump of the grammar. |
lalr_item |
lalr_item_set.get_one()
Remove and return one item from the set (done in hash order). |
boolean |
terminal_set.intersects(terminal_set other)
Determine if this set intersects another. |
boolean |
lalr_item_set.is_subset_of(lalr_item_set other)
Is this set an (improper) subset of another? |
boolean |
symbol_set.is_subset_of(symbol_set other)
Determine if this set is an (improper) subset of another. |
boolean |
terminal_set.is_subset_of(terminal_set other)
Determine if this set is an (improper) subset of another. |
boolean |
lalr_item_set.is_superset_of(lalr_item_set other)
Is this set an (improper) superset of another? |
boolean |
symbol_set.is_superset_of(symbol_set other)
Determine if this set is an (improper) superset of another. |
boolean |
terminal_set.is_superset_of(terminal_set other)
Determine if this set is an (improper) superset of another. |
boolean |
lalr_item.lookahead_visible()
Determine if everything from the symbol one beyond the dot all the way to the end of the right hand side is nullable. |
static void |
Main.main(java.lang.String[] argv)
The main driver for the system. |
static void |
emit.parser(java.io.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. |
void |
lalr_item.propagate_lookaheads(terminal_set incoming)
Propagate incoming lookaheads through this item to others need to be changed. |
void |
lalr_item_set.remove(lalr_item_set other)
Remove (set subtract) a complete set. |
void |
lalr_item_set.remove(lalr_item itm)
Remove a single item if it is in the set. |
void |
symbol_set.remove(symbol_set other)
Remove (set subtract) a complete set. |
void |
symbol_set.remove(symbol sym)
Remove a single symbol if it is in the set. |
void |
terminal_set.remove(terminal sym)
Remove a terminal if it is in the set. |
production_part |
production.rhs(int indx)
Access to the collection of parts for the right hand side. |
lr_item_core |
lr_item_core.shift_core()
Produce a new lr_item_core that results from shifting the dot one position to the right. |
lalr_item |
lalr_item.shift()
Produce the new lalr_item that results from shifting the dot one position to the right. |
java.lang.String |
production.to_simple_string()
Convert to a simpler string. |
java.lang.String |
lr_item_core.to_simple_string()
Convert to a string (separated out from toString() so we can call it from subclass that overrides toString()). |
Constructors in java_cup that throw internal_error | |
---|---|
action_production(production base,
non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_len,
java.lang.String action_str)
Constructor. |
|
lalr_item_set(lalr_item_set other)
Constructor for cloning from another set. |
|
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). |
|
lalr_state(lalr_item_set itms)
Constructor for building a state from a set of items. |
|
lalr_transition(symbol on_sym,
lalr_state to_st)
Constructor with null next. |
|
lalr_transition(symbol on_sym,
lalr_state to_st,
lalr_transition nxt)
Full constructor. |
|
lr_item_core(production prod)
Constructor for dot at start of right hand side. |
|
lr_item_core(production prod,
int pos)
Full constructor. |
|
nonassoc_action()
Simple 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,
java.lang.String action_str)
Full constructor. |
|
production(non_terminal lhs_sym,
production_part[] rhs_parts,
int rhs_l,
java.lang.String action_str,
int prec_num,
int prec_side)
|
|
reduce_action(production prod)
Simple constructor. |
|
shift_action(lalr_state shft_to)
Simple constructor. |
|
symbol_part(symbol sym)
Constructor with no label. |
|
symbol_part(symbol sym,
java.lang.String lab)
Full constructor. |
|
symbol_set(symbol_set other)
Constructor for cloning from another set. |
|
terminal_set(terminal_set other)
Constructor for cloning from another set. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |