public class Symbol extends 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
|
Object |
value |
public int sym
public int parse_state
public int left
public int right
public Object value
public Symbol(int id,
int l,
int r,
Object o)
id - Id of the symbol typel - Left position of the symbol in the original input filer - Right position of the symbol in the original input fileo - Lexical value of the symbolpublic Symbol(int id,
Object o)
id - Id of the symbol typeo - Lexical value of the symbolpublic Symbol(int id,
int l,
int r)
id - Id of the symbool typel - Left position of the symbol in the original input filer - Right position of the symbol in the original input filepublic Symbol(int sym_num)
sym_num - Number (aka Id) of the symbol typeCopyright © 2025. All rights reserved.