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 LBRACKET = 1;
15    /** RegularExpression Id. */
16    int RBRACKET = 2;
17    /** RegularExpression Id. */
18    int COMMA = 3;
19    /** RegularExpression Id. */
20    int DOUBLEDOT = 4;
21    /** RegularExpression Id. */
22    int COLON = 5;
23    /** RegularExpression Id. */
24    int LEFT_CURLEY = 6;
25    /** RegularExpression Id. */
26    int RIGHT_CURLEY = 7;
27    /** RegularExpression Id. */
28    int LPAREN = 8;
29    /** RegularExpression Id. */
30    int RPAREN = 9;
31    /** RegularExpression Id. */
32    int REFMOD2_RPAREN = 10;
33    /** RegularExpression Id. */
34    int ESCAPE_DIRECTIVE = 11;
35    /** RegularExpression Id. */
36    int SET_DIRECTIVE = 12;
37    /** RegularExpression Id. */
38    int DOLLAR = 13;
39    /** RegularExpression Id. */
40    int DOLLARBANG = 14;
41    /** RegularExpression Id. */
42    int HASH = 17;
43    /** RegularExpression Id. */
44    int SINGLE_LINE_COMMENT_START = 18;
45    /** RegularExpression Id. */
46    int DOUBLE_ESCAPE = 19;
47    /** RegularExpression Id. */
48    int ESCAPE = 20;
49    /** RegularExpression Id. */
50    int TEXT = 21;
51    /** RegularExpression Id. */
52    int SINGLE_LINE_COMMENT = 22;
53    /** RegularExpression Id. */
54    int FORMAL_COMMENT = 23;
55    /** RegularExpression Id. */
56    int MULTI_LINE_COMMENT = 24;
57    /** RegularExpression Id. */
58    int WHITESPACE = 26;
59    /** RegularExpression Id. */
60    int STRING_LITERAL = 27;
61    /** RegularExpression Id. */
62    int TRUE = 28;
63    /** RegularExpression Id. */
64    int FALSE = 29;
65    /** RegularExpression Id. */
66    int NEWLINE = 30;
67    /** RegularExpression Id. */
68    int MINUS = 31;
69    /** RegularExpression Id. */
70    int PLUS = 32;
71    /** RegularExpression Id. */
72    int MULTIPLY = 33;
73    /** RegularExpression Id. */
74    int DIVIDE = 34;
75    /** RegularExpression Id. */
76    int MODULUS = 35;
77    /** RegularExpression Id. */
78    int LOGICAL_AND = 36;
79    /** RegularExpression Id. */
80    int LOGICAL_OR = 37;
81    /** RegularExpression Id. */
82    int LOGICAL_LT = 38;
83    /** RegularExpression Id. */
84    int LOGICAL_LE = 39;
85    /** RegularExpression Id. */
86    int LOGICAL_GT = 40;
87    /** RegularExpression Id. */
88    int LOGICAL_GE = 41;
89    /** RegularExpression Id. */
90    int LOGICAL_EQUALS = 42;
91    /** RegularExpression Id. */
92    int LOGICAL_NOT_EQUALS = 43;
93    /** RegularExpression Id. */
94    int LOGICAL_NOT = 44;
95    /** RegularExpression Id. */
96    int EQUALS = 45;
97    /** RegularExpression Id. */
98    int END = 46;
99    /** RegularExpression Id. */
100   int IF_DIRECTIVE = 47;
101   /** RegularExpression Id. */
102   int ELSEIF_DIRECTIVE = 48;
103   /** RegularExpression Id. */
104   int ELSE_DIRECTIVE = 49;
105   /** RegularExpression Id. */
106   int STOP_DIRECTIVE = 50;
107   /** RegularExpression Id. */
108   int DIGIT = 51;
109   /** RegularExpression Id. */
110   int INTEGER_LITERAL = 52;
111   /** RegularExpression Id. */
112   int FLOATING_POINT_LITERAL = 53;
113   /** RegularExpression Id. */
114   int EXPONENT = 54;
115   /** RegularExpression Id. */
116   int LETTER = 55;
117   /** RegularExpression Id. */
118   int DIRECTIVE_CHAR = 56;
119   /** RegularExpression Id. */
120   int WORD = 57;
121   /** RegularExpression Id. */
122   int BRACKETED_WORD = 58;
123   /** RegularExpression Id. */
124   int ALPHA_CHAR = 59;
125   /** RegularExpression Id. */
126   int ALPHANUM_CHAR = 60;
127   /** RegularExpression Id. */
128   int IDENTIFIER_CHAR = 61;
129   /** RegularExpression Id. */
130   int IDENTIFIER = 62;
131   /** RegularExpression Id. */
132   int DOT = 63;
133   /** RegularExpression Id. */
134   int LCURLY = 64;
135   /** RegularExpression Id. */
136   int RCURLY = 65;
137   /** RegularExpression Id. */
138   int REFERENCE_TERMINATOR = 66;
139   /** RegularExpression Id. */
140   int DIRECTIVE_TERMINATOR = 67;
141 
142   /** Lexical state. */
143   int DIRECTIVE = 0;
144   /** Lexical state. */
145   int REFMOD2 = 1;
146   /** Lexical state. */
147   int REFMODIFIER = 2;
148   /** Lexical state. */
149   int DEFAULT = 3;
150   /** Lexical state. */
151   int REFERENCE = 4;
152   /** Lexical state. */
153   int PRE_DIRECTIVE = 5;
154   /** Lexical state. */
155   int IN_MULTI_LINE_COMMENT = 6;
156   /** Lexical state. */
157   int IN_FORMAL_COMMENT = 7;
158   /** Lexical state. */
159   int IN_SINGLE_LINE_COMMENT = 8;
160 
161   /** Literal token values. */
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 }