KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > python > parser > PythonGrammarConstants


1 /* Generated By:JJTree&JavaCC: Do not edit this line. PythonGrammarConstants.java */
2 package org.python.parser;
3
4 public interface PythonGrammarConstants {
5
6   int EOF = 0;
7   int SPACE = 1;
8   int CONTINUATION = 4;
9   int NEWLINE1 = 5;
10   int NEWLINE = 6;
11   int NEWLINE2 = 7;
12   int CRLF1 = 12;
13   int DEDENT = 14;
14   int INDENT = 15;
15   int TRAILING_COMMENT = 16;
16   int SINGLE_LINE_COMMENT = 17;
17   int LPAREN = 18;
18   int RPAREN = 19;
19   int LBRACE = 20;
20   int RBRACE = 21;
21   int LBRACKET = 22;
22   int RBRACKET = 23;
23   int SEMICOLON = 24;
24   int COMMA = 25;
25   int DOT = 26;
26   int COLON = 27;
27   int PLUS = 28;
28   int MINUS = 29;
29   int MULTIPLY = 30;
30   int DIVIDE = 31;
31   int FLOORDIVIDE = 32;
32   int POWER = 33;
33   int LSHIFT = 34;
34   int RSHIFT = 35;
35   int MODULO = 36;
36   int NOT = 37;
37   int XOR = 38;
38   int OR = 39;
39   int AND = 40;
40   int EQUAL = 41;
41   int GREATER = 42;
42   int LESS = 43;
43   int EQEQUAL = 44;
44   int EQLESS = 45;
45   int EQGREATER = 46;
46   int LESSGREATER = 47;
47   int NOTEQUAL = 48;
48   int PLUSEQ = 49;
49   int MINUSEQ = 50;
50   int MULTIPLYEQ = 51;
51   int DIVIDEEQ = 52;
52   int FLOORDIVIDEEQ = 53;
53   int MODULOEQ = 54;
54   int ANDEQ = 55;
55   int OREQ = 56;
56   int XOREQ = 57;
57   int LSHIFTEQ = 58;
58   int RSHIFTEQ = 59;
59   int POWEREQ = 60;
60   int OR_BOOL = 61;
61   int AND_BOOL = 62;
62   int NOT_BOOL = 63;
63   int IS = 64;
64   int IN = 65;
65   int LAMBDA = 66;
66   int IF = 67;
67   int ELSE = 68;
68   int ELIF = 69;
69   int WHILE = 70;
70   int FOR = 71;
71   int TRY = 72;
72   int EXCEPT = 73;
73   int DEF = 74;
74   int CLASS = 75;
75   int FINALLY = 76;
76   int PRINT = 77;
77   int PASS = 78;
78   int BREAK = 79;
79   int CONTINUE = 80;
80   int RETURN = 81;
81   int YIELD = 82;
82   int IMPORT = 83;
83   int FROM = 84;
84   int DEL = 85;
85   int RAISE = 86;
86   int GLOBAL = 87;
87   int EXEC = 88;
88   int ASSERT = 89;
89   int AS = 90;
90   int NAME = 91;
91   int LETTER = 92;
92   int DECNUMBER = 93;
93   int HEXNUMBER = 94;
94   int OCTNUMBER = 95;
95   int FLOAT = 96;
96   int COMPLEX = 97;
97   int EXPONENT = 98;
98   int DIGIT = 99;
99   int SINGLE_STRING = 104;
100   int SINGLE_STRING2 = 105;
101   int TRIPLE_STRING = 106;
102   int TRIPLE_STRING2 = 107;
103
104   int DEFAULT = 0;
105   int FORCE_NEWLINE1 = 1;
106   int FORCE_NEWLINE2 = 2;
107   int MAYBE_FORCE_NEWLINE_IF_EOF = 3;
108   int INDENTING = 4;
109   int INDENTATION_UNCHANGED = 5;
110   int UNREACHABLE = 6;
111   int IN_STRING11 = 7;
112   int IN_STRING21 = 8;
113   int IN_STRING13 = 9;
114   int IN_STRING23 = 10;
115   int IN_STRING1NLC = 11;
116   int IN_STRING2NLC = 12;
117
118   String JavaDoc[] tokenImage = {
119     "<EOF>",
120     "\" \"",
121     "\"\\t\"",
122     "\"\\f\"",
123     "<CONTINUATION>",
124     "<NEWLINE1>",
125     "<NEWLINE>",
126     "<NEWLINE2>",
127     "\"\"",
128     "\"\\t\"",
129     "\" \"",
130     "\"\\f\"",
131     "<CRLF1>",
132     "\"\"",
133     "\"\"",
134     "\"<INDENT>\"",
135     "<TRAILING_COMMENT>",
136     "<SINGLE_LINE_COMMENT>",
137     "\"(\"",
138     "\")\"",
139     "\"{\"",
140     "\"}\"",
141     "\"[\"",
142     "\"]\"",
143     "\";\"",
144     "\",\"",
145     "\".\"",
146     "\":\"",
147     "\"+\"",
148     "\"-\"",
149     "\"*\"",
150     "\"/\"",
151     "\"//\"",
152     "\"**\"",
153     "\"<<\"",
154     "\">>\"",
155     "\"%\"",
156     "\"~\"",
157     "\"^\"",
158     "\"|\"",
159     "\"&\"",
160     "\"=\"",
161     "\">\"",
162     "\"<\"",
163     "\"==\"",
164     "\"<=\"",
165     "\">=\"",
166     "\"<>\"",
167     "\"!=\"",
168     "\"+=\"",
169     "\"-=\"",
170     "\"*=\"",
171     "\"/=\"",
172     "\"//=\"",
173     "\"%=\"",
174     "\"&=\"",
175     "\"|=\"",
176     "\"^=\"",
177     "\"<<=\"",
178     "\">>=\"",
179     "\"**=\"",
180     "\"or\"",
181     "\"and\"",
182     "\"not\"",
183     "\"is\"",
184     "\"in\"",
185     "\"lambda\"",
186     "\"if\"",
187     "\"else\"",
188     "\"elif\"",
189     "\"while\"",
190     "\"for\"",
191     "\"try\"",
192     "\"except\"",
193     "\"def\"",
194     "\"class\"",
195     "\"finally\"",
196     "\"print\"",
197     "\"pass\"",
198     "\"break\"",
199     "\"continue\"",
200     "\"return\"",
201     "\"yield\"",
202     "\"import\"",
203     "\"from\"",
204     "\"del\"",
205     "\"raise\"",
206     "\"global\"",
207     "\"exec\"",
208     "\"assert\"",
209     "\"as\"",
210     "<NAME>",
211     "<LETTER>",
212     "<DECNUMBER>",
213     "<HEXNUMBER>",
214     "<OCTNUMBER>",
215     "<FLOAT>",
216     "<COMPLEX>",
217     "<EXPONENT>",
218     "<DIGIT>",
219     "<token of kind 100>",
220     "<token of kind 101>",
221     "<token of kind 102>",
222     "<token of kind 103>",
223     "\"\\\'\"",
224     "\"\\\"\"",
225     "\"\\\'\\\'\\\'\"",
226     "\"\\\"\\\"\\\"\"",
227     "\"\\\\\\r\\n\"",
228     "<token of kind 109>",
229     "\"\\\\\\r\\n\"",
230     "<token of kind 111>",
231     "\"\"",
232     "\"\"",
233     "<token of kind 114>",
234     "<token of kind 115>",
235     "\"\\r\\n\"",
236     "\"\\n\"",
237     "\"\\r\"",
238     "<token of kind 119>",
239     "<token of kind 120>",
240     "\"`\"",
241   };
242
243 }
244
Popular Tags