Frames | No Frames |
Constructors which throw type java_cup.internal_error | |
action_production.action_production(production base, non_terminal lhs_sym, rhs_parts[] , int rhs_len, String action_str) Constructor. | |
Constructor with default position and empty lookahead set. | |
Full constructor. | |
Constructor with default position (dot at start). | |
Constructor for cloning from another set. | |
Constructor for building a state from a set of items. | |
Constructor with null next. | |
Full constructor. | |
Constructor for dot at start of right hand side. | |
Full constructor. | |
Simple constructor. | |
Constructor with no action string. | |
Full constructor. | |
production.production(non_terminal lhs_sym, rhs_parts[] , int rhs_l, String action_str, int prec_num, int prec_side) | |
Simple constructor. | |
Simple constructor. | |
Constructor with no label. | |
Full constructor. | |
Constructor for cloning from another set. | |
Constructor for cloning from another set. |
Methods which throw type java_cup.internal_error | |
lalr_item | Add a singleton item, merging lookahead sets if the item is already
part of the set. |
void | Add a complete set, merging lookaheads where items are already in
the set
|
boolean | Add a single symbol to the set. |
boolean | Add (union) in a complete set. |
boolean | Add a single terminal to the set. |
boolean | Add (union) in a complete set. |
void | Add a production to our set of productions. |
void | Add a transition out of this state to another. |
lalr_state | Build an LALR viable prefix recognition machine given a start
production. |
void | Build the (internal) parser from the previously parsed specification. |
void | Fill in the parse table entries for this state. |
terminal_set | Calculate lookahead representing symbols that could appear after the
symbol that the dot is currently in front of. |
terminal_set | Update (and return) the first set based on current NT firsts. |
boolean | Check to see if the production (now) appears to be nullable. |
void | Check the table to ensure that all productions have been reduced. |
void | Compute the closure of the set using the LALR closure rules. |
void | Compute first sets for all non-terminals. |
void | Compute nullability of all non-terminals. |
boolean | Determine if the set contains a particular terminal. |
void | Emit the action table. |
void | Produce a human readable dump of the grammar. |
void | Helper routine for debugging -- produces a dump of the given state
onto System.out. |
void | Emit code for the non-public class holding the actual action code. |
void | Call the emit routines necessary to write out the generated parser. |
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. |
lalr_item | Remove and return one item from the set (done in hash order). |
parse_action | |
parse_action | |
parse_action | |
boolean | Determine if this set intersects another. |
boolean | Is this set an (improper) subset of another?
|
boolean | Determine if this set is an (improper) subset of another. |
boolean | Determine if this set is an (improper) subset of another. |
boolean | Is this set an (improper) superset of another?
|
boolean | Determine if this set is an (improper) superset of another. |
boolean | Determine if this set is an (improper) superset of another. |
boolean | Determine if everything from the symbol one beyond the dot all the
way to the end of the right hand side is nullable. |
boolean | Test to see if this non terminal currently looks nullable. |
void | The main driver for the system. |
void | lalr_item_set.not_null(Object obj) Helper function for null test. |
void | symbol_set.not_null(Object obj) Helper function to test for a null object and throw an exception
if one is found. |
void | terminal_set.not_null(Object obj) Helper function to test for a null object and throw an exception if
one is found. |
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. |
void | Propagate lookahead sets through the constructed viable prefix
recognizer. |
void | Propagate lookahead sets out of this state. |
void | Propagate incoming lookaheads through this item to others need to
be changed. |
void | Remove a single item if it is in the set. |
void | Remove (set subtract) a complete set. |
void | Remove a single symbol if it is in the set. |
void | Remove (set subtract) a complete set. |
void | Remove a terminal if it is in the set. |
void | Remove all embedded actions from a production by factoring them
out into individual action production using new non terminals. |
void | Produce warning messages for all conflicts found in this state. |
void | Produce a warning message for one reduce/reduce conflict. |
void | Produce a warning message for one shift/reduce conflict. |
production_part | production.rhs(int indx) Access to the collection of parts for the right hand side. |
lalr_item | Produce the new lalr_item that results from shifting the dot one position
to the right. |
lr_item_core | Produce a new lr_item_core that results from shifting the dot one
position to the right. |
String | Convert to a string (separated out from toString() so we can call it
from subclass that overrides toString()). |
String | Convert to a simpler string. |