View Javadoc
1   /* Generated By:JavaCC: Do not edit this line. PythonParserConstants.java */
2   package net.sourceforge.pmd.lang.python.ast;
3   
4   
5   /**
6    * Token literal values and constants.
7    * Generated by org.javacc.parser.OtherFilesGen#start()
8    */
9   public interface PythonParserConstants {
10  
11    /** End of File. */
12    int EOF = 0;
13    /** RegularExpression Id. */
14    int SPACE = 1;
15    /** RegularExpression Id. */
16    int CONTINUATION = 4;
17    /** RegularExpression Id. */
18    int NEWLINE = 5;
19    /** RegularExpression Id. */
20    int TRAILING_COMMENT = 6;
21    /** RegularExpression Id. */
22    int LPAREN = 7;
23    /** RegularExpression Id. */
24    int RPAREN = 8;
25    /** RegularExpression Id. */
26    int LBRACE = 9;
27    /** RegularExpression Id. */
28    int RBRACE = 10;
29    /** RegularExpression Id. */
30    int LBRACKET = 11;
31    /** RegularExpression Id. */
32    int RBRACKET = 12;
33    /** RegularExpression Id. */
34    int SEMICOLON = 13;
35    /** RegularExpression Id. */
36    int COMMA = 14;
37    /** RegularExpression Id. */
38    int DOT = 15;
39    /** RegularExpression Id. */
40    int COLON = 16;
41    /** RegularExpression Id. */
42    int PLUS = 17;
43    /** RegularExpression Id. */
44    int MINUS = 18;
45    /** RegularExpression Id. */
46    int MULTIPLY = 19;
47    /** RegularExpression Id. */
48    int DIVIDE = 20;
49    /** RegularExpression Id. */
50    int FLOORDIVIDE = 21;
51    /** RegularExpression Id. */
52    int POWER = 22;
53    /** RegularExpression Id. */
54    int LSHIFT = 23;
55    /** RegularExpression Id. */
56    int RSHIFT = 24;
57    /** RegularExpression Id. */
58    int MODULO = 25;
59    /** RegularExpression Id. */
60    int NOT = 26;
61    /** RegularExpression Id. */
62    int XOR = 27;
63    /** RegularExpression Id. */
64    int OR = 28;
65    /** RegularExpression Id. */
66    int AND = 29;
67    /** RegularExpression Id. */
68    int EQUAL = 30;
69    /** RegularExpression Id. */
70    int GREATER = 31;
71    /** RegularExpression Id. */
72    int LESS = 32;
73    /** RegularExpression Id. */
74    int EQEQUAL = 33;
75    /** RegularExpression Id. */
76    int EQLESS = 34;
77    /** RegularExpression Id. */
78    int EQGREATER = 35;
79    /** RegularExpression Id. */
80    int LESSGREATER = 36;
81    /** RegularExpression Id. */
82    int NOTEQUAL = 37;
83    /** RegularExpression Id. */
84    int PLUSEQ = 38;
85    /** RegularExpression Id. */
86    int MINUSEQ = 39;
87    /** RegularExpression Id. */
88    int MULTIPLYEQ = 40;
89    /** RegularExpression Id. */
90    int DIVIDEEQ = 41;
91    /** RegularExpression Id. */
92    int FLOORDIVIDEEQ = 42;
93    /** RegularExpression Id. */
94    int MODULOEQ = 43;
95    /** RegularExpression Id. */
96    int ANDEQ = 44;
97    /** RegularExpression Id. */
98    int OREQ = 45;
99    /** RegularExpression Id. */
100   int XOREQ = 46;
101   /** RegularExpression Id. */
102   int LSHIFTEQ = 47;
103   /** RegularExpression Id. */
104   int RSHIFTEQ = 48;
105   /** RegularExpression Id. */
106   int POWEREQ = 49;
107   /** RegularExpression Id. */
108   int OR_BOOL = 50;
109   /** RegularExpression Id. */
110   int AND_BOOL = 51;
111   /** RegularExpression Id. */
112   int NOT_BOOL = 52;
113   /** RegularExpression Id. */
114   int IS = 53;
115   /** RegularExpression Id. */
116   int IN = 54;
117   /** RegularExpression Id. */
118   int LAMBDA = 55;
119   /** RegularExpression Id. */
120   int IF = 56;
121   /** RegularExpression Id. */
122   int ELSE = 57;
123   /** RegularExpression Id. */
124   int ELIF = 58;
125   /** RegularExpression Id. */
126   int WHILE = 59;
127   /** RegularExpression Id. */
128   int FOR = 60;
129   /** RegularExpression Id. */
130   int TRY = 61;
131   /** RegularExpression Id. */
132   int EXCEPT = 62;
133   /** RegularExpression Id. */
134   int DEF = 63;
135   /** RegularExpression Id. */
136   int CLASS = 64;
137   /** RegularExpression Id. */
138   int FINALLY = 65;
139   /** RegularExpression Id. */
140   int PRINT = 66;
141   /** RegularExpression Id. */
142   int PASS = 67;
143   /** RegularExpression Id. */
144   int BREAK = 68;
145   /** RegularExpression Id. */
146   int CONTINUE = 69;
147   /** RegularExpression Id. */
148   int RETURN = 70;
149   /** RegularExpression Id. */
150   int YIELD = 71;
151   /** RegularExpression Id. */
152   int IMPORT = 72;
153   /** RegularExpression Id. */
154   int FROM = 73;
155   /** RegularExpression Id. */
156   int DEL = 74;
157   /** RegularExpression Id. */
158   int RAISE = 75;
159   /** RegularExpression Id. */
160   int GLOBAL = 76;
161   /** RegularExpression Id. */
162   int EXEC = 77;
163   /** RegularExpression Id. */
164   int ASSERT = 78;
165   /** RegularExpression Id. */
166   int AS = 79;
167   /** RegularExpression Id. */
168   int WITH = 80;
169   /** RegularExpression Id. */
170   int AT = 81;
171   /** RegularExpression Id. */
172   int NAME = 82;
173   /** RegularExpression Id. */
174   int LETTER = 83;
175   /** RegularExpression Id. */
176   int DECNUMBER = 84;
177   /** RegularExpression Id. */
178   int HEXNUMBER = 85;
179   /** RegularExpression Id. */
180   int OCTNUMBER = 86;
181   /** RegularExpression Id. */
182   int BINNUMBER = 87;
183   /** RegularExpression Id. */
184   int FLOAT = 88;
185   /** RegularExpression Id. */
186   int COMPLEX = 89;
187   /** RegularExpression Id. */
188   int EXPONENT = 90;
189   /** RegularExpression Id. */
190   int DIGIT = 91;
191   /** RegularExpression Id. */
192   int SINGLE_STRING = 104;
193   /** RegularExpression Id. */
194   int SINGLE_STRING2 = 105;
195   /** RegularExpression Id. */
196   int TRIPLE_STRING = 106;
197   /** RegularExpression Id. */
198   int TRIPLE_STRING2 = 107;
199   /** RegularExpression Id. */
200   int SINGLE_BSTRING = 108;
201   /** RegularExpression Id. */
202   int SINGLE_BSTRING2 = 109;
203   /** RegularExpression Id. */
204   int TRIPLE_BSTRING = 110;
205   /** RegularExpression Id. */
206   int TRIPLE_BSTRING2 = 111;
207   /** RegularExpression Id. */
208   int SINGLE_USTRING = 112;
209   /** RegularExpression Id. */
210   int SINGLE_USTRING2 = 113;
211   /** RegularExpression Id. */
212   int TRIPLE_USTRING = 114;
213   /** RegularExpression Id. */
214   int TRIPLE_USTRING2 = 115;
215 
216   /** Lexical state. */
217   int DEFAULT = 0;
218   /** Lexical state. */
219   int IN_STRING11 = 1;
220   /** Lexical state. */
221   int IN_STRING21 = 2;
222   /** Lexical state. */
223   int IN_STRING13 = 3;
224   /** Lexical state. */
225   int IN_STRING23 = 4;
226   /** Lexical state. */
227   int IN_BSTRING11 = 5;
228   /** Lexical state. */
229   int IN_BSTRING21 = 6;
230   /** Lexical state. */
231   int IN_BSTRING13 = 7;
232   /** Lexical state. */
233   int IN_BSTRING23 = 8;
234   /** Lexical state. */
235   int IN_USTRING11 = 9;
236   /** Lexical state. */
237   int IN_USTRING21 = 10;
238   /** Lexical state. */
239   int IN_USTRING13 = 11;
240   /** Lexical state. */
241   int IN_USTRING23 = 12;
242   /** Lexical state. */
243   int IN_STRING1NLC = 13;
244   /** Lexical state. */
245   int IN_STRING2NLC = 14;
246   /** Lexical state. */
247   int IN_USTRING1NLC = 15;
248   /** Lexical state. */
249   int IN_USTRING2NLC = 16;
250   /** Lexical state. */
251   int IN_BSTRING1NLC = 17;
252   /** Lexical state. */
253   int IN_BSTRING2NLC = 18;
254 
255   /** Literal token values. */
256   String[] tokenImage = {
257     "<EOF>",
258     "\" \"",
259     "\"\\t\"",
260     "\"\\f\"",
261     "<CONTINUATION>",
262     "<NEWLINE>",
263     "<TRAILING_COMMENT>",
264     "\"(\"",
265     "\")\"",
266     "\"{\"",
267     "\"}\"",
268     "\"[\"",
269     "\"]\"",
270     "\";\"",
271     "\",\"",
272     "\".\"",
273     "\":\"",
274     "\"+\"",
275     "\"-\"",
276     "\"*\"",
277     "\"/\"",
278     "\"//\"",
279     "\"**\"",
280     "\"<<\"",
281     "\">>\"",
282     "\"%\"",
283     "\"~\"",
284     "\"^\"",
285     "\"|\"",
286     "\"&\"",
287     "\"=\"",
288     "\">\"",
289     "\"<\"",
290     "\"==\"",
291     "\"<=\"",
292     "\">=\"",
293     "\"<>\"",
294     "\"!=\"",
295     "\"+=\"",
296     "\"-=\"",
297     "\"*=\"",
298     "\"/=\"",
299     "\"//=\"",
300     "\"%=\"",
301     "\"&=\"",
302     "\"|=\"",
303     "\"^=\"",
304     "\"<<=\"",
305     "\">>=\"",
306     "\"**=\"",
307     "\"or\"",
308     "\"and\"",
309     "\"not\"",
310     "\"is\"",
311     "\"in\"",
312     "\"lambda\"",
313     "\"if\"",
314     "\"else\"",
315     "\"elif\"",
316     "\"while\"",
317     "\"for\"",
318     "\"try\"",
319     "\"except\"",
320     "\"def\"",
321     "\"class\"",
322     "\"finally\"",
323     "\"print\"",
324     "\"pass\"",
325     "\"break\"",
326     "\"continue\"",
327     "\"return\"",
328     "\"yield\"",
329     "\"import\"",
330     "\"from\"",
331     "\"del\"",
332     "\"raise\"",
333     "\"global\"",
334     "\"exec\"",
335     "\"assert\"",
336     "\"as\"",
337     "\"with\"",
338     "\"@\"",
339     "<NAME>",
340     "<LETTER>",
341     "<DECNUMBER>",
342     "<HEXNUMBER>",
343     "<OCTNUMBER>",
344     "<BINNUMBER>",
345     "<FLOAT>",
346     "<COMPLEX>",
347     "<EXPONENT>",
348     "<DIGIT>",
349     "<token of kind 92>",
350     "<token of kind 93>",
351     "<token of kind 94>",
352     "<token of kind 95>",
353     "<token of kind 96>",
354     "<token of kind 97>",
355     "<token of kind 98>",
356     "<token of kind 99>",
357     "<token of kind 100>",
358     "<token of kind 101>",
359     "<token of kind 102>",
360     "<token of kind 103>",
361     "\"\\\'\"",
362     "\"\\\"\"",
363     "\"\\\'\\\'\\\'\"",
364     "\"\\\"\\\"\\\"\"",
365     "\"\\\'\"",
366     "\"\\\"\"",
367     "\"\\\'\\\'\\\'\"",
368     "\"\\\"\\\"\\\"\"",
369     "\"\\\'\"",
370     "\"\\\"\"",
371     "\"\\\'\\\'\\\'\"",
372     "\"\\\"\\\"\\\"\"",
373     "\"\\\\\\r\\n\"",
374     "<token of kind 117>",
375     "\"\\\\\\r\\n\"",
376     "<token of kind 119>",
377     "\"\\\\\\r\\n\"",
378     "<token of kind 121>",
379     "\"\\\\\\r\\n\"",
380     "<token of kind 123>",
381     "\"\\\\\\r\\n\"",
382     "<token of kind 125>",
383     "\"\\\\\\r\\n\"",
384     "<token of kind 127>",
385     "\"\"",
386     "\"\"",
387     "\"\"",
388     "\"\"",
389     "\"\"",
390     "\"\"",
391     "<token of kind 134>",
392     "<token of kind 135>",
393     "\"\\r\\n\"",
394     "\"\\n\"",
395     "\"\\r\"",
396     "<token of kind 139>",
397     "<token of kind 140>",
398   };
399 
400 }