1
2 package org.apache.velocity.runtime.parser;
3
4
5
6
7
8
9 public interface ParserConstants {
10
11
12 int EOF = 0;
13
14 int LBRACKET = 1;
15
16 int RBRACKET = 2;
17
18 int COMMA = 3;
19
20 int DOUBLEDOT = 4;
21
22 int COLON = 5;
23
24 int LEFT_CURLEY = 6;
25
26 int RIGHT_CURLEY = 7;
27
28 int LPAREN = 8;
29
30 int RPAREN = 9;
31
32 int REFMOD2_RPAREN = 10;
33
34 int ESCAPE_DIRECTIVE = 11;
35
36 int SET_DIRECTIVE = 12;
37
38 int DOLLAR = 13;
39
40 int DOLLARBANG = 14;
41
42 int HASH = 17;
43
44 int SINGLE_LINE_COMMENT_START = 18;
45
46 int DOUBLE_ESCAPE = 19;
47
48 int ESCAPE = 20;
49
50 int TEXT = 21;
51
52 int SINGLE_LINE_COMMENT = 22;
53
54 int FORMAL_COMMENT = 23;
55
56 int MULTI_LINE_COMMENT = 24;
57
58 int WHITESPACE = 26;
59
60 int STRING_LITERAL = 27;
61
62 int TRUE = 28;
63
64 int FALSE = 29;
65
66 int NEWLINE = 30;
67
68 int MINUS = 31;
69
70 int PLUS = 32;
71
72 int MULTIPLY = 33;
73
74 int DIVIDE = 34;
75
76 int MODULUS = 35;
77
78 int LOGICAL_AND = 36;
79
80 int LOGICAL_OR = 37;
81
82 int LOGICAL_LT = 38;
83
84 int LOGICAL_LE = 39;
85
86 int LOGICAL_GT = 40;
87
88 int LOGICAL_GE = 41;
89
90 int LOGICAL_EQUALS = 42;
91
92 int LOGICAL_NOT_EQUALS = 43;
93
94 int LOGICAL_NOT = 44;
95
96 int EQUALS = 45;
97
98 int END = 46;
99
100 int IF_DIRECTIVE = 47;
101
102 int ELSEIF_DIRECTIVE = 48;
103
104 int ELSE_DIRECTIVE = 49;
105
106 int STOP_DIRECTIVE = 50;
107
108 int DIGIT = 51;
109
110 int INTEGER_LITERAL = 52;
111
112 int FLOATING_POINT_LITERAL = 53;
113
114 int EXPONENT = 54;
115
116 int LETTER = 55;
117
118 int DIRECTIVE_CHAR = 56;
119
120 int WORD = 57;
121
122 int BRACKETED_WORD = 58;
123
124 int ALPHA_CHAR = 59;
125
126 int ALPHANUM_CHAR = 60;
127
128 int IDENTIFIER_CHAR = 61;
129
130 int IDENTIFIER = 62;
131
132 int DOT = 63;
133
134 int LCURLY = 64;
135
136 int RCURLY = 65;
137
138 int REFERENCE_TERMINATOR = 66;
139
140 int DIRECTIVE_TERMINATOR = 67;
141
142
143 int DIRECTIVE = 0;
144
145 int REFMOD2 = 1;
146
147 int REFMODIFIER = 2;
148
149 int DEFAULT = 3;
150
151 int REFERENCE = 4;
152
153 int PRE_DIRECTIVE = 5;
154
155 int IN_MULTI_LINE_COMMENT = 6;
156
157 int IN_FORMAL_COMMENT = 7;
158
159 int IN_SINGLE_LINE_COMMENT = 8;
160
161
162 String[] tokenImage = {
163 "<EOF>",
164 "\"[\"",
165 "\"]\"",
166 "\",\"",
167 "\"..\"",
168 "\":\"",
169 "\"{\"",
170 "\"}\"",
171 "\"(\"",
172 "<RPAREN>",
173 "\")\"",
174 "<ESCAPE_DIRECTIVE>",
175 "<SET_DIRECTIVE>",
176 "<DOLLAR>",
177 "<DOLLARBANG>",
178 "<token of kind 15>",
179 "\"#*\"",
180 "\"#\"",
181 "\"##\"",
182 "\"\\\\\\\\\"",
183 "\"\\\\\"",
184 "<TEXT>",
185 "<SINGLE_LINE_COMMENT>",
186 "\"*#\"",
187 "\"*#\"",
188 "<token of kind 25>",
189 "<WHITESPACE>",
190 "<STRING_LITERAL>",
191 "\"true\"",
192 "\"false\"",
193 "<NEWLINE>",
194 "\"-\"",
195 "\"+\"",
196 "\"*\"",
197 "\"/\"",
198 "\"%\"",
199 "<LOGICAL_AND>",
200 "<LOGICAL_OR>",
201 "<LOGICAL_LT>",
202 "<LOGICAL_LE>",
203 "<LOGICAL_GT>",
204 "<LOGICAL_GE>",
205 "<LOGICAL_EQUALS>",
206 "<LOGICAL_NOT_EQUALS>",
207 "<LOGICAL_NOT>",
208 "\"=\"",
209 "<END>",
210 "<IF_DIRECTIVE>",
211 "<ELSEIF_DIRECTIVE>",
212 "<ELSE_DIRECTIVE>",
213 "<STOP_DIRECTIVE>",
214 "<DIGIT>",
215 "<INTEGER_LITERAL>",
216 "<FLOATING_POINT_LITERAL>",
217 "<EXPONENT>",
218 "<LETTER>",
219 "<DIRECTIVE_CHAR>",
220 "<WORD>",
221 "<BRACKETED_WORD>",
222 "<ALPHA_CHAR>",
223 "<ALPHANUM_CHAR>",
224 "<IDENTIFIER_CHAR>",
225 "<IDENTIFIER>",
226 "<DOT>",
227 "\"{\"",
228 "\"}\"",
229 "<REFERENCE_TERMINATOR>",
230 "<DIRECTIVE_TERMINATOR>",
231 };
232
233 }