-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsym.java
More file actions
124 lines (121 loc) · 3.06 KB
/
sym.java
File metadata and controls
124 lines (121 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
//----------------------------------------------------
// The following code was generated by CUP v0.11b 20160615 (GIT 4ac7450)
//----------------------------------------------------
/** CUP generated class containing symbol constants. */
public class sym {
/* terminals */
public static final int PLUSPLUS = 54;
public static final int STRUCTDEF = 24;
public static final int FUNCTION = 23;
public static final int CHAR = 11;
public static final int GE = 47;
public static final int POINTERCONST = 7;
public static final int DOUBLE = 13;
public static final int INTEGER = 12;
public static final int ARRAY = 15;
public static final int STRINGCONST = 6;
public static final int NOT = 41;
public static final int AND = 40;
public static final int SEMICOLON = 36;
public static final int LT = 44;
public static final int RPAR = 29;
public static final int OR = 39;
public static final int BOOL = 10;
public static final int COMMA = 32;
public static final int INTEGERCONST = 4;
public static final int DOUBLECONST = 5;
public static final int BEGIN = 26;
public static final int LSQPAR = 30;
public static final int ASSIGN = 37;
public static final int IF = 16;
public static final int AMPERSAND = 53;
public static final int DOT = 33;
public static final int LE = 46;
public static final int EOF = 0;
public static final int MINUSMINUS = 55;
public static final int RETURN = 22;
public static final int RSQPAR = 31;
public static final int error = 1;
public static final int MUL = 50;
public static final int ADD = 48;
public static final int MOD = 52;
public static final int CONSTANT = 25;
public static final int VOID = 9;
public static final int EQ = 42;
public static final int ARROW = 34;
public static final int COLON = 35;
public static final int ELSE = 18;
public static final int CHARCONST = 3;
public static final int WHILE = 19;
public static final int THEN = 17;
public static final int NE = 43;
public static final int BOOLCONST = 2;
public static final int END = 27;
public static final int QUESTION = 38;
public static final int LPAR = 28;
public static final int POINTER = 14;
public static final int GT = 45;
public static final int SUB = 49;
public static final int TRUEDIV = 51;
public static final int PRINT = 21;
public static final int DO = 20;
public static final int IDENTIFIER = 8;
public static final String[] terminalNames = new String[] {
"EOF",
"error",
"BOOLCONST",
"CHARCONST",
"INTEGERCONST",
"DOUBLECONST",
"STRINGCONST",
"POINTERCONST",
"IDENTIFIER",
"VOID",
"BOOL",
"CHAR",
"INTEGER",
"DOUBLE",
"POINTER",
"ARRAY",
"IF",
"THEN",
"ELSE",
"WHILE",
"DO",
"PRINT",
"RETURN",
"FUNCTION",
"STRUCTDEF",
"CONSTANT",
"BEGIN",
"END",
"LPAR",
"RPAR",
"LSQPAR",
"RSQPAR",
"COMMA",
"DOT",
"ARROW",
"COLON",
"SEMICOLON",
"ASSIGN",
"QUESTION",
"OR",
"AND",
"NOT",
"EQ",
"NE",
"LT",
"GT",
"LE",
"GE",
"ADD",
"SUB",
"MUL",
"TRUEDIV",
"MOD",
"AMPERSAND",
"PLUSPLUS",
"MINUSMINUS"
};
}