|
|||||||||||
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 |
parse_action_table.check_reductions()
Check the table to ensure that all productions have been reduced. |
boolean |
lalr_item_set.is_subset_of(java_cup.lalr_item_set other)
Is this set an (improper) subset of another? |
boolean |
lalr_item_set.is_superset_of(java_cup.lalr_item_set other)
Is this set an (improper) superset of another? |
java_cup.lalr_item |
lalr_item_set.add(java_cup.lalr_item itm)
Add a singleton item, merging lookahead sets if the item is already part of the set. |
void |
lalr_item_set.remove(java_cup.lalr_item itm)
Remove a single item if it is in the set. |
void |
lalr_item_set.add(java_cup.lalr_item_set other)
Add a complete set, merging lookaheads where items are already in the set |
void |
lalr_item_set.remove(java_cup.lalr_item_set other)
Remove (set subtract) a complete set. |
java_cup.lalr_item |
lalr_item_set.get_one()
Remove and return one item from the set (done in hash order). |
protected void |
lalr_item_set.not_null(java.lang.Object obj)
Helper function for null test. |
void |
lalr_item_set.compute_closure()
Compute the closure of the set using the LALR closure rules. |
static void |
Main.main(java.lang.String[] argv)
The main driver for the system. |
protected static void |
Main.build_parser()
Build the (internal) parser from the previously parsed specification. |
protected static void |
Main.emit_parser()
Call the emit routines necessary to write out the generated parser. |
static void |
Main.dump_grammar()
Produce a human readable dump of the grammar. |
java_cup.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. |
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()). |
protected void |
terminal_set.not_null(java.lang.Object obj)
Helper function to test for a null object and throw an exception if one is found. |
boolean |
terminal_set.contains(java_cup.terminal sym)
Determine if the set contains a particular terminal. |
boolean |
terminal_set.is_subset_of(java_cup.terminal_set other)
Determine if this set is an (improper) subset of another. |
boolean |
terminal_set.is_superset_of(java_cup.terminal_set other)
Determine if this set is an (improper) superset of another. |
boolean |
terminal_set.add(java_cup.terminal sym)
Add a single terminal to the set. |
void |
terminal_set.remove(java_cup.terminal sym)
Remove a terminal if it is in the set. |
boolean |
terminal_set.add(java_cup.terminal_set other)
Add (union) in a complete set. |
boolean |
terminal_set.intersects(java_cup.terminal_set other)
Determine if this set intersects another. |
void |
lalr_item.propagate_lookaheads(java_cup.terminal_set incoming)
Propagate incoming lookaheads through this item to others need to be changed. |
java_cup.lalr_item |
lalr_item.shift()
Produce the new lalr_item that results from shifting the dot one position to the right. |
java_cup.terminal_set |
lalr_item.calc_lookahead(java_cup.terminal_set lookahead_after)
Calculate lookahead representing symbols that could appear after the symbol that the dot is currently in front of. |
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 |
non_terminal.compute_nullability()
Compute nullability of all non-terminals. |
static void |
non_terminal.compute_first_sets()
Compute first sets for all non-terminals. |
void |
non_terminal.add_production(java_cup.production prod)
Add a production to our set of productions. |
protected boolean |
non_terminal.looks_nullable()
Test to see if this non terminal currently looks nullable. |
protected static void |
lalr_state.dump_state(java_cup.lalr_state st)
Helper routine for debugging -- produces a dump of the given state onto System.out. |
protected static void |
lalr_state.propagate_all_lookaheads()
Propagate lookahead sets through the constructed viable prefix recognizer. |
void |
lalr_state.add_transition(java_cup.symbol on_sym,
java_cup.lalr_state to_st)
Add a transition out of this state to another. |
static java_cup.lalr_state |
lalr_state.build_machine(java_cup.production start_prod)
Build an LALR viable prefix recognition machine given a start production. |
protected void |
lalr_state.propagate_lookaheads()
Propagate lookahead sets out of this state. |
void |
lalr_state.build_table_entries(java_cup.parse_action_table act_table,
java_cup.parse_reduce_table reduce_table)
Fill in the parse table entries for this state. |
protected boolean |
lalr_state.fix_with_precedence(java_cup.production p,
int term_index,
java_cup.parse_action_row table_row,
java_cup.parse_action act)
Procedure that attempts to fix a shift/reduce error by using precedences. |
protected java_cup.parse_action |
lalr_state.insert_action(java_cup.parse_action a1,
java_cup.parse_action a2,
int act_type)
|
protected java_cup.parse_action |
lalr_state.insert_shift(java_cup.parse_action a1,
java_cup.parse_action a2)
|
protected java_cup.parse_action |
lalr_state.insert_reduce(java_cup.parse_action a1,
java_cup.parse_action a2)
|
protected void |
lalr_state.report_conflicts(java_cup.terminal_set conflict_set)
Produce warning messages for all conflicts found in this state. |
protected void |
lalr_state.report_reduce_reduce(java_cup.lalr_item itm1,
java_cup.lalr_item itm2)
Produce a warning message for one reduce/reduce conflict. |
protected void |
lalr_state.report_shift_reduce(java_cup.lalr_item red_itm,
int conflict_sym)
Produce a warning message for one shift/reduce conflict. |
protected static void |
emit.emit_action_code(java.io.PrintWriter out,
java_cup.production start_prod)
Emit code for the non-public class holding the actual action code. |
protected static void |
emit.do_action_table(java.io.PrintWriter out,
java_cup.parse_action_table act_tab,
boolean compact_reduces)
Emit the action table. |
static void |
emit.parser(java.io.PrintWriter out,
java_cup.parse_action_table action_table,
java_cup.parse_reduce_table reduce_table,
int start_st,
java_cup.production start_prod,
boolean compact_reduces,
boolean suppress_scanner)
Emit the parser subclass with embedded tables. |
protected void |
symbol_set.not_null(java.lang.Object obj)
Helper function to test for a null object and throw an exception if one is found. |
boolean |
symbol_set.is_subset_of(java_cup.symbol_set other)
Determine if this set is an (improper) subset of another. |
boolean |
symbol_set.is_superset_of(java_cup.symbol_set other)
Determine if this set is an (improper) superset of another. |
boolean |
symbol_set.add(java_cup.symbol sym)
Add a single symbol to the set. |
void |
symbol_set.remove(java_cup.symbol sym)
Remove a single symbol if it is in the set. |
boolean |
symbol_set.add(java_cup.symbol_set other)
Add (union) in a complete set. |
void |
symbol_set.remove(java_cup.symbol_set other)
Remove (set subtract) a complete set. |
java_cup.production_part |
production.rhs(int indx)
Access to the collection of parts for the right hand side. |
protected void |
production.remove_embedded_actions()
Remove all embedded actions from a production by factoring them out into individual action production using new non terminals. |
boolean |
production.check_nullable()
Check to see if the production (now) appears to be nullable. |
java_cup.terminal_set |
production.check_first_set()
Update (and return) the first set based on current NT firsts. |
java.lang.String |
production.to_simple_string()
Convert to a simpler string. |
Constructors in java_cup that throw internal_error | |
lalr_item_set(java_cup.lalr_item_set other)
Constructor for cloning from another set. |
|
lr_item_core(java_cup.production prod,
int pos)
Full constructor. |
|
lr_item_core(java_cup.production prod)
Constructor for dot at start of right hand side. |
|
symbol_part(java_cup.symbol sym,
java.lang.String lab)
Full constructor. |
|
symbol_part(java_cup.symbol sym)
Constructor with no label. |
|
shift_action(java_cup.lalr_state shft_to)
Simple constructor. |
|
reduce_action(java_cup.production prod)
Simple constructor. |
|
terminal_set(java_cup.terminal_set other)
Constructor for cloning from another set. |
|
lalr_item(java_cup.production prod,
int pos,
java_cup.terminal_set look)
Full constructor. |
|
lalr_item(java_cup.production prod,
java_cup.terminal_set look)
Constructor with default position (dot at start). |
|
lalr_item(java_cup.production prod)
Constructor with default position and empty lookahead set. |
|
action_production(java_cup.production base,
java_cup.non_terminal lhs_sym,
java_cup.production_part[] rhs_parts,
int rhs_len,
java.lang.String action_str)
Constructor. |
|
lalr_state(java_cup.lalr_item_set itms)
Constructor for building a state from a set of items. |
|
symbol_set(java_cup.symbol_set other)
Constructor for cloning from another set. |
|
production(java_cup.non_terminal lhs_sym,
java_cup.production_part[] rhs_parts,
int rhs_l,
java.lang.String action_str)
Full constructor. |
|
production(java_cup.non_terminal lhs_sym,
java_cup.production_part[] rhs_parts,
int rhs_l)
Constructor with no action string. |
|
production(java_cup.non_terminal lhs_sym,
java_cup.production_part[] rhs_parts,
int rhs_l,
java.lang.String action_str,
int prec_num,
int prec_side)
|
|
production(java_cup.non_terminal lhs_sym,
java_cup.production_part[] rhs_parts,
int rhs_l,
int prec_num,
int prec_side)
|
|
lalr_transition(java_cup.symbol on_sym,
java_cup.lalr_state to_st,
java_cup.lalr_transition nxt)
Full constructor. |
|
lalr_transition(java_cup.symbol on_sym,
java_cup.lalr_state to_st)
Constructor with null next. |
|
nonassoc_action()
Simple constructor. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |