View Javadoc

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