001: /* Generated By:JJTree&JavaCC: Do not edit this line. PythonGrammarConstants.java */
002: package org.python.parser;
003:
004: public interface PythonGrammarConstants {
005:
006: int EOF = 0;
007: int SPACE = 1;
008: int CONTINUATION = 4;
009: int NEWLINE1 = 5;
010: int NEWLINE = 6;
011: int NEWLINE2 = 7;
012: int CRLF1 = 12;
013: int DEDENT = 14;
014: int INDENT = 15;
015: int TRAILING_COMMENT = 16;
016: int SINGLE_LINE_COMMENT = 17;
017: int LPAREN = 18;
018: int RPAREN = 19;
019: int LBRACE = 20;
020: int RBRACE = 21;
021: int LBRACKET = 22;
022: int RBRACKET = 23;
023: int SEMICOLON = 24;
024: int COMMA = 25;
025: int DOT = 26;
026: int COLON = 27;
027: int PLUS = 28;
028: int MINUS = 29;
029: int MULTIPLY = 30;
030: int DIVIDE = 31;
031: int FLOORDIVIDE = 32;
032: int POWER = 33;
033: int LSHIFT = 34;
034: int RSHIFT = 35;
035: int MODULO = 36;
036: int NOT = 37;
037: int XOR = 38;
038: int OR = 39;
039: int AND = 40;
040: int EQUAL = 41;
041: int GREATER = 42;
042: int LESS = 43;
043: int EQEQUAL = 44;
044: int EQLESS = 45;
045: int EQGREATER = 46;
046: int LESSGREATER = 47;
047: int NOTEQUAL = 48;
048: int PLUSEQ = 49;
049: int MINUSEQ = 50;
050: int MULTIPLYEQ = 51;
051: int DIVIDEEQ = 52;
052: int FLOORDIVIDEEQ = 53;
053: int MODULOEQ = 54;
054: int ANDEQ = 55;
055: int OREQ = 56;
056: int XOREQ = 57;
057: int LSHIFTEQ = 58;
058: int RSHIFTEQ = 59;
059: int POWEREQ = 60;
060: int OR_BOOL = 61;
061: int AND_BOOL = 62;
062: int NOT_BOOL = 63;
063: int IS = 64;
064: int IN = 65;
065: int LAMBDA = 66;
066: int IF = 67;
067: int ELSE = 68;
068: int ELIF = 69;
069: int WHILE = 70;
070: int FOR = 71;
071: int TRY = 72;
072: int EXCEPT = 73;
073: int DEF = 74;
074: int CLASS = 75;
075: int FINALLY = 76;
076: int PRINT = 77;
077: int PASS = 78;
078: int BREAK = 79;
079: int CONTINUE = 80;
080: int RETURN = 81;
081: int YIELD = 82;
082: int IMPORT = 83;
083: int FROM = 84;
084: int DEL = 85;
085: int RAISE = 86;
086: int GLOBAL = 87;
087: int EXEC = 88;
088: int ASSERT = 89;
089: int AS = 90;
090: int NAME = 91;
091: int LETTER = 92;
092: int DECNUMBER = 93;
093: int HEXNUMBER = 94;
094: int OCTNUMBER = 95;
095: int FLOAT = 96;
096: int COMPLEX = 97;
097: int EXPONENT = 98;
098: int DIGIT = 99;
099: int SINGLE_STRING = 108;
100: int SINGLE_STRING2 = 109;
101: int TRIPLE_STRING = 110;
102: int TRIPLE_STRING2 = 111;
103: int SINGLE_USTRING = 112;
104: int SINGLE_USTRING2 = 113;
105: int TRIPLE_USTRING = 114;
106: int TRIPLE_USTRING2 = 115;
107:
108: int DEFAULT = 0;
109: int FORCE_NEWLINE1 = 1;
110: int FORCE_NEWLINE2 = 2;
111: int MAYBE_FORCE_NEWLINE_IF_EOF = 3;
112: int INDENTING = 4;
113: int INDENTATION_UNCHANGED = 5;
114: int UNREACHABLE = 6;
115: int IN_STRING11 = 7;
116: int IN_STRING21 = 8;
117: int IN_STRING13 = 9;
118: int IN_STRING23 = 10;
119: int IN_USTRING11 = 11;
120: int IN_USTRING21 = 12;
121: int IN_USTRING13 = 13;
122: int IN_USTRING23 = 14;
123: int IN_STRING1NLC = 15;
124: int IN_STRING2NLC = 16;
125: int IN_USTRING1NLC = 17;
126: int IN_USTRING2NLC = 18;
127:
128: String[] tokenImage = { "<EOF>", "\" \"", "\"\\t\"", "\"\\f\"",
129: "<CONTINUATION>", "<NEWLINE1>", "<NEWLINE>", "<NEWLINE2>",
130: "\"\"", "\"\\t\"", "\" \"", "\"\\f\"", "<CRLF1>", "\"\"",
131: "\"\"", "\"<INDENT>\"", "<TRAILING_COMMENT>",
132: "<SINGLE_LINE_COMMENT>", "\"(\"", "\")\"", "\"{\"",
133: "\"}\"", "\"[\"", "\"]\"", "\";\"", "\",\"", "\".\"",
134: "\":\"", "\"+\"", "\"-\"", "\"*\"", "\"/\"", "\"//\"",
135: "\"**\"", "\"<<\"", "\">>\"", "\"%\"", "\"~\"", "\"^\"",
136: "\"|\"", "\"&\"", "\"=\"", "\">\"", "\"<\"", "\"==\"",
137: "\"<=\"", "\">=\"", "\"<>\"", "\"!=\"", "\"+=\"", "\"-=\"",
138: "\"*=\"", "\"/=\"", "\"//=\"", "\"%=\"", "\"&=\"",
139: "\"|=\"", "\"^=\"", "\"<<=\"", "\">>=\"", "\"**=\"",
140: "\"or\"", "\"and\"", "\"not\"", "\"is\"", "\"in\"",
141: "\"lambda\"", "\"if\"", "\"else\"", "\"elif\"",
142: "\"while\"", "\"for\"", "\"try\"", "\"except\"", "\"def\"",
143: "\"class\"", "\"finally\"", "\"print\"", "\"pass\"",
144: "\"break\"", "\"continue\"", "\"return\"", "\"yield\"",
145: "\"import\"", "\"from\"", "\"del\"", "\"raise\"",
146: "\"global\"", "\"exec\"", "\"assert\"", "\"as\"", "<NAME>",
147: "<LETTER>", "<DECNUMBER>", "<HEXNUMBER>", "<OCTNUMBER>",
148: "<FLOAT>", "<COMPLEX>", "<EXPONENT>", "<DIGIT>",
149: "<token of kind 100>", "<token of kind 101>",
150: "<token of kind 102>", "<token of kind 103>",
151: "<token of kind 104>", "<token of kind 105>",
152: "<token of kind 106>", "<token of kind 107>", "\"\\\'\"",
153: "\"\\\"\"", "\"\\\'\\\'\\\'\"", "\"\\\"\\\"\\\"\"",
154: "\"\\\'\"", "\"\\\"\"", "\"\\\'\\\'\\\'\"",
155: "\"\\\"\\\"\\\"\"", "\"\\\\\\r\\n\"",
156: "<token of kind 117>", "\"\\\\\\r\\n\"",
157: "<token of kind 119>", "\"\\\\\\r\\n\"",
158: "<token of kind 121>", "\"\\\\\\r\\n\"",
159: "<token of kind 123>", "\"\"", "\"\"", "\"\"", "\"\"",
160: "<token of kind 128>", "<token of kind 129>", "\"\\r\\n\"",
161: "\"\\n\"", "\"\\r\"", "<token of kind 133>",
162: "<token of kind 134>", "\"`\"", };
163:
164: }
|