| Modifier and Type | Field and Description |
|---|---|
| protected static Hashtable | _all
Table of all non-terminals -- elements are stored using name strings as the key |
| protected static Hashtable | _all_by_index
Table of all non terminals indexed by their index number. |
| protected terminal_set | _first_set
First set for this non-terminal. |
| protected boolean | _nullable
Nullability of this non terminal. |
| protected Hashtable | _productions
Table of all productions with this non terminal on the LHS. |
| public boolean | is_embedded_action
flag non-terminals created to embed action productions |
| protected static int | next_index
Static counter to assign unique indexes. |
| protected static int | next_nt
Static counter for creating unique non-terminal names |
| public static final non_terminal | START_nt
special non-terminal for start symbol |
| Access | Constructor and Description |
|---|---|
| public | non_terminal(String
the name of the non terminal. nm, String the type string for the non terminal. tp)Full constructor. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static Enumeration | |
| public static void | |
| public static void | |
| pack-priv static non_terminal | create_new(String
base name to construct unique name from. prefix)Method for creating a new uniquely named hidden non-terminal using the given string as a base for the name (or "NT$" if null is passed). |
| pack-priv static non_terminal | |
| public static non_terminal | |
| public static non_terminal | |
| public terminal_set | |
| public boolean | is_non_term()
Implements abstract java_cup. |
| protected boolean | |
| public boolean | |
| public int | |
| public static int | |
| public Enumeration | |
| public String |
| _all | back to summary |
|---|---|
| protected static Hashtable<K, V> _all Table of all non-terminals -- elements are stored using name strings as the key | |
| _all_by_index | back to summary |
|---|---|
| protected static Hashtable<K, V> _all_by_index Table of all non terminals indexed by their index number. | |
| _first_set | back to summary |
|---|---|
| protected terminal_set _first_set First set for this non-terminal. | |
| _nullable | back to summary |
|---|---|
| protected boolean _nullable Nullability of this non terminal. | |
| _productions | back to summary |
|---|---|
| protected Hashtable<K, V> _productions Table of all productions with this non terminal on the LHS. | |
| is_embedded_action | back to summary |
|---|---|
| public boolean is_embedded_action flag non-terminals created to embed action productions | |
| next_index | back to summary |
|---|---|
| protected static int next_index Static counter to assign unique indexes. | |
| next_nt | back to summary |
|---|---|
| protected static int next_nt Static counter for creating unique non-terminal names | |
| START_nt | back to summary |
|---|---|
| public static final non_terminal START_nt special non-terminal for start symbol | |
| non_terminal | back to summary |
|---|---|
| public non_terminal(String nm, String tp) Full constructor. | |
| non_terminal | back to summary |
|---|---|
| public non_terminal(String nm) Constructor with default type.
| |
| add_production | back to summary |
|---|---|
| public void add_production(production prod) throws internal_error Add a production to our set of productions. | |
| all | back to summary |
|---|---|
| public static Enumeration Access to all non-terminals. | |
| compute_first_sets | back to summary |
|---|---|
| public static void compute_first_sets() throws internal_error Compute first sets for all non-terminals. This assumes nullability has already computed. | |
| compute_nullability | back to summary |
|---|---|
| public static void compute_nullability() throws internal_error Compute nullability of all non-terminals. | |
| create_new | back to summary |
|---|---|
| pack-priv static non_terminal create_new(String prefix) throws internal_error Method for creating a new uniquely named hidden non-terminal using the given string as a base for the name (or "NT$" if null is passed).
| |
| create_new | back to summary |
|---|---|
| pack-priv static non_terminal create_new() throws internal_error static routine for creating a new uniquely named hidden non-terminal | |
| find | back to summary |
|---|---|
| public static non_terminal find(String with_name) lookup a non terminal by name string | |
| find | back to summary |
|---|---|
| public static non_terminal find(int indx) Lookup a non terminal by index. | |
| first_set | back to summary |
|---|---|
| public terminal_set first_set() First set for this non-terminal. | |
| is_non_term | back to summary |
|---|---|
| public boolean is_non_term() Implements abstract java_cup. Indicate that this symbol is a non-terminal. | |
| looks_nullable | back to summary |
|---|---|
| protected boolean looks_nullable() throws internal_error Test to see if this non terminal currently looks nullable. | |
| nullable | back to summary |
|---|---|
| public boolean nullable() Nullability of this non terminal. | |
| num_productions | back to summary |
|---|---|
| public int num_productions() Total number of productions with this non terminal on the LHS. | |
| number | back to summary |
|---|---|
| public static int number() Total number of non-terminals. | |
| productions | back to summary |
|---|---|
| public Enumeration Access to productions with this non terminal on the LHS. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java_cup. convert to string
| |