Public Methods | |
Symbol (int sym_num) | |
Symbol (int id, int l, int r) | |
Symbol (int id, int l, int r, Object o) | |
Symbol (int id, Object o) | |
String | toString () |
Public Attributes | |
int | sym |
int | parse_state |
int | left |
int | right |
Object | value |
Private Methods | |
Symbol (int sym_num, int state) | |
Private Attributes | |
boolean | used_by_parser = false |
Definition at line 56 of file Symbol.java.
|
The parse state to be recorded on the parse stack with this symbol. This field is for the convenience of the parser and shouldn't be modified except by the parser. Definition at line 69 of file Symbol.java. |
|
The symbol number of the terminal or non terminal being represented Definition at line 61 of file Symbol.java. |
|
This allows us to catch some errors caused by scanners recycling symbols. For the use of the parser only. [CSA, 23-Jul-1999] Definition at line 72 of file Symbol.java. |