1 import org.python.core.*;
3 public class sre_parse extends java.lang.Object {
4 static String[] jpy$mainProperties = new String[] {"python.modules.builtin", "exceptions:org.python.core.exceptions"};
5 static String[] jpy$proxyProperties = new String[] {"python.modules.builtin", "exceptions:org.python.core.exceptions", "python.options.showJavaExceptions", "true"};
6 static String[] jpy$packages = new String[] {"java.net", null, "java.lang", null, "org.python.core", null, "java.io", null, "java.util.zip", null};
8 public static class _PyInner extends PyFunctionTable implements PyRunnable {
9 private static PyObject s$0;
10 private static PyObject s$1;
11 private static PyObject s$2;
12 private static PyObject s$3;
13 private static PyObject s$4;
14 private static PyObject s$5;
15 private static PyObject s$6;
16 private static PyObject s$7;
17 private static PyObject s$8;
18 private static PyObject s$9;
19 private static PyObject s$10;
20 private static PyObject s$11;
21 private static PyObject s$12;
22 private static PyObject s$13;
23 private static PyObject s$14;
24 private static PyObject s$15;
25 private static PyObject s$16;
26 private static PyObject s$17;
27 private static PyObject s$18;
28 private static PyObject s$19;
29 private static PyObject s$20;
30 private static PyObject s$21;
31 private static PyObject s$22;
32 private static PyObject s$23;
33 private static PyObject s$24;
34 private static PyObject s$25;
35 private static PyObject s$26;
36 private static PyObject s$27;
37 private static PyObject s$28;
38 private static PyObject s$29;
39 private static PyObject s$30;
40 private static PyObject s$31;
41 private static PyObject s$32;
42 private static PyObject s$33;
43 private static PyObject s$34;
44 private static PyObject s$35;
45 private static PyObject s$36;
46 private static PyObject s$37;
47 private static PyObject s$38;
48 private static PyObject i$39;
49 private static PyObject i$40;
50 private static PyObject i$41;
51 private static PyObject s$42;
52 private static PyObject s$43;
53 private static PyObject s$44;
54 private static PyObject s$45;
55 private static PyObject l$46;
56 private static PyObject i$47;
57 private static PyObject s$48;
58 private static PyObject s$49;
59 private static PyObject s$50;
60 private static PyObject s$51;
61 private static PyObject s$52;
62 private static PyObject s$53;
63 private static PyObject s$54;
64 private static PyObject s$55;
65 private static PyObject i$56;
66 private static PyObject s$57;
67 private static PyObject i$58;
68 private static PyObject i$59;
69 private static PyObject i$60;
70 private static PyObject s$61;
71 private static PyObject s$62;
72 private static PyObject s$63;
73 private static PyObject s$64;
74 private static PyObject s$65;
75 private static PyObject s$66;
76 private static PyObject s$67;
77 private static PyObject s$68;
78 private static PyObject s$69;
79 private static PyObject s$70;
80 private static PyObject s$71;
81 private static PyObject s$72;
82 private static PyObject s$73;
83 private static PyObject s$74;
84 private static PyObject s$75;
85 private static PyObject s$76;
86 private static PyObject s$77;
87 private static PyObject s$78;
88 private static PyObject s$79;
89 private static PyObject s$80;
90 private static PyObject s$81;
91 private static PyObject s$82;
92 private static PyObject s$83;
93 private static PyObject s$84;
94 private static PyObject s$85;
95 private static PyObject s$86;
96 private static PyObject s$87;
97 private static PyObject s$88;
98 private static PyObject s$89;
99 private static PyObject s$90;
100 private static PyObject s$91;
101 private static PyObject s$92;
102 private static PyObject s$93;
103 private static PyObject s$94;
104 private static PyObject s$95;
105 private static PyObject s$96;
106 private static PyObject s$97;
107 private static PyObject s$98;
108 private static PyObject s$99;
109 private static PyObject s$100;
110 private static PyObject s$101;
111 private static PyObject s$102;
112 private static PyObject s$103;
113 private static PyObject s$104;
114 private static PyObject i$105;
115 private static PyObject s$106;
116 private static PyObject s$107;
117 private static PyFunctionTable funcTable;
118 private static PyCode c$0___init__;
119 private static PyCode c$1_opengroup;
120 private static PyCode c$2_closegroup;
121 private static PyCode c$3_checkgroup;
122 private static PyCode c$4_Pattern;
123 private static PyCode c$5___init__;
124 private static PyCode c$6_dump;
125 private static PyCode c$7___repr__;
126 private static PyCode c$8___len__;
127 private static PyCode c$9___delitem__;
128 private static PyCode c$10___getitem__;
129 private static PyCode c$11___setitem__;
130 private static PyCode c$12___getslice__;
131 private static PyCode c$13_insert;
132 private static PyCode c$14_append;
133 private static PyCode c$15_getwidth;
134 private static PyCode c$16_SubPattern;
135 private static PyCode c$17___init__;
136 private static PyCode c$18__Tokenizer__next;
137 private static PyCode c$19_match;
138 private static PyCode c$20_get;
139 private static PyCode c$21_tell;
140 private static PyCode c$22_seek;
141 private static PyCode c$23_Tokenizer;
142 private static PyCode c$24_isident;
143 private static PyCode c$25_isdigit;
144 private static PyCode c$26_isname;
145 private static PyCode c$27__group;
146 private static PyCode c$28__class_escape;
147 private static PyCode c$29__escape;
148 private static PyCode c$30__parse_sub;
149 private static PyCode c$31__parse;
150 private static PyCode c$32_parse;
151 private static PyCode c$33_literal;
152 private static PyCode c$34_parse_template;
153 private static PyCode c$35_expand_template;
154 private static PyCode c$36_main;
155 private static void initConstants() {
156 s$0 = Py.newString(".\\[{()*+?^$|");
157 s$1 = Py.newString("*+?{");
158 s$2 = Py.newString("0123456789");
159 s$3 = Py.newString("01234567");
160 s$4 = Py.newString("0123456789abcdefABCDEF");
161 s$5 = Py.newString(" \011\012\015\013\014");
162 s$6 = Py.newString("\\a");
163 s$7 = Py.newString("\007");
164 s$8 = Py.newString("\\b");
165 s$9 = Py.newString("\010");
166 s$10 = Py.newString("\\f");
167 s$11 = Py.newString("\014");
168 s$12 = Py.newString("\\n");
169 s$13 = Py.newString("\012");
170 s$14 = Py.newString("\\r");
171 s$15 = Py.newString("\015");
172 s$16 = Py.newString("\\t");
173 s$17 = Py.newString("\011");
174 s$18 = Py.newString("\\v");
175 s$19 = Py.newString("\013");
176 s$20 = Py.newString("\\\\");
177 s$21 = Py.newString("\\");
178 s$22 = Py.newString("\\A");
179 s$23 = Py.newString("\\B");
180 s$24 = Py.newString("\\d");
181 s$25 = Py.newString("\\D");
182 s$26 = Py.newString("\\s");
183 s$27 = Py.newString("\\S");
184 s$28 = Py.newString("\\w");
185 s$29 = Py.newString("\\W");
186 s$30 = Py.newString("\\Z");
187 s$31 = Py.newString("i");
188 s$32 = Py.newString("L");
189 s$33 = Py.newString("m");
190 s$34 = Py.newString("s");
191 s$35 = Py.newString("x");
192 s$36 = Py.newString("t");
193 s$37 = Py.newString("u");
194 s$38 = Py.newString("10");
195 i$39 = Py.newInteger(8);
196 i$40 = Py.newInteger(0);
197 i$41 = Py.newInteger(1);
198 s$42 = Py.newString(" ");
199 s$43 = Py.newString("in");
200 s$44 = Py.newString("branch");
201 s$45 = Py.newString("or");
202 l$46 = Py.newLong("0");
203 i$47 = Py.newInteger(2);
204 s$48 = Py.newString("bogus escape");
205 s$49 = Py.newString("a");
206 s$50 = Py.newString("z");
207 s$51 = Py.newString("A");
208 s$52 = Py.newString("Z");
209 s$53 = Py.newString("_");
210 s$54 = Py.newString("0");
211 s$55 = Py.newString("9");
212 i$56 = Py.newInteger(4);
213 s$57 = Py.newString("bogus escape: %s");
214 i$58 = Py.newInteger(16);
215 i$59 = Py.newInteger(255);
216 i$60 = Py.newInteger(5);
217 s$61 = Py.newString("cannot refer to open group");
218 s$62 = Py.newString("|");
219 s$63 = Py.newString(")");
220 s$64 = Py.newString("pattern not properly closed");
221 s$65 = Py.newString("#");
222 s$66 = Py.newString("[");
223 s$67 = Py.newString("^");
224 s$68 = Py.newString("]");
225 s$69 = Py.newString("unexpected end of regular expression");
226 s$70 = Py.newString("-");
227 s$71 = Py.newString("bad character range");
228 s$72 = Py.newString("?");
229 s$73 = Py.newString("*");
230 s$74 = Py.newString("+");
231 s$75 = Py.newString("{");
232 s$76 = Py.newString("");
233 s$77 = Py.newString(",");
234 s$78 = Py.newString("}");
235 s$79 = Py.newString("bad repeat interval");
236 s$80 = Py.newString("not supported");
237 s$81 = Py.newString("nothing to repeat");
238 s$82 = Py.newString("multiple repeat");
239 s$83 = Py.newString(".");
240 s$84 = Py.newString("(");
241 s$85 = Py.newString("P");
242 s$86 = Py.newString("<");
243 s$87 = Py.newString("unterminated name");
244 s$88 = Py.newString(">");
245 s$89 = Py.newString("bad character in group name");
246 s$90 = Py.newString("=");
247 s$91 = Py.newString("unknown group name");
248 s$92 = Py.newString("unexpected end of pattern");
249 s$93 = Py.newString("unknown specifier: ?P%s");
250 s$94 = Py.newString(":");
251 s$95 = Py.newString("unbalanced parenthesis");
252 s$96 = Py.newString("!");
253 s$97 = Py.newString("syntax error");
254 s$98 = Py.newString("unknown extension");
255 s$99 = Py.newString("$");
256 s$100 = Py.newString("parser error");
257 s$101 = Py.newString("bogus characters at end of regular expression");
258 s$102 = Py.newString("\\g");
259 s$103 = Py.newString("unterminated group name");
260 s$104 = Py.newString("bad group name");
261 i$105 = Py.newInteger(6);
262 s$106 = Py.newString("empty group");
263 s$107 = Py.newString("/usr/share/jython/Lib-cpython/sre_parse.py");
264 funcTable = new _PyInner();
265 c$0___init__ = Py.newCode(1, new String[] {"self"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__init__", false, false, funcTable, 0, null, null, 0, 1);
266 c$1_opengroup = Py.newCode(2, new String[] {"self", "name", "gid"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "opengroup", false, false, funcTable, 1, null, null, 0, 1);
267 c$2_closegroup = Py.newCode(2, new String[] {"self", "gid"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "closegroup", false, false, funcTable, 2, null, null, 0, 1);
268 c$3_checkgroup = Py.newCode(2, new String[] {"self", "gid"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "checkgroup", false, false, funcTable, 3, null, null, 0, 1);
269 c$4_Pattern = Py.newCode(0, new String[] {}, "/usr/share/jython/Lib-cpython/sre_parse.py", "Pattern", false, false, funcTable, 4, null, null, 0, 0);
270 c$5___init__ = Py.newCode(3, new String[] {"self", "pattern", "data"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__init__", false, false, funcTable, 5, null, null, 0, 1);
271 c$6_dump = Py.newCode(2, new String[] {"self", "level", "nl", "av", "i", "op", "a"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "dump", false, false, funcTable, 6, null, null, 0, 1);
272 c$7___repr__ = Py.newCode(1, new String[] {"self"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__repr__", false, false, funcTable, 7, null, null, 0, 1);
273 c$8___len__ = Py.newCode(1, new String[] {"self"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__len__", false, false, funcTable, 8, null, null, 0, 1);
274 c$9___delitem__ = Py.newCode(2, new String[] {"self", "index"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__delitem__", false, false, funcTable, 9, null, null, 0, 1);
275 c$10___getitem__ = Py.newCode(2, new String[] {"self", "index"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__getitem__", false, false, funcTable, 10, null, null, 0, 1);
276 c$11___setitem__ = Py.newCode(3, new String[] {"self", "index", "code"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__setitem__", false, false, funcTable, 11, null, null, 0, 1);
277 c$12___getslice__ = Py.newCode(3, new String[] {"self", "start", "stop"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__getslice__", false, false, funcTable, 12, null, null, 0, 1);
278 c$13_insert = Py.newCode(3, new String[] {"self", "index", "code"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "insert", false, false, funcTable, 13, null, null, 0, 1);
279 c$14_append = Py.newCode(2, new String[] {"self", "code"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "append", false, false, funcTable, 14, null, null, 0, 1);
280 c$15_getwidth = Py.newCode(1, new String[] {"self", "hi", "lo", "op", "av", "l", "j", "i", "h"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "getwidth", false, false, funcTable, 15, null, null, 0, 1);
281 c$16_SubPattern = Py.newCode(0, new String[] {}, "/usr/share/jython/Lib-cpython/sre_parse.py", "SubPattern", false, false, funcTable, 16, null, null, 0, 0);
282 c$17___init__ = Py.newCode(2, new String[] {"self", "string"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "__init__", false, false, funcTable, 17, null, null, 0, 1);
283 c$18__Tokenizer__next = Py.newCode(1, new String[] {"self", "char", "c"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "_Tokenizer__next", false, false, funcTable, 18, null, null, 0, 1);
284 c$19_match = Py.newCode(3, new String[] {"self", "char", "skip"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "match", false, false, funcTable, 19, null, null, 0, 1);
285 c$20_get = Py.newCode(1, new String[] {"self", "this"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "get", false, false, funcTable, 20, null, null, 0, 1);
286 c$21_tell = Py.newCode(1, new String[] {"self"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "tell", false, false, funcTable, 21, null, null, 0, 1);
287 c$22_seek = Py.newCode(2, new String[] {"self", "index"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "seek", false, false, funcTable, 22, null, null, 0, 1);
288 c$23_Tokenizer = Py.newCode(0, new String[] {}, "/usr/share/jython/Lib-cpython/sre_parse.py", "Tokenizer", false, false, funcTable, 23, null, null, 0, 0);
289 c$24_isident = Py.newCode(1, new String[] {"char"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "isident", false, false, funcTable, 24, null, null, 0, 1);
290 c$25_isdigit = Py.newCode(1, new String[] {"char"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "isdigit", false, false, funcTable, 25, null, null, 0, 1);
291 c$26_isname = Py.newCode(1, new String[] {"name", "char"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "isname", false, false, funcTable, 26, null, null, 0, 1);
292 c$27__group = Py.newCode(2, new String[] {"escape", "groups", "gid"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "_group", false, false, funcTable, 27, null, null, 0, 1);
293 c$28__class_escape = Py.newCode(2, new String[] {"source", "escape", "code"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "_class_escape", false, false, funcTable, 28, null, null, 0, 1);
294 c$29__escape = Py.newCode(3, new String[] {"source", "escape", "state", "here", "code", "group"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "_escape", false, false, funcTable, 29, null, null, 0, 1);
295 c$30__parse_sub = Py.newCode(3, new String[] {"source", "state", "nested", "subpattern", "prefix", "items", "set", "item"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "_parse_sub", false, false, funcTable, 30, null, null, 0, 1);
296 c$31__parse = Py.newCode(2, new String[] {"source", "state", "code", "this", "name", "group", "code2", "code1", "max", "start", "set", "item", "subpattern", "lo", "here", "char", "gid", "p", "dir", "min", "hi"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "_parse", false, false, funcTable, 31, null, null, 0, 1);
297 c$32_parse = Py.newCode(3, new String[] {"str", "flags", "pattern", "source", "p", "tail"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "parse", false, false, funcTable, 32, null, null, 0, 1);
298 c$33_literal = Py.newCode(2, new String[] {"literal", "p"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "literal", false, false, funcTable, 33, null, null, 0, 1);
299 c$34_parse_template = Py.newCode(2, new String[] {"source", "pattern", "code", "this", "literals", "index", "group", "s", "sep", "p", "i", "literal", "groups", "char", "c", "a", "name"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "parse_template", false, false, funcTable, 34, null, null, 0, 1);
300 c$35_expand_template = Py.newCode(2, new String[] {"template", "match", "literals", "groups", "g", "index", "group", "s", "sep"}, "/usr/share/jython/Lib-cpython/sre_parse.py", "expand_template", false, false, funcTable, 35, null, null, 0, 1);
301 c$36_main = Py.newCode(0, new String[] {}, "/usr/share/jython/Lib-cpython/sre_parse.py", "main", false, false, funcTable, 36, null, null, 0, 0);
305 public PyCode getMain() {
306 if (c$36_main == null) _PyInner.initConstants();
310 public PyObject call_function(int index, PyFrame frame) {
313 return _PyInner.__init__$1(frame);
315 return _PyInner.opengroup$2(frame);
317 return _PyInner.closegroup$3(frame);
319 return _PyInner.checkgroup$4(frame);
321 return _PyInner.Pattern$5(frame);
323 return _PyInner.__init__$6(frame);
325 return _PyInner.dump$7(frame);
327 return _PyInner.__repr__$8(frame);
329 return _PyInner.__len__$9(frame);
331 return _PyInner.__delitem__$10(frame);
333 return _PyInner.__getitem__$11(frame);
335 return _PyInner.__setitem__$12(frame);
337 return _PyInner.__getslice__$13(frame);
339 return _PyInner.insert$14(frame);
341 return _PyInner.append$15(frame);
343 return _PyInner.getwidth$16(frame);
345 return _PyInner.SubPattern$17(frame);
347 return _PyInner.__init__$18(frame);
349 return _PyInner._Tokenizer__next$19(frame);
351 return _PyInner.match$20(frame);
353 return _PyInner.get$21(frame);
355 return _PyInner.tell$22(frame);
357 return _PyInner.seek$23(frame);
359 return _PyInner.Tokenizer$24(frame);
361 return _PyInner.isident$25(frame);
363 return _PyInner.isdigit$26(frame);
365 return _PyInner.isname$27(frame);
367 return _PyInner._group$28(frame);
369 return _PyInner._class_escape$29(frame);
371 return _PyInner._escape$30(frame);
373 return _PyInner._parse_sub$31(frame);
375 return _PyInner._parse$32(frame);
377 return _PyInner.parse$33(frame);
379 return _PyInner.literal$34(frame);
381 return _PyInner.parse_template$35(frame);
383 return _PyInner.expand_template$36(frame);
385 return _PyInner.main$37(frame);
391 private static PyObject __init__$1(PyFrame frame) {
392 frame.getlocal(0).__setattr__("flags", i$40);
393 frame.getlocal(0).__setattr__("open", new PyList(new PyObject[] {}));
394 frame.getlocal(0).__setattr__("groups", i$41);
395 frame.getlocal(0).__setattr__("groupdict", new PyDictionary(new PyObject[] {}));
399 private static PyObject opengroup$2(PyFrame frame) {
400 frame.setlocal(2, frame.getlocal(0).__getattr__("groups"));
401 frame.getlocal(0).__setattr__("groups", frame.getlocal(2)._add(i$41));
402 if (frame.getlocal(1).__nonzero__()) {
403 frame.getlocal(0).__getattr__("groupdict").__setitem__(frame.getlocal(1), frame.getlocal(2));
405 frame.getlocal(0).__getattr__("open").invoke("append", frame.getlocal(2));
406 return frame.getlocal(2);
409 private static PyObject closegroup$3(PyFrame frame) {
410 frame.getlocal(0).__getattr__("open").invoke("remove", frame.getlocal(1));
414 private static PyObject checkgroup$4(PyFrame frame) {
415 // Temporary Variables
416 PyObject t$0$PyObject;
419 return (t$0$PyObject = frame.getlocal(1)._lt(frame.getlocal(0).__getattr__("groups"))).__nonzero__() ? frame.getlocal(1)._notin(frame.getlocal(0).__getattr__("open")) : t$0$PyObject;
422 private static PyObject Pattern$5(PyFrame frame) {
423 frame.setlocal("__init__", new PyFunction(frame.f_globals, new PyObject[] {}, c$0___init__));
424 frame.setlocal("opengroup", new PyFunction(frame.f_globals, new PyObject[] {frame.getname("None")}, c$1_opengroup));
425 frame.setlocal("closegroup", new PyFunction(frame.f_globals, new PyObject[] {}, c$2_closegroup));
426 frame.setlocal("checkgroup", new PyFunction(frame.f_globals, new PyObject[] {}, c$3_checkgroup));
427 return frame.getf_locals();
430 private static PyObject __init__$6(PyFrame frame) {
431 frame.getlocal(0).__setattr__("pattern", frame.getlocal(1));
432 if (frame.getlocal(2).__not__().__nonzero__()) {
433 frame.setlocal(2, new PyList(new PyObject[] {}));
435 frame.getlocal(0).__setattr__("data", frame.getlocal(2));
436 frame.getlocal(0).__setattr__("width", frame.getglobal("None"));
440 private static PyObject dump$7(PyFrame frame) {
441 // Temporary Variables
442 int t$0$int, t$1$int, t$2$int, t$3$int;
443 PyObject[] t$0$PyObject__;
444 PyObject t$0$PyObject, t$1$PyObject, t$2$PyObject, t$3$PyObject, t$4$PyObject, t$5$PyObject, t$6$PyObject, t$7$PyObject;
447 frame.setlocal(2, i$41);
449 t$1$PyObject = frame.getlocal(0).__getattr__("data");
450 while ((t$0$PyObject = t$1$PyObject.__finditem__(t$0$int++)) != null) {
451 t$0$PyObject__ = org.python.core.Py.unpackSequence(t$0$PyObject, 2);
452 frame.setlocal(5, t$0$PyObject__[0]);
453 frame.setlocal(3, t$0$PyObject__[1]);
454 Py.printComma(frame.getlocal(1)._mul(s$42)._add(frame.getlocal(5)));
455 frame.setlocal(2, i$40);
456 if (frame.getlocal(5)._eq(s$43).__nonzero__()) {
458 frame.setlocal(2, i$41);
460 t$3$PyObject = frame.getlocal(3);
461 while ((t$2$PyObject = t$3$PyObject.__finditem__(t$1$int++)) != null) {
462 t$0$PyObject__ = org.python.core.Py.unpackSequence(t$2$PyObject, 2);
463 frame.setlocal(5, t$0$PyObject__[0]);
464 frame.setlocal(6, t$0$PyObject__[1]);
465 Py.printComma(frame.getlocal(1)._add(i$41)._mul(s$42)._add(frame.getlocal(5)));
466 Py.println(frame.getlocal(6));
469 else if (frame.getlocal(5)._eq(s$44).__nonzero__()) {
471 frame.setlocal(2, i$41);
472 frame.setlocal(4, i$40);
474 t$5$PyObject = frame.getlocal(3).__getitem__(i$41);
475 while ((t$4$PyObject = t$5$PyObject.__finditem__(t$2$int++)) != null) {
476 frame.setlocal(6, t$4$PyObject);
477 if (frame.getlocal(4)._gt(i$40).__nonzero__()) {
478 Py.println(frame.getlocal(1)._mul(s$42)._add(s$45));
480 frame.getlocal(6).invoke("dump", frame.getlocal(1)._add(i$41));
481 frame.setlocal(2, i$41);
482 frame.setlocal(4, frame.getlocal(4)._add(i$41));
485 else if (frame.getglobal("type").__call__(frame.getlocal(3))._in(new PyTuple(new PyObject[] {frame.getglobal("type").__call__(new PyTuple(new PyObject[] {})), frame.getglobal("type").__call__(new PyList(new PyObject[] {}))})).__nonzero__()) {
487 t$7$PyObject = frame.getlocal(3);
488 while ((t$6$PyObject = t$7$PyObject.__finditem__(t$3$int++)) != null) {
489 frame.setlocal(6, t$6$PyObject);
490 if (frame.getglobal("isinstance").__call__(frame.getlocal(6), frame.getglobal("SubPattern")).__nonzero__()) {
491 if (frame.getlocal(2).__not__().__nonzero__()) {
494 frame.getlocal(6).invoke("dump", frame.getlocal(1)._add(i$41));
495 frame.setlocal(2, i$41);
498 Py.printComma(frame.getlocal(6));
499 frame.setlocal(2, i$40);
504 Py.printComma(frame.getlocal(3));
505 frame.setlocal(2, i$40);
507 if (frame.getlocal(2).__not__().__nonzero__()) {
514 private static PyObject __repr__$8(PyFrame frame) {
515 return frame.getglobal("repr").__call__(frame.getlocal(0).__getattr__("data"));
518 private static PyObject __len__$9(PyFrame frame) {
519 return frame.getglobal("len").__call__(frame.getlocal(0).__getattr__("data"));
522 private static PyObject __delitem__$10(PyFrame frame) {
523 frame.getlocal(0).__getattr__("data").__delitem__(frame.getlocal(1));
527 private static PyObject __getitem__$11(PyFrame frame) {
528 return frame.getlocal(0).__getattr__("data").__getitem__(frame.getlocal(1));
531 private static PyObject __setitem__$12(PyFrame frame) {
532 frame.getlocal(0).__getattr__("data").__setitem__(frame.getlocal(1), frame.getlocal(2));
536 private static PyObject __getslice__$13(PyFrame frame) {
537 return frame.getglobal("SubPattern").__call__(frame.getlocal(0).__getattr__("pattern"), frame.getlocal(0).__getattr__("data").__getslice__(frame.getlocal(1), frame.getlocal(2), null));
540 private static PyObject insert$14(PyFrame frame) {
541 frame.getlocal(0).__getattr__("data").invoke("insert", frame.getlocal(1), frame.getlocal(2));
545 private static PyObject append$15(PyFrame frame) {
546 frame.getlocal(0).__getattr__("data").invoke("append", frame.getlocal(1));
550 private static PyObject getwidth$16(PyFrame frame) {
551 // Temporary Variables
552 int t$0$int, t$1$int;
553 PyObject[] t$0$PyObject__;
554 PyObject t$0$PyObject, t$1$PyObject, t$2$PyObject, t$3$PyObject;
557 if (frame.getlocal(0).__getattr__("width").__nonzero__()) {
558 return frame.getlocal(0).__getattr__("width");
561 frame.setlocal(2, t$0$PyObject);
562 frame.setlocal(1, t$0$PyObject);
564 t$1$PyObject = frame.getlocal(0).__getattr__("data");
565 while ((t$0$PyObject = t$1$PyObject.__finditem__(t$0$int++)) != null) {
566 t$0$PyObject__ = org.python.core.Py.unpackSequence(t$0$PyObject, 2);
567 frame.setlocal(3, t$0$PyObject__[0]);
568 frame.setlocal(4, t$0$PyObject__[1]);
569 if (frame.getlocal(3)._is(frame.getglobal("BRANCH")).__nonzero__()) {
570 frame.setlocal(7, frame.getglobal("sys").__getattr__("maxint"));
571 frame.setlocal(6, i$40);
573 t$3$PyObject = frame.getlocal(4).__getitem__(i$41);
574 while ((t$2$PyObject = t$3$PyObject.__finditem__(t$1$int++)) != null) {
575 frame.setlocal(4, t$2$PyObject);
576 t$0$PyObject__ = org.python.core.Py.unpackSequence(frame.getlocal(4).invoke("getwidth"), 2);
577 frame.setlocal(5, t$0$PyObject__[0]);
578 frame.setlocal(8, t$0$PyObject__[1]);
579 frame.setlocal(7, frame.getglobal("min").__call__(frame.getlocal(7), frame.getlocal(5)));
580 frame.setlocal(6, frame.getglobal("max").__call__(frame.getlocal(6), frame.getlocal(8)));
582 frame.setlocal(2, frame.getlocal(2)._add(frame.getlocal(7)));
583 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(6)));
585 else if (frame.getlocal(3)._is(frame.getglobal("CALL")).__nonzero__()) {
586 t$0$PyObject__ = org.python.core.Py.unpackSequence(frame.getlocal(4).invoke("getwidth"), 2);
587 frame.setlocal(7, t$0$PyObject__[0]);
588 frame.setlocal(6, t$0$PyObject__[1]);
589 frame.setlocal(2, frame.getlocal(2)._add(frame.getlocal(7)));
590 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(6)));
592 else if (frame.getlocal(3)._is(frame.getglobal("SUBPATTERN")).__nonzero__()) {
593 t$0$PyObject__ = org.python.core.Py.unpackSequence(frame.getlocal(4).__getitem__(i$41).invoke("getwidth"), 2);
594 frame.setlocal(7, t$0$PyObject__[0]);
595 frame.setlocal(6, t$0$PyObject__[1]);
596 frame.setlocal(2, frame.getlocal(2)._add(frame.getlocal(7)));
597 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(6)));
599 else if (frame.getlocal(3)._in(new PyTuple(new PyObject[] {frame.getglobal("MIN_REPEAT"), frame.getglobal("MAX_REPEAT")})).__nonzero__()) {
600 t$0$PyObject__ = org.python.core.Py.unpackSequence(frame.getlocal(4).__getitem__(i$47).invoke("getwidth"), 2);
601 frame.setlocal(7, t$0$PyObject__[0]);
602 frame.setlocal(6, t$0$PyObject__[1]);
603 frame.setlocal(2, frame.getlocal(2)._add(frame.getglobal("long").__call__(frame.getlocal(7))._mul(frame.getlocal(4).__getitem__(i$40))));
604 frame.setlocal(1, frame.getlocal(1)._add(frame.getglobal("long").__call__(frame.getlocal(6))._mul(frame.getlocal(4).__getitem__(i$41))));
606 else if (frame.getlocal(3)._in(new PyTuple(new PyObject[] {frame.getglobal("ANY"), frame.getglobal("RANGE"), frame.getglobal("IN"), frame.getglobal("LITERAL"), frame.getglobal("NOT_LITERAL"), frame.getglobal("CATEGORY")})).__nonzero__()) {
607 frame.setlocal(2, frame.getlocal(2)._add(i$41));
608 frame.setlocal(1, frame.getlocal(1)._add(i$41));
610 else if (frame.getlocal(3)._eq(frame.getglobal("SUCCESS")).__nonzero__()) {
614 frame.getlocal(0).__setattr__("width", new PyTuple(new PyObject[] {frame.getglobal("int").__call__(frame.getglobal("min").__call__(frame.getlocal(2), frame.getglobal("sys").__getattr__("maxint"))), frame.getglobal("int").__call__(frame.getglobal("min").__call__(frame.getlocal(1), frame.getglobal("sys").__getattr__("maxint")))}));
615 return frame.getlocal(0).__getattr__("width");
618 private static PyObject SubPattern$17(PyFrame frame) {
619 frame.setlocal("__init__", new PyFunction(frame.f_globals, new PyObject[] {frame.getname("None")}, c$5___init__));
620 frame.setlocal("dump", new PyFunction(frame.f_globals, new PyObject[] {i$40}, c$6_dump));
621 frame.setlocal("__repr__", new PyFunction(frame.f_globals, new PyObject[] {}, c$7___repr__));
622 frame.setlocal("__len__", new PyFunction(frame.f_globals, new PyObject[] {}, c$8___len__));
623 frame.setlocal("__delitem__", new PyFunction(frame.f_globals, new PyObject[] {}, c$9___delitem__));
624 frame.setlocal("__getitem__", new PyFunction(frame.f_globals, new PyObject[] {}, c$10___getitem__));
625 frame.setlocal("__setitem__", new PyFunction(frame.f_globals, new PyObject[] {}, c$11___setitem__));
626 frame.setlocal("__getslice__", new PyFunction(frame.f_globals, new PyObject[] {}, c$12___getslice__));
627 frame.setlocal("insert", new PyFunction(frame.f_globals, new PyObject[] {}, c$13_insert));
628 frame.setlocal("append", new PyFunction(frame.f_globals, new PyObject[] {}, c$14_append));
629 frame.setlocal("getwidth", new PyFunction(frame.f_globals, new PyObject[] {}, c$15_getwidth));
630 return frame.getf_locals();
633 private static PyObject __init__$18(PyFrame frame) {
634 frame.getlocal(0).__setattr__("string", frame.getlocal(1));
635 frame.getlocal(0).__setattr__("index", i$40);
636 frame.getlocal(0).invoke("_Tokenizer__next");
640 private static PyObject _Tokenizer__next$19(PyFrame frame) {
641 // Temporary Variables
642 PyException t$0$PyException;
645 if (frame.getlocal(0).__getattr__("index")._ge(frame.getglobal("len").__call__(frame.getlocal(0).__getattr__("string"))).__nonzero__()) {
646 frame.getlocal(0).__setattr__("next", frame.getglobal("None"));
649 frame.setlocal(1, frame.getlocal(0).__getattr__("string").__getitem__(frame.getlocal(0).__getattr__("index")));
650 if (frame.getlocal(1).__getitem__(i$40)._eq(s$21).__nonzero__()) {
652 frame.setlocal(2, frame.getlocal(0).__getattr__("string").__getitem__(frame.getlocal(0).__getattr__("index")._add(i$41)));
654 catch (Throwable x$0) {
655 t$0$PyException = Py.setException(x$0, frame);
656 if (Py.matchException(t$0$PyException, frame.getglobal("IndexError"))) {
657 throw Py.makeException(frame.getglobal("error"), s$48);
659 else throw t$0$PyException;
661 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(2)));
663 frame.getlocal(0).__setattr__("index", frame.getlocal(0).__getattr__("index")._add(frame.getglobal("len").__call__(frame.getlocal(1))));
664 frame.getlocal(0).__setattr__("next", frame.getlocal(1));
668 private static PyObject match$20(PyFrame frame) {
669 if (frame.getlocal(1)._eq(frame.getlocal(0).__getattr__("next")).__nonzero__()) {
670 if (frame.getlocal(2).__nonzero__()) {
671 frame.getlocal(0).invoke("_Tokenizer__next");
678 private static PyObject get$21(PyFrame frame) {
679 frame.setlocal(1, frame.getlocal(0).__getattr__("next"));
680 frame.getlocal(0).invoke("_Tokenizer__next");
681 return frame.getlocal(1);
684 private static PyObject tell$22(PyFrame frame) {
685 return new PyTuple(new PyObject[] {frame.getlocal(0).__getattr__("index"), frame.getlocal(0).__getattr__("next")});
688 private static PyObject seek$23(PyFrame frame) {
689 // Temporary Variables
690 PyObject[] t$0$PyObject__;
693 t$0$PyObject__ = org.python.core.Py.unpackSequence(frame.getlocal(1), 2);
694 frame.getlocal(0).__setattr__("index", t$0$PyObject__[0]);
695 frame.getlocal(0).__setattr__("next", t$0$PyObject__[1]);
699 private static PyObject Tokenizer$24(PyFrame frame) {
700 frame.setlocal("__init__", new PyFunction(frame.f_globals, new PyObject[] {}, c$17___init__));
701 frame.setlocal("_Tokenizer__next", new PyFunction(frame.f_globals, new PyObject[] {}, c$18__Tokenizer__next));
702 frame.setlocal("match", new PyFunction(frame.f_globals, new PyObject[] {i$41}, c$19_match));
703 frame.setlocal("get", new PyFunction(frame.f_globals, new PyObject[] {}, c$20_get));
704 frame.setlocal("tell", new PyFunction(frame.f_globals, new PyObject[] {}, c$21_tell));
705 frame.setlocal("seek", new PyFunction(frame.f_globals, new PyObject[] {}, c$22_seek));
706 return frame.getf_locals();
709 private static PyObject isident$25(PyFrame frame) {
710 // Temporary Variables
711 PyObject t$0$PyObject, t$1$PyObject, t$2$PyObject;
714 return (t$0$PyObject = ((t$1$PyObject = (s$49._le(t$2$PyObject = frame.getlocal(0)).__nonzero__() ? t$2$PyObject._le(s$50) : Py.Zero)).__nonzero__() ? t$1$PyObject : (s$51._le(t$2$PyObject = frame.getlocal(0)).__nonzero__() ? t$2$PyObject._le(s$52) : Py.Zero))).__nonzero__() ? t$0$PyObject : frame.getlocal(0)._eq(s$53);
717 private static PyObject isdigit$26(PyFrame frame) {
718 // Temporary Variables
719 PyObject t$0$PyObject;
722 return s$54._le(t$0$PyObject = frame.getlocal(0)).__nonzero__() ? t$0$PyObject._le(s$55) : Py.Zero;
725 private static PyObject isname$27(PyFrame frame) {
726 // Temporary Variables
728 PyObject t$0$PyObject, t$1$PyObject, t$2$PyObject;
731 if (frame.getglobal("isident").__call__(frame.getlocal(0).__getitem__(i$40)).__not__().__nonzero__()) {
735 t$1$PyObject = frame.getlocal(0);
736 while ((t$0$PyObject = t$1$PyObject.__finditem__(t$0$int++)) != null) {
737 frame.setlocal(1, t$0$PyObject);
738 if (((t$2$PyObject = frame.getglobal("isident").__call__(frame.getlocal(1)).__not__()).__nonzero__() ? frame.getglobal("isdigit").__call__(frame.getlocal(1)).__not__() : t$2$PyObject).__nonzero__()) {
745 private static PyObject _group$28(PyFrame frame) {
746 // Temporary Variables
747 PyException t$0$PyException;
748 PyObject t$0$PyObject;
752 frame.setlocal(2, frame.getglobal("atoi").__call__(frame.getlocal(0).__getslice__(i$41, null, null)));
753 if (((t$0$PyObject = frame.getlocal(2)).__nonzero__() ? frame.getlocal(2)._lt(frame.getlocal(1)) : t$0$PyObject).__nonzero__()) {
754 return frame.getlocal(2);
757 catch (Throwable x$0) {
758 t$0$PyException = Py.setException(x$0, frame);
759 if (Py.matchException(t$0$PyException, frame.getglobal("ValueError"))) {
762 else throw t$0$PyException;
764 return frame.getglobal("None");
767 private static PyObject _class_escape$29(PyFrame frame) {
768 // Temporary Variables
769 PyException t$0$PyException;
770 PyObject t$0$PyObject;
773 frame.setlocal(2, frame.getglobal("ESCAPES").invoke("get", frame.getlocal(1)));
774 if (frame.getlocal(2).__nonzero__()) {
775 return frame.getlocal(2);
777 frame.setlocal(2, frame.getglobal("CATEGORIES").invoke("get", frame.getlocal(1)));
778 if (frame.getlocal(2).__nonzero__()) {
779 return frame.getlocal(2);
782 if (frame.getlocal(1).__getslice__(i$41, i$47, null)._eq(s$35).__nonzero__()) {
783 while (((t$0$PyObject = frame.getlocal(0).__getattr__("next")._in(frame.getglobal("HEXDIGITS"))).__nonzero__() ? frame.getglobal("len").__call__(frame.getlocal(1))._lt(i$56) : t$0$PyObject).__nonzero__()) {
784 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(0).invoke("get")));
786 frame.setlocal(1, frame.getlocal(1).__getslice__(i$47, null, null));
787 if (frame.getglobal("len").__call__(frame.getlocal(1))._ne(i$47).__nonzero__()) {
788 throw Py.makeException(frame.getglobal("error"), s$57._mod(frame.getglobal("repr").__call__(s$21._add(frame.getlocal(1)))));
790 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("atoi").__call__(frame.getlocal(1), i$58)._and(i$59)});
792 else if (frame.getglobal("str").__call__(frame.getlocal(1).__getslice__(i$41, i$47, null))._in(frame.getglobal("OCTDIGITS")).__nonzero__()) {
793 while (((t$0$PyObject = frame.getlocal(0).__getattr__("next")._in(frame.getglobal("OCTDIGITS"))).__nonzero__() ? frame.getglobal("len").__call__(frame.getlocal(1))._lt(i$60) : t$0$PyObject).__nonzero__()) {
794 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(0).invoke("get")));
796 frame.setlocal(1, frame.getlocal(1).__getslice__(i$41, null, null));
797 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("atoi").__call__(frame.getlocal(1), i$39)._and(i$59)});
799 if (frame.getglobal("len").__call__(frame.getlocal(1))._eq(i$47).__nonzero__()) {
800 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(frame.getlocal(1).__getitem__(i$41))});
803 catch (Throwable x$0) {
804 t$0$PyException = Py.setException(x$0, frame);
805 if (Py.matchException(t$0$PyException, frame.getglobal("ValueError"))) {
808 else throw t$0$PyException;
810 throw Py.makeException(frame.getglobal("error"), s$57._mod(frame.getglobal("repr").__call__(frame.getlocal(1))));
813 private static PyObject _escape$30(PyFrame frame) {
814 // Temporary Variables
815 PyException t$0$PyException;
816 PyObject t$0$PyObject, t$1$PyObject;
819 frame.setlocal(4, frame.getglobal("CATEGORIES").invoke("get", frame.getlocal(1)));
820 if (frame.getlocal(4).__nonzero__()) {
821 return frame.getlocal(4);
823 frame.setlocal(4, frame.getglobal("ESCAPES").invoke("get", frame.getlocal(1)));
824 if (frame.getlocal(4).__nonzero__()) {
825 return frame.getlocal(4);
828 if (frame.getlocal(1).__getslice__(i$41, i$47, null)._eq(s$35).__nonzero__()) {
829 while (((t$0$PyObject = frame.getlocal(0).__getattr__("next")._in(frame.getglobal("HEXDIGITS"))).__nonzero__() ? frame.getglobal("len").__call__(frame.getlocal(1))._lt(i$56) : t$0$PyObject).__nonzero__()) {
830 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(0).invoke("get")));
832 if (frame.getglobal("len").__call__(frame.getlocal(1))._ne(i$56).__nonzero__()) {
833 throw Py.makeException(frame.getglobal("ValueError"));
835 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("atoi").__call__(frame.getlocal(1).__getslice__(i$47, null, null), i$58)._and(i$59)});
837 else if (frame.getlocal(1).__getslice__(i$41, i$47, null)._eq(s$54).__nonzero__()) {
838 while (((t$0$PyObject = frame.getlocal(0).__getattr__("next")._in(frame.getglobal("OCTDIGITS"))).__nonzero__() ? frame.getglobal("len").__call__(frame.getlocal(1))._lt(i$56) : t$0$PyObject).__nonzero__()) {
839 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(0).invoke("get")));
841 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("atoi").__call__(frame.getlocal(1).__getslice__(i$41, null, null), i$39)._and(i$59)});
843 else if (frame.getlocal(1).__getslice__(i$41, i$47, null)._in(frame.getglobal("DIGITS")).__nonzero__()) {
844 frame.setlocal(3, frame.getlocal(0).invoke("tell"));
845 if (frame.getlocal(0).__getattr__("next")._in(frame.getglobal("DIGITS")).__nonzero__()) {
846 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(0).invoke("get")));
847 if (((t$0$PyObject = ((t$1$PyObject = frame.getlocal(1).__getitem__(i$41)._in(frame.getglobal("OCTDIGITS"))).__nonzero__() ? frame.getlocal(1).__getitem__(i$47)._in(frame.getglobal("OCTDIGITS")) : t$1$PyObject)).__nonzero__() ? frame.getlocal(0).__getattr__("next")._in(frame.getglobal("OCTDIGITS")) : t$0$PyObject).__nonzero__()) {
848 frame.setlocal(1, frame.getlocal(1)._add(frame.getlocal(0).invoke("get")));
849 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("atoi").__call__(frame.getlocal(1).__getslice__(i$41, null, null), i$39)._and(i$59)});
852 frame.setlocal(5, frame.getglobal("_group").__call__(frame.getlocal(1), frame.getlocal(2).__getattr__("groups")));
853 if (frame.getlocal(5).__nonzero__()) {
854 if (frame.getlocal(2).invoke("checkgroup", frame.getlocal(5)).__not__().__nonzero__()) {
855 throw Py.makeException(frame.getglobal("error"), s$61);
857 return new PyTuple(new PyObject[] {frame.getglobal("GROUPREF"), frame.getlocal(5)});
859 throw Py.makeException(frame.getglobal("ValueError"));
861 if (frame.getglobal("len").__call__(frame.getlocal(1))._eq(i$47).__nonzero__()) {
862 return new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(frame.getlocal(1).__getitem__(i$41))});
865 catch (Throwable x$0) {
866 t$0$PyException = Py.setException(x$0, frame);
867 if (Py.matchException(t$0$PyException, frame.getglobal("ValueError"))) {
870 else throw t$0$PyException;
872 throw Py.makeException(frame.getglobal("error"), s$57._mod(frame.getglobal("repr").__call__(frame.getlocal(1))));
875 private static PyObject _parse_sub$31(PyFrame frame) {
876 // Temporary Variables
877 int t$0$int, t$1$int, t$2$int, t$3$int;
879 PyObject t$0$PyObject, t$1$PyObject, t$2$PyObject, t$3$PyObject, t$4$PyObject, t$5$PyObject, t$6$PyObject, t$7$PyObject;
882 frame.setlocal(5, new PyList(new PyObject[] {}));
883 while (i$41.__nonzero__()) {
884 frame.getlocal(5).invoke("append", frame.getglobal("_parse").__call__(frame.getlocal(0), frame.getlocal(1)));
885 if (frame.getlocal(0).invoke("match", s$62).__nonzero__()) {
888 if (frame.getlocal(2).__not__().__nonzero__()) {
891 if (((t$0$PyObject = frame.getlocal(0).__getattr__("next").__not__()).__nonzero__() ? t$0$PyObject : frame.getlocal(0).invoke("match", s$63, i$40)).__nonzero__()) {
895 throw Py.makeException(frame.getglobal("error"), s$64);
898 if (frame.getglobal("len").__call__(frame.getlocal(5))._eq(i$41).__nonzero__()) {
899 return frame.getlocal(5).__getitem__(i$40);
901 frame.setlocal(3, frame.getglobal("SubPattern").__call__(frame.getlocal(1)));
902 while (i$41.__nonzero__()) {
903 frame.setlocal(4, frame.getglobal("None"));
905 t$1$PyObject = frame.getlocal(5);
906 while (t$0$boolean=(t$0$PyObject = t$1$PyObject.__finditem__(t$0$int++)) != null) {
907 frame.setlocal(7, t$0$PyObject);
908 if (frame.getlocal(7).__not__().__nonzero__()) {
911 if (frame.getlocal(4)._is(frame.getglobal("None")).__nonzero__()) {
912 frame.setlocal(4, frame.getlocal(7).__getitem__(i$40));
914 else if (frame.getlocal(7).__getitem__(i$40)._ne(frame.getlocal(4)).__nonzero__()) {
920 t$3$PyObject = frame.getlocal(5);
921 while ((t$2$PyObject = t$3$PyObject.__finditem__(t$1$int++)) != null) {
922 frame.setlocal(7, t$2$PyObject);
923 frame.getlocal(7).__delitem__(i$40);
925 frame.getlocal(3).invoke("append", frame.getlocal(4));
931 t$5$PyObject = frame.getlocal(5);
932 while (t$0$boolean=(t$4$PyObject = t$5$PyObject.__finditem__(t$2$int++)) != null) {
933 frame.setlocal(7, t$4$PyObject);
934 if (((t$6$PyObject = frame.getglobal("len").__call__(frame.getlocal(7))._ne(i$41)).__nonzero__() ? t$6$PyObject : frame.getlocal(7).__getitem__(i$40).__getitem__(i$40)._ne(frame.getglobal("LITERAL"))).__nonzero__()) {
939 frame.setlocal(6, new PyList(new PyObject[] {}));
941 t$7$PyObject = frame.getlocal(5);
942 while ((t$6$PyObject = t$7$PyObject.__finditem__(t$3$int++)) != null) {
943 frame.setlocal(7, t$6$PyObject);
944 frame.getlocal(6).invoke("append", frame.getlocal(7).__getitem__(i$40));
946 frame.getlocal(3).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("IN"), frame.getlocal(6)}));
947 return frame.getlocal(3);
949 frame.getlocal(3).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("BRANCH"), new PyTuple(new PyObject[] {frame.getglobal("None"), frame.getlocal(5)})}));
950 return frame.getlocal(3);
953 private static PyObject _parse$32(PyFrame frame) {
954 // Temporary Variables
955 PyObject[] t$0$PyObject__;
956 PyObject t$0$PyObject, t$1$PyObject;
959 frame.setlocal(12, frame.getglobal("SubPattern").__call__(frame.getlocal(1)));
960 while (i$41.__nonzero__()) {
961 if (frame.getlocal(0).__getattr__("next")._in(new PyTuple(new PyObject[] {s$62, s$63})).__nonzero__()) {
964 frame.setlocal(3, frame.getlocal(0).invoke("get"));
965 if (frame.getlocal(3)._is(frame.getglobal("None")).__nonzero__()) {
968 if (frame.getlocal(1).__getattr__("flags")._and(frame.getglobal("SRE_FLAG_VERBOSE")).__nonzero__()) {
969 if (frame.getlocal(3)._in(frame.getglobal("WHITESPACE")).__nonzero__()) {
972 if (frame.getlocal(3)._eq(s$65).__nonzero__()) {
973 while (i$41.__nonzero__()) {
974 frame.setlocal(3, frame.getlocal(0).invoke("get"));
975 if (frame.getlocal(3)._in(new PyTuple(new PyObject[] {frame.getglobal("None"), s$13})).__nonzero__()) {
982 if (((t$0$PyObject = frame.getlocal(3)).__nonzero__() ? frame.getlocal(3).__getitem__(i$40)._notin(frame.getglobal("SPECIAL_CHARS")) : t$0$PyObject).__nonzero__()) {
983 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(frame.getlocal(3))}));
985 else if (frame.getlocal(3)._eq(s$66).__nonzero__()) {
986 frame.setlocal(10, new PyList(new PyObject[] {}));
987 if (frame.getlocal(0).invoke("match", s$67).__nonzero__()) {
988 frame.getlocal(10).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("NEGATE"), frame.getglobal("None")}));
990 frame.setlocal(9, frame.getlocal(10).__getslice__(null, null, null));
991 while (i$41.__nonzero__()) {
992 frame.setlocal(3, frame.getlocal(0).invoke("get"));
993 if (((t$0$PyObject = frame.getlocal(3)._eq(s$68)).__nonzero__() ? frame.getlocal(10)._ne(frame.getlocal(9)) : t$0$PyObject).__nonzero__()) {
996 else if (((t$0$PyObject = frame.getlocal(3)).__nonzero__() ? frame.getlocal(3).__getitem__(i$40)._eq(s$21) : t$0$PyObject).__nonzero__()) {
997 frame.setlocal(7, frame.getglobal("_class_escape").__call__(frame.getlocal(0), frame.getlocal(3)));
999 else if (frame.getlocal(3).__nonzero__()) {
1000 frame.setlocal(7, new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(frame.getlocal(3))}));
1003 throw Py.makeException(frame.getglobal("error"), s$69);
1005 if (frame.getlocal(0).invoke("match", s$70).__nonzero__()) {
1006 frame.setlocal(3, frame.getlocal(0).invoke("get"));
1007 if (frame.getlocal(3)._eq(s$68).__nonzero__()) {
1008 if (frame.getlocal(7).__getitem__(i$40)._is(frame.getglobal("IN")).__nonzero__()) {
1009 frame.setlocal(7, frame.getlocal(7).__getitem__(i$41).__getitem__(i$40));
1011 frame.getlocal(10).invoke("append", frame.getlocal(7));
1012 frame.getlocal(10).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(s$70)}));
1016 if (frame.getlocal(3).__getitem__(i$40)._eq(s$21).__nonzero__()) {
1017 frame.setlocal(6, frame.getglobal("_class_escape").__call__(frame.getlocal(0), frame.getlocal(3)));
1020 frame.setlocal(6, new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(frame.getlocal(3))}));
1022 if (((t$0$PyObject = frame.getlocal(7).__getitem__(i$40)._ne(frame.getglobal("LITERAL"))).__nonzero__() ? t$0$PyObject : frame.getlocal(6).__getitem__(i$40)._ne(frame.getglobal("LITERAL"))).__nonzero__()) {
1023 throw Py.makeException(frame.getglobal("error"), s$71);
1025 frame.setlocal(13, frame.getlocal(7).__getitem__(i$41));
1026 frame.setlocal(20, frame.getlocal(6).__getitem__(i$41));
1027 if (frame.getlocal(20)._lt(frame.getlocal(13)).__nonzero__()) {
1028 throw Py.makeException(frame.getglobal("error"), s$71);
1030 frame.getlocal(10).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("RANGE"), new PyTuple(new PyObject[] {frame.getlocal(13), frame.getlocal(20)})}));
1034 if (frame.getlocal(7).__getitem__(i$40)._is(frame.getglobal("IN")).__nonzero__()) {
1035 frame.setlocal(7, frame.getlocal(7).__getitem__(i$41).__getitem__(i$40));
1037 frame.getlocal(10).invoke("append", frame.getlocal(7));
1040 if (((t$0$PyObject = frame.getglobal("len").__call__(frame.getlocal(10))._eq(i$41)).__nonzero__() ? frame.getlocal(10).__getitem__(i$40).__getitem__(i$40)._is(frame.getglobal("LITERAL")) : t$0$PyObject).__nonzero__()) {
1041 frame.getlocal(12).invoke("append", frame.getlocal(10).__getitem__(i$40));
1043 else if (((t$0$PyObject = ((t$1$PyObject = frame.getglobal("len").__call__(frame.getlocal(10))._eq(i$47)).__nonzero__() ? frame.getlocal(10).__getitem__(i$40).__getitem__(i$40)._is(frame.getglobal("NEGATE")) : t$1$PyObject)).__nonzero__() ? frame.getlocal(10).__getitem__(i$41).__getitem__(i$40)._is(frame.getglobal("LITERAL")) : t$0$PyObject).__nonzero__()) {
1044 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("NOT_LITERAL"), frame.getlocal(10).__getitem__(i$41).__getitem__(i$41)}));
1047 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("IN"), frame.getlocal(10)}));
1050 else if (((t$0$PyObject = frame.getlocal(3)).__nonzero__() ? frame.getlocal(3).__getitem__(i$40)._in(frame.getglobal("REPEAT_CHARS")) : t$0$PyObject).__nonzero__()) {
1051 if (frame.getlocal(3)._eq(s$72).__nonzero__()) {
1052 t$0$PyObject__ = org.python.core.Py.unpackSequence(new PyTuple(new PyObject[] {i$40, i$41}), 2);
1053 frame.setlocal(19, t$0$PyObject__[0]);
1054 frame.setlocal(8, t$0$PyObject__[1]);
1056 else if (frame.getlocal(3)._eq(s$73).__nonzero__()) {
1057 t$0$PyObject__ = org.python.core.Py.unpackSequence(new PyTuple(new PyObject[] {i$40, frame.getglobal("MAXREPEAT")}), 2);
1058 frame.setlocal(19, t$0$PyObject__[0]);
1059 frame.setlocal(8, t$0$PyObject__[1]);
1061 else if (frame.getlocal(3)._eq(s$74).__nonzero__()) {
1062 t$0$PyObject__ = org.python.core.Py.unpackSequence(new PyTuple(new PyObject[] {i$41, frame.getglobal("MAXREPEAT")}), 2);
1063 frame.setlocal(19, t$0$PyObject__[0]);
1064 frame.setlocal(8, t$0$PyObject__[1]);
1066 else if (frame.getlocal(3)._eq(s$75).__nonzero__()) {
1067 frame.setlocal(14, frame.getlocal(0).invoke("tell"));
1068 t$0$PyObject__ = org.python.core.Py.unpackSequence(new PyTuple(new PyObject[] {i$40, frame.getglobal("MAXREPEAT")}), 2);
1069 frame.setlocal(19, t$0$PyObject__[0]);
1070 frame.setlocal(8, t$0$PyObject__[1]);
1071 t$0$PyObject = s$76;
1072 frame.setlocal(13, t$0$PyObject);
1073 frame.setlocal(20, t$0$PyObject);
1074 while (frame.getlocal(0).__getattr__("next")._in(frame.getglobal("DIGITS")).__nonzero__()) {
1075 frame.setlocal(13, frame.getlocal(13)._add(frame.getlocal(0).invoke("get")));
1077 if (frame.getlocal(0).invoke("match", s$77).__nonzero__()) {
1078 while (frame.getlocal(0).__getattr__("next")._in(frame.getglobal("DIGITS")).__nonzero__()) {
1079 frame.setlocal(20, frame.getlocal(20)._add(frame.getlocal(0).invoke("get")));
1083 frame.setlocal(20, frame.getlocal(13));
1085 if (frame.getlocal(0).invoke("match", s$78).__not__().__nonzero__()) {
1086 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getglobal("ord").__call__(frame.getlocal(3))}));
1087 frame.getlocal(0).invoke("seek", frame.getlocal(14));
1090 if (frame.getlocal(13).__nonzero__()) {
1091 frame.setlocal(19, frame.getglobal("atoi").__call__(frame.getlocal(13)));
1093 if (frame.getlocal(20).__nonzero__()) {
1094 frame.setlocal(8, frame.getglobal("atoi").__call__(frame.getlocal(20)));
1096 if (frame.getlocal(8)._lt(frame.getlocal(19)).__nonzero__()) {
1097 throw Py.makeException(frame.getglobal("error"), s$79);
1101 throw Py.makeException(frame.getglobal("error"), s$80);
1103 if (frame.getlocal(12).__nonzero__()) {
1104 frame.setlocal(11, frame.getlocal(12).__getslice__(i$41.__neg__(), null, null));
1107 frame.setlocal(11, frame.getglobal("None"));
1109 if (((t$0$PyObject = frame.getlocal(11).__not__()).__nonzero__() ? t$0$PyObject : ((t$1$PyObject = frame.getglobal("len").__call__(frame.getlocal(11))._eq(i$41)).__nonzero__() ? frame.getlocal(11).__getitem__(i$40).__getitem__(i$40)._eq(frame.getglobal("AT")) : t$1$PyObject)).__nonzero__()) {
1110 throw Py.makeException(frame.getglobal("error"), s$81);
1112 if (frame.getlocal(11).__getitem__(i$40).__getitem__(i$40)._in(new PyTuple(new PyObject[] {frame.getglobal("MIN_REPEAT"), frame.getglobal("MAX_REPEAT")})).__nonzero__()) {
1113 throw Py.makeException(frame.getglobal("error"), s$82);
1115 if (frame.getlocal(0).invoke("match", s$72).__nonzero__()) {
1116 frame.getlocal(12).__setitem__(i$41.__neg__(), new PyTuple(new PyObject[] {frame.getglobal("MIN_REPEAT"), new PyTuple(new PyObject[] {frame.getlocal(19), frame.getlocal(8), frame.getlocal(11)})}));
1119 frame.getlocal(12).__setitem__(i$41.__neg__(), new PyTuple(new PyObject[] {frame.getglobal("MAX_REPEAT"), new PyTuple(new PyObject[] {frame.getlocal(19), frame.getlocal(8), frame.getlocal(11)})}));
1122 else if (frame.getlocal(3)._eq(s$83).__nonzero__()) {
1123 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("ANY"), frame.getglobal("None")}));
1125 else if (frame.getlocal(3)._eq(s$84).__nonzero__()) {
1126 frame.setlocal(5, i$41);
1127 frame.setlocal(4, frame.getglobal("None"));
1128 if (frame.getlocal(0).invoke("match", s$72).__nonzero__()) {
1129 frame.setlocal(5, i$40);
1130 if (frame.getlocal(0).invoke("match", s$85).__nonzero__()) {
1131 if (frame.getlocal(0).invoke("match", s$86).__nonzero__()) {
1132 frame.setlocal(4, s$76);
1133 while (i$41.__nonzero__()) {
1134 frame.setlocal(15, frame.getlocal(0).invoke("get"));
1135 if (frame.getlocal(15)._is(frame.getglobal("None")).__nonzero__()) {
1136 throw Py.makeException(frame.getglobal("error"), s$87);
1138 if (frame.getlocal(15)._eq(s$88).__nonzero__()) {
1141 frame.setlocal(4, frame.getlocal(4)._add(frame.getlocal(15)));
1143 frame.setlocal(5, i$41);
1144 if (frame.getglobal("isname").__call__(frame.getlocal(4)).__not__().__nonzero__()) {
1145 throw Py.makeException(frame.getglobal("error"), s$89);
1148 else if (frame.getlocal(0).invoke("match", s$90).__nonzero__()) {
1149 frame.setlocal(4, s$76);
1150 while (i$41.__nonzero__()) {
1151 frame.setlocal(15, frame.getlocal(0).invoke("get"));
1152 if (frame.getlocal(15)._is(frame.getglobal("None")).__nonzero__()) {
1153 throw Py.makeException(frame.getglobal("error"), s$87);
1155 if (frame.getlocal(15)._eq(s$63).__nonzero__()) {
1158 frame.setlocal(4, frame.getlocal(4)._add(frame.getlocal(15)));
1160 if (frame.getglobal("isname").__call__(frame.getlocal(4)).__not__().__nonzero__()) {
1161 throw Py.makeException(frame.getglobal("error"), s$89);
1163 frame.setlocal(16, frame.getlocal(1).__getattr__("groupdict").invoke("get", frame.getlocal(4)));
1164 if (frame.getlocal(16)._is(frame.getglobal("None")).__nonzero__()) {
1165 throw Py.makeException(frame.getglobal("error"), s$91);
1167 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("GROUPREF"), frame.getlocal(16)}));
1171 frame.setlocal(15, frame.getlocal(0).invoke("get"));
1172 if (frame.getlocal(15)._is(frame.getglobal("None")).__nonzero__()) {
1173 throw Py.makeException(frame.getglobal("error"), s$92);
1175 throw Py.makeException(frame.getglobal("error"), s$93._mod(frame.getlocal(15)));
1178 else if (frame.getlocal(0).invoke("match", s$94).__nonzero__()) {
1179 frame.setlocal(5, i$47);
1181 else if (frame.getlocal(0).invoke("match", s$65).__nonzero__()) {
1182 while (i$41.__nonzero__()) {
1183 if (((t$0$PyObject = frame.getlocal(0).__getattr__("next")._is(frame.getglobal("None"))).__nonzero__() ? t$0$PyObject : frame.getlocal(0).__getattr__("next")._eq(s$63)).__nonzero__()) {
1186 frame.getlocal(0).invoke("get");
1188 if (frame.getlocal(0).invoke("match", s$63).__not__().__nonzero__()) {
1189 throw Py.makeException(frame.getglobal("error"), s$95);
1193 else if (frame.getlocal(0).__getattr__("next")._in(new PyTuple(new PyObject[] {s$90, s$96, s$86})).__nonzero__()) {
1194 frame.setlocal(15, frame.getlocal(0).invoke("get"));
1195 frame.setlocal(18, i$41);
1196 if (frame.getlocal(15)._eq(s$86).__nonzero__()) {
1197 if (frame.getlocal(0).__getattr__("next")._notin(new PyTuple(new PyObject[] {s$90, s$96})).__nonzero__()) {
1198 throw Py.makeException(frame.getglobal("error"), s$97);
1200 frame.setlocal(18, i$41.__neg__());
1201 frame.setlocal(15, frame.getlocal(0).invoke("get"));
1203 frame.setlocal(17, frame.getglobal("_parse_sub").__call__(frame.getlocal(0), frame.getlocal(1)));
1204 if (frame.getlocal(0).invoke("match", s$63).__not__().__nonzero__()) {
1205 throw Py.makeException(frame.getglobal("error"), s$95);
1207 if (frame.getlocal(15)._eq(s$90).__nonzero__()) {
1208 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("ASSERT"), new PyTuple(new PyObject[] {frame.getlocal(18), frame.getlocal(17)})}));
1211 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("ASSERT_NOT"), new PyTuple(new PyObject[] {frame.getlocal(18), frame.getlocal(17)})}));
1216 if (frame.getglobal("FLAGS").invoke("has_key", frame.getlocal(0).__getattr__("next")).__not__().__nonzero__()) {
1217 throw Py.makeException(frame.getglobal("error"), s$92);
1219 while (frame.getglobal("FLAGS").invoke("has_key", frame.getlocal(0).__getattr__("next")).__nonzero__()) {
1220 frame.getlocal(1).__setattr__("flags", frame.getlocal(1).__getattr__("flags")._or(frame.getglobal("FLAGS").__getitem__(frame.getlocal(0).invoke("get"))));
1224 if (frame.getlocal(5).__nonzero__()) {
1225 if (frame.getlocal(5)._eq(i$47).__nonzero__()) {
1226 frame.setlocal(5, frame.getglobal("None"));
1229 frame.setlocal(5, frame.getlocal(1).invoke("opengroup", frame.getlocal(4)));
1231 frame.setlocal(17, frame.getglobal("_parse_sub").__call__(frame.getlocal(0), frame.getlocal(1)));
1232 if (frame.getlocal(0).invoke("match", s$63).__not__().__nonzero__()) {
1233 throw Py.makeException(frame.getglobal("error"), s$95);
1235 if (frame.getlocal(5)._isnot(frame.getglobal("None")).__nonzero__()) {
1236 frame.getlocal(1).invoke("closegroup", frame.getlocal(5));
1238 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("SUBPATTERN"), new PyTuple(new PyObject[] {frame.getlocal(5), frame.getlocal(17)})}));
1241 while (i$41.__nonzero__()) {
1242 frame.setlocal(15, frame.getlocal(0).invoke("get"));
1243 if (frame.getlocal(15)._is(frame.getglobal("None")).__nonzero__()) {
1244 throw Py.makeException(frame.getglobal("error"), s$92);
1246 if (frame.getlocal(15)._eq(s$63).__nonzero__()) {
1249 throw Py.makeException(frame.getglobal("error"), s$98);
1253 else if (frame.getlocal(3)._eq(s$67).__nonzero__()) {
1254 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("AT"), frame.getglobal("AT_BEGINNING")}));
1256 else if (frame.getlocal(3)._eq(s$99).__nonzero__()) {
1257 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("AT"), frame.getglobal("AT_END")}));
1259 else if (((t$0$PyObject = frame.getlocal(3)).__nonzero__() ? frame.getlocal(3).__getitem__(i$40)._eq(s$21) : t$0$PyObject).__nonzero__()) {
1260 frame.setlocal(2, frame.getglobal("_escape").__call__(frame.getlocal(0), frame.getlocal(3), frame.getlocal(1)));
1261 frame.getlocal(12).invoke("append", frame.getlocal(2));
1264 throw Py.makeException(frame.getglobal("error"), s$100);
1267 return frame.getlocal(12);
1270 private static PyObject parse$33(PyFrame frame) {
1271 // Temporary Variables
1272 PyObject t$0$PyObject;
1275 frame.setlocal(3, frame.getglobal("Tokenizer").__call__(frame.getlocal(0)));
1276 if (frame.getlocal(2)._is(frame.getglobal("None")).__nonzero__()) {
1277 frame.setlocal(2, frame.getglobal("Pattern").__call__());
1279 frame.getlocal(2).__setattr__("flags", frame.getlocal(1));
1280 frame.getlocal(2).__setattr__("str", frame.getlocal(0));
1281 frame.setlocal(4, frame.getglobal("_parse_sub").__call__(frame.getlocal(3), frame.getlocal(2), i$40));
1282 frame.setlocal(5, frame.getlocal(3).invoke("get"));
1283 if (frame.getlocal(5)._eq(s$63).__nonzero__()) {
1284 throw Py.makeException(frame.getglobal("error"), s$95);
1286 else if (frame.getlocal(5).__nonzero__()) {
1287 throw Py.makeException(frame.getglobal("error"), s$101);
1289 if (frame.getlocal(1)._and(frame.getglobal("SRE_FLAG_DEBUG")).__nonzero__()) {
1290 frame.getlocal(4).invoke("dump");
1292 if (((t$0$PyObject = frame.getlocal(1)._and(frame.getglobal("SRE_FLAG_VERBOSE")).__not__()).__nonzero__() ? frame.getlocal(4).__getattr__("pattern").__getattr__("flags")._and(frame.getglobal("SRE_FLAG_VERBOSE")) : t$0$PyObject).__nonzero__()) {
1293 return frame.getglobal("parse").__call__(frame.getlocal(0), frame.getlocal(4).__getattr__("pattern").__getattr__("flags"));
1295 return frame.getlocal(4);
1298 private static PyObject literal$34(PyFrame frame) {
1299 // Temporary Variables
1300 PyObject t$0$PyObject;
1303 if (((t$0$PyObject = frame.getlocal(1)).__nonzero__() ? frame.getlocal(1).__getitem__(i$41.__neg__()).__getitem__(i$40)._is(frame.getglobal("LITERAL")) : t$0$PyObject).__nonzero__()) {
1304 frame.getlocal(1).__setitem__(i$41.__neg__(), new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getlocal(1).__getitem__(i$41.__neg__()).__getitem__(i$41)._add(frame.getlocal(0))}));
1307 frame.getlocal(1).invoke("append", new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getlocal(0)}));
1312 private static PyObject parse_template$35(PyFrame frame) {
1313 // Temporary Variables
1315 PyObject[] t$0$PyObject__;
1316 PyException t$0$PyException, t$1$PyException;
1317 PyObject t$0$PyObject, t$1$PyObject;
1320 frame.setlocal(7, frame.getglobal("Tokenizer").__call__(frame.getlocal(0)));
1321 frame.setlocal(9, new PyList(new PyObject[] {}));
1322 frame.setlocal(15, frame.getlocal(9).__getattr__("append"));
1323 frame.setlocal(11, new PyFunction(frame.f_globals, new PyObject[] {frame.getlocal(9)}, c$33_literal));
1324 frame.setlocal(8, frame.getlocal(0).__getslice__(null, i$40, null));
1325 if (frame.getglobal("type").__call__(frame.getlocal(8))._is(frame.getglobal("type").__call__(s$76)).__nonzero__()) {
1326 frame.setlocal(13, frame.getglobal("chr"));
1329 frame.setlocal(13, frame.getglobal("unichr"));
1331 while (i$41.__nonzero__()) {
1332 frame.setlocal(3, frame.getlocal(7).invoke("get"));
1333 if (frame.getlocal(3)._is(frame.getglobal("None")).__nonzero__()) {
1336 if (((t$0$PyObject = frame.getlocal(3)).__nonzero__() ? frame.getlocal(3).__getitem__(i$40)._eq(s$21) : t$0$PyObject).__nonzero__()) {
1337 if (frame.getlocal(3)._eq(s$102).__nonzero__()) {
1338 frame.setlocal(16, s$76);
1339 if (frame.getlocal(7).invoke("match", s$86).__nonzero__()) {
1340 while (i$41.__nonzero__()) {
1341 frame.setlocal(13, frame.getlocal(7).invoke("get"));
1342 if (frame.getlocal(13)._is(frame.getglobal("None")).__nonzero__()) {
1343 throw Py.makeException(frame.getglobal("error"), s$103);
1345 if (frame.getlocal(13)._eq(s$88).__nonzero__()) {
1348 frame.setlocal(16, frame.getlocal(16)._add(frame.getlocal(13)));
1351 if (frame.getlocal(16).__not__().__nonzero__()) {
1352 throw Py.makeException(frame.getglobal("error"), s$104);
1355 frame.setlocal(5, frame.getglobal("atoi").__call__(frame.getlocal(16)));
1357 catch (Throwable x$0) {
1358 t$0$PyException = Py.setException(x$0, frame);
1359 if (Py.matchException(t$0$PyException, frame.getglobal("ValueError"))) {
1360 if (frame.getglobal("isname").__call__(frame.getlocal(16)).__not__().__nonzero__()) {
1361 throw Py.makeException(frame.getglobal("error"), s$89);
1364 frame.setlocal(5, frame.getlocal(1).__getattr__("groupindex").__getitem__(frame.getlocal(16)));
1366 catch (Throwable x$1) {
1367 t$1$PyException = Py.setException(x$1, frame);
1368 if (Py.matchException(t$1$PyException, frame.getglobal("KeyError"))) {
1369 throw Py.makeException(frame.getglobal("IndexError"), s$91);
1371 else throw t$1$PyException;
1374 else throw t$0$PyException;
1376 frame.getlocal(15).__call__(new PyTuple(new PyObject[] {frame.getglobal("MARK"), frame.getlocal(5)}));
1378 else if (((t$0$PyObject = frame.getglobal("len").__call__(frame.getlocal(3))._gt(i$41)).__nonzero__() ? frame.getlocal(3).__getitem__(i$41)._in(frame.getglobal("DIGITS")) : t$0$PyObject).__nonzero__()) {
1379 frame.setlocal(2, frame.getglobal("None"));
1380 while (i$41.__nonzero__()) {
1381 frame.setlocal(6, frame.getglobal("_group").__call__(frame.getlocal(3), frame.getlocal(1).__getattr__("groups")._add(i$41)));
1382 if (frame.getlocal(6).__nonzero__()) {
1383 if (((t$0$PyObject = frame.getlocal(7).__getattr__("next")._notin(frame.getglobal("DIGITS"))).__nonzero__() ? t$0$PyObject : frame.getglobal("_group").__call__(frame.getlocal(3)._add(frame.getlocal(7).__getattr__("next")), frame.getlocal(1).__getattr__("groups")._add(i$41)).__not__()).__nonzero__()) {
1384 frame.setlocal(2, new PyTuple(new PyObject[] {frame.getglobal("MARK"), frame.getlocal(6)}));
1388 else if (frame.getlocal(7).__getattr__("next")._in(frame.getglobal("OCTDIGITS")).__nonzero__()) {
1389 frame.setlocal(3, frame.getlocal(3)._add(frame.getlocal(7).invoke("get")));
1395 if (frame.getlocal(2).__not__().__nonzero__()) {
1396 frame.setlocal(3, frame.getlocal(3).__getslice__(i$41, null, null));
1397 frame.setlocal(2, new PyTuple(new PyObject[] {frame.getglobal("LITERAL"), frame.getlocal(13).__call__(frame.getglobal("atoi").__call__(frame.getlocal(3).__getslice__(i$105.__neg__(), null, null), i$39)._and(i$59))}));
1399 if (frame.getlocal(2).__getitem__(i$40)._is(frame.getglobal("LITERAL")).__nonzero__()) {
1400 frame.getlocal(11).__call__(frame.getlocal(2).__getitem__(i$41));
1403 frame.getlocal(15).__call__(frame.getlocal(2));
1408 frame.setlocal(3, frame.getlocal(13).__call__(frame.getglobal("ESCAPES").__getitem__(frame.getlocal(3)).__getitem__(i$41)));
1410 catch (Throwable x$2) {
1411 t$0$PyException = Py.setException(x$2, frame);
1412 if (Py.matchException(t$0$PyException, frame.getglobal("KeyError"))) {
1415 else throw t$0$PyException;
1417 frame.getlocal(11).__call__(frame.getlocal(3));
1421 frame.getlocal(11).__call__(frame.getlocal(3));
1424 frame.setlocal(10, i$40);
1425 frame.setlocal(12, new PyList(new PyObject[] {}));
1426 frame.setlocal(4, new PyList(new PyObject[] {}));
1428 t$1$PyObject = frame.getlocal(9);
1429 while ((t$0$PyObject = t$1$PyObject.__finditem__(t$0$int++)) != null) {
1430 t$0$PyObject__ = org.python.core.Py.unpackSequence(t$0$PyObject, 2);
1431 frame.setlocal(14, t$0$PyObject__[0]);
1432 frame.setlocal(7, t$0$PyObject__[1]);
1433 if (frame.getlocal(14)._is(frame.getglobal("MARK")).__nonzero__()) {
1434 frame.getlocal(12).invoke("append", new PyTuple(new PyObject[] {frame.getlocal(10), frame.getlocal(7)}));
1435 frame.getlocal(4).invoke("append", frame.getglobal("None"));
1438 frame.getlocal(4).invoke("append", frame.getlocal(7));
1440 frame.setlocal(10, frame.getlocal(10)._add(i$41));
1442 return new PyTuple(new PyObject[] {frame.getlocal(12), frame.getlocal(4)});
1445 private static PyObject expand_template$36(PyFrame frame) {
1446 // Temporary Variables
1448 PyObject[] t$0$PyObject__;
1449 PyException t$0$PyException;
1450 PyObject t$0$PyObject, t$1$PyObject, t$2$PyObject;
1453 frame.setlocal(4, frame.getlocal(1).__getattr__("group"));
1454 frame.setlocal(8, frame.getlocal(1).__getattr__("string").__getslice__(null, i$40, null));
1455 t$0$PyObject__ = org.python.core.Py.unpackSequence(frame.getlocal(0), 2);
1456 frame.setlocal(3, t$0$PyObject__[0]);
1457 frame.setlocal(2, t$0$PyObject__[1]);
1458 frame.setlocal(2, frame.getlocal(2).__getslice__(null, null, null));
1461 t$1$PyObject = frame.getlocal(3);
1462 while ((t$0$PyObject = t$1$PyObject.__finditem__(t$0$int++)) != null) {
1463 t$0$PyObject__ = org.python.core.Py.unpackSequence(t$0$PyObject, 2);
1464 frame.setlocal(5, t$0$PyObject__[0]);
1465 frame.setlocal(6, t$0$PyObject__[1]);
1466 t$2$PyObject = frame.getlocal(4).__call__(frame.getlocal(6));
1467 frame.getlocal(2).__setitem__(frame.getlocal(5), t$2$PyObject);
1468 frame.setlocal(7, t$2$PyObject);
1469 if (frame.getlocal(7)._is(frame.getglobal("None")).__nonzero__()) {
1470 throw Py.makeException(frame.getglobal("IndexError"));
1474 catch (Throwable x$0) {
1475 t$0$PyException = Py.setException(x$0, frame);
1476 if (Py.matchException(t$0$PyException, frame.getglobal("IndexError"))) {
1477 throw Py.makeException(frame.getglobal("error"), s$106);
1479 else throw t$0$PyException;
1481 return frame.getglobal("string").__getattr__("join").__call__(frame.getlocal(2), frame.getlocal(8));
1484 private static PyObject main$37(PyFrame frame) {
1485 frame.setglobal("__file__", s$107);
1487 // Temporary Variables
1488 PyException t$0$PyException;
1491 frame.setlocal("string", org.python.core.imp.importOne("string", frame));
1492 frame.setlocal("sys", org.python.core.imp.importOne("sys", frame));
1493 org.python.core.imp.importAll("sre_constants", frame);
1494 frame.setlocal("SPECIAL_CHARS", s$0);
1495 frame.setlocal("REPEAT_CHARS", s$1);
1496 frame.setlocal("DIGITS", frame.getname("tuple").__call__(s$2));
1497 frame.setlocal("OCTDIGITS", frame.getname("tuple").__call__(s$3));
1498 frame.setlocal("HEXDIGITS", frame.getname("tuple").__call__(s$4));
1499 frame.setlocal("WHITESPACE", frame.getname("tuple").__call__(s$5));
1500 frame.setlocal("ESCAPES", new PyDictionary(new PyObject[] {s$6, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$7)}), s$8, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$9)}), s$10, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$11)}), s$12, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$13)}), s$14, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$15)}), s$16, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$17)}), s$18, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$19)}), s$20, new PyTuple(new PyObject[] {frame.getname("LITERAL"), frame.getname("ord").__call__(s$21)})}));
1501 frame.setlocal("CATEGORIES", new PyDictionary(new PyObject[] {s$22, new PyTuple(new PyObject[] {frame.getname("AT"), frame.getname("AT_BEGINNING_STRING")}), s$8, new PyTuple(new PyObject[] {frame.getname("AT"), frame.getname("AT_BOUNDARY")}), s$23, new PyTuple(new PyObject[] {frame.getname("AT"), frame.getname("AT_NON_BOUNDARY")}), s$24, new PyTuple(new PyObject[] {frame.getname("IN"), new PyList(new PyObject[] {new PyTuple(new PyObject[] {frame.getname("CATEGORY"), frame.getname("CATEGORY_DIGIT")})})}), s$25, new PyTuple(new PyObject[] {frame.getname("IN"), new PyList(new PyObject[] {new PyTuple(new PyObject[] {frame.getname("CATEGORY"), frame.getname("CATEGORY_NOT_DIGIT")})})}), s$26, new PyTuple(new PyObject[] {frame.getname("IN"), new PyList(new PyObject[] {new PyTuple(new PyObject[] {frame.getname("CATEGORY"), frame.getname("CATEGORY_SPACE")})})}), s$27, new PyTuple(new PyObject[] {frame.getname("IN"), new PyList(new PyObject[] {new PyTuple(new PyObject[] {frame.getname("CATEGORY"), frame.getname("CATEGORY_NOT_SPACE")})})}), s$28, new PyTuple(new PyObject[] {frame.getname("IN"), new PyList(new PyObject[] {new PyTuple(new PyObject[] {frame.getname("CATEGORY"), frame.getname("CATEGORY_WORD")})})}), s$29, new PyTuple(new PyObject[] {frame.getname("IN"), new PyList(new PyObject[] {new PyTuple(new PyObject[] {frame.getname("CATEGORY"), frame.getname("CATEGORY_NOT_WORD")})})}), s$30, new PyTuple(new PyObject[] {frame.getname("AT"), frame.getname("AT_END_STRING")})}));
1502 frame.setlocal("FLAGS", new PyDictionary(new PyObject[] {s$31, frame.getname("SRE_FLAG_IGNORECASE"), s$32, frame.getname("SRE_FLAG_LOCALE"), s$33, frame.getname("SRE_FLAG_MULTILINE"), s$34, frame.getname("SRE_FLAG_DOTALL"), s$35, frame.getname("SRE_FLAG_VERBOSE"), s$36, frame.getname("SRE_FLAG_TEMPLATE"), s$37, frame.getname("SRE_FLAG_UNICODE")}));
1504 frame.getname("int").__call__(s$38, i$39);
1505 frame.setlocal("atoi", frame.getname("int"));
1507 catch (Throwable x$0) {
1508 t$0$PyException = Py.setException(x$0, frame);
1509 if (Py.matchException(t$0$PyException, frame.getname("TypeError"))) {
1510 frame.setlocal("atoi", frame.getname("string").__getattr__("atoi"));
1512 else throw t$0$PyException;
1514 frame.setlocal("Pattern", Py.makeClass("Pattern", new PyObject[] {}, c$4_Pattern, null));
1515 frame.setlocal("SubPattern", Py.makeClass("SubPattern", new PyObject[] {}, c$16_SubPattern, null));
1516 frame.setlocal("Tokenizer", Py.makeClass("Tokenizer", new PyObject[] {}, c$23_Tokenizer, null));
1517 frame.setlocal("isident", new PyFunction(frame.f_globals, new PyObject[] {}, c$24_isident));
1518 frame.setlocal("isdigit", new PyFunction(frame.f_globals, new PyObject[] {}, c$25_isdigit));
1519 frame.setlocal("isname", new PyFunction(frame.f_globals, new PyObject[] {}, c$26_isname));
1520 frame.setlocal("_group", new PyFunction(frame.f_globals, new PyObject[] {}, c$27__group));
1521 frame.setlocal("_class_escape", new PyFunction(frame.f_globals, new PyObject[] {}, c$28__class_escape));
1522 frame.setlocal("_escape", new PyFunction(frame.f_globals, new PyObject[] {}, c$29__escape));
1523 frame.setlocal("_parse_sub", new PyFunction(frame.f_globals, new PyObject[] {i$41}, c$30__parse_sub));
1524 frame.setlocal("_parse", new PyFunction(frame.f_globals, new PyObject[] {}, c$31__parse));
1525 frame.setlocal("parse", new PyFunction(frame.f_globals, new PyObject[] {i$40, frame.getname("None")}, c$32_parse));
1526 frame.setlocal("parse_template", new PyFunction(frame.f_globals, new PyObject[] {}, c$34_parse_template));
1527 frame.setlocal("expand_template", new PyFunction(frame.f_globals, new PyObject[] {}, c$35_expand_template));
1532 public static void moduleDictInit(PyObject dict) {
1533 dict.__setitem__("__name__", new PyString("sre_parse"));
1534 Py.runCode(new _PyInner().getMain(), dict, dict);
1537 public static void main(String[] args) throws java.lang.Exception {
1538 String[] newargs = new String[args.length+1];
1539 newargs[0] = "sre_parse";
1540 System.arraycopy(args, 0, newargs, 1, args.length);
1541 Py.runMain(sre_parse._PyInner.class, newargs, sre_parse.jpy$packages, sre_parse.jpy$mainProperties, "", new String[] {"string", "random", "util", "traceback", "sre_compile", "atexit", "sre", "sre_constants", "StringIO", "javaos", "socket", "yapm", "calendar", "repr", "copy_reg", "SocketServer", "server", "re", "linecache", "javapath", "UserDict", "copy", "threading", "stat", "PathVFS", "sre_parse"});