|
|
|
@ -19,7 +19,6 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
// Lexical states.
|
|
|
|
|
public static final int YYINITIAL = 0;
|
|
|
|
|
public static final int AFTER = 2;
|
|
|
|
|
public static final int STR = 4;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
|
|
|
|
@ -28,7 +27,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
* l is of the form l = 2*k, k a non negative integer
|
|
|
|
|
*/
|
|
|
|
|
private static final int ZZ_LEXSTATE[] = {
|
|
|
|
|
0, 0, 1, 1, 2, 2
|
|
|
|
|
0, 0, 1, 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -37,7 +36,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top();
|
|
|
|
|
|
|
|
|
|
private static final String ZZ_CMAP_TOP_PACKED_0 =
|
|
|
|
|
"\1\0\37\u0100\1\u0200\u10df\u0100";
|
|
|
|
|
"\1\0\u10ff\u0100";
|
|
|
|
|
|
|
|
|
|
private static int [] zzUnpackcmap_top() {
|
|
|
|
|
int [] result = new int[4352];
|
|
|
|
@ -65,19 +64,18 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks();
|
|
|
|
|
|
|
|
|
|
private static final String ZZ_CMAP_BLOCKS_PACKED_0 =
|
|
|
|
|
"\11\0\1\1\1\2\2\3\1\4\22\0\1\1\1\5"+
|
|
|
|
|
"\1\6\1\7\1\0\1\10\2\0\1\11\1\12\1\13"+
|
|
|
|
|
"\1\14\1\15\1\16\1\17\1\20\1\21\11\22\1\23"+
|
|
|
|
|
"\1\0\1\24\1\25\1\26\2\0\5\27\1\30\7\27"+
|
|
|
|
|
"\1\31\5\27\1\32\6\27\1\33\1\34\1\35\1\0"+
|
|
|
|
|
"\1\27\1\0\1\36\1\37\1\40\1\41\1\42\1\43"+
|
|
|
|
|
"\1\44\1\45\1\46\1\27\1\47\1\50\1\51\1\52"+
|
|
|
|
|
"\1\53\1\54\1\27\1\55\1\56\1\57\1\60\1\27"+
|
|
|
|
|
"\1\61\1\62\1\63\1\27\12\0\1\3\u01a2\0\2\3"+
|
|
|
|
|
"\326\0";
|
|
|
|
|
"\11\0\1\1\1\2\2\0\1\3\22\0\1\1\1\4"+
|
|
|
|
|
"\1\5\1\6\1\0\1\7\2\0\1\10\1\11\1\12"+
|
|
|
|
|
"\1\13\1\14\1\15\1\16\1\17\1\20\11\21\1\22"+
|
|
|
|
|
"\1\0\1\23\1\24\1\25\2\0\5\26\1\27\7\26"+
|
|
|
|
|
"\1\30\5\26\1\31\6\26\1\32\1\33\1\34\1\0"+
|
|
|
|
|
"\1\26\1\0\1\35\1\36\1\37\1\40\1\41\1\42"+
|
|
|
|
|
"\1\43\1\44\1\45\1\26\1\46\1\47\1\50\1\51"+
|
|
|
|
|
"\1\52\1\53\1\26\1\54\1\55\1\56\1\57\1\26"+
|
|
|
|
|
"\1\60\1\61\1\62\1\26\u0185\0";
|
|
|
|
|
|
|
|
|
|
private static int [] zzUnpackcmap_blocks() {
|
|
|
|
|
int [] result = new int[768];
|
|
|
|
|
int [] result = new int[512];
|
|
|
|
|
int offset = 0;
|
|
|
|
|
offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result);
|
|
|
|
|
return result;
|
|
|
|
@ -101,22 +99,21 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
private static final int [] ZZ_ACTION = zzUnpackAction();
|
|
|
|
|
|
|
|
|
|
private static final String ZZ_ACTION_PACKED_0 =
|
|
|
|
|
"\2\0\1\1\1\2\1\3\2\4\1\5\1\6\1\7"+
|
|
|
|
|
"\2\10\1\6\1\11\1\7\1\12\1\13\1\14\1\15"+
|
|
|
|
|
"\1\16\1\17\1\20\1\21\1\22\2\23\1\24\1\25"+
|
|
|
|
|
"\1\26\1\27\4\30\1\31\1\32\20\30\1\1\1\33"+
|
|
|
|
|
"\1\6\1\34\1\35\1\22\1\36\1\37\1\40\4\30"+
|
|
|
|
|
"\1\41\13\30\1\42\1\30\1\43\1\44\2\30\1\45"+
|
|
|
|
|
"\7\30\1\0\2\46\3\30\1\47\5\30\1\50\1\51"+
|
|
|
|
|
"\4\30\1\52\5\30\1\53\3\30\1\54\4\30\1\55"+
|
|
|
|
|
"\1\56\5\30\1\57\1\60\2\30\1\61\4\30\1\62"+
|
|
|
|
|
"\3\30\1\63\1\30\1\64\1\30\1\65\1\66\1\67"+
|
|
|
|
|
"\7\30\1\70\1\30\1\71\1\72\1\73\1\30\1\74"+
|
|
|
|
|
"\1\30\1\75\1\76\1\77\1\30\1\100\1\30\1\101"+
|
|
|
|
|
"\1\30\1\102\1\103";
|
|
|
|
|
"\2\0\1\1\1\2\2\3\1\4\1\5\1\6\2\7"+
|
|
|
|
|
"\2\5\1\6\1\10\1\11\1\12\1\13\1\14\1\15"+
|
|
|
|
|
"\1\16\1\17\1\20\2\21\1\22\1\23\1\24\1\25"+
|
|
|
|
|
"\4\26\1\27\1\30\20\26\1\31\1\0\1\32\1\0"+
|
|
|
|
|
"\1\33\1\20\1\34\1\35\1\36\4\26\1\37\13\26"+
|
|
|
|
|
"\1\40\1\26\1\41\1\42\2\26\1\43\12\26\1\44"+
|
|
|
|
|
"\5\26\1\45\1\46\4\26\1\47\5\26\1\50\3\26"+
|
|
|
|
|
"\1\51\4\26\1\52\1\53\5\26\1\54\1\55\2\26"+
|
|
|
|
|
"\1\56\4\26\1\57\3\26\1\60\1\26\1\61\1\26"+
|
|
|
|
|
"\1\62\1\63\1\64\7\26\1\65\1\26\1\66\1\67"+
|
|
|
|
|
"\1\70\1\26\1\71\1\26\1\72\1\73\1\74\1\26"+
|
|
|
|
|
"\1\75\1\26\1\76\1\26\1\77\1\100";
|
|
|
|
|
|
|
|
|
|
private static int [] zzUnpackAction() {
|
|
|
|
|
int [] result = new int[176];
|
|
|
|
|
int [] result = new int[172];
|
|
|
|
|
int offset = 0;
|
|
|
|
|
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
|
|
|
|
|
return result;
|
|
|
|
@ -141,31 +138,31 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
|
|
|
|
|
|
|
|
|
|
private static final String ZZ_ROWMAP_PACKED_0 =
|
|
|
|
|
"\0\0\0\64\0\150\0\234\0\234\0\234\0\320\0\u0104"+
|
|
|
|
|
"\0\234\0\234\0\234\0\u0138\0\u016c\0\234\0\u01a0\0\234"+
|
|
|
|
|
"\0\234\0\234\0\234\0\234\0\234\0\u01d4\0\234\0\u0208"+
|
|
|
|
|
"\0\234\0\u023c\0\234\0\u0270\0\u02a4\0\u02d8\0\u030c\0\u0340"+
|
|
|
|
|
"\0\u0374\0\u03a8\0\234\0\234\0\u03dc\0\u0410\0\u0444\0\u0478"+
|
|
|
|
|
"\0\u04ac\0\u04e0\0\u0514\0\u0548\0\u057c\0\u05b0\0\u05e4\0\u0618"+
|
|
|
|
|
"\0\u064c\0\u0680\0\u06b4\0\u06e8\0\u071c\0\234\0\u0750\0\234"+
|
|
|
|
|
"\0\234\0\234\0\234\0\234\0\234\0\u0784\0\u07b8\0\u07ec"+
|
|
|
|
|
"\0\u0820\0\u0854\0\u0888\0\u08bc\0\u08f0\0\u0924\0\u0958\0\u098c"+
|
|
|
|
|
"\0\u09c0\0\u09f4\0\u0a28\0\u0a5c\0\u0a90\0\u030c\0\u0ac4\0\u030c"+
|
|
|
|
|
"\0\u030c\0\u0af8\0\u0b2c\0\u030c\0\u0b60\0\u0b94\0\u0bc8\0\u0bfc"+
|
|
|
|
|
"\0\u0c30\0\u0c64\0\u0c98\0\u0ccc\0\234\0\u0d00\0\u0d34\0\u0d68"+
|
|
|
|
|
"\0\u0d9c\0\u030c\0\u0dd0\0\u0e04\0\u0e38\0\u0e6c\0\u0ea0\0\u030c"+
|
|
|
|
|
"\0\u030c\0\u0ed4\0\u0f08\0\u0f3c\0\u0f70\0\u030c\0\u0fa4\0\u0fd8"+
|
|
|
|
|
"\0\u100c\0\u1040\0\u1074\0\u030c\0\u10a8\0\u10dc\0\u1110\0\u030c"+
|
|
|
|
|
"\0\u1144\0\u1178\0\u11ac\0\u11e0\0\u030c\0\u030c\0\u1214\0\u1248"+
|
|
|
|
|
"\0\u127c\0\u12b0\0\u12e4\0\u030c\0\u030c\0\u1318\0\u134c\0\u030c"+
|
|
|
|
|
"\0\u1380\0\u13b4\0\u13e8\0\u141c\0\u030c\0\u1450\0\u1484\0\u14b8"+
|
|
|
|
|
"\0\u030c\0\u14ec\0\u030c\0\u1520\0\u030c\0\u030c\0\u030c\0\u1554"+
|
|
|
|
|
"\0\u1588\0\u15bc\0\u15f0\0\u1624\0\u1658\0\u168c\0\u030c\0\u16c0"+
|
|
|
|
|
"\0\u030c\0\u030c\0\u030c\0\u16f4\0\u030c\0\u1728\0\u030c\0\u030c"+
|
|
|
|
|
"\0\u030c\0\u175c\0\u030c\0\u1790\0\u030c\0\u17c4\0\u030c\0\u030c";
|
|
|
|
|
"\0\0\0\63\0\146\0\146\0\146\0\231\0\314\0\146"+
|
|
|
|
|
"\0\146\0\146\0\377\0\u0132\0\u0165\0\u0198\0\146\0\146"+
|
|
|
|
|
"\0\146\0\146\0\146\0\146\0\u01cb\0\146\0\u01fe\0\146"+
|
|
|
|
|
"\0\u0231\0\146\0\u0264\0\u0297\0\u02ca\0\u02fd\0\u0330\0\u0363"+
|
|
|
|
|
"\0\u0396\0\146\0\146\0\u03c9\0\u03fc\0\u042f\0\u0462\0\u0495"+
|
|
|
|
|
"\0\u04c8\0\u04fb\0\u052e\0\u0561\0\u0594\0\u05c7\0\u05fa\0\u062d"+
|
|
|
|
|
"\0\u0660\0\u0693\0\u06c6\0\146\0\u0165\0\146\0\u06f9\0\146"+
|
|
|
|
|
"\0\146\0\146\0\146\0\146\0\u072c\0\u075f\0\u0792\0\u07c5"+
|
|
|
|
|
"\0\u07f8\0\u082b\0\u085e\0\u0891\0\u08c4\0\u08f7\0\u092a\0\u095d"+
|
|
|
|
|
"\0\u0990\0\u09c3\0\u09f6\0\u0a29\0\u02fd\0\u0a5c\0\u02fd\0\u02fd"+
|
|
|
|
|
"\0\u0a8f\0\u0ac2\0\u02fd\0\u0af5\0\u0b28\0\u0b5b\0\u0b8e\0\u0bc1"+
|
|
|
|
|
"\0\u0bf4\0\u0c27\0\u0c5a\0\u0c8d\0\u0cc0\0\u02fd\0\u0cf3\0\u0d26"+
|
|
|
|
|
"\0\u0d59\0\u0d8c\0\u0dbf\0\u02fd\0\u02fd\0\u0df2\0\u0e25\0\u0e58"+
|
|
|
|
|
"\0\u0e8b\0\u02fd\0\u0ebe\0\u0ef1\0\u0f24\0\u0f57\0\u0f8a\0\u02fd"+
|
|
|
|
|
"\0\u0fbd\0\u0ff0\0\u1023\0\u02fd\0\u1056\0\u1089\0\u10bc\0\u10ef"+
|
|
|
|
|
"\0\u02fd\0\u02fd\0\u1122\0\u1155\0\u1188\0\u11bb\0\u11ee\0\u02fd"+
|
|
|
|
|
"\0\u02fd\0\u1221\0\u1254\0\u02fd\0\u1287\0\u12ba\0\u12ed\0\u1320"+
|
|
|
|
|
"\0\u02fd\0\u1353\0\u1386\0\u13b9\0\u02fd\0\u13ec\0\u02fd\0\u141f"+
|
|
|
|
|
"\0\u02fd\0\u02fd\0\u02fd\0\u1452\0\u1485\0\u14b8\0\u14eb\0\u151e"+
|
|
|
|
|
"\0\u1551\0\u1584\0\u02fd\0\u15b7\0\u02fd\0\u02fd\0\u02fd\0\u15ea"+
|
|
|
|
|
"\0\u02fd\0\u161d\0\u02fd\0\u02fd\0\u02fd\0\u1650\0\u02fd\0\u1683"+
|
|
|
|
|
"\0\u02fd\0\u16b6\0\u02fd\0\u02fd";
|
|
|
|
|
|
|
|
|
|
private static int [] zzUnpackRowMap() {
|
|
|
|
|
int [] result = new int[176];
|
|
|
|
|
int [] result = new int[172];
|
|
|
|
|
int offset = 0;
|
|
|
|
|
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
|
|
|
|
|
return result;
|
|
|
|
@ -188,101 +185,97 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
private static final int [] ZZ_TRANS = zzUnpackTrans();
|
|
|
|
|
|
|
|
|
|
private static final String ZZ_TRANS_PACKED_0 =
|
|
|
|
|
"\1\4\1\5\1\6\1\4\1\7\2\4\1\10\54\4"+
|
|
|
|
|
"\1\11\1\12\1\13\1\11\1\14\1\15\1\16\1\17"+
|
|
|
|
|
"\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27"+
|
|
|
|
|
"\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37"+
|
|
|
|
|
"\1\40\1\41\1\42\1\43\1\11\1\44\1\45\1\46"+
|
|
|
|
|
"\1\47\1\50\1\51\1\52\1\53\1\37\1\54\1\37"+
|
|
|
|
|
"\1\55\1\37\1\56\1\57\1\60\1\61\1\37\1\62"+
|
|
|
|
|
"\1\37\1\63\1\37\1\64\6\65\1\66\25\65\1\67"+
|
|
|
|
|
"\27\65\66\0\1\6\61\0\2\10\1\0\1\10\1\0"+
|
|
|
|
|
"\57\10\2\0\1\13\106\0\1\70\36\0\2\17\1\0"+
|
|
|
|
|
"\1\17\1\0\57\17\26\0\1\71\55\0\1\72\64\0"+
|
|
|
|
|
"\2\32\66\0\1\73\63\0\1\74\63\0\1\75\65\0"+
|
|
|
|
|
"\4\37\3\0\26\37\27\0\4\37\3\0\1\76\25\37"+
|
|
|
|
|
"\27\0\4\37\3\0\15\37\1\77\10\37\27\0\4\37"+
|
|
|
|
|
"\3\0\17\37\1\100\6\37\27\0\4\37\3\0\14\37"+
|
|
|
|
|
"\1\101\3\37\1\102\2\37\1\103\2\37\27\0\4\37"+
|
|
|
|
|
"\3\0\17\37\1\104\6\37\27\0\4\37\3\0\12\37"+
|
|
|
|
|
"\1\105\2\37\1\106\10\37\27\0\4\37\3\0\4\37"+
|
|
|
|
|
"\1\107\21\37\27\0\4\37\3\0\12\37\1\110\11\37"+
|
|
|
|
|
"\1\111\1\37\27\0\4\37\3\0\10\37\1\112\4\37"+
|
|
|
|
|
"\1\113\1\37\1\114\6\37\27\0\4\37\3\0\12\37"+
|
|
|
|
|
"\1\115\13\37\27\0\4\37\3\0\5\37\1\116\5\37"+
|
|
|
|
|
"\1\117\1\120\3\37\1\121\5\37\27\0\4\37\3\0"+
|
|
|
|
|
"\1\122\25\37\27\0\4\37\3\0\15\37\1\123\10\37"+
|
|
|
|
|
"\27\0\4\37\3\0\17\37\1\124\6\37\27\0\4\37"+
|
|
|
|
|
"\3\0\1\125\25\37\27\0\4\37\3\0\1\126\3\37"+
|
|
|
|
|
"\1\127\21\37\27\0\4\37\3\0\17\37\1\130\6\37"+
|
|
|
|
|
"\27\0\4\37\3\0\7\37\1\131\1\132\15\37\27\0"+
|
|
|
|
|
"\4\37\3\0\10\37\1\133\15\37\6\65\1\0\25\65"+
|
|
|
|
|
"\1\134\27\65\2\0\2\135\1\136\1\0\1\65\25\0"+
|
|
|
|
|
"\1\65\15\0\1\65\2\0\1\65\1\0\1\65\33\0"+
|
|
|
|
|
"\4\37\3\0\12\37\1\137\13\37\27\0\4\37\3\0"+
|
|
|
|
|
"\14\37\1\140\11\37\27\0\4\37\3\0\22\37\1\141"+
|
|
|
|
|
"\3\37\27\0\4\37\3\0\3\37\1\142\22\37\27\0"+
|
|
|
|
|
"\4\37\3\0\20\37\1\143\5\37\27\0\4\37\3\0"+
|
|
|
|
|
"\1\144\25\37\27\0\4\37\3\0\4\37\1\145\21\37"+
|
|
|
|
|
"\27\0\4\37\3\0\1\146\25\37\27\0\4\37\3\0"+
|
|
|
|
|
"\14\37\1\147\11\37\27\0\4\37\3\0\5\37\1\150"+
|
|
|
|
|
"\4\37\1\151\13\37\27\0\4\37\3\0\10\37\1\152"+
|
|
|
|
|
"\7\37\1\153\5\37\27\0\4\37\3\0\2\37\1\154"+
|
|
|
|
|
"\23\37\27\0\4\37\3\0\14\37\1\155\11\37\27\0"+
|
|
|
|
|
"\4\37\3\0\17\37\1\156\6\37\27\0\4\37\3\0"+
|
|
|
|
|
"\15\37\1\157\10\37\27\0\4\37\3\0\15\37\1\160"+
|
|
|
|
|
"\10\37\27\0\4\37\3\0\16\37\1\161\7\37\27\0"+
|
|
|
|
|
"\4\37\3\0\13\37\1\162\12\37\27\0\4\37\3\0"+
|
|
|
|
|
"\14\37\1\163\4\37\1\164\4\37\27\0\4\37\3\0"+
|
|
|
|
|
"\20\37\1\165\5\37\27\0\4\37\3\0\10\37\1\166"+
|
|
|
|
|
"\15\37\27\0\4\37\3\0\21\37\1\167\4\37\27\0"+
|
|
|
|
|
"\4\37\3\0\25\37\1\170\27\0\4\37\3\0\10\37"+
|
|
|
|
|
"\1\171\15\37\27\0\4\37\3\0\21\37\1\172\4\37"+
|
|
|
|
|
"\27\0\4\37\3\0\4\37\1\173\21\37\6\0\1\65"+
|
|
|
|
|
"\25\0\1\65\15\0\1\65\2\0\1\65\1\0\1\65"+
|
|
|
|
|
"\6\0\1\135\110\0\4\37\3\0\20\37\1\174\5\37"+
|
|
|
|
|
"\27\0\4\37\3\0\4\37\1\175\21\37\27\0\4\37"+
|
|
|
|
|
"\3\0\4\37\1\176\21\37\27\0\4\37\3\0\4\37"+
|
|
|
|
|
"\1\177\21\37\27\0\4\37\3\0\10\37\1\200\15\37"+
|
|
|
|
|
"\27\0\4\37\3\0\1\201\25\37\27\0\4\37\3\0"+
|
|
|
|
|
"\20\37\1\202\5\37\27\0\4\37\3\0\21\37\1\203"+
|
|
|
|
|
"\4\37\27\0\4\37\3\0\5\37\1\204\20\37\27\0"+
|
|
|
|
|
"\4\37\3\0\4\37\1\205\21\37\27\0\4\37\3\0"+
|
|
|
|
|
"\4\37\1\206\21\37\27\0\4\37\3\0\1\207\25\37"+
|
|
|
|
|
"\27\0\4\37\3\0\13\37\1\210\12\37\27\0\4\37"+
|
|
|
|
|
"\3\0\1\37\1\211\24\37\27\0\4\37\3\0\15\37"+
|
|
|
|
|
"\1\212\10\37\27\0\4\37\3\0\1\37\1\213\24\37"+
|
|
|
|
|
"\27\0\4\37\3\0\12\37\1\214\13\37\27\0\4\37"+
|
|
|
|
|
"\3\0\20\37\1\215\5\37\27\0\4\37\3\0\20\37"+
|
|
|
|
|
"\1\216\5\37\27\0\4\37\3\0\22\37\1\217\3\37"+
|
|
|
|
|
"\27\0\4\37\3\0\12\37\1\220\13\37\27\0\4\37"+
|
|
|
|
|
"\3\0\7\37\1\221\16\37\27\0\4\37\3\0\12\37"+
|
|
|
|
|
"\1\222\13\37\27\0\4\37\3\0\4\37\1\223\21\37"+
|
|
|
|
|
"\27\0\4\37\3\0\17\37\1\224\6\37\27\0\4\37"+
|
|
|
|
|
"\3\0\21\37\1\225\4\37\27\0\4\37\3\0\11\37"+
|
|
|
|
|
"\1\226\14\37\27\0\4\37\3\0\20\37\1\227\5\37"+
|
|
|
|
|
"\27\0\4\37\3\0\10\37\1\230\15\37\27\0\4\37"+
|
|
|
|
|
"\3\0\16\37\1\231\7\37\27\0\4\37\3\0\12\37"+
|
|
|
|
|
"\1\232\13\37\27\0\4\37\3\0\1\233\25\37\27\0"+
|
|
|
|
|
"\4\37\3\0\17\37\1\234\6\37\27\0\4\37\3\0"+
|
|
|
|
|
"\3\37\1\235\22\37\27\0\4\37\3\0\15\37\1\236"+
|
|
|
|
|
"\10\37\27\0\4\37\3\0\4\37\1\237\21\37\27\0"+
|
|
|
|
|
"\4\37\3\0\17\37\1\240\6\37\27\0\4\37\3\0"+
|
|
|
|
|
"\4\37\1\241\21\37\27\0\4\37\3\0\3\37\1\242"+
|
|
|
|
|
"\22\37\27\0\4\37\3\0\21\37\1\243\4\37\27\0"+
|
|
|
|
|
"\4\37\3\0\14\37\1\244\11\37\27\0\4\37\3\0"+
|
|
|
|
|
"\21\37\1\245\4\37\27\0\4\37\3\0\12\37\1\246"+
|
|
|
|
|
"\13\37\27\0\4\37\3\0\12\37\1\247\13\37\27\0"+
|
|
|
|
|
"\4\37\3\0\21\37\1\250\4\37\27\0\4\37\3\0"+
|
|
|
|
|
"\1\251\25\37\27\0\4\37\3\0\2\37\1\252\23\37"+
|
|
|
|
|
"\27\0\4\37\3\0\14\37\1\253\11\37\27\0\4\37"+
|
|
|
|
|
"\3\0\22\37\1\254\3\37\27\0\4\37\3\0\25\37"+
|
|
|
|
|
"\1\255\27\0\4\37\3\0\1\256\25\37\27\0\4\37"+
|
|
|
|
|
"\3\0\4\37\1\257\21\37\27\0\4\37\3\0\12\37"+
|
|
|
|
|
"\1\260\13\37";
|
|
|
|
|
"\1\3\1\4\1\5\1\6\2\3\1\7\54\3\1\10"+
|
|
|
|
|
"\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20"+
|
|
|
|
|
"\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30"+
|
|
|
|
|
"\1\31\1\32\1\33\1\34\1\35\1\36\1\37\1\40"+
|
|
|
|
|
"\1\41\1\42\1\10\1\43\1\44\1\45\1\46\1\47"+
|
|
|
|
|
"\1\50\1\51\1\52\1\36\1\53\1\36\1\54\1\36"+
|
|
|
|
|
"\1\55\1\56\1\57\1\60\1\36\1\61\1\36\1\62"+
|
|
|
|
|
"\1\36\1\63\65\0\1\5\60\0\2\7\2\0\57\7"+
|
|
|
|
|
"\2\0\1\12\104\0\1\64\36\0\5\65\1\66\25\65"+
|
|
|
|
|
"\1\67\27\65\2\16\2\0\57\16\25\0\1\70\54\0"+
|
|
|
|
|
"\1\71\63\0\2\31\65\0\1\72\62\0\1\73\62\0"+
|
|
|
|
|
"\1\74\64\0\4\36\3\0\26\36\26\0\4\36\3\0"+
|
|
|
|
|
"\1\75\25\36\26\0\4\36\3\0\15\36\1\76\10\36"+
|
|
|
|
|
"\26\0\4\36\3\0\17\36\1\77\6\36\26\0\4\36"+
|
|
|
|
|
"\3\0\14\36\1\100\3\36\1\101\2\36\1\102\2\36"+
|
|
|
|
|
"\26\0\4\36\3\0\17\36\1\103\6\36\26\0\4\36"+
|
|
|
|
|
"\3\0\12\36\1\104\2\36\1\105\10\36\26\0\4\36"+
|
|
|
|
|
"\3\0\4\36\1\106\21\36\26\0\4\36\3\0\12\36"+
|
|
|
|
|
"\1\107\11\36\1\110\1\36\26\0\4\36\3\0\10\36"+
|
|
|
|
|
"\1\111\4\36\1\112\1\36\1\113\6\36\26\0\4\36"+
|
|
|
|
|
"\3\0\12\36\1\114\13\36\26\0\4\36\3\0\5\36"+
|
|
|
|
|
"\1\115\5\36\1\116\1\117\3\36\1\120\5\36\26\0"+
|
|
|
|
|
"\4\36\3\0\1\121\25\36\26\0\4\36\3\0\15\36"+
|
|
|
|
|
"\1\122\10\36\26\0\4\36\3\0\17\36\1\123\6\36"+
|
|
|
|
|
"\26\0\4\36\3\0\1\124\25\36\26\0\4\36\3\0"+
|
|
|
|
|
"\1\125\3\36\1\126\21\36\26\0\4\36\3\0\17\36"+
|
|
|
|
|
"\1\127\6\36\26\0\4\36\3\0\7\36\1\130\1\131"+
|
|
|
|
|
"\15\36\26\0\4\36\3\0\10\36\1\132\15\36\5\0"+
|
|
|
|
|
"\1\65\25\0\1\65\15\0\1\65\2\0\1\65\1\0"+
|
|
|
|
|
"\1\65\32\0\4\36\3\0\12\36\1\133\13\36\26\0"+
|
|
|
|
|
"\4\36\3\0\14\36\1\134\11\36\26\0\4\36\3\0"+
|
|
|
|
|
"\22\36\1\135\3\36\26\0\4\36\3\0\3\36\1\136"+
|
|
|
|
|
"\22\36\26\0\4\36\3\0\20\36\1\137\5\36\26\0"+
|
|
|
|
|
"\4\36\3\0\1\140\25\36\26\0\4\36\3\0\4\36"+
|
|
|
|
|
"\1\141\21\36\26\0\4\36\3\0\1\142\25\36\26\0"+
|
|
|
|
|
"\4\36\3\0\14\36\1\143\11\36\26\0\4\36\3\0"+
|
|
|
|
|
"\5\36\1\144\4\36\1\145\13\36\26\0\4\36\3\0"+
|
|
|
|
|
"\10\36\1\146\7\36\1\147\5\36\26\0\4\36\3\0"+
|
|
|
|
|
"\2\36\1\150\23\36\26\0\4\36\3\0\14\36\1\151"+
|
|
|
|
|
"\11\36\26\0\4\36\3\0\17\36\1\152\6\36\26\0"+
|
|
|
|
|
"\4\36\3\0\15\36\1\153\10\36\26\0\4\36\3\0"+
|
|
|
|
|
"\15\36\1\154\10\36\26\0\4\36\3\0\16\36\1\155"+
|
|
|
|
|
"\7\36\26\0\4\36\3\0\13\36\1\156\12\36\26\0"+
|
|
|
|
|
"\4\36\3\0\14\36\1\157\4\36\1\160\4\36\26\0"+
|
|
|
|
|
"\4\36\3\0\20\36\1\161\5\36\26\0\4\36\3\0"+
|
|
|
|
|
"\10\36\1\162\15\36\26\0\4\36\3\0\21\36\1\163"+
|
|
|
|
|
"\4\36\26\0\4\36\3\0\25\36\1\164\26\0\4\36"+
|
|
|
|
|
"\3\0\10\36\1\165\15\36\26\0\4\36\3\0\21\36"+
|
|
|
|
|
"\1\166\4\36\26\0\4\36\3\0\4\36\1\167\21\36"+
|
|
|
|
|
"\26\0\4\36\3\0\20\36\1\170\5\36\26\0\4\36"+
|
|
|
|
|
"\3\0\4\36\1\171\21\36\26\0\4\36\3\0\4\36"+
|
|
|
|
|
"\1\172\21\36\26\0\4\36\3\0\4\36\1\173\21\36"+
|
|
|
|
|
"\26\0\4\36\3\0\10\36\1\174\15\36\26\0\4\36"+
|
|
|
|
|
"\3\0\1\175\25\36\26\0\4\36\3\0\20\36\1\176"+
|
|
|
|
|
"\5\36\26\0\4\36\3\0\21\36\1\177\4\36\26\0"+
|
|
|
|
|
"\4\36\3\0\5\36\1\200\20\36\26\0\4\36\3\0"+
|
|
|
|
|
"\4\36\1\201\21\36\26\0\4\36\3\0\4\36\1\202"+
|
|
|
|
|
"\21\36\26\0\4\36\3\0\1\203\25\36\26\0\4\36"+
|
|
|
|
|
"\3\0\13\36\1\204\12\36\26\0\4\36\3\0\1\36"+
|
|
|
|
|
"\1\205\24\36\26\0\4\36\3\0\15\36\1\206\10\36"+
|
|
|
|
|
"\26\0\4\36\3\0\1\36\1\207\24\36\26\0\4\36"+
|
|
|
|
|
"\3\0\12\36\1\210\13\36\26\0\4\36\3\0\20\36"+
|
|
|
|
|
"\1\211\5\36\26\0\4\36\3\0\20\36\1\212\5\36"+
|
|
|
|
|
"\26\0\4\36\3\0\22\36\1\213\3\36\26\0\4\36"+
|
|
|
|
|
"\3\0\12\36\1\214\13\36\26\0\4\36\3\0\7\36"+
|
|
|
|
|
"\1\215\16\36\26\0\4\36\3\0\12\36\1\216\13\36"+
|
|
|
|
|
"\26\0\4\36\3\0\4\36\1\217\21\36\26\0\4\36"+
|
|
|
|
|
"\3\0\17\36\1\220\6\36\26\0\4\36\3\0\21\36"+
|
|
|
|
|
"\1\221\4\36\26\0\4\36\3\0\11\36\1\222\14\36"+
|
|
|
|
|
"\26\0\4\36\3\0\20\36\1\223\5\36\26\0\4\36"+
|
|
|
|
|
"\3\0\10\36\1\224\15\36\26\0\4\36\3\0\16\36"+
|
|
|
|
|
"\1\225\7\36\26\0\4\36\3\0\12\36\1\226\13\36"+
|
|
|
|
|
"\26\0\4\36\3\0\1\227\25\36\26\0\4\36\3\0"+
|
|
|
|
|
"\17\36\1\230\6\36\26\0\4\36\3\0\3\36\1\231"+
|
|
|
|
|
"\22\36\26\0\4\36\3\0\15\36\1\232\10\36\26\0"+
|
|
|
|
|
"\4\36\3\0\4\36\1\233\21\36\26\0\4\36\3\0"+
|
|
|
|
|
"\17\36\1\234\6\36\26\0\4\36\3\0\4\36\1\235"+
|
|
|
|
|
"\21\36\26\0\4\36\3\0\3\36\1\236\22\36\26\0"+
|
|
|
|
|
"\4\36\3\0\21\36\1\237\4\36\26\0\4\36\3\0"+
|
|
|
|
|
"\14\36\1\240\11\36\26\0\4\36\3\0\21\36\1\241"+
|
|
|
|
|
"\4\36\26\0\4\36\3\0\12\36\1\242\13\36\26\0"+
|
|
|
|
|
"\4\36\3\0\12\36\1\243\13\36\26\0\4\36\3\0"+
|
|
|
|
|
"\21\36\1\244\4\36\26\0\4\36\3\0\1\245\25\36"+
|
|
|
|
|
"\26\0\4\36\3\0\2\36\1\246\23\36\26\0\4\36"+
|
|
|
|
|
"\3\0\14\36\1\247\11\36\26\0\4\36\3\0\22\36"+
|
|
|
|
|
"\1\250\3\36\26\0\4\36\3\0\25\36\1\251\26\0"+
|
|
|
|
|
"\4\36\3\0\1\252\25\36\26\0\4\36\3\0\4\36"+
|
|
|
|
|
"\1\253\21\36\26\0\4\36\3\0\12\36\1\254\13\36";
|
|
|
|
|
|
|
|
|
|
private static int [] zzUnpackTrans() {
|
|
|
|
|
int [] result = new int[6136];
|
|
|
|
|
int [] result = new int[5865];
|
|
|
|
|
int offset = 0;
|
|
|
|
|
offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
|
|
|
|
|
return result;
|
|
|
|
@ -325,13 +318,12 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
|
|
|
|
|
|
|
|
|
|
private static final String ZZ_ATTRIBUTE_PACKED_0 =
|
|
|
|
|
"\2\0\1\1\3\11\2\1\3\11\2\1\1\11\1\1"+
|
|
|
|
|
"\6\11\1\1\1\11\1\1\1\11\1\1\1\11\7\1"+
|
|
|
|
|
"\2\11\21\1\1\11\1\1\6\11\36\1\1\0\1\11"+
|
|
|
|
|
"\123\1";
|
|
|
|
|
"\2\0\3\11\2\1\3\11\4\1\6\11\1\1\1\11"+
|
|
|
|
|
"\1\1\1\11\1\1\1\11\7\1\2\11\20\1\1\11"+
|
|
|
|
|
"\1\0\1\11\1\0\5\11\160\1";
|
|
|
|
|
|
|
|
|
|
private static int [] zzUnpackAttribute() {
|
|
|
|
|
int [] result = new int[176];
|
|
|
|
|
int [] result = new int[172];
|
|
|
|
|
int offset = 0;
|
|
|
|
|
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
|
|
|
|
|
return result;
|
|
|
|
@ -419,7 +411,6 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
/** Producer of token-related values for the parser. */
|
|
|
|
|
final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory();
|
|
|
|
|
private int currIndent = 0;
|
|
|
|
|
private int currString = "";
|
|
|
|
|
private ArrayList<Integer> stack = new ArrayList<Integer>(20);
|
|
|
|
|
/** Return a terminal symbol of syntactic category TYPE and no
|
|
|
|
|
* semantic value at the current source location. */
|
|
|
|
@ -843,11 +834,6 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
else {
|
|
|
|
|
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
|
|
|
|
|
case 1:
|
|
|
|
|
{ currString+=yytext();
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 68: break;
|
|
|
|
|
case 2:
|
|
|
|
|
{ yypushback(1);
|
|
|
|
|
if(top() > currIndent)
|
|
|
|
|
{
|
|
|
|
@ -862,8 +848,8 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 69: break;
|
|
|
|
|
case 3:
|
|
|
|
|
case 65: break;
|
|
|
|
|
case 2:
|
|
|
|
|
{ String space = yytext();
|
|
|
|
|
if(space == "\t")
|
|
|
|
|
currIndent += 8;
|
|
|
|
@ -871,331 +857,318 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner {
|
|
|
|
|
currIndent ++;
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 70: break;
|
|
|
|
|
case 4:
|
|
|
|
|
case 66: break;
|
|
|
|
|
case 3:
|
|
|
|
|
{ currIndent = 0;
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 71: break;
|
|
|
|
|
case 5:
|
|
|
|
|
case 67: break;
|
|
|
|
|
case 4:
|
|
|
|
|
{ /* ignored */
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 72: break;
|
|
|
|
|
case 6:
|
|
|
|
|
case 68: break;
|
|
|
|
|
case 5:
|
|
|
|
|
{ return symbol(ChocoPyTokens.UNRECOGNIZED);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 73: break;
|
|
|
|
|
case 7:
|
|
|
|
|
case 69: break;
|
|
|
|
|
case 6:
|
|
|
|
|
{ /* ignore */
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 74: break;
|
|
|
|
|
case 8:
|
|
|
|
|
case 70: break;
|
|
|
|
|
case 7:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0;
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 75: break;
|
|
|
|
|
case 9:
|
|
|
|
|
{ yystart(STR); currString = "";
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 76: break;
|
|
|
|
|
case 10:
|
|
|
|
|
case 71: break;
|
|
|
|
|
case 8:
|
|
|
|
|
{ return symbol(ChocoPyTokens.MOD);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 77: break;
|
|
|
|
|
case 11:
|
|
|
|
|
case 72: break;
|
|
|
|
|
case 9:
|
|
|
|
|
{ return symbol(ChocoPyTokens.LPAR);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 78: break;
|
|
|
|
|
case 12:
|
|
|
|
|
case 73: break;
|
|
|
|
|
case 10:
|
|
|
|
|
{ return symbol(ChocoPyTokens.RPAR);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 79: break;
|
|
|
|
|
case 13:
|
|
|
|
|
case 74: break;
|
|
|
|
|
case 11:
|
|
|
|
|
{ return symbol(ChocoPyTokens.MUL);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 80: break;
|
|
|
|
|
case 14:
|
|
|
|
|
case 75: break;
|
|
|
|
|
case 12:
|
|
|
|
|
{ return symbol(ChocoPyTokens.PLUS);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 81: break;
|
|
|
|
|
case 15:
|
|
|
|
|
case 76: break;
|
|
|
|
|
case 13:
|
|
|
|
|
{ return symbol(ChocoPyTokens.COMMA);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 82: break;
|
|
|
|
|
case 16:
|
|
|
|
|
case 77: break;
|
|
|
|
|
case 14:
|
|
|
|
|
{ return symbol(ChocoPyTokens.MINUS);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 83: break;
|
|
|
|
|
case 17:
|
|
|
|
|
case 78: break;
|
|
|
|
|
case 15:
|
|
|
|
|
{ return symbol(ChocoPyTokens.DOT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 84: break;
|
|
|
|
|
case 18:
|
|
|
|
|
case 79: break;
|
|
|
|
|
case 16:
|
|
|
|
|
{ return symbol(ChocoPyTokens.DIV);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 85: break;
|
|
|
|
|
case 19:
|
|
|
|
|
case 80: break;
|
|
|
|
|
case 17:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NUMBER,
|
|
|
|
|
Integer.parseInt(yytext()));
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 86: break;
|
|
|
|
|
case 20:
|
|
|
|
|
case 81: break;
|
|
|
|
|
case 18:
|
|
|
|
|
{ return symbol(ChocoPyTokens.COLON);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 87: break;
|
|
|
|
|
case 21:
|
|
|
|
|
case 82: break;
|
|
|
|
|
case 19:
|
|
|
|
|
{ return symbol(ChocoPyTokens.LT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 88: break;
|
|
|
|
|
case 22:
|
|
|
|
|
case 83: break;
|
|
|
|
|
case 20:
|
|
|
|
|
{ return symbol(ChocoPyTokens.ASSIGN);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 89: break;
|
|
|
|
|
case 23:
|
|
|
|
|
case 84: break;
|
|
|
|
|
case 21:
|
|
|
|
|
{ return symbol(ChocoPyTokens.GT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 90: break;
|
|
|
|
|
case 24:
|
|
|
|
|
case 85: break;
|
|
|
|
|
case 22:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NAMES, yytext());
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 91: break;
|
|
|
|
|
case 25:
|
|
|
|
|
case 86: break;
|
|
|
|
|
case 23:
|
|
|
|
|
{ return symbol(ChocoPyTokens.LBR);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 92: break;
|
|
|
|
|
case 26:
|
|
|
|
|
case 87: break;
|
|
|
|
|
case 24:
|
|
|
|
|
{ return symbol(ChocoPyTokens.RBR);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 93: break;
|
|
|
|
|
case 27:
|
|
|
|
|
{ yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);
|
|
|
|
|
case 88: break;
|
|
|
|
|
case 25:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NEQ);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 94: break;
|
|
|
|
|
case 28:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NEQ);
|
|
|
|
|
case 89: break;
|
|
|
|
|
case 26:
|
|
|
|
|
{ return symbol(ChocoPyTokens.STRING, yytext());
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 95: break;
|
|
|
|
|
case 29:
|
|
|
|
|
case 90: break;
|
|
|
|
|
case 27:
|
|
|
|
|
{ return symbol(ChocoPyTokens.ARROW);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 96: break;
|
|
|
|
|
case 30:
|
|
|
|
|
case 91: break;
|
|
|
|
|
case 28:
|
|
|
|
|
{ return symbol(ChocoPyTokens.LEQ);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 97: break;
|
|
|
|
|
case 31:
|
|
|
|
|
case 92: break;
|
|
|
|
|
case 29:
|
|
|
|
|
{ return symbol(ChocoPyTokens.EQUAL);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 98: break;
|
|
|
|
|
case 32:
|
|
|
|
|
case 93: break;
|
|
|
|
|
case 30:
|
|
|
|
|
{ return symbol(ChocoPyTokens.GEQ);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 99: break;
|
|
|
|
|
case 33:
|
|
|
|
|
case 94: break;
|
|
|
|
|
case 31:
|
|
|
|
|
{ return symbol(ChocoPyTokens.AS);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 100: break;
|
|
|
|
|
case 34:
|
|
|
|
|
case 95: break;
|
|
|
|
|
case 32:
|
|
|
|
|
{ return symbol(ChocoPyTokens.IF);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 101: break;
|
|
|
|
|
case 35:
|
|
|
|
|
case 96: break;
|
|
|
|
|
case 33:
|
|
|
|
|
{ return symbol(ChocoPyTokens.IN);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 102: break;
|
|
|
|
|
case 36:
|
|
|
|
|
case 97: break;
|
|
|
|
|
case 34:
|
|
|
|
|
{ return symbol(ChocoPyTokens.IS);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 103: break;
|
|
|
|
|
case 37:
|
|
|
|
|
case 98: break;
|
|
|
|
|
case 35:
|
|
|
|
|
{ return symbol(ChocoPyTokens.OR);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 104: break;
|
|
|
|
|
case 38:
|
|
|
|
|
// lookahead expression with fixed base length
|
|
|
|
|
zzMarkedPos = Character.offsetByCodePoints
|
|
|
|
|
(zzBufferL, zzStartRead, zzEndRead - zzStartRead, zzStartRead, 1);
|
|
|
|
|
{ /*'\' at the end of line, do nothing.*/
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 105: break;
|
|
|
|
|
case 39:
|
|
|
|
|
case 99: break;
|
|
|
|
|
case 36:
|
|
|
|
|
{ return symbol(ChocoPyTokens.AND);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 106: break;
|
|
|
|
|
case 40:
|
|
|
|
|
case 100: break;
|
|
|
|
|
case 37:
|
|
|
|
|
{ return symbol(ChocoPyTokens.DEF);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 107: break;
|
|
|
|
|
case 41:
|
|
|
|
|
case 101: break;
|
|
|
|
|
case 38:
|
|
|
|
|
{ return symbol(ChocoPyTokens.DEL);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 108: break;
|
|
|
|
|
case 42:
|
|
|
|
|
case 102: break;
|
|
|
|
|
case 39:
|
|
|
|
|
{ return symbol(ChocoPyTokens.FOR);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 109: break;
|
|
|
|
|
case 43:
|
|
|
|
|
case 103: break;
|
|
|
|
|
case 40:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NOT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 110: break;
|
|
|
|
|
case 44:
|
|
|
|
|
case 104: break;
|
|
|
|
|
case 41:
|
|
|
|
|
{ return symbol(ChocoPyTokens.TRY);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 111: break;
|
|
|
|
|
case 45:
|
|
|
|
|
case 105: break;
|
|
|
|
|
case 42:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NONE);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 112: break;
|
|
|
|
|
case 46:
|
|
|
|
|
case 106: break;
|
|
|
|
|
case 43:
|
|
|
|
|
{ return symbol(ChocoPyTokens.BOOL, true);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 113: break;
|
|
|
|
|
case 47:
|
|
|
|
|
case 107: break;
|
|
|
|
|
case 44:
|
|
|
|
|
{ return symbol(ChocoPyTokens.ELIF);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 114: break;
|
|
|
|
|
case 48:
|
|
|
|
|
case 108: break;
|
|
|
|
|
case 45:
|
|
|
|
|
{ return symbol(ChocoPyTokens.ELSE);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 115: break;
|
|
|
|
|
case 49:
|
|
|
|
|
case 109: break;
|
|
|
|
|
case 46:
|
|
|
|
|
{ return symbol(ChocoPyTokens.FROM);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 116: break;
|
|
|
|
|
case 50:
|
|
|
|
|
case 110: break;
|
|
|
|
|
case 47:
|
|
|
|
|
{ return symbol(ChocoPyTokens.PASS);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 117: break;
|
|
|
|
|
case 51:
|
|
|
|
|
case 111: break;
|
|
|
|
|
case 48:
|
|
|
|
|
{ return symbol(ChocoPyTokens.WITH);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 118: break;
|
|
|
|
|
case 52:
|
|
|
|
|
case 112: break;
|
|
|
|
|
case 49:
|
|
|
|
|
{ return symbol(ChocoPyTokens.BOOL, false);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 119: break;
|
|
|
|
|
case 53:
|
|
|
|
|
case 113: break;
|
|
|
|
|
case 50:
|
|
|
|
|
{ return symbol(ChocoPyTokens.AWAIT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 120: break;
|
|
|
|
|
case 54:
|
|
|
|
|
case 114: break;
|
|
|
|
|
case 51:
|
|
|
|
|
{ return symbol(ChocoPyTokens.BREAK);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 121: break;
|
|
|
|
|
case 55:
|
|
|
|
|
case 115: break;
|
|
|
|
|
case 52:
|
|
|
|
|
{ return symbol(ChocoPyTokens.CLASS);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 122: break;
|
|
|
|
|
case 56:
|
|
|
|
|
case 116: break;
|
|
|
|
|
case 53:
|
|
|
|
|
{ return symbol(ChocoPyTokens.RAISE);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 123: break;
|
|
|
|
|
case 57:
|
|
|
|
|
case 117: break;
|
|
|
|
|
case 54:
|
|
|
|
|
{ return symbol(ChocoPyTokens.WHILE);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 124: break;
|
|
|
|
|
case 58:
|
|
|
|
|
case 118: break;
|
|
|
|
|
case 55:
|
|
|
|
|
{ return symbol(ChocoPyTokens.YIELD);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 125: break;
|
|
|
|
|
case 59:
|
|
|
|
|
case 119: break;
|
|
|
|
|
case 56:
|
|
|
|
|
{ return symbol(ChocoPyTokens.ASSERT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 126: break;
|
|
|
|
|
case 60:
|
|
|
|
|
case 120: break;
|
|
|
|
|
case 57:
|
|
|
|
|
{ return symbol(ChocoPyTokens.EXCEPT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 127: break;
|
|
|
|
|
case 61:
|
|
|
|
|
case 121: break;
|
|
|
|
|
case 58:
|
|
|
|
|
{ return symbol(ChocoPyTokens.GLOBAL);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 128: break;
|
|
|
|
|
case 62:
|
|
|
|
|
case 122: break;
|
|
|
|
|
case 59:
|
|
|
|
|
{ return symbol(ChocoPyTokens.IMPORT);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 129: break;
|
|
|
|
|
case 63:
|
|
|
|
|
case 123: break;
|
|
|
|
|
case 60:
|
|
|
|
|
{ return symbol(ChocoPyTokens.LAMBDA);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 130: break;
|
|
|
|
|
case 64:
|
|
|
|
|
case 124: break;
|
|
|
|
|
case 61:
|
|
|
|
|
{ return symbol(ChocoPyTokens.RETURN);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 131: break;
|
|
|
|
|
case 65:
|
|
|
|
|
case 125: break;
|
|
|
|
|
case 62:
|
|
|
|
|
{ return symbol(ChocoPyTokens.FINALLY);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 132: break;
|
|
|
|
|
case 66:
|
|
|
|
|
case 126: break;
|
|
|
|
|
case 63:
|
|
|
|
|
{ return symbol(ChocoPyTokens.CONTINUE);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 133: break;
|
|
|
|
|
case 67:
|
|
|
|
|
case 127: break;
|
|
|
|
|
case 64:
|
|
|
|
|
{ return symbol(ChocoPyTokens.NONLOCAL);
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
case 134: break;
|
|
|
|
|
case 128: break;
|
|
|
|
|
default:
|
|
|
|
|
zzScanError(ZZ_NO_MATCH);
|
|
|
|
|
}
|
|
|
|
|