01: package ro.infoiasi.donald.compiler.parser.runtime;
02:
03: public class StackSymbol {
04: public int sym;
05: public int parseState;
06: public int line, column;
07: public Object value;
08:
09: public StackSymbol(int sym, int line, int column, Object value) {
10: this .sym = sym;
11: this .line = line;
12: this .column = column;
13: this .value = value;
14: }
15:
16: public StackSymbol(int sym, int parseState) {
17: this .sym = sym;
18: this .parseState = parseState;
19: }
20:
21: public StackSymbol(int sym, Object value) {
22: this (sym, -1, -1, value);
23: }
24:
25: public StackSymbol(int sym, int line, int column) {
26: this (sym, line, column, null);
27: }
28:
29: public StackSymbol(int sym) {
30: this (sym, -1, -1, null);
31: }
32:
33: public String toString() {
34: return "#" + sym;
35: }
36: }
|