| Modifier and Type | Field and Description |
|---|---|
| public int | left
The data passed to parser |
| public int | parse_state
The parse state to be recorded on the parse stack with this symbol. |
| public int | right
The data passed to parser |
| public int | sym
The symbol number of the terminal or non terminal being represented |
| pack-priv boolean | used_by_parser
This allows us to catch some errors caused by scanners recycling symbols. |
| public Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| left | back to summary |
|---|---|
| public int left The data passed to parser | |
| parse_state | back to summary |
|---|---|
| public int parse_state 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. | |
| right | back to summary |
|---|---|
| public int right The data passed to parser | |
| sym | back to summary |
|---|---|
| public int sym The symbol number of the terminal or non terminal being represented | |
| used_by_parser | back to summary |
|---|---|
| pack-priv boolean used_by_parser This allows us to catch some errors caused by scanners recycling symbols. For the use of the parser only. [CSA, 23-Jul-1999] | |
| value | back to summary |
|---|---|
| public Object value | |
| Symbol | back to summary |
|---|---|
| public Symbol(int id, int l, int r, Object o) Constructor for l,r values | |
| Symbol | back to summary |
|---|---|
| public Symbol(int id, Object o) Constructor for no l,r values | |
| Symbol | back to summary |
|---|---|
| public Symbol(int id, int l, int r) Constructor for no value | |
| Symbol | back to summary |
|---|---|
| public Symbol(int sym_num) Constructor for no value or l,r | |
| Symbol | back to summary |
|---|---|
| pack-priv Symbol(int sym_num, int state) Constructor to give a start state | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Printing this token out. (Override for pretty-print).
| |