java_cup.terminal , java_cup.non_terminal
| Modifier and Type | Field and Description |
|---|---|
| protected int | _index
Index of this symbol (terminal or non terminal) in the parse tables. |
| protected String | _name
String for the human readable name of the symbol. |
| protected String | _stack_type
String for the type of object used for the symbol on the parse stack. |
| protected int | _use_count
Count of how many times the symbol appears in productions. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public abstract boolean | |
| public String | |
| public void | |
| public String | |
| public String | |
| public int |
| _index | back to summary |
|---|---|
| protected int _index Index of this symbol (terminal or non terminal) in the parse tables. Note indexes are unique among terminals and unique among non terminals, however, a terminal may have the same index as a non-terminal, etc. | |
| _name | back to summary |
|---|---|
| protected String _name String for the human readable name of the symbol. | |
| _stack_type | back to summary |
|---|---|
| protected String _stack_type String for the type of object used for the symbol on the parse stack. | |
| _use_count | back to summary |
|---|---|
| protected int _use_count Count of how many times the symbol appears in productions. | |
| symbol | back to summary |
|---|---|
| public symbol(String nm, String tp) Full constructor. | |
| symbol | back to summary |
|---|---|
| public symbol(String nm) Constructor with default type.
| |
| index | back to summary |
|---|---|
| public int index() Index of this symbol (terminal or non terminal) in the parse tables. Note indexes are unique among terminals and unique among non terminals, however, a terminal may have the same index as a non-terminal, etc. | |
| is_non_term | back to summary |
|---|---|
| public abstract boolean is_non_term() Indicate if this is a non-terminal. Here in the base class we don't know, so this is abstract. | |
| name | back to summary |
|---|---|
| public String name() String for the human readable name of the symbol. | |
| note_use | back to summary |
|---|---|
| public void note_use() Increment the use count. | |
| stack_type | back to summary |
|---|---|
| public String stack_type() String for the type of object used for the symbol on the parse stack. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert to a string.
| |
| use_count | back to summary |
|---|---|
| public int use_count() Count of how many times the symbol appears in productions. | |