public class Symbol
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
left
The data passed to parser
|
int |
parse_state
The parse state to be recorded on the parse stack with this symbol.
|
int |
right
The data passed to parser
|
int |
sym
The symbol number of the terminal or non terminal being represented
|
java.lang.Object |
value |
Constructor and Description |
---|
Symbol(int sym_num)
Constructor for no value or l,r
|
Symbol(int sym_num,
int state)
Constructor to give a start state
|
Symbol(int sym_num,
int l,
int r)
Constructor for no value
|
Symbol(int id,
int l,
int r,
java.lang.Object o)
Constructor for l,r values
|
Symbol(int id,
java.lang.Object o)
Constructor for no l,r values
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Printing this token out.
|
public int sym
public int parse_state
public int left
public int right
public java.lang.Object value
public Symbol(int id, int l, int r, java.lang.Object o)
public Symbol(int id, java.lang.Object o)
public Symbol(int sym_num, int l, int r)
public Symbol(int sym_num)
public Symbol(int sym_num, int state)