From 3e5ebb821ee3ee30ec5a7ac5e3e8e02f63fa3728 Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Sun, 15 Jun 2025 00:07:26 +0200 Subject: [PATCH 1/3] [WIP] CoreDSL2.g4 implement combines syntax --- m2isar/frontends/coredsl2/CoreDSL2.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m2isar/frontends/coredsl2/CoreDSL2.g4 b/m2isar/frontends/coredsl2/CoreDSL2.g4 index 81ff1a73..473660cd 100644 --- a/m2isar/frontends/coredsl2/CoreDSL2.g4 +++ b/m2isar/frontends/coredsl2/CoreDSL2.g4 @@ -19,7 +19,7 @@ import_file ; isa - : 'InstructionSet' name=IDENTIFIER ('extends' extension+=IDENTIFIER (',' extension+=IDENTIFIER)*)? '{' sections+=section* '}' # instruction_set + : ('InstructionSet' name=IDENTIFIER (('extends' extension+=IDENTIFIER (',' extension+=IDENTIFIER)*)? '{' sections+=section* '}') | (('combines' combines+=IDENTIFIER (',' combines+=IDENTIFIER)*) ';')) # instruction_set | 'Core' name=IDENTIFIER ('provides' contributing_types+=IDENTIFIER (',' contributing_types+=IDENTIFIER)*)? '{' sections+=section* '}' # core_def ; From 678d8583533d47ace5a21eae23ce48ea75606b51 Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Sun, 15 Jun 2025 00:10:41 +0200 Subject: [PATCH 2/3] [WIP] update parser_gen --- .../coredsl2/parser_gen/CoreDSL2Lexer.py | 697 +++--- .../coredsl2/parser_gen/CoreDSL2Parser.py | 2096 +++++++++-------- 2 files changed, 1418 insertions(+), 1375 deletions(-) diff --git a/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Lexer.py b/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Lexer.py index 934187ef..d75748de 100644 --- a/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Lexer.py +++ b/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Lexer.py @@ -10,7 +10,7 @@ def serializedATN(): return [ - 4,0,102,900,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, + 4,0,103,911,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2, 13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7, 19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2, @@ -26,321 +26,325 @@ def serializedATN(): 84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2, 91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7, 97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103, - 7,103,2,104,7,104,2,105,7,105,2,106,7,106,1,0,1,0,1,0,1,0,1,0,1, - 0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, - 1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1, - 6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1, - 8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1, - 8,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,12, - 1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13, - 1,13,1,13,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16, - 1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18, - 1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,21, - 1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24, - 1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,27, - 1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,29, - 1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30, - 1,30,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32, - 1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,37,1,37, - 1,37,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,40,1,40, - 1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41, - 1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,44, - 1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46, - 1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49, - 1,50,1,50,1,50,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,54,1,54, - 1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60, - 1,61,1,61,1,61,1,62,1,62,1,62,1,63,1,63,1,63,1,64,1,64,1,64,1,65, - 1,65,1,65,1,66,1,66,1,66,1,67,1,67,1,68,1,68,1,69,1,69,1,69,1,70, - 1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,73,1,73,1,73,1,74,1,74,1,74, - 1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,78,1,79, - 1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82, - 1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84, - 1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86, - 1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87, - 1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89, - 1,90,1,90,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92, - 3,92,663,8,92,1,93,4,93,666,8,93,11,93,12,93,667,1,93,1,93,5,93, - 672,8,93,10,93,12,93,675,9,93,1,93,1,93,3,93,679,8,93,1,93,4,93, - 682,8,93,11,93,12,93,683,3,93,686,8,93,1,93,3,93,689,8,93,1,94,1, - 94,1,94,1,94,1,94,3,94,696,8,94,1,94,3,94,699,8,94,1,94,1,94,3,94, - 703,8,94,3,94,705,8,94,1,95,1,95,1,95,1,95,3,95,711,8,95,1,95,1, - 95,3,95,715,8,95,1,95,5,95,718,8,95,10,95,12,95,721,9,95,1,96,1, - 96,3,96,725,8,96,1,96,1,96,3,96,729,8,96,1,96,5,96,732,8,96,10,96, - 12,96,735,9,96,1,97,1,97,1,97,3,97,740,8,97,1,97,5,97,743,8,97,10, - 97,12,97,746,9,97,3,97,748,8,97,1,98,1,98,1,98,1,98,3,98,754,8,98, - 1,98,1,98,3,98,758,8,98,1,98,5,98,761,8,98,10,98,12,98,764,9,98, - 1,99,4,99,767,8,99,11,99,12,99,768,1,99,1,99,3,99,773,8,99,1,99, - 1,99,4,99,777,8,99,11,99,12,99,778,1,99,1,99,4,99,783,8,99,11,99, - 12,99,784,1,99,1,99,4,99,789,8,99,11,99,12,99,790,1,99,1,99,4,99, - 795,8,99,11,99,12,99,796,3,99,799,8,99,1,100,3,100,802,8,100,1,100, - 1,100,5,100,806,8,100,10,100,12,100,809,9,100,1,101,3,101,812,8, - 101,1,101,1,101,1,101,1,101,5,101,818,8,101,10,101,12,101,821,9, - 101,1,101,1,101,1,102,1,102,1,102,3,102,828,8,102,1,102,1,102,1, - 102,1,102,5,102,834,8,102,10,102,12,102,837,9,102,1,102,1,102,1, - 103,1,103,1,103,1,103,5,103,845,8,103,10,103,12,103,848,9,103,1, - 103,1,103,1,103,1,103,1,103,5,103,855,8,103,10,103,12,103,858,9, - 103,1,103,3,103,861,8,103,1,104,1,104,1,104,1,104,5,104,867,8,104, - 10,104,12,104,870,9,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105, - 1,105,1,105,5,105,881,8,105,10,105,12,105,884,9,105,1,105,3,105, - 887,8,105,1,105,3,105,890,8,105,1,105,1,105,1,106,4,106,895,8,106, - 11,106,12,106,896,1,106,1,106,1,868,0,107,1,1,3,2,5,3,7,4,9,5,11, - 6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17, - 35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28, - 57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39, - 79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50, - 101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119, - 60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69, - 139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157, - 79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88, - 177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,0,193,0,195, - 0,197,0,199,0,201,96,203,97,205,98,207,99,209,100,211,101,213,102, - 1,0,13,2,0,69,69,101,101,2,0,43,43,45,45,4,0,70,70,76,76,102,102, - 108,108,2,0,85,85,117,117,2,0,76,76,108,108,3,0,48,57,65,70,97,102, - 3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,3,0,76,76,85, - 85,117,117,2,0,39,39,92,92,2,0,34,34,92,92,2,0,10,10,13,13,3,0,9, - 10,13,13,32,32,947,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0, - 0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0, - 0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0, - 0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0, - 0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0, - 0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0, - 0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0, - 0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0, - 0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0, - 0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0, - 0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1, - 0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0, - 117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0, - 0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135, - 1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0, - 0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1, - 0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0, - 163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0, - 0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181, - 1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0, - 0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1, - 0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,1,215,1,0,0,0,3,222,1,0,0,0,5, - 237,1,0,0,0,7,245,1,0,0,0,9,247,1,0,0,0,11,249,1,0,0,0,13,251,1, - 0,0,0,15,256,1,0,0,0,17,265,1,0,0,0,19,285,1,0,0,0,21,287,1,0,0, - 0,23,297,1,0,0,0,25,310,1,0,0,0,27,317,1,0,0,0,29,326,1,0,0,0,31, - 328,1,0,0,0,33,331,1,0,0,0,35,340,1,0,0,0,37,349,1,0,0,0,39,356, - 1,0,0,0,41,358,1,0,0,0,43,360,1,0,0,0,45,363,1,0,0,0,47,368,1,0, - 0,0,49,372,1,0,0,0,51,378,1,0,0,0,53,381,1,0,0,0,55,388,1,0,0,0, - 57,395,1,0,0,0,59,401,1,0,0,0,61,410,1,0,0,0,63,416,1,0,0,0,65,421, - 1,0,0,0,67,429,1,0,0,0,69,431,1,0,0,0,71,433,1,0,0,0,73,435,1,0, - 0,0,75,437,1,0,0,0,77,442,1,0,0,0,79,447,1,0,0,0,81,452,1,0,0,0, - 83,461,1,0,0,0,85,468,1,0,0,0,87,473,1,0,0,0,89,479,1,0,0,0,91,483, - 1,0,0,0,93,488,1,0,0,0,95,494,1,0,0,0,97,501,1,0,0,0,99,504,1,0, - 0,0,101,506,1,0,0,0,103,509,1,0,0,0,105,511,1,0,0,0,107,514,1,0, - 0,0,109,517,1,0,0,0,111,520,1,0,0,0,113,522,1,0,0,0,115,524,1,0, - 0,0,117,526,1,0,0,0,119,528,1,0,0,0,121,530,1,0,0,0,123,532,1,0, - 0,0,125,535,1,0,0,0,127,538,1,0,0,0,129,541,1,0,0,0,131,544,1,0, - 0,0,133,547,1,0,0,0,135,550,1,0,0,0,137,552,1,0,0,0,139,554,1,0, - 0,0,141,557,1,0,0,0,143,560,1,0,0,0,145,562,1,0,0,0,147,565,1,0, - 0,0,149,568,1,0,0,0,151,571,1,0,0,0,153,574,1,0,0,0,155,577,1,0, - 0,0,157,580,1,0,0,0,159,583,1,0,0,0,161,587,1,0,0,0,163,592,1,0, - 0,0,165,596,1,0,0,0,167,599,1,0,0,0,169,605,1,0,0,0,171,611,1,0, - 0,0,173,620,1,0,0,0,175,627,1,0,0,0,177,636,1,0,0,0,179,643,1,0, - 0,0,181,649,1,0,0,0,183,651,1,0,0,0,185,662,1,0,0,0,187,665,1,0, - 0,0,189,695,1,0,0,0,191,710,1,0,0,0,193,722,1,0,0,0,195,747,1,0, - 0,0,197,753,1,0,0,0,199,766,1,0,0,0,201,801,1,0,0,0,203,811,1,0, - 0,0,205,827,1,0,0,0,207,860,1,0,0,0,209,862,1,0,0,0,211,876,1,0, - 0,0,213,894,1,0,0,0,215,216,5,105,0,0,216,217,5,109,0,0,217,218, - 5,112,0,0,218,219,5,111,0,0,219,220,5,114,0,0,220,221,5,116,0,0, - 221,2,1,0,0,0,222,223,5,73,0,0,223,224,5,110,0,0,224,225,5,115,0, - 0,225,226,5,116,0,0,226,227,5,114,0,0,227,228,5,117,0,0,228,229, - 5,99,0,0,229,230,5,116,0,0,230,231,5,105,0,0,231,232,5,111,0,0,232, - 233,5,110,0,0,233,234,5,83,0,0,234,235,5,101,0,0,235,236,5,116,0, - 0,236,4,1,0,0,0,237,238,5,101,0,0,238,239,5,120,0,0,239,240,5,116, - 0,0,240,241,5,101,0,0,241,242,5,110,0,0,242,243,5,100,0,0,243,244, - 5,115,0,0,244,6,1,0,0,0,245,246,5,44,0,0,246,8,1,0,0,0,247,248,5, - 123,0,0,248,10,1,0,0,0,249,250,5,125,0,0,250,12,1,0,0,0,251,252, - 5,67,0,0,252,253,5,111,0,0,253,254,5,114,0,0,254,255,5,101,0,0,255, - 14,1,0,0,0,256,257,5,112,0,0,257,258,5,114,0,0,258,259,5,111,0,0, - 259,260,5,118,0,0,260,261,5,105,0,0,261,262,5,100,0,0,262,263,5, - 101,0,0,263,264,5,115,0,0,264,16,1,0,0,0,265,266,5,97,0,0,266,267, - 5,114,0,0,267,268,5,99,0,0,268,269,5,104,0,0,269,270,5,105,0,0,270, - 271,5,116,0,0,271,272,5,101,0,0,272,273,5,99,0,0,273,274,5,116,0, - 0,274,275,5,117,0,0,275,276,5,114,0,0,276,277,5,97,0,0,277,278,5, - 108,0,0,278,279,5,95,0,0,279,280,5,115,0,0,280,281,5,116,0,0,281, - 282,5,97,0,0,282,283,5,116,0,0,283,284,5,101,0,0,284,18,1,0,0,0, - 285,286,5,59,0,0,286,20,1,0,0,0,287,288,5,102,0,0,288,289,5,117, - 0,0,289,290,5,110,0,0,290,291,5,99,0,0,291,292,5,116,0,0,292,293, - 5,105,0,0,293,294,5,111,0,0,294,295,5,110,0,0,295,296,5,115,0,0, - 296,22,1,0,0,0,297,298,5,105,0,0,298,299,5,110,0,0,299,300,5,115, - 0,0,300,301,5,116,0,0,301,302,5,114,0,0,302,303,5,117,0,0,303,304, - 5,99,0,0,304,305,5,116,0,0,305,306,5,105,0,0,306,307,5,111,0,0,307, - 308,5,110,0,0,308,309,5,115,0,0,309,24,1,0,0,0,310,311,5,97,0,0, - 311,312,5,108,0,0,312,313,5,119,0,0,313,314,5,97,0,0,314,315,5,121, - 0,0,315,316,5,115,0,0,316,26,1,0,0,0,317,318,5,101,0,0,318,319,5, - 110,0,0,319,320,5,99,0,0,320,321,5,111,0,0,321,322,5,100,0,0,322, - 323,5,105,0,0,323,324,5,110,0,0,324,325,5,103,0,0,325,28,1,0,0,0, - 326,327,5,58,0,0,327,30,1,0,0,0,328,329,5,58,0,0,329,330,5,58,0, - 0,330,32,1,0,0,0,331,332,5,97,0,0,332,333,5,115,0,0,333,334,5,115, - 0,0,334,335,5,101,0,0,335,336,5,109,0,0,336,337,5,98,0,0,337,338, - 5,108,0,0,338,339,5,121,0,0,339,34,1,0,0,0,340,341,5,98,0,0,341, - 342,5,101,0,0,342,343,5,104,0,0,343,344,5,97,0,0,344,345,5,118,0, - 0,345,346,5,105,0,0,346,347,5,111,0,0,347,348,5,114,0,0,348,36,1, - 0,0,0,349,350,5,101,0,0,350,351,5,120,0,0,351,352,5,116,0,0,352, - 353,5,101,0,0,353,354,5,114,0,0,354,355,5,110,0,0,355,38,1,0,0,0, - 356,357,5,40,0,0,357,40,1,0,0,0,358,359,5,41,0,0,359,42,1,0,0,0, - 360,361,5,105,0,0,361,362,5,102,0,0,362,44,1,0,0,0,363,364,5,101, - 0,0,364,365,5,108,0,0,365,366,5,115,0,0,366,367,5,101,0,0,367,46, - 1,0,0,0,368,369,5,102,0,0,369,370,5,111,0,0,370,371,5,114,0,0,371, - 48,1,0,0,0,372,373,5,119,0,0,373,374,5,104,0,0,374,375,5,105,0,0, - 375,376,5,108,0,0,376,377,5,101,0,0,377,50,1,0,0,0,378,379,5,100, - 0,0,379,380,5,111,0,0,380,52,1,0,0,0,381,382,5,115,0,0,382,383,5, - 119,0,0,383,384,5,105,0,0,384,385,5,116,0,0,385,386,5,99,0,0,386, - 387,5,104,0,0,387,54,1,0,0,0,388,389,5,114,0,0,389,390,5,101,0,0, - 390,391,5,116,0,0,391,392,5,117,0,0,392,393,5,114,0,0,393,394,5, - 110,0,0,394,56,1,0,0,0,395,396,5,98,0,0,396,397,5,114,0,0,397,398, - 5,101,0,0,398,399,5,97,0,0,399,400,5,107,0,0,400,58,1,0,0,0,401, - 402,5,99,0,0,402,403,5,111,0,0,403,404,5,110,0,0,404,405,5,116,0, - 0,405,406,5,105,0,0,406,407,5,110,0,0,407,408,5,117,0,0,408,409, - 5,101,0,0,409,60,1,0,0,0,410,411,5,115,0,0,411,412,5,112,0,0,412, - 413,5,97,0,0,413,414,5,119,0,0,414,415,5,110,0,0,415,62,1,0,0,0, - 416,417,5,99,0,0,417,418,5,97,0,0,418,419,5,115,0,0,419,420,5,101, - 0,0,420,64,1,0,0,0,421,422,5,100,0,0,422,423,5,101,0,0,423,424,5, - 102,0,0,424,425,5,97,0,0,425,426,5,117,0,0,426,427,5,108,0,0,427, - 428,5,116,0,0,428,66,1,0,0,0,429,430,5,42,0,0,430,68,1,0,0,0,431, - 432,5,38,0,0,432,70,1,0,0,0,433,434,5,60,0,0,434,72,1,0,0,0,435, - 436,5,62,0,0,436,74,1,0,0,0,437,438,5,98,0,0,438,439,5,111,0,0,439, - 440,5,111,0,0,440,441,5,108,0,0,441,76,1,0,0,0,442,443,5,118,0,0, - 443,444,5,111,0,0,444,445,5,105,0,0,445,446,5,100,0,0,446,78,1,0, - 0,0,447,448,5,101,0,0,448,449,5,110,0,0,449,450,5,117,0,0,450,451, - 5,109,0,0,451,80,1,0,0,0,452,453,5,117,0,0,453,454,5,110,0,0,454, - 455,5,115,0,0,455,456,5,105,0,0,456,457,5,103,0,0,457,458,5,110, - 0,0,458,459,5,101,0,0,459,460,5,100,0,0,460,82,1,0,0,0,461,462,5, - 115,0,0,462,463,5,105,0,0,463,464,5,103,0,0,464,465,5,110,0,0,465, - 466,5,101,0,0,466,467,5,100,0,0,467,84,1,0,0,0,468,469,5,99,0,0, - 469,470,5,104,0,0,470,471,5,97,0,0,471,472,5,114,0,0,472,86,1,0, - 0,0,473,474,5,115,0,0,474,475,5,104,0,0,475,476,5,111,0,0,476,477, - 5,114,0,0,477,478,5,116,0,0,478,88,1,0,0,0,479,480,5,105,0,0,480, - 481,5,110,0,0,481,482,5,116,0,0,482,90,1,0,0,0,483,484,5,108,0,0, - 484,485,5,111,0,0,485,486,5,110,0,0,486,487,5,103,0,0,487,92,1,0, - 0,0,488,489,5,102,0,0,489,490,5,108,0,0,490,491,5,111,0,0,491,492, - 5,97,0,0,492,493,5,116,0,0,493,94,1,0,0,0,494,495,5,100,0,0,495, - 496,5,111,0,0,496,497,5,117,0,0,497,498,5,98,0,0,498,499,5,108,0, - 0,499,500,5,101,0,0,500,96,1,0,0,0,501,502,5,91,0,0,502,503,5,91, - 0,0,503,98,1,0,0,0,504,505,5,61,0,0,505,100,1,0,0,0,506,507,5,93, - 0,0,507,508,5,93,0,0,508,102,1,0,0,0,509,510,5,46,0,0,510,104,1, - 0,0,0,511,512,5,45,0,0,512,513,5,62,0,0,513,106,1,0,0,0,514,515, - 5,43,0,0,515,516,5,43,0,0,516,108,1,0,0,0,517,518,5,45,0,0,518,519, - 5,45,0,0,519,110,1,0,0,0,520,521,5,43,0,0,521,112,1,0,0,0,522,523, - 5,45,0,0,523,114,1,0,0,0,524,525,5,126,0,0,525,116,1,0,0,0,526,527, - 5,33,0,0,527,118,1,0,0,0,528,529,5,47,0,0,529,120,1,0,0,0,530,531, - 5,37,0,0,531,122,1,0,0,0,532,533,5,60,0,0,533,534,5,60,0,0,534,124, - 1,0,0,0,535,536,5,62,0,0,536,537,5,62,0,0,537,126,1,0,0,0,538,539, - 5,60,0,0,539,540,5,61,0,0,540,128,1,0,0,0,541,542,5,62,0,0,542,543, - 5,61,0,0,543,130,1,0,0,0,544,545,5,61,0,0,545,546,5,61,0,0,546,132, - 1,0,0,0,547,548,5,33,0,0,548,549,5,61,0,0,549,134,1,0,0,0,550,551, - 5,94,0,0,551,136,1,0,0,0,552,553,5,124,0,0,553,138,1,0,0,0,554,555, - 5,38,0,0,555,556,5,38,0,0,556,140,1,0,0,0,557,558,5,124,0,0,558, - 559,5,124,0,0,559,142,1,0,0,0,560,561,5,63,0,0,561,144,1,0,0,0,562, - 563,5,43,0,0,563,564,5,61,0,0,564,146,1,0,0,0,565,566,5,45,0,0,566, - 567,5,61,0,0,567,148,1,0,0,0,568,569,5,42,0,0,569,570,5,61,0,0,570, - 150,1,0,0,0,571,572,5,47,0,0,572,573,5,61,0,0,573,152,1,0,0,0,574, - 575,5,38,0,0,575,576,5,61,0,0,576,154,1,0,0,0,577,578,5,124,0,0, - 578,579,5,61,0,0,579,156,1,0,0,0,580,581,5,94,0,0,581,582,5,61,0, - 0,582,158,1,0,0,0,583,584,5,62,0,0,584,585,5,62,0,0,585,586,5,61, - 0,0,586,160,1,0,0,0,587,588,5,62,0,0,588,589,5,62,0,0,589,590,5, - 62,0,0,590,591,5,61,0,0,591,162,1,0,0,0,592,593,5,60,0,0,593,594, - 5,60,0,0,594,595,5,61,0,0,595,164,1,0,0,0,596,597,5,37,0,0,597,598, - 5,61,0,0,598,166,1,0,0,0,599,600,5,97,0,0,600,601,5,108,0,0,601, - 602,5,105,0,0,602,603,5,97,0,0,603,604,5,115,0,0,604,168,1,0,0,0, - 605,606,5,99,0,0,606,607,5,111,0,0,607,608,5,110,0,0,608,609,5,115, - 0,0,609,610,5,116,0,0,610,170,1,0,0,0,611,612,5,118,0,0,612,613, - 5,111,0,0,613,614,5,108,0,0,614,615,5,97,0,0,615,616,5,116,0,0,616, - 617,5,105,0,0,617,618,5,108,0,0,618,619,5,101,0,0,619,172,1,0,0, - 0,620,621,5,115,0,0,621,622,5,116,0,0,622,623,5,97,0,0,623,624,5, - 116,0,0,624,625,5,105,0,0,625,626,5,99,0,0,626,174,1,0,0,0,627,628, - 5,114,0,0,628,629,5,101,0,0,629,630,5,103,0,0,630,631,5,105,0,0, - 631,632,5,115,0,0,632,633,5,116,0,0,633,634,5,101,0,0,634,635,5, - 114,0,0,635,176,1,0,0,0,636,637,5,115,0,0,637,638,5,116,0,0,638, - 639,5,114,0,0,639,640,5,117,0,0,640,641,5,99,0,0,641,642,5,116,0, - 0,642,178,1,0,0,0,643,644,5,117,0,0,644,645,5,110,0,0,645,646,5, - 105,0,0,646,647,5,111,0,0,647,648,5,110,0,0,648,180,1,0,0,0,649, - 650,5,91,0,0,650,182,1,0,0,0,651,652,5,93,0,0,652,184,1,0,0,0,653, - 654,5,116,0,0,654,655,5,114,0,0,655,656,5,117,0,0,656,663,5,101, - 0,0,657,658,5,102,0,0,658,659,5,97,0,0,659,660,5,108,0,0,660,661, - 5,115,0,0,661,663,5,101,0,0,662,653,1,0,0,0,662,657,1,0,0,0,663, - 186,1,0,0,0,664,666,2,48,57,0,665,664,1,0,0,0,666,667,1,0,0,0,667, - 665,1,0,0,0,667,668,1,0,0,0,668,669,1,0,0,0,669,673,5,46,0,0,670, - 672,2,48,57,0,671,670,1,0,0,0,672,675,1,0,0,0,673,671,1,0,0,0,673, - 674,1,0,0,0,674,685,1,0,0,0,675,673,1,0,0,0,676,678,7,0,0,0,677, - 679,7,1,0,0,678,677,1,0,0,0,678,679,1,0,0,0,679,681,1,0,0,0,680, - 682,2,48,57,0,681,680,1,0,0,0,682,683,1,0,0,0,683,681,1,0,0,0,683, - 684,1,0,0,0,684,686,1,0,0,0,685,676,1,0,0,0,685,686,1,0,0,0,686, - 688,1,0,0,0,687,689,7,2,0,0,688,687,1,0,0,0,688,689,1,0,0,0,689, - 188,1,0,0,0,690,696,3,191,95,0,691,696,3,197,98,0,692,696,3,193, - 96,0,693,696,3,195,97,0,694,696,3,199,99,0,695,690,1,0,0,0,695,691, - 1,0,0,0,695,692,1,0,0,0,695,693,1,0,0,0,695,694,1,0,0,0,696,698, - 1,0,0,0,697,699,7,3,0,0,698,697,1,0,0,0,698,699,1,0,0,0,699,704, - 1,0,0,0,700,702,7,4,0,0,701,703,7,4,0,0,702,701,1,0,0,0,702,703, - 1,0,0,0,703,705,1,0,0,0,704,700,1,0,0,0,704,705,1,0,0,0,705,190, - 1,0,0,0,706,707,5,48,0,0,707,711,5,98,0,0,708,709,5,48,0,0,709,711, - 5,66,0,0,710,706,1,0,0,0,710,708,1,0,0,0,711,712,1,0,0,0,712,719, - 2,48,49,0,713,715,5,95,0,0,714,713,1,0,0,0,714,715,1,0,0,0,715,716, - 1,0,0,0,716,718,2,48,49,0,717,714,1,0,0,0,718,721,1,0,0,0,719,717, - 1,0,0,0,719,720,1,0,0,0,720,192,1,0,0,0,721,719,1,0,0,0,722,724, - 5,48,0,0,723,725,5,95,0,0,724,723,1,0,0,0,724,725,1,0,0,0,725,726, - 1,0,0,0,726,733,2,48,55,0,727,729,5,95,0,0,728,727,1,0,0,0,728,729, - 1,0,0,0,729,730,1,0,0,0,730,732,2,48,55,0,731,728,1,0,0,0,732,735, - 1,0,0,0,733,731,1,0,0,0,733,734,1,0,0,0,734,194,1,0,0,0,735,733, - 1,0,0,0,736,748,5,48,0,0,737,744,2,49,57,0,738,740,5,95,0,0,739, - 738,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,743,2,48,57,0,742, - 739,1,0,0,0,743,746,1,0,0,0,744,742,1,0,0,0,744,745,1,0,0,0,745, - 748,1,0,0,0,746,744,1,0,0,0,747,736,1,0,0,0,747,737,1,0,0,0,748, - 196,1,0,0,0,749,750,5,48,0,0,750,754,5,120,0,0,751,752,5,48,0,0, - 752,754,5,88,0,0,753,749,1,0,0,0,753,751,1,0,0,0,754,755,1,0,0,0, - 755,762,7,5,0,0,756,758,5,95,0,0,757,756,1,0,0,0,757,758,1,0,0,0, - 758,759,1,0,0,0,759,761,7,5,0,0,760,757,1,0,0,0,761,764,1,0,0,0, - 762,760,1,0,0,0,762,763,1,0,0,0,763,198,1,0,0,0,764,762,1,0,0,0, - 765,767,2,48,57,0,766,765,1,0,0,0,767,768,1,0,0,0,768,766,1,0,0, - 0,768,769,1,0,0,0,769,770,1,0,0,0,770,772,5,39,0,0,771,773,5,115, - 0,0,772,771,1,0,0,0,772,773,1,0,0,0,773,798,1,0,0,0,774,776,5,98, - 0,0,775,777,2,48,49,0,776,775,1,0,0,0,777,778,1,0,0,0,778,776,1, - 0,0,0,778,779,1,0,0,0,779,799,1,0,0,0,780,782,5,111,0,0,781,783, - 2,48,55,0,782,781,1,0,0,0,783,784,1,0,0,0,784,782,1,0,0,0,784,785, - 1,0,0,0,785,799,1,0,0,0,786,788,5,100,0,0,787,789,2,48,57,0,788, - 787,1,0,0,0,789,790,1,0,0,0,790,788,1,0,0,0,790,791,1,0,0,0,791, - 799,1,0,0,0,792,794,5,104,0,0,793,795,7,5,0,0,794,793,1,0,0,0,795, - 796,1,0,0,0,796,794,1,0,0,0,796,797,1,0,0,0,797,799,1,0,0,0,798, - 774,1,0,0,0,798,780,1,0,0,0,798,786,1,0,0,0,798,792,1,0,0,0,799, - 200,1,0,0,0,800,802,5,94,0,0,801,800,1,0,0,0,801,802,1,0,0,0,802, - 803,1,0,0,0,803,807,7,6,0,0,804,806,7,7,0,0,805,804,1,0,0,0,806, - 809,1,0,0,0,807,805,1,0,0,0,807,808,1,0,0,0,808,202,1,0,0,0,809, - 807,1,0,0,0,810,812,7,8,0,0,811,810,1,0,0,0,811,812,1,0,0,0,812, - 813,1,0,0,0,813,819,5,39,0,0,814,815,5,92,0,0,815,818,9,0,0,0,816, - 818,8,9,0,0,817,814,1,0,0,0,817,816,1,0,0,0,818,821,1,0,0,0,819, - 817,1,0,0,0,819,820,1,0,0,0,820,822,1,0,0,0,821,819,1,0,0,0,822, - 823,5,39,0,0,823,204,1,0,0,0,824,825,5,117,0,0,825,828,5,56,0,0, - 826,828,7,8,0,0,827,824,1,0,0,0,827,826,1,0,0,0,828,829,1,0,0,0, - 829,835,5,34,0,0,830,831,5,92,0,0,831,834,9,0,0,0,832,834,8,10,0, - 0,833,830,1,0,0,0,833,832,1,0,0,0,834,837,1,0,0,0,835,833,1,0,0, - 0,835,836,1,0,0,0,836,838,1,0,0,0,837,835,1,0,0,0,838,839,5,34,0, - 0,839,206,1,0,0,0,840,846,5,34,0,0,841,842,5,92,0,0,842,845,9,0, - 0,0,843,845,8,10,0,0,844,841,1,0,0,0,844,843,1,0,0,0,845,848,1,0, - 0,0,846,844,1,0,0,0,846,847,1,0,0,0,847,849,1,0,0,0,848,846,1,0, - 0,0,849,861,5,34,0,0,850,856,5,39,0,0,851,852,5,92,0,0,852,855,9, - 0,0,0,853,855,8,9,0,0,854,851,1,0,0,0,854,853,1,0,0,0,855,858,1, - 0,0,0,856,854,1,0,0,0,856,857,1,0,0,0,857,859,1,0,0,0,858,856,1, - 0,0,0,859,861,5,39,0,0,860,840,1,0,0,0,860,850,1,0,0,0,861,208,1, - 0,0,0,862,863,5,47,0,0,863,864,5,42,0,0,864,868,1,0,0,0,865,867, - 9,0,0,0,866,865,1,0,0,0,867,870,1,0,0,0,868,869,1,0,0,0,868,866, - 1,0,0,0,869,871,1,0,0,0,870,868,1,0,0,0,871,872,5,42,0,0,872,873, - 5,47,0,0,873,874,1,0,0,0,874,875,6,104,0,0,875,210,1,0,0,0,876,877, - 5,47,0,0,877,878,5,47,0,0,878,882,1,0,0,0,879,881,8,11,0,0,880,879, - 1,0,0,0,881,884,1,0,0,0,882,880,1,0,0,0,882,883,1,0,0,0,883,889, - 1,0,0,0,884,882,1,0,0,0,885,887,5,13,0,0,886,885,1,0,0,0,886,887, - 1,0,0,0,887,888,1,0,0,0,888,890,5,10,0,0,889,886,1,0,0,0,889,890, - 1,0,0,0,890,891,1,0,0,0,891,892,6,105,0,0,892,212,1,0,0,0,893,895, - 7,12,0,0,894,893,1,0,0,0,895,896,1,0,0,0,896,894,1,0,0,0,896,897, - 1,0,0,0,897,898,1,0,0,0,898,899,6,106,0,0,899,214,1,0,0,0,49,0,662, - 667,673,678,683,685,688,695,698,702,704,710,714,719,724,728,733, - 739,744,747,753,757,762,768,772,778,784,790,796,798,801,807,811, - 817,819,827,833,835,844,846,854,856,860,868,882,886,889,896,1,6, + 7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,1,0,1,0,1, + 0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, + 1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,4,1,4,1, + 5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,8,1, + 8,1,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1, + 10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1, + 10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1, + 12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1, + 13,1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1, + 14,1,14,1,14,1,15,1,15,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1, + 17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1, + 19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1, + 22,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1, + 25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1, + 28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29,1, + 30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1, + 31,1,31,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1, + 33,1,33,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,38,1,38,1,38,1, + 38,1,38,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1, + 41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1, + 42,1,42,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,1, + 45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1, + 47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,50,1, + 50,1,51,1,51,1,51,1,52,1,52,1,53,1,53,1,53,1,54,1,54,1,54,1,55,1, + 55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1, + 61,1,62,1,62,1,62,1,63,1,63,1,63,1,64,1,64,1,64,1,65,1,65,1,65,1, + 66,1,66,1,66,1,67,1,67,1,67,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1, + 71,1,71,1,71,1,72,1,72,1,73,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1, + 75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,78,1,79,1,79,1,79,1, + 80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1, + 83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1, + 85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1, + 87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1, + 88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1, + 90,1,91,1,91,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1, + 93,3,93,674,8,93,1,94,4,94,677,8,94,11,94,12,94,678,1,94,1,94,5, + 94,683,8,94,10,94,12,94,686,9,94,1,94,1,94,3,94,690,8,94,1,94,4, + 94,693,8,94,11,94,12,94,694,3,94,697,8,94,1,94,3,94,700,8,94,1,95, + 1,95,1,95,1,95,1,95,3,95,707,8,95,1,95,3,95,710,8,95,1,95,1,95,3, + 95,714,8,95,3,95,716,8,95,1,96,1,96,1,96,1,96,3,96,722,8,96,1,96, + 1,96,3,96,726,8,96,1,96,5,96,729,8,96,10,96,12,96,732,9,96,1,97, + 1,97,3,97,736,8,97,1,97,1,97,3,97,740,8,97,1,97,5,97,743,8,97,10, + 97,12,97,746,9,97,1,98,1,98,1,98,3,98,751,8,98,1,98,5,98,754,8,98, + 10,98,12,98,757,9,98,3,98,759,8,98,1,99,1,99,1,99,1,99,3,99,765, + 8,99,1,99,1,99,3,99,769,8,99,1,99,5,99,772,8,99,10,99,12,99,775, + 9,99,1,100,4,100,778,8,100,11,100,12,100,779,1,100,1,100,3,100,784, + 8,100,1,100,1,100,4,100,788,8,100,11,100,12,100,789,1,100,1,100, + 4,100,794,8,100,11,100,12,100,795,1,100,1,100,4,100,800,8,100,11, + 100,12,100,801,1,100,1,100,4,100,806,8,100,11,100,12,100,807,3,100, + 810,8,100,1,101,3,101,813,8,101,1,101,1,101,5,101,817,8,101,10,101, + 12,101,820,9,101,1,102,3,102,823,8,102,1,102,1,102,1,102,1,102,5, + 102,829,8,102,10,102,12,102,832,9,102,1,102,1,102,1,103,1,103,1, + 103,3,103,839,8,103,1,103,1,103,1,103,1,103,5,103,845,8,103,10,103, + 12,103,848,9,103,1,103,1,103,1,104,1,104,1,104,1,104,5,104,856,8, + 104,10,104,12,104,859,9,104,1,104,1,104,1,104,1,104,1,104,5,104, + 866,8,104,10,104,12,104,869,9,104,1,104,3,104,872,8,104,1,105,1, + 105,1,105,1,105,5,105,878,8,105,10,105,12,105,881,9,105,1,105,1, + 105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,5,106,892,8,106,10, + 106,12,106,895,9,106,1,106,3,106,898,8,106,1,106,3,106,901,8,106, + 1,106,1,106,1,107,4,107,906,8,107,11,107,12,107,907,1,107,1,107, + 1,879,0,108,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11, + 23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22, + 45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33, + 67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44, + 89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54, + 109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127, + 64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73, + 147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165, + 83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92, + 185,93,187,94,189,95,191,96,193,0,195,0,197,0,199,0,201,0,203,97, + 205,98,207,99,209,100,211,101,213,102,215,103,1,0,13,2,0,69,69,101, + 101,2,0,43,43,45,45,4,0,70,70,76,76,102,102,108,108,2,0,85,85,117, + 117,2,0,76,76,108,108,3,0,48,57,65,70,97,102,3,0,65,90,95,95,97, + 122,4,0,48,57,65,90,95,95,97,122,3,0,76,76,85,85,117,117,2,0,39, + 39,92,92,2,0,34,34,92,92,2,0,10,10,13,13,3,0,9,10,13,13,32,32,958, + 0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11, + 1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21, + 1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31, + 1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41, + 1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51, + 1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61, + 1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71, + 1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81, + 1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91, + 1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101, + 1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0, + 0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1, + 0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0, + 129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0, + 0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147, + 1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0, + 0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1, + 0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0, + 175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0, + 0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,203, + 1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0, + 0,213,1,0,0,0,0,215,1,0,0,0,1,217,1,0,0,0,3,224,1,0,0,0,5,239,1, + 0,0,0,7,247,1,0,0,0,9,249,1,0,0,0,11,251,1,0,0,0,13,253,1,0,0,0, + 15,262,1,0,0,0,17,264,1,0,0,0,19,269,1,0,0,0,21,278,1,0,0,0,23,298, + 1,0,0,0,25,308,1,0,0,0,27,321,1,0,0,0,29,328,1,0,0,0,31,337,1,0, + 0,0,33,339,1,0,0,0,35,342,1,0,0,0,37,351,1,0,0,0,39,360,1,0,0,0, + 41,367,1,0,0,0,43,369,1,0,0,0,45,371,1,0,0,0,47,374,1,0,0,0,49,379, + 1,0,0,0,51,383,1,0,0,0,53,389,1,0,0,0,55,392,1,0,0,0,57,399,1,0, + 0,0,59,406,1,0,0,0,61,412,1,0,0,0,63,421,1,0,0,0,65,427,1,0,0,0, + 67,432,1,0,0,0,69,440,1,0,0,0,71,442,1,0,0,0,73,444,1,0,0,0,75,446, + 1,0,0,0,77,448,1,0,0,0,79,453,1,0,0,0,81,458,1,0,0,0,83,463,1,0, + 0,0,85,472,1,0,0,0,87,479,1,0,0,0,89,484,1,0,0,0,91,490,1,0,0,0, + 93,494,1,0,0,0,95,499,1,0,0,0,97,505,1,0,0,0,99,512,1,0,0,0,101, + 515,1,0,0,0,103,517,1,0,0,0,105,520,1,0,0,0,107,522,1,0,0,0,109, + 525,1,0,0,0,111,528,1,0,0,0,113,531,1,0,0,0,115,533,1,0,0,0,117, + 535,1,0,0,0,119,537,1,0,0,0,121,539,1,0,0,0,123,541,1,0,0,0,125, + 543,1,0,0,0,127,546,1,0,0,0,129,549,1,0,0,0,131,552,1,0,0,0,133, + 555,1,0,0,0,135,558,1,0,0,0,137,561,1,0,0,0,139,563,1,0,0,0,141, + 565,1,0,0,0,143,568,1,0,0,0,145,571,1,0,0,0,147,573,1,0,0,0,149, + 576,1,0,0,0,151,579,1,0,0,0,153,582,1,0,0,0,155,585,1,0,0,0,157, + 588,1,0,0,0,159,591,1,0,0,0,161,594,1,0,0,0,163,598,1,0,0,0,165, + 603,1,0,0,0,167,607,1,0,0,0,169,610,1,0,0,0,171,616,1,0,0,0,173, + 622,1,0,0,0,175,631,1,0,0,0,177,638,1,0,0,0,179,647,1,0,0,0,181, + 654,1,0,0,0,183,660,1,0,0,0,185,662,1,0,0,0,187,673,1,0,0,0,189, + 676,1,0,0,0,191,706,1,0,0,0,193,721,1,0,0,0,195,733,1,0,0,0,197, + 758,1,0,0,0,199,764,1,0,0,0,201,777,1,0,0,0,203,812,1,0,0,0,205, + 822,1,0,0,0,207,838,1,0,0,0,209,871,1,0,0,0,211,873,1,0,0,0,213, + 887,1,0,0,0,215,905,1,0,0,0,217,218,5,105,0,0,218,219,5,109,0,0, + 219,220,5,112,0,0,220,221,5,111,0,0,221,222,5,114,0,0,222,223,5, + 116,0,0,223,2,1,0,0,0,224,225,5,73,0,0,225,226,5,110,0,0,226,227, + 5,115,0,0,227,228,5,116,0,0,228,229,5,114,0,0,229,230,5,117,0,0, + 230,231,5,99,0,0,231,232,5,116,0,0,232,233,5,105,0,0,233,234,5,111, + 0,0,234,235,5,110,0,0,235,236,5,83,0,0,236,237,5,101,0,0,237,238, + 5,116,0,0,238,4,1,0,0,0,239,240,5,101,0,0,240,241,5,120,0,0,241, + 242,5,116,0,0,242,243,5,101,0,0,243,244,5,110,0,0,244,245,5,100, + 0,0,245,246,5,115,0,0,246,6,1,0,0,0,247,248,5,44,0,0,248,8,1,0,0, + 0,249,250,5,123,0,0,250,10,1,0,0,0,251,252,5,125,0,0,252,12,1,0, + 0,0,253,254,5,99,0,0,254,255,5,111,0,0,255,256,5,109,0,0,256,257, + 5,98,0,0,257,258,5,105,0,0,258,259,5,110,0,0,259,260,5,101,0,0,260, + 261,5,115,0,0,261,14,1,0,0,0,262,263,5,59,0,0,263,16,1,0,0,0,264, + 265,5,67,0,0,265,266,5,111,0,0,266,267,5,114,0,0,267,268,5,101,0, + 0,268,18,1,0,0,0,269,270,5,112,0,0,270,271,5,114,0,0,271,272,5,111, + 0,0,272,273,5,118,0,0,273,274,5,105,0,0,274,275,5,100,0,0,275,276, + 5,101,0,0,276,277,5,115,0,0,277,20,1,0,0,0,278,279,5,97,0,0,279, + 280,5,114,0,0,280,281,5,99,0,0,281,282,5,104,0,0,282,283,5,105,0, + 0,283,284,5,116,0,0,284,285,5,101,0,0,285,286,5,99,0,0,286,287,5, + 116,0,0,287,288,5,117,0,0,288,289,5,114,0,0,289,290,5,97,0,0,290, + 291,5,108,0,0,291,292,5,95,0,0,292,293,5,115,0,0,293,294,5,116,0, + 0,294,295,5,97,0,0,295,296,5,116,0,0,296,297,5,101,0,0,297,22,1, + 0,0,0,298,299,5,102,0,0,299,300,5,117,0,0,300,301,5,110,0,0,301, + 302,5,99,0,0,302,303,5,116,0,0,303,304,5,105,0,0,304,305,5,111,0, + 0,305,306,5,110,0,0,306,307,5,115,0,0,307,24,1,0,0,0,308,309,5,105, + 0,0,309,310,5,110,0,0,310,311,5,115,0,0,311,312,5,116,0,0,312,313, + 5,114,0,0,313,314,5,117,0,0,314,315,5,99,0,0,315,316,5,116,0,0,316, + 317,5,105,0,0,317,318,5,111,0,0,318,319,5,110,0,0,319,320,5,115, + 0,0,320,26,1,0,0,0,321,322,5,97,0,0,322,323,5,108,0,0,323,324,5, + 119,0,0,324,325,5,97,0,0,325,326,5,121,0,0,326,327,5,115,0,0,327, + 28,1,0,0,0,328,329,5,101,0,0,329,330,5,110,0,0,330,331,5,99,0,0, + 331,332,5,111,0,0,332,333,5,100,0,0,333,334,5,105,0,0,334,335,5, + 110,0,0,335,336,5,103,0,0,336,30,1,0,0,0,337,338,5,58,0,0,338,32, + 1,0,0,0,339,340,5,58,0,0,340,341,5,58,0,0,341,34,1,0,0,0,342,343, + 5,97,0,0,343,344,5,115,0,0,344,345,5,115,0,0,345,346,5,101,0,0,346, + 347,5,109,0,0,347,348,5,98,0,0,348,349,5,108,0,0,349,350,5,121,0, + 0,350,36,1,0,0,0,351,352,5,98,0,0,352,353,5,101,0,0,353,354,5,104, + 0,0,354,355,5,97,0,0,355,356,5,118,0,0,356,357,5,105,0,0,357,358, + 5,111,0,0,358,359,5,114,0,0,359,38,1,0,0,0,360,361,5,101,0,0,361, + 362,5,120,0,0,362,363,5,116,0,0,363,364,5,101,0,0,364,365,5,114, + 0,0,365,366,5,110,0,0,366,40,1,0,0,0,367,368,5,40,0,0,368,42,1,0, + 0,0,369,370,5,41,0,0,370,44,1,0,0,0,371,372,5,105,0,0,372,373,5, + 102,0,0,373,46,1,0,0,0,374,375,5,101,0,0,375,376,5,108,0,0,376,377, + 5,115,0,0,377,378,5,101,0,0,378,48,1,0,0,0,379,380,5,102,0,0,380, + 381,5,111,0,0,381,382,5,114,0,0,382,50,1,0,0,0,383,384,5,119,0,0, + 384,385,5,104,0,0,385,386,5,105,0,0,386,387,5,108,0,0,387,388,5, + 101,0,0,388,52,1,0,0,0,389,390,5,100,0,0,390,391,5,111,0,0,391,54, + 1,0,0,0,392,393,5,115,0,0,393,394,5,119,0,0,394,395,5,105,0,0,395, + 396,5,116,0,0,396,397,5,99,0,0,397,398,5,104,0,0,398,56,1,0,0,0, + 399,400,5,114,0,0,400,401,5,101,0,0,401,402,5,116,0,0,402,403,5, + 117,0,0,403,404,5,114,0,0,404,405,5,110,0,0,405,58,1,0,0,0,406,407, + 5,98,0,0,407,408,5,114,0,0,408,409,5,101,0,0,409,410,5,97,0,0,410, + 411,5,107,0,0,411,60,1,0,0,0,412,413,5,99,0,0,413,414,5,111,0,0, + 414,415,5,110,0,0,415,416,5,116,0,0,416,417,5,105,0,0,417,418,5, + 110,0,0,418,419,5,117,0,0,419,420,5,101,0,0,420,62,1,0,0,0,421,422, + 5,115,0,0,422,423,5,112,0,0,423,424,5,97,0,0,424,425,5,119,0,0,425, + 426,5,110,0,0,426,64,1,0,0,0,427,428,5,99,0,0,428,429,5,97,0,0,429, + 430,5,115,0,0,430,431,5,101,0,0,431,66,1,0,0,0,432,433,5,100,0,0, + 433,434,5,101,0,0,434,435,5,102,0,0,435,436,5,97,0,0,436,437,5,117, + 0,0,437,438,5,108,0,0,438,439,5,116,0,0,439,68,1,0,0,0,440,441,5, + 42,0,0,441,70,1,0,0,0,442,443,5,38,0,0,443,72,1,0,0,0,444,445,5, + 60,0,0,445,74,1,0,0,0,446,447,5,62,0,0,447,76,1,0,0,0,448,449,5, + 98,0,0,449,450,5,111,0,0,450,451,5,111,0,0,451,452,5,108,0,0,452, + 78,1,0,0,0,453,454,5,118,0,0,454,455,5,111,0,0,455,456,5,105,0,0, + 456,457,5,100,0,0,457,80,1,0,0,0,458,459,5,101,0,0,459,460,5,110, + 0,0,460,461,5,117,0,0,461,462,5,109,0,0,462,82,1,0,0,0,463,464,5, + 117,0,0,464,465,5,110,0,0,465,466,5,115,0,0,466,467,5,105,0,0,467, + 468,5,103,0,0,468,469,5,110,0,0,469,470,5,101,0,0,470,471,5,100, + 0,0,471,84,1,0,0,0,472,473,5,115,0,0,473,474,5,105,0,0,474,475,5, + 103,0,0,475,476,5,110,0,0,476,477,5,101,0,0,477,478,5,100,0,0,478, + 86,1,0,0,0,479,480,5,99,0,0,480,481,5,104,0,0,481,482,5,97,0,0,482, + 483,5,114,0,0,483,88,1,0,0,0,484,485,5,115,0,0,485,486,5,104,0,0, + 486,487,5,111,0,0,487,488,5,114,0,0,488,489,5,116,0,0,489,90,1,0, + 0,0,490,491,5,105,0,0,491,492,5,110,0,0,492,493,5,116,0,0,493,92, + 1,0,0,0,494,495,5,108,0,0,495,496,5,111,0,0,496,497,5,110,0,0,497, + 498,5,103,0,0,498,94,1,0,0,0,499,500,5,102,0,0,500,501,5,108,0,0, + 501,502,5,111,0,0,502,503,5,97,0,0,503,504,5,116,0,0,504,96,1,0, + 0,0,505,506,5,100,0,0,506,507,5,111,0,0,507,508,5,117,0,0,508,509, + 5,98,0,0,509,510,5,108,0,0,510,511,5,101,0,0,511,98,1,0,0,0,512, + 513,5,91,0,0,513,514,5,91,0,0,514,100,1,0,0,0,515,516,5,61,0,0,516, + 102,1,0,0,0,517,518,5,93,0,0,518,519,5,93,0,0,519,104,1,0,0,0,520, + 521,5,46,0,0,521,106,1,0,0,0,522,523,5,45,0,0,523,524,5,62,0,0,524, + 108,1,0,0,0,525,526,5,43,0,0,526,527,5,43,0,0,527,110,1,0,0,0,528, + 529,5,45,0,0,529,530,5,45,0,0,530,112,1,0,0,0,531,532,5,43,0,0,532, + 114,1,0,0,0,533,534,5,45,0,0,534,116,1,0,0,0,535,536,5,126,0,0,536, + 118,1,0,0,0,537,538,5,33,0,0,538,120,1,0,0,0,539,540,5,47,0,0,540, + 122,1,0,0,0,541,542,5,37,0,0,542,124,1,0,0,0,543,544,5,60,0,0,544, + 545,5,60,0,0,545,126,1,0,0,0,546,547,5,62,0,0,547,548,5,62,0,0,548, + 128,1,0,0,0,549,550,5,60,0,0,550,551,5,61,0,0,551,130,1,0,0,0,552, + 553,5,62,0,0,553,554,5,61,0,0,554,132,1,0,0,0,555,556,5,61,0,0,556, + 557,5,61,0,0,557,134,1,0,0,0,558,559,5,33,0,0,559,560,5,61,0,0,560, + 136,1,0,0,0,561,562,5,94,0,0,562,138,1,0,0,0,563,564,5,124,0,0,564, + 140,1,0,0,0,565,566,5,38,0,0,566,567,5,38,0,0,567,142,1,0,0,0,568, + 569,5,124,0,0,569,570,5,124,0,0,570,144,1,0,0,0,571,572,5,63,0,0, + 572,146,1,0,0,0,573,574,5,43,0,0,574,575,5,61,0,0,575,148,1,0,0, + 0,576,577,5,45,0,0,577,578,5,61,0,0,578,150,1,0,0,0,579,580,5,42, + 0,0,580,581,5,61,0,0,581,152,1,0,0,0,582,583,5,47,0,0,583,584,5, + 61,0,0,584,154,1,0,0,0,585,586,5,38,0,0,586,587,5,61,0,0,587,156, + 1,0,0,0,588,589,5,124,0,0,589,590,5,61,0,0,590,158,1,0,0,0,591,592, + 5,94,0,0,592,593,5,61,0,0,593,160,1,0,0,0,594,595,5,62,0,0,595,596, + 5,62,0,0,596,597,5,61,0,0,597,162,1,0,0,0,598,599,5,62,0,0,599,600, + 5,62,0,0,600,601,5,62,0,0,601,602,5,61,0,0,602,164,1,0,0,0,603,604, + 5,60,0,0,604,605,5,60,0,0,605,606,5,61,0,0,606,166,1,0,0,0,607,608, + 5,37,0,0,608,609,5,61,0,0,609,168,1,0,0,0,610,611,5,97,0,0,611,612, + 5,108,0,0,612,613,5,105,0,0,613,614,5,97,0,0,614,615,5,115,0,0,615, + 170,1,0,0,0,616,617,5,99,0,0,617,618,5,111,0,0,618,619,5,110,0,0, + 619,620,5,115,0,0,620,621,5,116,0,0,621,172,1,0,0,0,622,623,5,118, + 0,0,623,624,5,111,0,0,624,625,5,108,0,0,625,626,5,97,0,0,626,627, + 5,116,0,0,627,628,5,105,0,0,628,629,5,108,0,0,629,630,5,101,0,0, + 630,174,1,0,0,0,631,632,5,115,0,0,632,633,5,116,0,0,633,634,5,97, + 0,0,634,635,5,116,0,0,635,636,5,105,0,0,636,637,5,99,0,0,637,176, + 1,0,0,0,638,639,5,114,0,0,639,640,5,101,0,0,640,641,5,103,0,0,641, + 642,5,105,0,0,642,643,5,115,0,0,643,644,5,116,0,0,644,645,5,101, + 0,0,645,646,5,114,0,0,646,178,1,0,0,0,647,648,5,115,0,0,648,649, + 5,116,0,0,649,650,5,114,0,0,650,651,5,117,0,0,651,652,5,99,0,0,652, + 653,5,116,0,0,653,180,1,0,0,0,654,655,5,117,0,0,655,656,5,110,0, + 0,656,657,5,105,0,0,657,658,5,111,0,0,658,659,5,110,0,0,659,182, + 1,0,0,0,660,661,5,91,0,0,661,184,1,0,0,0,662,663,5,93,0,0,663,186, + 1,0,0,0,664,665,5,116,0,0,665,666,5,114,0,0,666,667,5,117,0,0,667, + 674,5,101,0,0,668,669,5,102,0,0,669,670,5,97,0,0,670,671,5,108,0, + 0,671,672,5,115,0,0,672,674,5,101,0,0,673,664,1,0,0,0,673,668,1, + 0,0,0,674,188,1,0,0,0,675,677,2,48,57,0,676,675,1,0,0,0,677,678, + 1,0,0,0,678,676,1,0,0,0,678,679,1,0,0,0,679,680,1,0,0,0,680,684, + 5,46,0,0,681,683,2,48,57,0,682,681,1,0,0,0,683,686,1,0,0,0,684,682, + 1,0,0,0,684,685,1,0,0,0,685,696,1,0,0,0,686,684,1,0,0,0,687,689, + 7,0,0,0,688,690,7,1,0,0,689,688,1,0,0,0,689,690,1,0,0,0,690,692, + 1,0,0,0,691,693,2,48,57,0,692,691,1,0,0,0,693,694,1,0,0,0,694,692, + 1,0,0,0,694,695,1,0,0,0,695,697,1,0,0,0,696,687,1,0,0,0,696,697, + 1,0,0,0,697,699,1,0,0,0,698,700,7,2,0,0,699,698,1,0,0,0,699,700, + 1,0,0,0,700,190,1,0,0,0,701,707,3,193,96,0,702,707,3,199,99,0,703, + 707,3,195,97,0,704,707,3,197,98,0,705,707,3,201,100,0,706,701,1, + 0,0,0,706,702,1,0,0,0,706,703,1,0,0,0,706,704,1,0,0,0,706,705,1, + 0,0,0,707,709,1,0,0,0,708,710,7,3,0,0,709,708,1,0,0,0,709,710,1, + 0,0,0,710,715,1,0,0,0,711,713,7,4,0,0,712,714,7,4,0,0,713,712,1, + 0,0,0,713,714,1,0,0,0,714,716,1,0,0,0,715,711,1,0,0,0,715,716,1, + 0,0,0,716,192,1,0,0,0,717,718,5,48,0,0,718,722,5,98,0,0,719,720, + 5,48,0,0,720,722,5,66,0,0,721,717,1,0,0,0,721,719,1,0,0,0,722,723, + 1,0,0,0,723,730,2,48,49,0,724,726,5,95,0,0,725,724,1,0,0,0,725,726, + 1,0,0,0,726,727,1,0,0,0,727,729,2,48,49,0,728,725,1,0,0,0,729,732, + 1,0,0,0,730,728,1,0,0,0,730,731,1,0,0,0,731,194,1,0,0,0,732,730, + 1,0,0,0,733,735,5,48,0,0,734,736,5,95,0,0,735,734,1,0,0,0,735,736, + 1,0,0,0,736,737,1,0,0,0,737,744,2,48,55,0,738,740,5,95,0,0,739,738, + 1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,743,2,48,55,0,742,739, + 1,0,0,0,743,746,1,0,0,0,744,742,1,0,0,0,744,745,1,0,0,0,745,196, + 1,0,0,0,746,744,1,0,0,0,747,759,5,48,0,0,748,755,2,49,57,0,749,751, + 5,95,0,0,750,749,1,0,0,0,750,751,1,0,0,0,751,752,1,0,0,0,752,754, + 2,48,57,0,753,750,1,0,0,0,754,757,1,0,0,0,755,753,1,0,0,0,755,756, + 1,0,0,0,756,759,1,0,0,0,757,755,1,0,0,0,758,747,1,0,0,0,758,748, + 1,0,0,0,759,198,1,0,0,0,760,761,5,48,0,0,761,765,5,120,0,0,762,763, + 5,48,0,0,763,765,5,88,0,0,764,760,1,0,0,0,764,762,1,0,0,0,765,766, + 1,0,0,0,766,773,7,5,0,0,767,769,5,95,0,0,768,767,1,0,0,0,768,769, + 1,0,0,0,769,770,1,0,0,0,770,772,7,5,0,0,771,768,1,0,0,0,772,775, + 1,0,0,0,773,771,1,0,0,0,773,774,1,0,0,0,774,200,1,0,0,0,775,773, + 1,0,0,0,776,778,2,48,57,0,777,776,1,0,0,0,778,779,1,0,0,0,779,777, + 1,0,0,0,779,780,1,0,0,0,780,781,1,0,0,0,781,783,5,39,0,0,782,784, + 5,115,0,0,783,782,1,0,0,0,783,784,1,0,0,0,784,809,1,0,0,0,785,787, + 5,98,0,0,786,788,2,48,49,0,787,786,1,0,0,0,788,789,1,0,0,0,789,787, + 1,0,0,0,789,790,1,0,0,0,790,810,1,0,0,0,791,793,5,111,0,0,792,794, + 2,48,55,0,793,792,1,0,0,0,794,795,1,0,0,0,795,793,1,0,0,0,795,796, + 1,0,0,0,796,810,1,0,0,0,797,799,5,100,0,0,798,800,2,48,57,0,799, + 798,1,0,0,0,800,801,1,0,0,0,801,799,1,0,0,0,801,802,1,0,0,0,802, + 810,1,0,0,0,803,805,5,104,0,0,804,806,7,5,0,0,805,804,1,0,0,0,806, + 807,1,0,0,0,807,805,1,0,0,0,807,808,1,0,0,0,808,810,1,0,0,0,809, + 785,1,0,0,0,809,791,1,0,0,0,809,797,1,0,0,0,809,803,1,0,0,0,810, + 202,1,0,0,0,811,813,5,94,0,0,812,811,1,0,0,0,812,813,1,0,0,0,813, + 814,1,0,0,0,814,818,7,6,0,0,815,817,7,7,0,0,816,815,1,0,0,0,817, + 820,1,0,0,0,818,816,1,0,0,0,818,819,1,0,0,0,819,204,1,0,0,0,820, + 818,1,0,0,0,821,823,7,8,0,0,822,821,1,0,0,0,822,823,1,0,0,0,823, + 824,1,0,0,0,824,830,5,39,0,0,825,826,5,92,0,0,826,829,9,0,0,0,827, + 829,8,9,0,0,828,825,1,0,0,0,828,827,1,0,0,0,829,832,1,0,0,0,830, + 828,1,0,0,0,830,831,1,0,0,0,831,833,1,0,0,0,832,830,1,0,0,0,833, + 834,5,39,0,0,834,206,1,0,0,0,835,836,5,117,0,0,836,839,5,56,0,0, + 837,839,7,8,0,0,838,835,1,0,0,0,838,837,1,0,0,0,839,840,1,0,0,0, + 840,846,5,34,0,0,841,842,5,92,0,0,842,845,9,0,0,0,843,845,8,10,0, + 0,844,841,1,0,0,0,844,843,1,0,0,0,845,848,1,0,0,0,846,844,1,0,0, + 0,846,847,1,0,0,0,847,849,1,0,0,0,848,846,1,0,0,0,849,850,5,34,0, + 0,850,208,1,0,0,0,851,857,5,34,0,0,852,853,5,92,0,0,853,856,9,0, + 0,0,854,856,8,10,0,0,855,852,1,0,0,0,855,854,1,0,0,0,856,859,1,0, + 0,0,857,855,1,0,0,0,857,858,1,0,0,0,858,860,1,0,0,0,859,857,1,0, + 0,0,860,872,5,34,0,0,861,867,5,39,0,0,862,863,5,92,0,0,863,866,9, + 0,0,0,864,866,8,9,0,0,865,862,1,0,0,0,865,864,1,0,0,0,866,869,1, + 0,0,0,867,865,1,0,0,0,867,868,1,0,0,0,868,870,1,0,0,0,869,867,1, + 0,0,0,870,872,5,39,0,0,871,851,1,0,0,0,871,861,1,0,0,0,872,210,1, + 0,0,0,873,874,5,47,0,0,874,875,5,42,0,0,875,879,1,0,0,0,876,878, + 9,0,0,0,877,876,1,0,0,0,878,881,1,0,0,0,879,880,1,0,0,0,879,877, + 1,0,0,0,880,882,1,0,0,0,881,879,1,0,0,0,882,883,5,42,0,0,883,884, + 5,47,0,0,884,885,1,0,0,0,885,886,6,105,0,0,886,212,1,0,0,0,887,888, + 5,47,0,0,888,889,5,47,0,0,889,893,1,0,0,0,890,892,8,11,0,0,891,890, + 1,0,0,0,892,895,1,0,0,0,893,891,1,0,0,0,893,894,1,0,0,0,894,900, + 1,0,0,0,895,893,1,0,0,0,896,898,5,13,0,0,897,896,1,0,0,0,897,898, + 1,0,0,0,898,899,1,0,0,0,899,901,5,10,0,0,900,897,1,0,0,0,900,901, + 1,0,0,0,901,902,1,0,0,0,902,903,6,106,0,0,903,214,1,0,0,0,904,906, + 7,12,0,0,905,904,1,0,0,0,906,907,1,0,0,0,907,905,1,0,0,0,907,908, + 1,0,0,0,908,909,1,0,0,0,909,910,6,107,0,0,910,216,1,0,0,0,49,0,673, + 678,684,689,694,696,699,706,709,713,715,721,725,730,735,739,744, + 750,755,758,764,768,773,779,783,789,795,801,807,809,812,818,822, + 828,830,838,844,846,855,857,865,867,871,879,893,897,900,907,1,6, 0,0 ] @@ -440,18 +444,19 @@ class CoreDSL2Lexer(Lexer): T__87 = 88 T__88 = 89 T__89 = 90 - LEFT_BR = 91 - RIGHT_BR = 92 - BOOLEAN = 93 - FLOAT = 94 - INTEGER = 95 - IDENTIFIER = 96 - CHARCONST = 97 - ENCSTRINGCONST = 98 - STRING = 99 - ML_COMMENT = 100 - SL_COMMENT = 101 - WS = 102 + T__90 = 91 + LEFT_BR = 92 + RIGHT_BR = 93 + BOOLEAN = 94 + FLOAT = 95 + INTEGER = 96 + IDENTIFIER = 97 + CHARCONST = 98 + ENCSTRINGCONST = 99 + STRING = 100 + ML_COMMENT = 101 + SL_COMMENT = 102 + WS = 103 channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ] @@ -459,19 +464,19 @@ class CoreDSL2Lexer(Lexer): literalNames = [ "", "'import'", "'InstructionSet'", "'extends'", "','", "'{'", "'}'", - "'Core'", "'provides'", "'architectural_state'", "';'", "'functions'", - "'instructions'", "'always'", "'encoding'", "':'", "'::'", "'assembly'", - "'behavior'", "'extern'", "'('", "')'", "'if'", "'else'", "'for'", - "'while'", "'do'", "'switch'", "'return'", "'break'", "'continue'", - "'spawn'", "'case'", "'default'", "'*'", "'&'", "'<'", "'>'", - "'bool'", "'void'", "'enum'", "'unsigned'", "'signed'", "'char'", - "'short'", "'int'", "'long'", "'float'", "'double'", "'[['", - "'='", "']]'", "'.'", "'->'", "'++'", "'--'", "'+'", "'-'", - "'~'", "'!'", "'/'", "'%'", "'<<'", "'>>'", "'<='", "'>='", - "'=='", "'!='", "'^'", "'|'", "'&&'", "'||'", "'?'", "'+='", - "'-='", "'*='", "'/='", "'&='", "'|='", "'^='", "'>>='", "'>>>='", - "'<<='", "'%='", "'alias'", "'const'", "'volatile'", "'static'", - "'register'", "'struct'", "'union'", "'['", "']'" ] + "'combines'", "';'", "'Core'", "'provides'", "'architectural_state'", + "'functions'", "'instructions'", "'always'", "'encoding'", "':'", + "'::'", "'assembly'", "'behavior'", "'extern'", "'('", "')'", + "'if'", "'else'", "'for'", "'while'", "'do'", "'switch'", "'return'", + "'break'", "'continue'", "'spawn'", "'case'", "'default'", "'*'", + "'&'", "'<'", "'>'", "'bool'", "'void'", "'enum'", "'unsigned'", + "'signed'", "'char'", "'short'", "'int'", "'long'", "'float'", + "'double'", "'[['", "'='", "']]'", "'.'", "'->'", "'++'", "'--'", + "'+'", "'-'", "'~'", "'!'", "'/'", "'%'", "'<<'", "'>>'", "'<='", + "'>='", "'=='", "'!='", "'^'", "'|'", "'&&'", "'||'", "'?'", + "'+='", "'-='", "'*='", "'/='", "'&='", "'|='", "'^='", "'>>='", + "'>>>='", "'<<='", "'%='", "'alias'", "'const'", "'volatile'", + "'static'", "'register'", "'struct'", "'union'", "'['", "']'" ] symbolicNames = [ "", "LEFT_BR", "RIGHT_BR", "BOOLEAN", "FLOAT", "INTEGER", "IDENTIFIER", @@ -492,11 +497,11 @@ class CoreDSL2Lexer(Lexer): "T__68", "T__69", "T__70", "T__71", "T__72", "T__73", "T__74", "T__75", "T__76", "T__77", "T__78", "T__79", "T__80", "T__81", "T__82", "T__83", "T__84", "T__85", - "T__86", "T__87", "T__88", "T__89", "LEFT_BR", "RIGHT_BR", - "BOOLEAN", "FLOAT", "INTEGER", "BINARYINT", "OCTALINT", - "DECIMALINT", "HEXADECIMALINT", "VLOGINT", "IDENTIFIER", - "CHARCONST", "ENCSTRINGCONST", "STRING", "ML_COMMENT", - "SL_COMMENT", "WS" ] + "T__86", "T__87", "T__88", "T__89", "T__90", "LEFT_BR", + "RIGHT_BR", "BOOLEAN", "FLOAT", "INTEGER", "BINARYINT", + "OCTALINT", "DECIMALINT", "HEXADECIMALINT", "VLOGINT", + "IDENTIFIER", "CHARCONST", "ENCSTRINGCONST", "STRING", + "ML_COMMENT", "SL_COMMENT", "WS" ] grammarFileName = "CoreDSL2.g4" diff --git a/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Parser.py b/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Parser.py index 5f03d327..4f03dd70 100644 --- a/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Parser.py +++ b/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Parser.py @@ -10,7 +10,7 @@ def serializedATN(): return [ - 4,1,102,797,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6, + 4,1,103,809,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6, 7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7, 13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2, 20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7, @@ -20,297 +20,302 @@ def serializedATN(): 46,7,46,2,47,7,47,2,48,7,48,1,0,5,0,100,8,0,10,0,12,0,103,9,0,1, 0,4,0,106,8,0,11,0,12,0,107,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2, 5,2,119,8,2,10,2,12,2,122,9,2,3,2,124,8,2,1,2,1,2,5,2,128,8,2,10, - 2,12,2,131,9,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,5,2,140,8,2,10,2,12,2, - 143,9,2,3,2,145,8,2,1,2,1,2,5,2,149,8,2,10,2,12,2,152,9,2,1,2,3, - 2,155,8,2,1,3,1,3,1,3,1,3,1,3,1,3,4,3,163,8,3,11,3,12,3,164,1,3, - 1,3,1,3,1,3,1,3,4,3,172,8,3,11,3,12,3,173,1,3,1,3,1,3,1,3,5,3,180, - 8,3,10,3,12,3,183,9,3,1,3,1,3,5,3,187,8,3,10,3,12,3,190,9,3,1,3, - 1,3,1,3,5,3,195,8,3,10,3,12,3,198,9,3,1,3,1,3,4,3,202,8,3,11,3,12, - 3,203,1,3,1,3,3,3,208,8,3,1,4,1,4,5,4,212,8,4,10,4,12,4,215,9,4, - 1,4,1,4,1,5,1,5,5,5,221,8,5,10,5,12,5,224,9,5,1,5,1,5,1,5,1,5,1, - 5,1,5,5,5,232,8,5,10,5,12,5,235,9,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5, - 1,5,1,5,3,5,246,8,5,1,5,3,5,249,8,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6, - 1,6,5,6,259,8,6,10,6,12,6,262,9,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1, - 7,3,7,272,8,7,1,8,1,8,1,8,1,8,1,8,3,8,279,8,8,1,8,1,8,5,8,283,8, - 8,10,8,12,8,286,9,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,294,8,8,1,8,1,8, - 5,8,298,8,8,10,8,12,8,301,9,8,1,8,1,8,3,8,305,8,8,3,8,307,8,8,1, - 9,1,9,1,9,5,9,312,8,9,10,9,12,9,315,9,9,1,10,1,10,3,10,319,8,10, - 1,11,1,11,1,11,1,11,1,11,1,11,5,11,327,8,11,10,11,12,11,330,9,11, - 3,11,332,8,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11, - 1,11,1,11,1,11,1,11,5,11,348,8,11,10,11,12,11,351,9,11,1,11,1,11, - 3,11,355,8,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11, - 1,11,1,11,1,11,5,11,383,8,11,10,11,12,11,386,9,11,1,11,5,11,389, - 8,11,10,11,12,11,392,9,11,1,11,1,11,1,11,1,11,3,11,398,8,11,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,3,11,410,8,11,1,12, - 4,12,413,8,12,11,12,12,12,414,1,12,4,12,418,8,12,11,12,12,12,419, - 1,13,1,13,1,13,1,13,1,13,1,13,3,13,428,8,13,1,14,1,14,5,14,432,8, - 14,10,14,12,14,435,9,14,1,14,1,14,1,15,1,15,3,15,441,8,15,1,16,1, - 16,3,16,445,8,16,1,16,3,16,448,8,16,1,16,3,16,451,8,16,1,16,1,16, - 1,16,1,16,5,16,457,8,16,10,16,12,16,460,9,16,3,16,462,8,16,1,17, - 1,17,1,17,5,17,467,8,17,10,17,12,17,470,9,17,1,17,1,17,1,17,1,17, - 5,17,476,8,17,10,17,12,17,479,9,17,3,17,481,8,17,1,17,1,17,1,18, - 1,18,1,18,3,18,488,8,18,1,19,1,19,1,19,1,19,1,19,1,19,3,19,496,8, - 19,1,19,1,19,1,19,1,19,1,19,1,19,3,19,504,8,19,1,19,1,19,5,19,508, - 8,19,10,19,12,19,511,9,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,3,19, - 520,8,19,1,19,1,19,1,19,3,19,525,8,19,1,19,1,19,1,19,1,19,3,19,531, + 2,12,2,131,9,2,1,2,1,2,1,2,1,2,1,2,5,2,138,8,2,10,2,12,2,141,9,2, + 1,2,3,2,144,8,2,1,2,1,2,1,2,1,2,1,2,1,2,5,2,152,8,2,10,2,12,2,155, + 9,2,3,2,157,8,2,1,2,1,2,5,2,161,8,2,10,2,12,2,164,9,2,1,2,3,2,167, + 8,2,1,3,1,3,1,3,1,3,1,3,1,3,4,3,175,8,3,11,3,12,3,176,1,3,1,3,1, + 3,1,3,1,3,4,3,184,8,3,11,3,12,3,185,1,3,1,3,1,3,1,3,5,3,192,8,3, + 10,3,12,3,195,9,3,1,3,1,3,5,3,199,8,3,10,3,12,3,202,9,3,1,3,1,3, + 1,3,5,3,207,8,3,10,3,12,3,210,9,3,1,3,1,3,4,3,214,8,3,11,3,12,3, + 215,1,3,1,3,3,3,220,8,3,1,4,1,4,5,4,224,8,4,10,4,12,4,227,9,4,1, + 4,1,4,1,5,1,5,5,5,233,8,5,10,5,12,5,236,9,5,1,5,1,5,1,5,1,5,1,5, + 1,5,5,5,244,8,5,10,5,12,5,247,9,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1, + 5,1,5,3,5,258,8,5,1,5,3,5,261,8,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1, + 6,5,6,271,8,6,10,6,12,6,274,9,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7, + 3,7,284,8,7,1,8,1,8,1,8,1,8,1,8,3,8,291,8,8,1,8,1,8,5,8,295,8,8, + 10,8,12,8,298,9,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,306,8,8,1,8,1,8,5, + 8,310,8,8,10,8,12,8,313,9,8,1,8,1,8,3,8,317,8,8,3,8,319,8,8,1,9, + 1,9,1,9,5,9,324,8,9,10,9,12,9,327,9,9,1,10,1,10,3,10,331,8,10,1, + 11,1,11,1,11,1,11,1,11,1,11,5,11,339,8,11,10,11,12,11,342,9,11,3, + 11,344,8,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,1,11,1,11,5,11,360,8,11,10,11,12,11,363,9,11,1,11,1,11,3, + 11,367,8,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,1,11,5,11,395,8,11,10,11,12,11,398,9,11,1,11,5,11,401,8, + 11,10,11,12,11,404,9,11,1,11,1,11,1,11,1,11,3,11,410,8,11,1,11,1, + 11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,3,11,422,8,11,1,12,4, + 12,425,8,12,11,12,12,12,426,1,12,4,12,430,8,12,11,12,12,12,431,1, + 13,1,13,1,13,1,13,1,13,1,13,3,13,440,8,13,1,14,1,14,5,14,444,8,14, + 10,14,12,14,447,9,14,1,14,1,14,1,15,1,15,3,15,453,8,15,1,16,1,16, + 3,16,457,8,16,1,16,3,16,460,8,16,1,16,3,16,463,8,16,1,16,1,16,1, + 16,1,16,5,16,469,8,16,10,16,12,16,472,9,16,3,16,474,8,16,1,17,1, + 17,1,17,5,17,479,8,17,10,17,12,17,482,9,17,1,17,1,17,1,17,1,17,5, + 17,488,8,17,10,17,12,17,491,9,17,3,17,493,8,17,1,17,1,17,1,18,1, + 18,1,18,3,18,500,8,18,1,19,1,19,1,19,1,19,1,19,1,19,3,19,508,8,19, + 1,19,1,19,1,19,1,19,1,19,1,19,3,19,516,8,19,1,19,1,19,5,19,520,8, + 19,10,19,12,19,523,9,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,3,19, + 532,8,19,1,19,1,19,1,19,3,19,537,8,19,1,19,1,19,1,19,1,19,3,19,543, 8,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23, - 1,23,1,23,5,23,547,8,23,10,23,12,23,550,9,23,1,23,1,23,3,23,554, + 1,23,1,23,5,23,559,8,23,10,23,12,23,562,9,23,1,23,1,23,3,23,566, 8,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,3,24, - 567,8,24,1,24,1,24,1,25,1,25,1,25,5,25,574,8,25,10,25,12,25,577, - 9,25,1,26,1,26,1,26,1,26,3,26,583,8,26,1,27,1,27,1,27,1,27,5,27, - 589,8,27,10,27,12,27,592,9,27,1,27,1,27,1,28,1,28,3,28,598,8,28, - 1,29,1,29,1,29,1,29,1,29,5,29,605,8,29,10,29,12,29,608,9,29,1,29, - 5,29,611,8,29,10,29,12,29,614,9,29,1,29,1,29,3,29,618,8,29,1,30, - 1,30,1,30,1,30,3,30,624,8,30,1,30,1,30,3,30,628,8,30,1,31,1,31,3, - 31,632,8,31,1,31,1,31,1,31,3,31,637,8,31,5,31,639,8,31,10,31,12, - 31,642,9,31,1,32,4,32,645,8,32,11,32,12,32,646,1,32,1,32,1,32,1, - 33,1,33,1,33,1,33,1,33,1,33,3,33,658,8,33,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,5,34,669,8,34,10,34,12,34,672,9,34,3,34,674, - 8,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,686, - 8,34,1,34,1,34,1,34,3,34,691,8,34,1,34,1,34,1,34,1,34,1,34,1,34, + 579,8,24,1,24,1,24,1,25,1,25,1,25,5,25,586,8,25,10,25,12,25,589, + 9,25,1,26,1,26,1,26,1,26,3,26,595,8,26,1,27,1,27,1,27,1,27,5,27, + 601,8,27,10,27,12,27,604,9,27,1,27,1,27,1,28,1,28,3,28,610,8,28, + 1,29,1,29,1,29,1,29,1,29,5,29,617,8,29,10,29,12,29,620,9,29,1,29, + 5,29,623,8,29,10,29,12,29,626,9,29,1,29,1,29,3,29,630,8,29,1,30, + 1,30,1,30,1,30,3,30,636,8,30,1,30,1,30,3,30,640,8,30,1,31,1,31,3, + 31,644,8,31,1,31,1,31,1,31,3,31,649,8,31,5,31,651,8,31,10,31,12, + 31,654,9,31,1,32,4,32,657,8,32,11,32,12,32,658,1,32,1,32,1,32,1, + 33,1,33,1,33,1,33,1,33,1,33,3,33,670,8,33,1,34,1,34,1,34,1,34,1, + 34,1,34,1,34,1,34,1,34,5,34,681,8,34,10,34,12,34,684,9,34,3,34,686, + 8,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,698, + 8,34,1,34,1,34,1,34,3,34,703,8,34,1,34,1,34,1,34,1,34,1,34,1,34, 1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34, 1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34, 1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34, - 1,34,1,34,3,34,740,8,34,1,34,1,34,1,34,1,34,5,34,746,8,34,10,34, - 12,34,749,9,34,1,35,1,35,1,35,4,35,754,8,35,11,35,12,35,755,1,35, - 1,35,1,35,1,35,3,35,762,8,35,1,36,1,36,1,37,1,37,1,37,1,37,1,37, - 3,37,771,8,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,42,1,42, + 1,34,1,34,3,34,752,8,34,1,34,1,34,1,34,1,34,5,34,758,8,34,10,34, + 12,34,761,9,34,1,35,1,35,1,35,4,35,766,8,35,11,35,12,35,767,1,35, + 1,35,1,35,1,35,3,35,774,8,35,1,36,1,36,1,37,1,37,1,37,1,37,1,37, + 3,37,783,8,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,42,1,42, 1,43,1,43,1,43,1,44,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48, 1,48,1,48,0,1,68,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32, 34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76, - 78,80,82,84,86,88,90,92,94,96,0,18,1,0,41,42,1,0,43,46,1,0,47,48, - 1,0,52,53,1,0,54,55,2,0,34,35,56,57,1,0,58,59,2,0,34,34,60,61,1, - 0,56,57,1,0,62,63,2,0,36,37,64,65,1,0,66,67,2,0,50,50,73,83,1,0, - 98,99,3,0,38,39,41,48,84,84,1,0,85,86,2,0,19,19,87,88,1,0,89,90, - 880,0,101,1,0,0,0,2,109,1,0,0,0,4,154,1,0,0,0,6,207,1,0,0,0,8,209, - 1,0,0,0,10,218,1,0,0,0,12,255,1,0,0,0,14,271,1,0,0,0,16,306,1,0, - 0,0,18,308,1,0,0,0,20,316,1,0,0,0,22,409,1,0,0,0,24,412,1,0,0,0, - 26,427,1,0,0,0,28,429,1,0,0,0,30,440,1,0,0,0,32,447,1,0,0,0,34,468, - 1,0,0,0,36,484,1,0,0,0,38,530,1,0,0,0,40,532,1,0,0,0,42,534,1,0, - 0,0,44,536,1,0,0,0,46,538,1,0,0,0,48,557,1,0,0,0,50,570,1,0,0,0, - 52,582,1,0,0,0,54,584,1,0,0,0,56,597,1,0,0,0,58,599,1,0,0,0,60,627, - 1,0,0,0,62,631,1,0,0,0,64,644,1,0,0,0,66,657,1,0,0,0,68,690,1,0, - 0,0,70,761,1,0,0,0,72,763,1,0,0,0,74,770,1,0,0,0,76,772,1,0,0,0, - 78,774,1,0,0,0,80,776,1,0,0,0,82,778,1,0,0,0,84,780,1,0,0,0,86,782, - 1,0,0,0,88,785,1,0,0,0,90,788,1,0,0,0,92,790,1,0,0,0,94,792,1,0, - 0,0,96,794,1,0,0,0,98,100,3,2,1,0,99,98,1,0,0,0,100,103,1,0,0,0, + 78,80,82,84,86,88,90,92,94,96,0,18,1,0,42,43,1,0,44,47,1,0,48,49, + 1,0,53,54,1,0,55,56,2,0,35,36,57,58,1,0,59,60,2,0,35,35,61,62,1, + 0,57,58,1,0,63,64,2,0,37,38,65,66,1,0,67,68,2,0,51,51,74,84,1,0, + 99,100,3,0,39,40,42,49,85,85,1,0,86,87,2,0,20,20,88,89,1,0,90,91, + 894,0,101,1,0,0,0,2,109,1,0,0,0,4,166,1,0,0,0,6,219,1,0,0,0,8,221, + 1,0,0,0,10,230,1,0,0,0,12,267,1,0,0,0,14,283,1,0,0,0,16,318,1,0, + 0,0,18,320,1,0,0,0,20,328,1,0,0,0,22,421,1,0,0,0,24,424,1,0,0,0, + 26,439,1,0,0,0,28,441,1,0,0,0,30,452,1,0,0,0,32,459,1,0,0,0,34,480, + 1,0,0,0,36,496,1,0,0,0,38,542,1,0,0,0,40,544,1,0,0,0,42,546,1,0, + 0,0,44,548,1,0,0,0,46,550,1,0,0,0,48,569,1,0,0,0,50,582,1,0,0,0, + 52,594,1,0,0,0,54,596,1,0,0,0,56,609,1,0,0,0,58,611,1,0,0,0,60,639, + 1,0,0,0,62,643,1,0,0,0,64,656,1,0,0,0,66,669,1,0,0,0,68,702,1,0, + 0,0,70,773,1,0,0,0,72,775,1,0,0,0,74,782,1,0,0,0,76,784,1,0,0,0, + 78,786,1,0,0,0,80,788,1,0,0,0,82,790,1,0,0,0,84,792,1,0,0,0,86,794, + 1,0,0,0,88,797,1,0,0,0,90,800,1,0,0,0,92,802,1,0,0,0,94,804,1,0, + 0,0,96,806,1,0,0,0,98,100,3,2,1,0,99,98,1,0,0,0,100,103,1,0,0,0, 101,99,1,0,0,0,101,102,1,0,0,0,102,105,1,0,0,0,103,101,1,0,0,0,104, 106,3,4,2,0,105,104,1,0,0,0,106,107,1,0,0,0,107,105,1,0,0,0,107, - 108,1,0,0,0,108,1,1,0,0,0,109,110,5,1,0,0,110,111,5,99,0,0,111,3, - 1,0,0,0,112,113,5,2,0,0,113,123,5,96,0,0,114,115,5,3,0,0,115,120, - 5,96,0,0,116,117,5,4,0,0,117,119,5,96,0,0,118,116,1,0,0,0,119,122, + 108,1,0,0,0,108,1,1,0,0,0,109,110,5,1,0,0,110,111,5,100,0,0,111, + 3,1,0,0,0,112,113,5,2,0,0,113,123,5,97,0,0,114,115,5,3,0,0,115,120, + 5,97,0,0,116,117,5,4,0,0,117,119,5,97,0,0,118,116,1,0,0,0,119,122, 1,0,0,0,120,118,1,0,0,0,120,121,1,0,0,0,121,124,1,0,0,0,122,120, 1,0,0,0,123,114,1,0,0,0,123,124,1,0,0,0,124,125,1,0,0,0,125,129, 5,5,0,0,126,128,3,6,3,0,127,126,1,0,0,0,128,131,1,0,0,0,129,127, - 1,0,0,0,129,130,1,0,0,0,130,132,1,0,0,0,131,129,1,0,0,0,132,155, - 5,6,0,0,133,134,5,7,0,0,134,144,5,96,0,0,135,136,5,8,0,0,136,141, - 5,96,0,0,137,138,5,4,0,0,138,140,5,96,0,0,139,137,1,0,0,0,140,143, - 1,0,0,0,141,139,1,0,0,0,141,142,1,0,0,0,142,145,1,0,0,0,143,141, - 1,0,0,0,144,135,1,0,0,0,144,145,1,0,0,0,145,146,1,0,0,0,146,150, - 5,5,0,0,147,149,3,6,3,0,148,147,1,0,0,0,149,152,1,0,0,0,150,148, - 1,0,0,0,150,151,1,0,0,0,151,153,1,0,0,0,152,150,1,0,0,0,153,155, - 5,6,0,0,154,112,1,0,0,0,154,133,1,0,0,0,155,5,1,0,0,0,156,157,5, - 9,0,0,157,162,5,5,0,0,158,163,3,34,17,0,159,160,3,68,34,0,160,161, - 5,10,0,0,161,163,1,0,0,0,162,158,1,0,0,0,162,159,1,0,0,0,163,164, - 1,0,0,0,164,162,1,0,0,0,164,165,1,0,0,0,165,166,1,0,0,0,166,167, - 5,6,0,0,167,208,1,0,0,0,168,169,5,11,0,0,169,171,5,5,0,0,170,172, - 3,16,8,0,171,170,1,0,0,0,172,173,1,0,0,0,173,171,1,0,0,0,173,174, - 1,0,0,0,174,175,1,0,0,0,175,176,5,6,0,0,176,208,1,0,0,0,177,181, - 5,12,0,0,178,180,3,46,23,0,179,178,1,0,0,0,180,183,1,0,0,0,181,179, - 1,0,0,0,181,182,1,0,0,0,182,184,1,0,0,0,183,181,1,0,0,0,184,188, - 5,5,0,0,185,187,3,10,5,0,186,185,1,0,0,0,187,190,1,0,0,0,188,186, - 1,0,0,0,188,189,1,0,0,0,189,191,1,0,0,0,190,188,1,0,0,0,191,208, - 5,6,0,0,192,196,5,13,0,0,193,195,3,46,23,0,194,193,1,0,0,0,195,198, - 1,0,0,0,196,194,1,0,0,0,196,197,1,0,0,0,197,199,1,0,0,0,198,196, - 1,0,0,0,199,201,5,5,0,0,200,202,3,8,4,0,201,200,1,0,0,0,202,203, - 1,0,0,0,203,201,1,0,0,0,203,204,1,0,0,0,204,205,1,0,0,0,205,206, - 5,6,0,0,206,208,1,0,0,0,207,156,1,0,0,0,207,168,1,0,0,0,207,177, - 1,0,0,0,207,192,1,0,0,0,208,7,1,0,0,0,209,213,5,96,0,0,210,212,3, - 46,23,0,211,210,1,0,0,0,212,215,1,0,0,0,213,211,1,0,0,0,213,214, - 1,0,0,0,214,216,1,0,0,0,215,213,1,0,0,0,216,217,3,28,14,0,217,9, - 1,0,0,0,218,222,5,96,0,0,219,221,3,46,23,0,220,219,1,0,0,0,221,224, - 1,0,0,0,222,220,1,0,0,0,222,223,1,0,0,0,223,225,1,0,0,0,224,222, - 1,0,0,0,225,226,5,5,0,0,226,227,5,14,0,0,227,228,5,15,0,0,228,233, - 3,14,7,0,229,230,5,16,0,0,230,232,3,14,7,0,231,229,1,0,0,0,232,235, - 1,0,0,0,233,231,1,0,0,0,233,234,1,0,0,0,234,236,1,0,0,0,235,233, - 1,0,0,0,236,248,5,10,0,0,237,238,5,17,0,0,238,245,5,15,0,0,239,246, - 5,99,0,0,240,241,5,5,0,0,241,242,5,99,0,0,242,243,5,4,0,0,243,244, - 5,99,0,0,244,246,5,6,0,0,245,239,1,0,0,0,245,240,1,0,0,0,246,247, - 1,0,0,0,247,249,5,10,0,0,248,237,1,0,0,0,248,249,1,0,0,0,249,250, - 1,0,0,0,250,251,5,18,0,0,251,252,5,15,0,0,252,253,3,22,11,0,253, - 254,5,6,0,0,254,11,1,0,0,0,255,260,3,14,7,0,256,257,5,16,0,0,257, - 259,3,14,7,0,258,256,1,0,0,0,259,262,1,0,0,0,260,258,1,0,0,0,260, - 261,1,0,0,0,261,13,1,0,0,0,262,260,1,0,0,0,263,272,3,76,38,0,264, - 265,5,96,0,0,265,266,5,91,0,0,266,267,3,76,38,0,267,268,5,15,0,0, - 268,269,3,76,38,0,269,270,5,92,0,0,270,272,1,0,0,0,271,263,1,0,0, - 0,271,264,1,0,0,0,272,15,1,0,0,0,273,274,5,19,0,0,274,275,3,36,18, - 0,275,276,5,96,0,0,276,278,5,20,0,0,277,279,3,18,9,0,278,277,1,0, - 0,0,278,279,1,0,0,0,279,280,1,0,0,0,280,284,5,21,0,0,281,283,3,46, - 23,0,282,281,1,0,0,0,283,286,1,0,0,0,284,282,1,0,0,0,284,285,1,0, - 0,0,285,287,1,0,0,0,286,284,1,0,0,0,287,288,5,10,0,0,288,307,1,0, - 0,0,289,290,3,36,18,0,290,291,5,96,0,0,291,293,5,20,0,0,292,294, - 3,18,9,0,293,292,1,0,0,0,293,294,1,0,0,0,294,295,1,0,0,0,295,299, - 5,21,0,0,296,298,3,46,23,0,297,296,1,0,0,0,298,301,1,0,0,0,299,297, - 1,0,0,0,299,300,1,0,0,0,300,304,1,0,0,0,301,299,1,0,0,0,302,305, - 3,28,14,0,303,305,5,10,0,0,304,302,1,0,0,0,304,303,1,0,0,0,305,307, - 1,0,0,0,306,273,1,0,0,0,306,289,1,0,0,0,307,17,1,0,0,0,308,313,3, - 20,10,0,309,310,5,4,0,0,310,312,3,20,10,0,311,309,1,0,0,0,312,315, - 1,0,0,0,313,311,1,0,0,0,313,314,1,0,0,0,314,19,1,0,0,0,315,313,1, - 0,0,0,316,318,3,36,18,0,317,319,3,58,29,0,318,317,1,0,0,0,318,319, - 1,0,0,0,319,21,1,0,0,0,320,410,3,28,14,0,321,322,5,96,0,0,322,331, - 5,20,0,0,323,328,3,68,34,0,324,325,5,4,0,0,325,327,3,68,34,0,326, - 324,1,0,0,0,327,330,1,0,0,0,328,326,1,0,0,0,328,329,1,0,0,0,329, - 332,1,0,0,0,330,328,1,0,0,0,331,323,1,0,0,0,331,332,1,0,0,0,332, - 333,1,0,0,0,333,334,5,21,0,0,334,410,5,10,0,0,335,336,5,22,0,0,336, - 337,5,20,0,0,337,338,3,68,34,0,338,339,5,21,0,0,339,349,3,22,11, - 0,340,341,5,23,0,0,341,342,5,22,0,0,342,343,5,20,0,0,343,344,3,68, - 34,0,344,345,5,21,0,0,345,346,3,22,11,0,346,348,1,0,0,0,347,340, - 1,0,0,0,348,351,1,0,0,0,349,347,1,0,0,0,349,350,1,0,0,0,350,354, - 1,0,0,0,351,349,1,0,0,0,352,353,5,23,0,0,353,355,3,22,11,0,354,352, - 1,0,0,0,354,355,1,0,0,0,355,410,1,0,0,0,356,357,5,24,0,0,357,358, - 5,20,0,0,358,359,3,32,16,0,359,360,5,21,0,0,360,361,3,22,11,0,361, - 410,1,0,0,0,362,363,5,25,0,0,363,364,5,20,0,0,364,365,3,68,34,0, - 365,366,5,21,0,0,366,367,3,22,11,0,367,410,1,0,0,0,368,369,5,26, - 0,0,369,370,3,22,11,0,370,371,5,25,0,0,371,372,5,20,0,0,372,373, - 3,68,34,0,373,374,5,21,0,0,374,375,5,10,0,0,375,410,1,0,0,0,376, - 377,5,27,0,0,377,378,5,20,0,0,378,379,3,68,34,0,379,380,5,21,0,0, - 380,384,5,5,0,0,381,383,3,24,12,0,382,381,1,0,0,0,383,386,1,0,0, - 0,384,382,1,0,0,0,384,385,1,0,0,0,385,390,1,0,0,0,386,384,1,0,0, - 0,387,389,3,26,13,0,388,387,1,0,0,0,389,392,1,0,0,0,390,388,1,0, - 0,0,390,391,1,0,0,0,391,393,1,0,0,0,392,390,1,0,0,0,393,394,5,6, - 0,0,394,410,1,0,0,0,395,397,5,28,0,0,396,398,3,68,34,0,397,396,1, - 0,0,0,397,398,1,0,0,0,398,399,1,0,0,0,399,410,5,10,0,0,400,401,5, - 29,0,0,401,410,5,10,0,0,402,403,5,30,0,0,403,410,5,10,0,0,404,405, - 5,31,0,0,405,410,3,22,11,0,406,407,3,68,34,0,407,408,5,10,0,0,408, - 410,1,0,0,0,409,320,1,0,0,0,409,321,1,0,0,0,409,335,1,0,0,0,409, - 356,1,0,0,0,409,362,1,0,0,0,409,368,1,0,0,0,409,376,1,0,0,0,409, - 395,1,0,0,0,409,400,1,0,0,0,409,402,1,0,0,0,409,404,1,0,0,0,409, - 406,1,0,0,0,410,23,1,0,0,0,411,413,3,26,13,0,412,411,1,0,0,0,413, - 414,1,0,0,0,414,412,1,0,0,0,414,415,1,0,0,0,415,417,1,0,0,0,416, - 418,3,22,11,0,417,416,1,0,0,0,418,419,1,0,0,0,419,417,1,0,0,0,419, - 420,1,0,0,0,420,25,1,0,0,0,421,422,5,32,0,0,422,423,3,68,34,0,423, - 424,5,15,0,0,424,428,1,0,0,0,425,426,5,33,0,0,426,428,5,15,0,0,427, - 421,1,0,0,0,427,425,1,0,0,0,428,27,1,0,0,0,429,433,5,5,0,0,430,432, - 3,30,15,0,431,430,1,0,0,0,432,435,1,0,0,0,433,431,1,0,0,0,433,434, - 1,0,0,0,434,436,1,0,0,0,435,433,1,0,0,0,436,437,5,6,0,0,437,29,1, - 0,0,0,438,441,3,22,11,0,439,441,3,34,17,0,440,438,1,0,0,0,440,439, - 1,0,0,0,441,31,1,0,0,0,442,448,3,34,17,0,443,445,3,68,34,0,444,443, - 1,0,0,0,444,445,1,0,0,0,445,446,1,0,0,0,446,448,5,10,0,0,447,442, - 1,0,0,0,447,444,1,0,0,0,448,450,1,0,0,0,449,451,3,68,34,0,450,449, - 1,0,0,0,450,451,1,0,0,0,451,452,1,0,0,0,452,461,5,10,0,0,453,458, - 3,68,34,0,454,455,5,4,0,0,455,457,3,68,34,0,456,454,1,0,0,0,457, - 460,1,0,0,0,458,456,1,0,0,0,458,459,1,0,0,0,459,462,1,0,0,0,460, - 458,1,0,0,0,461,453,1,0,0,0,461,462,1,0,0,0,462,33,1,0,0,0,463,467, - 3,94,47,0,464,467,3,92,46,0,465,467,3,46,23,0,466,463,1,0,0,0,466, - 464,1,0,0,0,466,465,1,0,0,0,467,470,1,0,0,0,468,466,1,0,0,0,468, - 469,1,0,0,0,469,471,1,0,0,0,470,468,1,0,0,0,471,480,3,36,18,0,472, - 477,3,58,29,0,473,474,5,4,0,0,474,476,3,58,29,0,475,473,1,0,0,0, - 476,479,1,0,0,0,477,475,1,0,0,0,477,478,1,0,0,0,478,481,1,0,0,0, - 479,477,1,0,0,0,480,472,1,0,0,0,480,481,1,0,0,0,481,482,1,0,0,0, - 482,483,5,10,0,0,483,35,1,0,0,0,484,487,3,38,19,0,485,488,5,34,0, - 0,486,488,5,35,0,0,487,485,1,0,0,0,487,486,1,0,0,0,487,488,1,0,0, - 0,488,37,1,0,0,0,489,495,3,40,20,0,490,496,3,42,21,0,491,492,5,36, - 0,0,492,493,3,70,35,0,493,494,5,37,0,0,494,496,1,0,0,0,495,490,1, - 0,0,0,495,491,1,0,0,0,496,531,1,0,0,0,497,531,3,42,21,0,498,531, - 3,44,22,0,499,531,5,38,0,0,500,531,5,39,0,0,501,503,3,96,48,0,502, - 504,5,96,0,0,503,502,1,0,0,0,503,504,1,0,0,0,504,505,1,0,0,0,505, - 509,5,5,0,0,506,508,3,54,27,0,507,506,1,0,0,0,508,511,1,0,0,0,509, - 507,1,0,0,0,509,510,1,0,0,0,510,512,1,0,0,0,511,509,1,0,0,0,512, - 513,5,6,0,0,513,531,1,0,0,0,514,515,3,96,48,0,515,516,5,96,0,0,516, - 531,1,0,0,0,517,519,5,40,0,0,518,520,5,96,0,0,519,518,1,0,0,0,519, - 520,1,0,0,0,520,521,1,0,0,0,521,522,5,5,0,0,522,524,3,50,25,0,523, - 525,5,4,0,0,524,523,1,0,0,0,524,525,1,0,0,0,525,526,1,0,0,0,526, - 527,5,6,0,0,527,531,1,0,0,0,528,529,5,40,0,0,529,531,5,96,0,0,530, - 489,1,0,0,0,530,497,1,0,0,0,530,498,1,0,0,0,530,499,1,0,0,0,530, - 500,1,0,0,0,530,501,1,0,0,0,530,514,1,0,0,0,530,517,1,0,0,0,530, - 528,1,0,0,0,531,39,1,0,0,0,532,533,7,0,0,0,533,41,1,0,0,0,534,535, - 7,1,0,0,535,43,1,0,0,0,536,537,7,2,0,0,537,45,1,0,0,0,538,539,5, - 49,0,0,539,553,5,96,0,0,540,541,5,50,0,0,541,554,3,68,34,0,542,543, - 5,20,0,0,543,548,3,68,34,0,544,545,5,4,0,0,545,547,3,68,34,0,546, - 544,1,0,0,0,547,550,1,0,0,0,548,546,1,0,0,0,548,549,1,0,0,0,549, - 551,1,0,0,0,550,548,1,0,0,0,551,552,5,21,0,0,552,554,1,0,0,0,553, - 540,1,0,0,0,553,542,1,0,0,0,553,554,1,0,0,0,554,555,1,0,0,0,555, - 556,5,51,0,0,556,47,1,0,0,0,557,558,5,36,0,0,558,566,3,70,35,0,559, - 560,5,4,0,0,560,561,3,70,35,0,561,562,5,4,0,0,562,563,3,70,35,0, - 563,564,5,4,0,0,564,565,3,70,35,0,565,567,1,0,0,0,566,559,1,0,0, - 0,566,567,1,0,0,0,567,568,1,0,0,0,568,569,5,37,0,0,569,49,1,0,0, - 0,570,575,3,52,26,0,571,572,5,4,0,0,572,574,3,52,26,0,573,571,1, - 0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,575,576,1,0,0,0,576,51,1,0, - 0,0,577,575,1,0,0,0,578,583,5,96,0,0,579,580,5,96,0,0,580,581,5, - 50,0,0,581,583,3,68,34,0,582,578,1,0,0,0,582,579,1,0,0,0,583,53, - 1,0,0,0,584,585,3,56,28,0,585,590,3,58,29,0,586,587,5,4,0,0,587, - 589,3,58,29,0,588,586,1,0,0,0,589,592,1,0,0,0,590,588,1,0,0,0,590, - 591,1,0,0,0,591,593,1,0,0,0,592,590,1,0,0,0,593,594,5,10,0,0,594, - 55,1,0,0,0,595,598,3,36,18,0,596,598,3,92,46,0,597,595,1,0,0,0,597, - 596,1,0,0,0,598,57,1,0,0,0,599,606,5,96,0,0,600,601,5,91,0,0,601, - 602,3,68,34,0,602,603,5,92,0,0,603,605,1,0,0,0,604,600,1,0,0,0,605, - 608,1,0,0,0,606,604,1,0,0,0,606,607,1,0,0,0,607,612,1,0,0,0,608, - 606,1,0,0,0,609,611,3,46,23,0,610,609,1,0,0,0,611,614,1,0,0,0,612, - 610,1,0,0,0,612,613,1,0,0,0,613,617,1,0,0,0,614,612,1,0,0,0,615, - 616,5,50,0,0,616,618,3,60,30,0,617,615,1,0,0,0,617,618,1,0,0,0,618, - 59,1,0,0,0,619,628,3,68,34,0,620,621,5,5,0,0,621,623,3,62,31,0,622, - 624,5,4,0,0,623,622,1,0,0,0,623,624,1,0,0,0,624,625,1,0,0,0,625, - 626,5,6,0,0,626,628,1,0,0,0,627,619,1,0,0,0,627,620,1,0,0,0,628, - 61,1,0,0,0,629,632,3,64,32,0,630,632,3,60,30,0,631,629,1,0,0,0,631, - 630,1,0,0,0,632,640,1,0,0,0,633,636,5,4,0,0,634,637,3,64,32,0,635, - 637,3,60,30,0,636,634,1,0,0,0,636,635,1,0,0,0,637,639,1,0,0,0,638, - 633,1,0,0,0,639,642,1,0,0,0,640,638,1,0,0,0,640,641,1,0,0,0,641, - 63,1,0,0,0,642,640,1,0,0,0,643,645,3,66,33,0,644,643,1,0,0,0,645, - 646,1,0,0,0,646,644,1,0,0,0,646,647,1,0,0,0,647,648,1,0,0,0,648, - 649,5,50,0,0,649,650,3,60,30,0,650,65,1,0,0,0,651,652,5,91,0,0,652, - 653,3,68,34,0,653,654,5,92,0,0,654,658,1,0,0,0,655,656,5,52,0,0, - 656,658,5,96,0,0,657,651,1,0,0,0,657,655,1,0,0,0,658,67,1,0,0,0, - 659,660,6,34,-1,0,660,691,3,70,35,0,661,662,7,3,0,0,662,691,5,96, - 0,0,663,664,5,96,0,0,664,673,5,20,0,0,665,670,3,68,34,0,666,667, - 5,4,0,0,667,669,3,68,34,0,668,666,1,0,0,0,669,672,1,0,0,0,670,668, - 1,0,0,0,670,671,1,0,0,0,671,674,1,0,0,0,672,670,1,0,0,0,673,665, - 1,0,0,0,673,674,1,0,0,0,674,675,1,0,0,0,675,691,5,21,0,0,676,677, - 7,4,0,0,677,691,3,68,34,17,678,679,7,5,0,0,679,691,3,68,34,16,680, - 681,7,6,0,0,681,691,3,68,34,15,682,685,5,20,0,0,683,686,3,36,18, - 0,684,686,3,40,20,0,685,683,1,0,0,0,685,684,1,0,0,0,686,687,1,0, - 0,0,687,688,5,21,0,0,688,689,3,68,34,14,689,691,1,0,0,0,690,659, - 1,0,0,0,690,661,1,0,0,0,690,663,1,0,0,0,690,676,1,0,0,0,690,678, - 1,0,0,0,690,680,1,0,0,0,690,682,1,0,0,0,691,747,1,0,0,0,692,693, - 10,13,0,0,693,694,7,7,0,0,694,746,3,68,34,14,695,696,10,12,0,0,696, - 697,7,8,0,0,697,746,3,68,34,13,698,699,10,11,0,0,699,700,7,9,0,0, - 700,746,3,68,34,12,701,702,10,10,0,0,702,703,7,10,0,0,703,746,3, - 68,34,11,704,705,10,9,0,0,705,706,7,11,0,0,706,746,3,68,34,10,707, - 708,10,8,0,0,708,709,5,35,0,0,709,746,3,68,34,9,710,711,10,7,0,0, - 711,712,5,68,0,0,712,746,3,68,34,8,713,714,10,6,0,0,714,715,5,69, - 0,0,715,746,3,68,34,7,716,717,10,5,0,0,717,718,5,70,0,0,718,746, - 3,68,34,6,719,720,10,4,0,0,720,721,5,71,0,0,721,746,3,68,34,5,722, - 723,10,3,0,0,723,724,5,16,0,0,724,746,3,68,34,4,725,726,10,2,0,0, - 726,727,5,72,0,0,727,728,3,68,34,0,728,729,5,15,0,0,729,730,3,68, - 34,2,730,746,1,0,0,0,731,732,10,1,0,0,732,733,7,12,0,0,733,746,3, - 68,34,1,734,735,10,20,0,0,735,736,5,91,0,0,736,739,3,68,34,0,737, - 738,5,15,0,0,738,740,3,68,34,0,739,737,1,0,0,0,739,740,1,0,0,0,740, - 741,1,0,0,0,741,742,5,92,0,0,742,746,1,0,0,0,743,744,10,18,0,0,744, - 746,7,4,0,0,745,692,1,0,0,0,745,695,1,0,0,0,745,698,1,0,0,0,745, - 701,1,0,0,0,745,704,1,0,0,0,745,707,1,0,0,0,745,710,1,0,0,0,745, - 713,1,0,0,0,745,716,1,0,0,0,745,719,1,0,0,0,745,722,1,0,0,0,745, - 725,1,0,0,0,745,731,1,0,0,0,745,734,1,0,0,0,745,743,1,0,0,0,746, - 749,1,0,0,0,747,745,1,0,0,0,747,748,1,0,0,0,748,69,1,0,0,0,749,747, - 1,0,0,0,750,762,5,96,0,0,751,762,3,74,37,0,752,754,3,72,36,0,753, - 752,1,0,0,0,754,755,1,0,0,0,755,753,1,0,0,0,755,756,1,0,0,0,756, - 762,1,0,0,0,757,758,5,20,0,0,758,759,3,68,34,0,759,760,5,21,0,0, - 760,762,1,0,0,0,761,750,1,0,0,0,761,751,1,0,0,0,761,753,1,0,0,0, - 761,757,1,0,0,0,762,71,1,0,0,0,763,764,7,13,0,0,764,73,1,0,0,0,765, - 771,3,76,38,0,766,771,3,78,39,0,767,771,3,82,41,0,768,771,3,84,42, - 0,769,771,3,80,40,0,770,765,1,0,0,0,770,766,1,0,0,0,770,767,1,0, - 0,0,770,768,1,0,0,0,770,769,1,0,0,0,771,75,1,0,0,0,772,773,5,95, - 0,0,773,77,1,0,0,0,774,775,5,94,0,0,775,79,1,0,0,0,776,777,5,93, - 0,0,777,81,1,0,0,0,778,779,5,97,0,0,779,83,1,0,0,0,780,781,5,99, - 0,0,781,85,1,0,0,0,782,783,5,91,0,0,783,784,5,91,0,0,784,87,1,0, - 0,0,785,786,5,92,0,0,786,787,5,92,0,0,787,89,1,0,0,0,788,789,7,14, - 0,0,789,91,1,0,0,0,790,791,7,15,0,0,791,93,1,0,0,0,792,793,7,16, - 0,0,793,95,1,0,0,0,794,795,7,17,0,0,795,97,1,0,0,0,88,101,107,120, - 123,129,141,144,150,154,162,164,173,181,188,196,203,207,213,222, - 233,245,248,260,271,278,284,293,299,304,306,313,318,328,331,349, - 354,384,390,397,409,414,419,427,433,440,444,447,450,458,461,466, - 468,477,480,487,495,503,509,519,524,530,548,553,566,575,582,590, - 597,606,612,617,623,627,631,636,640,646,657,670,673,685,690,739, - 745,747,755,761,770 + 1,0,0,0,129,130,1,0,0,0,130,132,1,0,0,0,131,129,1,0,0,0,132,144, + 5,6,0,0,133,134,5,7,0,0,134,139,5,97,0,0,135,136,5,4,0,0,136,138, + 5,97,0,0,137,135,1,0,0,0,138,141,1,0,0,0,139,137,1,0,0,0,139,140, + 1,0,0,0,140,142,1,0,0,0,141,139,1,0,0,0,142,144,5,8,0,0,143,112, + 1,0,0,0,143,133,1,0,0,0,144,167,1,0,0,0,145,146,5,9,0,0,146,156, + 5,97,0,0,147,148,5,10,0,0,148,153,5,97,0,0,149,150,5,4,0,0,150,152, + 5,97,0,0,151,149,1,0,0,0,152,155,1,0,0,0,153,151,1,0,0,0,153,154, + 1,0,0,0,154,157,1,0,0,0,155,153,1,0,0,0,156,147,1,0,0,0,156,157, + 1,0,0,0,157,158,1,0,0,0,158,162,5,5,0,0,159,161,3,6,3,0,160,159, + 1,0,0,0,161,164,1,0,0,0,162,160,1,0,0,0,162,163,1,0,0,0,163,165, + 1,0,0,0,164,162,1,0,0,0,165,167,5,6,0,0,166,143,1,0,0,0,166,145, + 1,0,0,0,167,5,1,0,0,0,168,169,5,11,0,0,169,174,5,5,0,0,170,175,3, + 34,17,0,171,172,3,68,34,0,172,173,5,8,0,0,173,175,1,0,0,0,174,170, + 1,0,0,0,174,171,1,0,0,0,175,176,1,0,0,0,176,174,1,0,0,0,176,177, + 1,0,0,0,177,178,1,0,0,0,178,179,5,6,0,0,179,220,1,0,0,0,180,181, + 5,12,0,0,181,183,5,5,0,0,182,184,3,16,8,0,183,182,1,0,0,0,184,185, + 1,0,0,0,185,183,1,0,0,0,185,186,1,0,0,0,186,187,1,0,0,0,187,188, + 5,6,0,0,188,220,1,0,0,0,189,193,5,13,0,0,190,192,3,46,23,0,191,190, + 1,0,0,0,192,195,1,0,0,0,193,191,1,0,0,0,193,194,1,0,0,0,194,196, + 1,0,0,0,195,193,1,0,0,0,196,200,5,5,0,0,197,199,3,10,5,0,198,197, + 1,0,0,0,199,202,1,0,0,0,200,198,1,0,0,0,200,201,1,0,0,0,201,203, + 1,0,0,0,202,200,1,0,0,0,203,220,5,6,0,0,204,208,5,14,0,0,205,207, + 3,46,23,0,206,205,1,0,0,0,207,210,1,0,0,0,208,206,1,0,0,0,208,209, + 1,0,0,0,209,211,1,0,0,0,210,208,1,0,0,0,211,213,5,5,0,0,212,214, + 3,8,4,0,213,212,1,0,0,0,214,215,1,0,0,0,215,213,1,0,0,0,215,216, + 1,0,0,0,216,217,1,0,0,0,217,218,5,6,0,0,218,220,1,0,0,0,219,168, + 1,0,0,0,219,180,1,0,0,0,219,189,1,0,0,0,219,204,1,0,0,0,220,7,1, + 0,0,0,221,225,5,97,0,0,222,224,3,46,23,0,223,222,1,0,0,0,224,227, + 1,0,0,0,225,223,1,0,0,0,225,226,1,0,0,0,226,228,1,0,0,0,227,225, + 1,0,0,0,228,229,3,28,14,0,229,9,1,0,0,0,230,234,5,97,0,0,231,233, + 3,46,23,0,232,231,1,0,0,0,233,236,1,0,0,0,234,232,1,0,0,0,234,235, + 1,0,0,0,235,237,1,0,0,0,236,234,1,0,0,0,237,238,5,5,0,0,238,239, + 5,15,0,0,239,240,5,16,0,0,240,245,3,14,7,0,241,242,5,17,0,0,242, + 244,3,14,7,0,243,241,1,0,0,0,244,247,1,0,0,0,245,243,1,0,0,0,245, + 246,1,0,0,0,246,248,1,0,0,0,247,245,1,0,0,0,248,260,5,8,0,0,249, + 250,5,18,0,0,250,257,5,16,0,0,251,258,5,100,0,0,252,253,5,5,0,0, + 253,254,5,100,0,0,254,255,5,4,0,0,255,256,5,100,0,0,256,258,5,6, + 0,0,257,251,1,0,0,0,257,252,1,0,0,0,258,259,1,0,0,0,259,261,5,8, + 0,0,260,249,1,0,0,0,260,261,1,0,0,0,261,262,1,0,0,0,262,263,5,19, + 0,0,263,264,5,16,0,0,264,265,3,22,11,0,265,266,5,6,0,0,266,11,1, + 0,0,0,267,272,3,14,7,0,268,269,5,17,0,0,269,271,3,14,7,0,270,268, + 1,0,0,0,271,274,1,0,0,0,272,270,1,0,0,0,272,273,1,0,0,0,273,13,1, + 0,0,0,274,272,1,0,0,0,275,284,3,76,38,0,276,277,5,97,0,0,277,278, + 5,92,0,0,278,279,3,76,38,0,279,280,5,16,0,0,280,281,3,76,38,0,281, + 282,5,93,0,0,282,284,1,0,0,0,283,275,1,0,0,0,283,276,1,0,0,0,284, + 15,1,0,0,0,285,286,5,20,0,0,286,287,3,36,18,0,287,288,5,97,0,0,288, + 290,5,21,0,0,289,291,3,18,9,0,290,289,1,0,0,0,290,291,1,0,0,0,291, + 292,1,0,0,0,292,296,5,22,0,0,293,295,3,46,23,0,294,293,1,0,0,0,295, + 298,1,0,0,0,296,294,1,0,0,0,296,297,1,0,0,0,297,299,1,0,0,0,298, + 296,1,0,0,0,299,300,5,8,0,0,300,319,1,0,0,0,301,302,3,36,18,0,302, + 303,5,97,0,0,303,305,5,21,0,0,304,306,3,18,9,0,305,304,1,0,0,0,305, + 306,1,0,0,0,306,307,1,0,0,0,307,311,5,22,0,0,308,310,3,46,23,0,309, + 308,1,0,0,0,310,313,1,0,0,0,311,309,1,0,0,0,311,312,1,0,0,0,312, + 316,1,0,0,0,313,311,1,0,0,0,314,317,3,28,14,0,315,317,5,8,0,0,316, + 314,1,0,0,0,316,315,1,0,0,0,317,319,1,0,0,0,318,285,1,0,0,0,318, + 301,1,0,0,0,319,17,1,0,0,0,320,325,3,20,10,0,321,322,5,4,0,0,322, + 324,3,20,10,0,323,321,1,0,0,0,324,327,1,0,0,0,325,323,1,0,0,0,325, + 326,1,0,0,0,326,19,1,0,0,0,327,325,1,0,0,0,328,330,3,36,18,0,329, + 331,3,58,29,0,330,329,1,0,0,0,330,331,1,0,0,0,331,21,1,0,0,0,332, + 422,3,28,14,0,333,334,5,97,0,0,334,343,5,21,0,0,335,340,3,68,34, + 0,336,337,5,4,0,0,337,339,3,68,34,0,338,336,1,0,0,0,339,342,1,0, + 0,0,340,338,1,0,0,0,340,341,1,0,0,0,341,344,1,0,0,0,342,340,1,0, + 0,0,343,335,1,0,0,0,343,344,1,0,0,0,344,345,1,0,0,0,345,346,5,22, + 0,0,346,422,5,8,0,0,347,348,5,23,0,0,348,349,5,21,0,0,349,350,3, + 68,34,0,350,351,5,22,0,0,351,361,3,22,11,0,352,353,5,24,0,0,353, + 354,5,23,0,0,354,355,5,21,0,0,355,356,3,68,34,0,356,357,5,22,0,0, + 357,358,3,22,11,0,358,360,1,0,0,0,359,352,1,0,0,0,360,363,1,0,0, + 0,361,359,1,0,0,0,361,362,1,0,0,0,362,366,1,0,0,0,363,361,1,0,0, + 0,364,365,5,24,0,0,365,367,3,22,11,0,366,364,1,0,0,0,366,367,1,0, + 0,0,367,422,1,0,0,0,368,369,5,25,0,0,369,370,5,21,0,0,370,371,3, + 32,16,0,371,372,5,22,0,0,372,373,3,22,11,0,373,422,1,0,0,0,374,375, + 5,26,0,0,375,376,5,21,0,0,376,377,3,68,34,0,377,378,5,22,0,0,378, + 379,3,22,11,0,379,422,1,0,0,0,380,381,5,27,0,0,381,382,3,22,11,0, + 382,383,5,26,0,0,383,384,5,21,0,0,384,385,3,68,34,0,385,386,5,22, + 0,0,386,387,5,8,0,0,387,422,1,0,0,0,388,389,5,28,0,0,389,390,5,21, + 0,0,390,391,3,68,34,0,391,392,5,22,0,0,392,396,5,5,0,0,393,395,3, + 24,12,0,394,393,1,0,0,0,395,398,1,0,0,0,396,394,1,0,0,0,396,397, + 1,0,0,0,397,402,1,0,0,0,398,396,1,0,0,0,399,401,3,26,13,0,400,399, + 1,0,0,0,401,404,1,0,0,0,402,400,1,0,0,0,402,403,1,0,0,0,403,405, + 1,0,0,0,404,402,1,0,0,0,405,406,5,6,0,0,406,422,1,0,0,0,407,409, + 5,29,0,0,408,410,3,68,34,0,409,408,1,0,0,0,409,410,1,0,0,0,410,411, + 1,0,0,0,411,422,5,8,0,0,412,413,5,30,0,0,413,422,5,8,0,0,414,415, + 5,31,0,0,415,422,5,8,0,0,416,417,5,32,0,0,417,422,3,22,11,0,418, + 419,3,68,34,0,419,420,5,8,0,0,420,422,1,0,0,0,421,332,1,0,0,0,421, + 333,1,0,0,0,421,347,1,0,0,0,421,368,1,0,0,0,421,374,1,0,0,0,421, + 380,1,0,0,0,421,388,1,0,0,0,421,407,1,0,0,0,421,412,1,0,0,0,421, + 414,1,0,0,0,421,416,1,0,0,0,421,418,1,0,0,0,422,23,1,0,0,0,423,425, + 3,26,13,0,424,423,1,0,0,0,425,426,1,0,0,0,426,424,1,0,0,0,426,427, + 1,0,0,0,427,429,1,0,0,0,428,430,3,22,11,0,429,428,1,0,0,0,430,431, + 1,0,0,0,431,429,1,0,0,0,431,432,1,0,0,0,432,25,1,0,0,0,433,434,5, + 33,0,0,434,435,3,68,34,0,435,436,5,16,0,0,436,440,1,0,0,0,437,438, + 5,34,0,0,438,440,5,16,0,0,439,433,1,0,0,0,439,437,1,0,0,0,440,27, + 1,0,0,0,441,445,5,5,0,0,442,444,3,30,15,0,443,442,1,0,0,0,444,447, + 1,0,0,0,445,443,1,0,0,0,445,446,1,0,0,0,446,448,1,0,0,0,447,445, + 1,0,0,0,448,449,5,6,0,0,449,29,1,0,0,0,450,453,3,22,11,0,451,453, + 3,34,17,0,452,450,1,0,0,0,452,451,1,0,0,0,453,31,1,0,0,0,454,460, + 3,34,17,0,455,457,3,68,34,0,456,455,1,0,0,0,456,457,1,0,0,0,457, + 458,1,0,0,0,458,460,5,8,0,0,459,454,1,0,0,0,459,456,1,0,0,0,460, + 462,1,0,0,0,461,463,3,68,34,0,462,461,1,0,0,0,462,463,1,0,0,0,463, + 464,1,0,0,0,464,473,5,8,0,0,465,470,3,68,34,0,466,467,5,4,0,0,467, + 469,3,68,34,0,468,466,1,0,0,0,469,472,1,0,0,0,470,468,1,0,0,0,470, + 471,1,0,0,0,471,474,1,0,0,0,472,470,1,0,0,0,473,465,1,0,0,0,473, + 474,1,0,0,0,474,33,1,0,0,0,475,479,3,94,47,0,476,479,3,92,46,0,477, + 479,3,46,23,0,478,475,1,0,0,0,478,476,1,0,0,0,478,477,1,0,0,0,479, + 482,1,0,0,0,480,478,1,0,0,0,480,481,1,0,0,0,481,483,1,0,0,0,482, + 480,1,0,0,0,483,492,3,36,18,0,484,489,3,58,29,0,485,486,5,4,0,0, + 486,488,3,58,29,0,487,485,1,0,0,0,488,491,1,0,0,0,489,487,1,0,0, + 0,489,490,1,0,0,0,490,493,1,0,0,0,491,489,1,0,0,0,492,484,1,0,0, + 0,492,493,1,0,0,0,493,494,1,0,0,0,494,495,5,8,0,0,495,35,1,0,0,0, + 496,499,3,38,19,0,497,500,5,35,0,0,498,500,5,36,0,0,499,497,1,0, + 0,0,499,498,1,0,0,0,499,500,1,0,0,0,500,37,1,0,0,0,501,507,3,40, + 20,0,502,508,3,42,21,0,503,504,5,37,0,0,504,505,3,70,35,0,505,506, + 5,38,0,0,506,508,1,0,0,0,507,502,1,0,0,0,507,503,1,0,0,0,508,543, + 1,0,0,0,509,543,3,42,21,0,510,543,3,44,22,0,511,543,5,39,0,0,512, + 543,5,40,0,0,513,515,3,96,48,0,514,516,5,97,0,0,515,514,1,0,0,0, + 515,516,1,0,0,0,516,517,1,0,0,0,517,521,5,5,0,0,518,520,3,54,27, + 0,519,518,1,0,0,0,520,523,1,0,0,0,521,519,1,0,0,0,521,522,1,0,0, + 0,522,524,1,0,0,0,523,521,1,0,0,0,524,525,5,6,0,0,525,543,1,0,0, + 0,526,527,3,96,48,0,527,528,5,97,0,0,528,543,1,0,0,0,529,531,5,41, + 0,0,530,532,5,97,0,0,531,530,1,0,0,0,531,532,1,0,0,0,532,533,1,0, + 0,0,533,534,5,5,0,0,534,536,3,50,25,0,535,537,5,4,0,0,536,535,1, + 0,0,0,536,537,1,0,0,0,537,538,1,0,0,0,538,539,5,6,0,0,539,543,1, + 0,0,0,540,541,5,41,0,0,541,543,5,97,0,0,542,501,1,0,0,0,542,509, + 1,0,0,0,542,510,1,0,0,0,542,511,1,0,0,0,542,512,1,0,0,0,542,513, + 1,0,0,0,542,526,1,0,0,0,542,529,1,0,0,0,542,540,1,0,0,0,543,39,1, + 0,0,0,544,545,7,0,0,0,545,41,1,0,0,0,546,547,7,1,0,0,547,43,1,0, + 0,0,548,549,7,2,0,0,549,45,1,0,0,0,550,551,5,50,0,0,551,565,5,97, + 0,0,552,553,5,51,0,0,553,566,3,68,34,0,554,555,5,21,0,0,555,560, + 3,68,34,0,556,557,5,4,0,0,557,559,3,68,34,0,558,556,1,0,0,0,559, + 562,1,0,0,0,560,558,1,0,0,0,560,561,1,0,0,0,561,563,1,0,0,0,562, + 560,1,0,0,0,563,564,5,22,0,0,564,566,1,0,0,0,565,552,1,0,0,0,565, + 554,1,0,0,0,565,566,1,0,0,0,566,567,1,0,0,0,567,568,5,52,0,0,568, + 47,1,0,0,0,569,570,5,37,0,0,570,578,3,70,35,0,571,572,5,4,0,0,572, + 573,3,70,35,0,573,574,5,4,0,0,574,575,3,70,35,0,575,576,5,4,0,0, + 576,577,3,70,35,0,577,579,1,0,0,0,578,571,1,0,0,0,578,579,1,0,0, + 0,579,580,1,0,0,0,580,581,5,38,0,0,581,49,1,0,0,0,582,587,3,52,26, + 0,583,584,5,4,0,0,584,586,3,52,26,0,585,583,1,0,0,0,586,589,1,0, + 0,0,587,585,1,0,0,0,587,588,1,0,0,0,588,51,1,0,0,0,589,587,1,0,0, + 0,590,595,5,97,0,0,591,592,5,97,0,0,592,593,5,51,0,0,593,595,3,68, + 34,0,594,590,1,0,0,0,594,591,1,0,0,0,595,53,1,0,0,0,596,597,3,56, + 28,0,597,602,3,58,29,0,598,599,5,4,0,0,599,601,3,58,29,0,600,598, + 1,0,0,0,601,604,1,0,0,0,602,600,1,0,0,0,602,603,1,0,0,0,603,605, + 1,0,0,0,604,602,1,0,0,0,605,606,5,8,0,0,606,55,1,0,0,0,607,610,3, + 36,18,0,608,610,3,92,46,0,609,607,1,0,0,0,609,608,1,0,0,0,610,57, + 1,0,0,0,611,618,5,97,0,0,612,613,5,92,0,0,613,614,3,68,34,0,614, + 615,5,93,0,0,615,617,1,0,0,0,616,612,1,0,0,0,617,620,1,0,0,0,618, + 616,1,0,0,0,618,619,1,0,0,0,619,624,1,0,0,0,620,618,1,0,0,0,621, + 623,3,46,23,0,622,621,1,0,0,0,623,626,1,0,0,0,624,622,1,0,0,0,624, + 625,1,0,0,0,625,629,1,0,0,0,626,624,1,0,0,0,627,628,5,51,0,0,628, + 630,3,60,30,0,629,627,1,0,0,0,629,630,1,0,0,0,630,59,1,0,0,0,631, + 640,3,68,34,0,632,633,5,5,0,0,633,635,3,62,31,0,634,636,5,4,0,0, + 635,634,1,0,0,0,635,636,1,0,0,0,636,637,1,0,0,0,637,638,5,6,0,0, + 638,640,1,0,0,0,639,631,1,0,0,0,639,632,1,0,0,0,640,61,1,0,0,0,641, + 644,3,64,32,0,642,644,3,60,30,0,643,641,1,0,0,0,643,642,1,0,0,0, + 644,652,1,0,0,0,645,648,5,4,0,0,646,649,3,64,32,0,647,649,3,60,30, + 0,648,646,1,0,0,0,648,647,1,0,0,0,649,651,1,0,0,0,650,645,1,0,0, + 0,651,654,1,0,0,0,652,650,1,0,0,0,652,653,1,0,0,0,653,63,1,0,0,0, + 654,652,1,0,0,0,655,657,3,66,33,0,656,655,1,0,0,0,657,658,1,0,0, + 0,658,656,1,0,0,0,658,659,1,0,0,0,659,660,1,0,0,0,660,661,5,51,0, + 0,661,662,3,60,30,0,662,65,1,0,0,0,663,664,5,92,0,0,664,665,3,68, + 34,0,665,666,5,93,0,0,666,670,1,0,0,0,667,668,5,53,0,0,668,670,5, + 97,0,0,669,663,1,0,0,0,669,667,1,0,0,0,670,67,1,0,0,0,671,672,6, + 34,-1,0,672,703,3,70,35,0,673,674,7,3,0,0,674,703,5,97,0,0,675,676, + 5,97,0,0,676,685,5,21,0,0,677,682,3,68,34,0,678,679,5,4,0,0,679, + 681,3,68,34,0,680,678,1,0,0,0,681,684,1,0,0,0,682,680,1,0,0,0,682, + 683,1,0,0,0,683,686,1,0,0,0,684,682,1,0,0,0,685,677,1,0,0,0,685, + 686,1,0,0,0,686,687,1,0,0,0,687,703,5,22,0,0,688,689,7,4,0,0,689, + 703,3,68,34,17,690,691,7,5,0,0,691,703,3,68,34,16,692,693,7,6,0, + 0,693,703,3,68,34,15,694,697,5,21,0,0,695,698,3,36,18,0,696,698, + 3,40,20,0,697,695,1,0,0,0,697,696,1,0,0,0,698,699,1,0,0,0,699,700, + 5,22,0,0,700,701,3,68,34,14,701,703,1,0,0,0,702,671,1,0,0,0,702, + 673,1,0,0,0,702,675,1,0,0,0,702,688,1,0,0,0,702,690,1,0,0,0,702, + 692,1,0,0,0,702,694,1,0,0,0,703,759,1,0,0,0,704,705,10,13,0,0,705, + 706,7,7,0,0,706,758,3,68,34,14,707,708,10,12,0,0,708,709,7,8,0,0, + 709,758,3,68,34,13,710,711,10,11,0,0,711,712,7,9,0,0,712,758,3,68, + 34,12,713,714,10,10,0,0,714,715,7,10,0,0,715,758,3,68,34,11,716, + 717,10,9,0,0,717,718,7,11,0,0,718,758,3,68,34,10,719,720,10,8,0, + 0,720,721,5,36,0,0,721,758,3,68,34,9,722,723,10,7,0,0,723,724,5, + 69,0,0,724,758,3,68,34,8,725,726,10,6,0,0,726,727,5,70,0,0,727,758, + 3,68,34,7,728,729,10,5,0,0,729,730,5,71,0,0,730,758,3,68,34,6,731, + 732,10,4,0,0,732,733,5,72,0,0,733,758,3,68,34,5,734,735,10,3,0,0, + 735,736,5,17,0,0,736,758,3,68,34,4,737,738,10,2,0,0,738,739,5,73, + 0,0,739,740,3,68,34,0,740,741,5,16,0,0,741,742,3,68,34,2,742,758, + 1,0,0,0,743,744,10,1,0,0,744,745,7,12,0,0,745,758,3,68,34,1,746, + 747,10,20,0,0,747,748,5,92,0,0,748,751,3,68,34,0,749,750,5,16,0, + 0,750,752,3,68,34,0,751,749,1,0,0,0,751,752,1,0,0,0,752,753,1,0, + 0,0,753,754,5,93,0,0,754,758,1,0,0,0,755,756,10,18,0,0,756,758,7, + 4,0,0,757,704,1,0,0,0,757,707,1,0,0,0,757,710,1,0,0,0,757,713,1, + 0,0,0,757,716,1,0,0,0,757,719,1,0,0,0,757,722,1,0,0,0,757,725,1, + 0,0,0,757,728,1,0,0,0,757,731,1,0,0,0,757,734,1,0,0,0,757,737,1, + 0,0,0,757,743,1,0,0,0,757,746,1,0,0,0,757,755,1,0,0,0,758,761,1, + 0,0,0,759,757,1,0,0,0,759,760,1,0,0,0,760,69,1,0,0,0,761,759,1,0, + 0,0,762,774,5,97,0,0,763,774,3,74,37,0,764,766,3,72,36,0,765,764, + 1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,774, + 1,0,0,0,769,770,5,21,0,0,770,771,3,68,34,0,771,772,5,22,0,0,772, + 774,1,0,0,0,773,762,1,0,0,0,773,763,1,0,0,0,773,765,1,0,0,0,773, + 769,1,0,0,0,774,71,1,0,0,0,775,776,7,13,0,0,776,73,1,0,0,0,777,783, + 3,76,38,0,778,783,3,78,39,0,779,783,3,82,41,0,780,783,3,84,42,0, + 781,783,3,80,40,0,782,777,1,0,0,0,782,778,1,0,0,0,782,779,1,0,0, + 0,782,780,1,0,0,0,782,781,1,0,0,0,783,75,1,0,0,0,784,785,5,96,0, + 0,785,77,1,0,0,0,786,787,5,95,0,0,787,79,1,0,0,0,788,789,5,94,0, + 0,789,81,1,0,0,0,790,791,5,98,0,0,791,83,1,0,0,0,792,793,5,100,0, + 0,793,85,1,0,0,0,794,795,5,92,0,0,795,796,5,92,0,0,796,87,1,0,0, + 0,797,798,5,93,0,0,798,799,5,93,0,0,799,89,1,0,0,0,800,801,7,14, + 0,0,801,91,1,0,0,0,802,803,7,15,0,0,803,93,1,0,0,0,804,805,7,16, + 0,0,805,95,1,0,0,0,806,807,7,17,0,0,807,97,1,0,0,0,90,101,107,120, + 123,129,139,143,153,156,162,166,174,176,185,193,200,208,215,219, + 225,234,245,257,260,272,283,290,296,305,311,316,318,325,330,340, + 343,361,366,396,402,409,421,426,431,439,445,452,456,459,462,470, + 473,478,480,489,492,499,507,515,521,531,536,542,560,565,578,587, + 594,602,609,618,624,629,635,639,643,648,652,658,669,682,685,697, + 702,751,757,759,767,773,782 ] class CoreDSL2Parser ( Parser ): @@ -324,22 +329,22 @@ class CoreDSL2Parser ( Parser ): sharedContextCache = PredictionContextCache() literalNames = [ "", "'import'", "'InstructionSet'", "'extends'", - "','", "'{'", "'}'", "'Core'", "'provides'", "'architectural_state'", - "';'", "'functions'", "'instructions'", "'always'", - "'encoding'", "':'", "'::'", "'assembly'", "'behavior'", - "'extern'", "'('", "')'", "'if'", "'else'", "'for'", - "'while'", "'do'", "'switch'", "'return'", "'break'", - "'continue'", "'spawn'", "'case'", "'default'", "'*'", - "'&'", "'<'", "'>'", "'bool'", "'void'", "'enum'", - "'unsigned'", "'signed'", "'char'", "'short'", "'int'", - "'long'", "'float'", "'double'", "'[['", "'='", "']]'", - "'.'", "'->'", "'++'", "'--'", "'+'", "'-'", "'~'", - "'!'", "'/'", "'%'", "'<<'", "'>>'", "'<='", "'>='", - "'=='", "'!='", "'^'", "'|'", "'&&'", "'||'", "'?'", - "'+='", "'-='", "'*='", "'/='", "'&='", "'|='", "'^='", - "'>>='", "'>>>='", "'<<='", "'%='", "'alias'", "'const'", - "'volatile'", "'static'", "'register'", "'struct'", - "'union'", "'['", "']'" ] + "','", "'{'", "'}'", "'combines'", "';'", "'Core'", + "'provides'", "'architectural_state'", "'functions'", + "'instructions'", "'always'", "'encoding'", "':'", + "'::'", "'assembly'", "'behavior'", "'extern'", "'('", + "')'", "'if'", "'else'", "'for'", "'while'", "'do'", + "'switch'", "'return'", "'break'", "'continue'", "'spawn'", + "'case'", "'default'", "'*'", "'&'", "'<'", "'>'", + "'bool'", "'void'", "'enum'", "'unsigned'", "'signed'", + "'char'", "'short'", "'int'", "'long'", "'float'", + "'double'", "'[['", "'='", "']]'", "'.'", "'->'", "'++'", + "'--'", "'+'", "'-'", "'~'", "'!'", "'/'", "'%'", "'<<'", + "'>>'", "'<='", "'>='", "'=='", "'!='", "'^'", "'|'", + "'&&'", "'||'", "'?'", "'+='", "'-='", "'*='", "'/='", + "'&='", "'|='", "'^='", "'>>='", "'>>>='", "'<<='", + "'%='", "'alias'", "'const'", "'volatile'", "'static'", + "'register'", "'struct'", "'union'", "'['", "']'" ] symbolicNames = [ "", "", "", "", "", "", "", "", @@ -363,10 +368,10 @@ class CoreDSL2Parser ( Parser ): "", "", "", "", "", "", "", "", "", "", "", "", - "", "", "", "LEFT_BR", - "RIGHT_BR", "BOOLEAN", "FLOAT", "INTEGER", "IDENTIFIER", - "CHARCONST", "ENCSTRINGCONST", "STRING", "ML_COMMENT", - "SL_COMMENT", "WS" ] + "", "", "", "", + "LEFT_BR", "RIGHT_BR", "BOOLEAN", "FLOAT", "INTEGER", + "IDENTIFIER", "CHARCONST", "ENCSTRINGCONST", "STRING", + "ML_COMMENT", "SL_COMMENT", "WS" ] RULE_description_content = 0 RULE_import_file = 1 @@ -525,18 +530,19 @@ class CoreDSL2Parser ( Parser ): T__87=88 T__88=89 T__89=90 - LEFT_BR=91 - RIGHT_BR=92 - BOOLEAN=93 - FLOAT=94 - INTEGER=95 - IDENTIFIER=96 - CHARCONST=97 - ENCSTRINGCONST=98 - STRING=99 - ML_COMMENT=100 - SL_COMMENT=101 - WS=102 + T__90=91 + LEFT_BR=92 + RIGHT_BR=93 + BOOLEAN=94 + FLOAT=95 + INTEGER=96 + IDENTIFIER=97 + CHARCONST=98 + ENCSTRINGCONST=99 + STRING=100 + ML_COMMENT=101 + SL_COMMENT=102 + WS=103 def __init__(self, input:TokenStream, output:TextIO = sys.stdout): super().__init__(input, output) @@ -620,7 +626,7 @@ def description_content(self): self.state = 107 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==2 or _la==7): + if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 644) != 0)): break except RecognitionException as re: @@ -708,6 +714,7 @@ def __init__(self, parser, ctx:ParserRuleContext): # actually a CoreDSL2Parser.I self.extension = list() # of Tokens self._section = None # SectionContext self.sections = list() # of SectionContexts + self.combines = list() # of Tokens self.copyFrom(ctx) def IDENTIFIER(self, i:int=None): @@ -782,101 +789,132 @@ def isa(self): self.enterRule(localctx, 4, self.RULE_isa) self._la = 0 # Token type try: - self.state = 154 + self.state = 166 self._errHandler.sync(self) token = self._input.LA(1) - if token in [2]: + if token in [2, 7]: localctx = CoreDSL2Parser.Instruction_setContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 112 - self.match(CoreDSL2Parser.T__1) - self.state = 113 - localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 123 + self.state = 143 self._errHandler.sync(self) - _la = self._input.LA(1) - if _la==3: - self.state = 114 - self.match(CoreDSL2Parser.T__2) - self.state = 115 - localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) - localctx.extension.append(localctx._IDENTIFIER) - self.state = 120 + token = self._input.LA(1) + if token in [2]: + self.state = 112 + self.match(CoreDSL2Parser.T__1) + self.state = 113 + localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) + + self.state = 123 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==4: - self.state = 116 - self.match(CoreDSL2Parser.T__3) - self.state = 117 + if _la==3: + self.state = 114 + self.match(CoreDSL2Parser.T__2) + self.state = 115 localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) localctx.extension.append(localctx._IDENTIFIER) - self.state = 122 + self.state = 120 self._errHandler.sync(self) _la = self._input.LA(1) + while _la==4: + self.state = 116 + self.match(CoreDSL2Parser.T__3) + self.state = 117 + localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) + localctx.extension.append(localctx._IDENTIFIER) + self.state = 122 + self._errHandler.sync(self) + _la = self._input.LA(1) - self.state = 125 - self.match(CoreDSL2Parser.T__4) - self.state = 129 - self._errHandler.sync(self) - _la = self._input.LA(1) - while (((_la) & ~0x3f) == 0 and ((1 << _la) & 14848) != 0): - self.state = 126 - localctx._section = self.section() - localctx.sections.append(localctx._section) - self.state = 131 + self.state = 125 + self.match(CoreDSL2Parser.T__4) + self.state = 129 self._errHandler.sync(self) _la = self._input.LA(1) + while (((_la) & ~0x3f) == 0 and ((1 << _la) & 30720) != 0): + self.state = 126 + localctx._section = self.section() + localctx.sections.append(localctx._section) + self.state = 131 + self._errHandler.sync(self) + _la = self._input.LA(1) + + self.state = 132 + self.match(CoreDSL2Parser.T__5) + pass + elif token in [7]: + self.state = 133 + self.match(CoreDSL2Parser.T__6) + self.state = 134 + localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) + localctx.combines.append(localctx._IDENTIFIER) + self.state = 139 + self._errHandler.sync(self) + _la = self._input.LA(1) + while _la==4: + self.state = 135 + self.match(CoreDSL2Parser.T__3) + self.state = 136 + localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) + localctx.combines.append(localctx._IDENTIFIER) + self.state = 141 + self._errHandler.sync(self) + _la = self._input.LA(1) + + self.state = 142 + self.match(CoreDSL2Parser.T__7) + pass + else: + raise NoViableAltException(self) - self.state = 132 - self.match(CoreDSL2Parser.T__5) pass - elif token in [7]: + elif token in [9]: localctx = CoreDSL2Parser.Core_defContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 133 - self.match(CoreDSL2Parser.T__6) - self.state = 134 + self.state = 145 + self.match(CoreDSL2Parser.T__8) + self.state = 146 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 144 + self.state = 156 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==8: - self.state = 135 - self.match(CoreDSL2Parser.T__7) - self.state = 136 + if _la==10: + self.state = 147 + self.match(CoreDSL2Parser.T__9) + self.state = 148 localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) localctx.contributing_types.append(localctx._IDENTIFIER) - self.state = 141 + self.state = 153 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 137 + self.state = 149 self.match(CoreDSL2Parser.T__3) - self.state = 138 + self.state = 150 localctx._IDENTIFIER = self.match(CoreDSL2Parser.IDENTIFIER) localctx.contributing_types.append(localctx._IDENTIFIER) - self.state = 143 + self.state = 155 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 146 + self.state = 158 self.match(CoreDSL2Parser.T__4) - self.state = 150 + self.state = 162 self._errHandler.sync(self) _la = self._input.LA(1) - while (((_la) & ~0x3f) == 0 and ((1 << _la) & 14848) != 0): - self.state = 147 + while (((_la) & ~0x3f) == 0 and ((1 << _la) & 30720) != 0): + self.state = 159 localctx._section = self.section() localctx.sections.append(localctx._section) - self.state = 152 + self.state = 164 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 153 + self.state = 165 self.match(CoreDSL2Parser.T__5) pass else: @@ -1063,134 +1101,134 @@ def section(self): self.enterRule(localctx, 6, self.RULE_section) self._la = 0 # Token type try: - self.state = 207 + self.state = 219 self._errHandler.sync(self) token = self._input.LA(1) - if token in [9]: + if token in [11]: localctx = CoreDSL2Parser.Section_arch_stateContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 156 - localctx.type_ = self.match(CoreDSL2Parser.T__8) - self.state = 157 + self.state = 168 + localctx.type_ = self.match(CoreDSL2Parser.T__10) + self.state = 169 self.match(CoreDSL2Parser.T__4) - self.state = 162 + self.state = 174 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 162 + self.state = 174 self._errHandler.sync(self) token = self._input.LA(1) - if token in [19, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 85, 86, 87, 88, 89, 90]: - self.state = 158 + if token in [20, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 86, 87, 88, 89, 90, 91]: + self.state = 170 localctx._declaration = self.declaration() localctx.declarations.append(localctx._declaration) pass - elif token in [20, 34, 35, 52, 53, 54, 55, 56, 57, 58, 59, 93, 94, 95, 96, 97, 98, 99]: - self.state = 159 + elif token in [21, 35, 36, 53, 54, 55, 56, 57, 58, 59, 60, 94, 95, 96, 97, 98, 99, 100]: + self.state = 171 localctx._expression = self.expression(0) localctx.expressions.append(localctx._expression) - self.state = 160 - self.match(CoreDSL2Parser.T__9) + self.state = 172 + self.match(CoreDSL2Parser.T__7) pass else: raise NoViableAltException(self) - self.state = 164 + self.state = 176 self._errHandler.sync(self) _la = self._input.LA(1) - if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 1149543581549592576) != 0) or ((((_la - 85)) & ~0x3f) == 0 and ((1 << (_la - 85)) & 32575) != 0)): + if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 2299087163099185152) != 0) or ((((_la - 86)) & ~0x3f) == 0 and ((1 << (_la - 86)) & 32575) != 0)): break - self.state = 166 + self.state = 178 self.match(CoreDSL2Parser.T__5) pass - elif token in [11]: + elif token in [12]: localctx = CoreDSL2Parser.Section_functionsContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 168 - localctx.type_ = self.match(CoreDSL2Parser.T__10) - self.state = 169 + self.state = 180 + localctx.type_ = self.match(CoreDSL2Parser.T__11) + self.state = 181 self.match(CoreDSL2Parser.T__4) - self.state = 171 + self.state = 183 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 170 + self.state = 182 localctx._function_definition = self.function_definition() localctx.functions.append(localctx._function_definition) - self.state = 173 + self.state = 185 self._errHandler.sync(self) _la = self._input.LA(1) - if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 562675076038656) != 0) or _la==89 or _la==90): + if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 1125350152077312) != 0) or _la==90 or _la==91): break - self.state = 175 + self.state = 187 self.match(CoreDSL2Parser.T__5) pass - elif token in [12]: + elif token in [13]: localctx = CoreDSL2Parser.Section_instructionsContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 177 - localctx.type_ = self.match(CoreDSL2Parser.T__11) - self.state = 181 + self.state = 189 + localctx.type_ = self.match(CoreDSL2Parser.T__12) + self.state = 193 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 178 + while _la==50: + self.state = 190 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 183 + self.state = 195 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 184 + self.state = 196 self.match(CoreDSL2Parser.T__4) - self.state = 188 + self.state = 200 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==96: - self.state = 185 + while _la==97: + self.state = 197 localctx._instruction = self.instruction() localctx.instructions.append(localctx._instruction) - self.state = 190 + self.state = 202 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 191 + self.state = 203 self.match(CoreDSL2Parser.T__5) pass - elif token in [13]: + elif token in [14]: localctx = CoreDSL2Parser.Section_alwaysContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 192 - localctx.type_ = self.match(CoreDSL2Parser.T__12) - self.state = 196 + self.state = 204 + localctx.type_ = self.match(CoreDSL2Parser.T__13) + self.state = 208 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 193 + while _la==50: + self.state = 205 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 198 + self.state = 210 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 199 + self.state = 211 self.match(CoreDSL2Parser.T__4) - self.state = 201 + self.state = 213 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 200 + self.state = 212 localctx._always_block = self.always_block() localctx.always_blocks.append(localctx._always_block) - self.state = 203 + self.state = 215 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==96): + if not (_la==97): break - self.state = 205 + self.state = 217 self.match(CoreDSL2Parser.T__5) pass else: @@ -1257,20 +1295,20 @@ def always_block(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 209 + self.state = 221 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 213 + self.state = 225 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 210 + while _la==50: + self.state = 222 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 215 + self.state = 227 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 216 + self.state = 228 localctx.behavior = self.block() except RecognitionException as re: localctx.exception = re @@ -1350,84 +1388,84 @@ def instruction(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 218 + self.state = 230 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 222 + self.state = 234 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 219 + while _la==50: + self.state = 231 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 224 + self.state = 236 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 225 + self.state = 237 self.match(CoreDSL2Parser.T__4) - self.state = 226 - self.match(CoreDSL2Parser.T__13) - self.state = 227 + self.state = 238 self.match(CoreDSL2Parser.T__14) - self.state = 228 + self.state = 239 + self.match(CoreDSL2Parser.T__15) + self.state = 240 localctx._encoding_entry = self.encoding_entry() localctx.encoding.append(localctx._encoding_entry) - self.state = 233 + self.state = 245 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==16: - self.state = 229 - self.match(CoreDSL2Parser.T__15) - self.state = 230 + while _la==17: + self.state = 241 + self.match(CoreDSL2Parser.T__16) + self.state = 242 localctx._encoding_entry = self.encoding_entry() localctx.encoding.append(localctx._encoding_entry) - self.state = 235 + self.state = 247 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 236 - self.match(CoreDSL2Parser.T__9) self.state = 248 + self.match(CoreDSL2Parser.T__7) + self.state = 260 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==17: - self.state = 237 - self.match(CoreDSL2Parser.T__16) - self.state = 238 - self.match(CoreDSL2Parser.T__14) - self.state = 245 + if _la==18: + self.state = 249 + self.match(CoreDSL2Parser.T__17) + self.state = 250 + self.match(CoreDSL2Parser.T__15) + self.state = 257 self._errHandler.sync(self) token = self._input.LA(1) - if token in [99]: - self.state = 239 + if token in [100]: + self.state = 251 localctx.assembly = self.match(CoreDSL2Parser.STRING) pass elif token in [5]: - self.state = 240 + self.state = 252 self.match(CoreDSL2Parser.T__4) - self.state = 241 + self.state = 253 localctx.mnemonic = self.match(CoreDSL2Parser.STRING) - self.state = 242 + self.state = 254 self.match(CoreDSL2Parser.T__3) - self.state = 243 + self.state = 255 localctx.assembly = self.match(CoreDSL2Parser.STRING) - self.state = 244 + self.state = 256 self.match(CoreDSL2Parser.T__5) pass else: raise NoViableAltException(self) - self.state = 247 - self.match(CoreDSL2Parser.T__9) + self.state = 259 + self.match(CoreDSL2Parser.T__7) - self.state = 250 - self.match(CoreDSL2Parser.T__17) - self.state = 251 - self.match(CoreDSL2Parser.T__14) - self.state = 252 + self.state = 262 + self.match(CoreDSL2Parser.T__18) + self.state = 263 + self.match(CoreDSL2Parser.T__15) + self.state = 264 localctx.behavior = self.statement() - self.state = 253 + self.state = 265 self.match(CoreDSL2Parser.T__5) except RecognitionException as re: localctx.exception = re @@ -1481,19 +1519,19 @@ def rule_encoding(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 255 + self.state = 267 localctx._encoding_entry = self.encoding_entry() localctx.fields.append(localctx._encoding_entry) - self.state = 260 + self.state = 272 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==16: - self.state = 256 - self.match(CoreDSL2Parser.T__15) - self.state = 257 + while _la==17: + self.state = 268 + self.match(CoreDSL2Parser.T__16) + self.state = 269 localctx._encoding_entry = self.encoding_entry() localctx.fields.append(localctx._encoding_entry) - self.state = 262 + self.state = 274 self._errHandler.sync(self) _la = self._input.LA(1) @@ -1592,29 +1630,29 @@ def encoding_entry(self): localctx = CoreDSL2Parser.Encoding_entryContext(self, self._ctx, self.state) self.enterRule(localctx, 14, self.RULE_encoding_entry) try: - self.state = 271 + self.state = 283 self._errHandler.sync(self) token = self._input.LA(1) - if token in [95]: + if token in [96]: localctx = CoreDSL2Parser.Bit_valueContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 263 + self.state = 275 localctx.value = self.integer_constant() pass - elif token in [96]: + elif token in [97]: localctx = CoreDSL2Parser.Bit_fieldContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 264 + self.state = 276 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 265 + self.state = 277 self.match(CoreDSL2Parser.LEFT_BR) - self.state = 266 + self.state = 278 localctx.left = self.integer_constant() - self.state = 267 - self.match(CoreDSL2Parser.T__14) - self.state = 268 + self.state = 279 + self.match(CoreDSL2Parser.T__15) + self.state = 280 localctx.right = self.integer_constant() - self.state = 269 + self.state = 281 self.match(CoreDSL2Parser.RIGHT_BR) pass else: @@ -1691,82 +1729,82 @@ def function_definition(self): self.enterRule(localctx, 16, self.RULE_function_definition) self._la = 0 # Token type try: - self.state = 306 + self.state = 318 self._errHandler.sync(self) token = self._input.LA(1) - if token in [19]: + if token in [20]: self.enterOuterAlt(localctx, 1) - self.state = 273 - localctx.extern = self.match(CoreDSL2Parser.T__18) - self.state = 274 + self.state = 285 + localctx.extern = self.match(CoreDSL2Parser.T__19) + self.state = 286 localctx.type_ = self.type_specifier() - self.state = 275 + self.state = 287 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 276 - self.match(CoreDSL2Parser.T__19) - self.state = 278 + self.state = 288 + self.match(CoreDSL2Parser.T__20) + self.state = 290 self._errHandler.sync(self) _la = self._input.LA(1) - if ((((_la - 38)) & ~0x3f) == 0 and ((1 << (_la - 38)) & 6755399441057791) != 0): - self.state = 277 + if ((((_la - 39)) & ~0x3f) == 0 and ((1 << (_la - 39)) & 6755399441057791) != 0): + self.state = 289 localctx.params = self.parameter_list() - self.state = 280 - self.match(CoreDSL2Parser.T__20) - self.state = 284 + self.state = 292 + self.match(CoreDSL2Parser.T__21) + self.state = 296 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 281 + while _la==50: + self.state = 293 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 286 + self.state = 298 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 287 - self.match(CoreDSL2Parser.T__9) + self.state = 299 + self.match(CoreDSL2Parser.T__7) pass - elif token in [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 89, 90]: + elif token in [39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 90, 91]: self.enterOuterAlt(localctx, 2) - self.state = 289 + self.state = 301 localctx.type_ = self.type_specifier() - self.state = 290 + self.state = 302 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 291 - self.match(CoreDSL2Parser.T__19) - self.state = 293 + self.state = 303 + self.match(CoreDSL2Parser.T__20) + self.state = 305 self._errHandler.sync(self) _la = self._input.LA(1) - if ((((_la - 38)) & ~0x3f) == 0 and ((1 << (_la - 38)) & 6755399441057791) != 0): - self.state = 292 + if ((((_la - 39)) & ~0x3f) == 0 and ((1 << (_la - 39)) & 6755399441057791) != 0): + self.state = 304 localctx.params = self.parameter_list() - self.state = 295 - self.match(CoreDSL2Parser.T__20) - self.state = 299 + self.state = 307 + self.match(CoreDSL2Parser.T__21) + self.state = 311 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 296 + while _la==50: + self.state = 308 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 301 + self.state = 313 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 304 + self.state = 316 self._errHandler.sync(self) token = self._input.LA(1) if token in [5]: - self.state = 302 + self.state = 314 localctx.behavior = self.block() pass - elif token in [10]: - self.state = 303 - self.match(CoreDSL2Parser.T__9) + elif token in [8]: + self.state = 315 + self.match(CoreDSL2Parser.T__7) pass else: raise NoViableAltException(self) @@ -1827,19 +1865,19 @@ def parameter_list(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 308 + self.state = 320 localctx._parameter_declaration = self.parameter_declaration() localctx.params.append(localctx._parameter_declaration) - self.state = 313 + self.state = 325 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 309 + self.state = 321 self.match(CoreDSL2Parser.T__3) - self.state = 310 + self.state = 322 localctx._parameter_declaration = self.parameter_declaration() localctx.params.append(localctx._parameter_declaration) - self.state = 315 + self.state = 327 self._errHandler.sync(self) _la = self._input.LA(1) @@ -1896,13 +1934,13 @@ def parameter_declaration(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 316 + self.state = 328 localctx.type_ = self.type_specifier() - self.state = 318 + self.state = 330 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==96: - self.state = 317 + if _la==97: + self.state = 329 localctx.decl = self.declarator() @@ -2296,96 +2334,96 @@ def statement(self): self.enterRule(localctx, 22, self.RULE_statement) self._la = 0 # Token type try: - self.state = 409 + self.state = 421 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,39,self._ctx) + la_ = self._interp.adaptivePredict(self._input,41,self._ctx) if la_ == 1: localctx = CoreDSL2Parser.Block_statementContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 320 + self.state = 332 self.block() pass elif la_ == 2: localctx = CoreDSL2Parser.Procedure_callContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 321 + self.state = 333 localctx.ref = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 322 - self.match(CoreDSL2Parser.T__19) - self.state = 331 + self.state = 334 + self.match(CoreDSL2Parser.T__20) + self.state = 343 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417956520132608) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0): - self.state = 323 + if (((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835913040265216) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0): + self.state = 335 localctx._expression = self.expression(0) localctx.args.append(localctx._expression) - self.state = 328 + self.state = 340 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 324 + self.state = 336 self.match(CoreDSL2Parser.T__3) - self.state = 325 + self.state = 337 localctx._expression = self.expression(0) localctx.args.append(localctx._expression) - self.state = 330 + self.state = 342 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 333 - self.match(CoreDSL2Parser.T__20) - self.state = 334 - self.match(CoreDSL2Parser.T__9) + self.state = 345 + self.match(CoreDSL2Parser.T__21) + self.state = 346 + self.match(CoreDSL2Parser.T__7) pass elif la_ == 3: localctx = CoreDSL2Parser.If_statementContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 335 - localctx.type_ = self.match(CoreDSL2Parser.T__21) - self.state = 336 - self.match(CoreDSL2Parser.T__19) - self.state = 337 + self.state = 347 + localctx.type_ = self.match(CoreDSL2Parser.T__22) + self.state = 348 + self.match(CoreDSL2Parser.T__20) + self.state = 349 localctx._expression = self.expression(0) localctx.cond.append(localctx._expression) - self.state = 338 - self.match(CoreDSL2Parser.T__20) - self.state = 339 + self.state = 350 + self.match(CoreDSL2Parser.T__21) + self.state = 351 localctx._statement = self.statement() localctx.stmt.append(localctx._statement) - self.state = 349 + self.state = 361 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,34,self._ctx) + _alt = self._interp.adaptivePredict(self._input,36,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 340 + self.state = 352 + self.match(CoreDSL2Parser.T__23) + self.state = 353 self.match(CoreDSL2Parser.T__22) - self.state = 341 - self.match(CoreDSL2Parser.T__21) - self.state = 342 - self.match(CoreDSL2Parser.T__19) - self.state = 343 + self.state = 354 + self.match(CoreDSL2Parser.T__20) + self.state = 355 localctx._expression = self.expression(0) localctx.cond.append(localctx._expression) - self.state = 344 - self.match(CoreDSL2Parser.T__20) - self.state = 345 + self.state = 356 + self.match(CoreDSL2Parser.T__21) + self.state = 357 localctx._statement = self.statement() localctx.stmt.append(localctx._statement) - self.state = 351 + self.state = 363 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,34,self._ctx) + _alt = self._interp.adaptivePredict(self._input,36,self._ctx) - self.state = 354 + self.state = 366 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,35,self._ctx) + la_ = self._interp.adaptivePredict(self._input,37,self._ctx) if la_ == 1: - self.state = 352 - self.match(CoreDSL2Parser.T__22) - self.state = 353 + self.state = 364 + self.match(CoreDSL2Parser.T__23) + self.state = 365 localctx._statement = self.statement() localctx.stmt.append(localctx._statement) @@ -2395,142 +2433,142 @@ def statement(self): elif la_ == 4: localctx = CoreDSL2Parser.For_statementContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 356 - localctx.type_ = self.match(CoreDSL2Parser.T__23) - self.state = 357 - self.match(CoreDSL2Parser.T__19) - self.state = 358 - localctx.cond = self.for_condition() - self.state = 359 + self.state = 368 + localctx.type_ = self.match(CoreDSL2Parser.T__24) + self.state = 369 self.match(CoreDSL2Parser.T__20) - self.state = 360 + self.state = 370 + localctx.cond = self.for_condition() + self.state = 371 + self.match(CoreDSL2Parser.T__21) + self.state = 372 localctx.stmt = self.statement() pass elif la_ == 5: localctx = CoreDSL2Parser.While_statementContext(self, localctx) self.enterOuterAlt(localctx, 5) - self.state = 362 - localctx.type_ = self.match(CoreDSL2Parser.T__24) - self.state = 363 - self.match(CoreDSL2Parser.T__19) - self.state = 364 - localctx.cond = self.expression(0) - self.state = 365 + self.state = 374 + localctx.type_ = self.match(CoreDSL2Parser.T__25) + self.state = 375 self.match(CoreDSL2Parser.T__20) - self.state = 366 + self.state = 376 + localctx.cond = self.expression(0) + self.state = 377 + self.match(CoreDSL2Parser.T__21) + self.state = 378 localctx.stmt = self.statement() pass elif la_ == 6: localctx = CoreDSL2Parser.Do_statementContext(self, localctx) self.enterOuterAlt(localctx, 6) - self.state = 368 - localctx.type_ = self.match(CoreDSL2Parser.T__25) - self.state = 369 + self.state = 380 + localctx.type_ = self.match(CoreDSL2Parser.T__26) + self.state = 381 localctx.stmt = self.statement() - self.state = 370 - self.match(CoreDSL2Parser.T__24) - self.state = 371 - self.match(CoreDSL2Parser.T__19) - self.state = 372 - localctx.cond = self.expression(0) - self.state = 373 + self.state = 382 + self.match(CoreDSL2Parser.T__25) + self.state = 383 self.match(CoreDSL2Parser.T__20) - self.state = 374 - self.match(CoreDSL2Parser.T__9) + self.state = 384 + localctx.cond = self.expression(0) + self.state = 385 + self.match(CoreDSL2Parser.T__21) + self.state = 386 + self.match(CoreDSL2Parser.T__7) pass elif la_ == 7: localctx = CoreDSL2Parser.Switch_statementContext(self, localctx) self.enterOuterAlt(localctx, 7) - self.state = 376 - localctx.type_ = self.match(CoreDSL2Parser.T__26) - self.state = 377 - self.match(CoreDSL2Parser.T__19) - self.state = 378 - localctx.cond = self.expression(0) - self.state = 379 + self.state = 388 + localctx.type_ = self.match(CoreDSL2Parser.T__27) + self.state = 389 self.match(CoreDSL2Parser.T__20) - self.state = 380 + self.state = 390 + localctx.cond = self.expression(0) + self.state = 391 + self.match(CoreDSL2Parser.T__21) + self.state = 392 self.match(CoreDSL2Parser.T__4) - self.state = 384 + self.state = 396 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,36,self._ctx) + _alt = self._interp.adaptivePredict(self._input,38,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 381 + self.state = 393 localctx._switch_block_statement_group = self.switch_block_statement_group() localctx.items.append(localctx._switch_block_statement_group) - self.state = 386 + self.state = 398 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,36,self._ctx) + _alt = self._interp.adaptivePredict(self._input,38,self._ctx) - self.state = 390 + self.state = 402 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==32 or _la==33: - self.state = 387 + while _la==33 or _la==34: + self.state = 399 self.switch_label() - self.state = 392 + self.state = 404 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 393 + self.state = 405 self.match(CoreDSL2Parser.T__5) pass elif la_ == 8: localctx = CoreDSL2Parser.Return_statementContext(self, localctx) self.enterOuterAlt(localctx, 8) - self.state = 395 - localctx.type_ = self.match(CoreDSL2Parser.T__27) - self.state = 397 + self.state = 407 + localctx.type_ = self.match(CoreDSL2Parser.T__28) + self.state = 409 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417956520132608) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0): - self.state = 396 + if (((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835913040265216) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0): + self.state = 408 localctx.expr = self.expression(0) - self.state = 399 - self.match(CoreDSL2Parser.T__9) + self.state = 411 + self.match(CoreDSL2Parser.T__7) pass elif la_ == 9: localctx = CoreDSL2Parser.Break_statementContext(self, localctx) self.enterOuterAlt(localctx, 9) - self.state = 400 - localctx.type_ = self.match(CoreDSL2Parser.T__28) - self.state = 401 - self.match(CoreDSL2Parser.T__9) + self.state = 412 + localctx.type_ = self.match(CoreDSL2Parser.T__29) + self.state = 413 + self.match(CoreDSL2Parser.T__7) pass elif la_ == 10: localctx = CoreDSL2Parser.Continue_statementContext(self, localctx) self.enterOuterAlt(localctx, 10) - self.state = 402 - localctx.type_ = self.match(CoreDSL2Parser.T__29) - self.state = 403 - self.match(CoreDSL2Parser.T__9) + self.state = 414 + localctx.type_ = self.match(CoreDSL2Parser.T__30) + self.state = 415 + self.match(CoreDSL2Parser.T__7) pass elif la_ == 11: localctx = CoreDSL2Parser.Spawn_statementContext(self, localctx) self.enterOuterAlt(localctx, 11) - self.state = 404 - localctx.type_ = self.match(CoreDSL2Parser.T__30) - self.state = 405 + self.state = 416 + localctx.type_ = self.match(CoreDSL2Parser.T__31) + self.state = 417 localctx.stmt = self.statement() pass elif la_ == 12: localctx = CoreDSL2Parser.Expression_statementContext(self, localctx) self.enterOuterAlt(localctx, 12) - self.state = 406 + self.state = 418 localctx.expr = self.expression(0) - self.state = 407 - self.match(CoreDSL2Parser.T__9) + self.state = 419 + self.match(CoreDSL2Parser.T__7) pass @@ -2595,30 +2633,30 @@ def switch_block_statement_group(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 412 + self.state = 424 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 411 + self.state = 423 localctx._switch_label = self.switch_label() localctx.labels.append(localctx._switch_label) - self.state = 414 + self.state = 426 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==32 or _la==33): + if not (_la==33 or _la==34): break - self.state = 417 + self.state = 429 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 416 + self.state = 428 localctx._statement = self.statement() localctx.statements.append(localctx._statement) - self.state = 419 + self.state = 431 self._errHandler.sync(self) _la = self._input.LA(1) - if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417960802517024) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0)): + if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835921605034016) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0)): break except RecognitionException as re: @@ -2667,24 +2705,24 @@ def switch_label(self): localctx = CoreDSL2Parser.Switch_labelContext(self, self._ctx, self.state) self.enterRule(localctx, 26, self.RULE_switch_label) try: - self.state = 427 + self.state = 439 self._errHandler.sync(self) token = self._input.LA(1) - if token in [32]: + if token in [33]: self.enterOuterAlt(localctx, 1) - self.state = 421 - self.match(CoreDSL2Parser.T__31) - self.state = 422 + self.state = 433 + self.match(CoreDSL2Parser.T__32) + self.state = 434 localctx.const_expr = self.expression(0) - self.state = 423 - self.match(CoreDSL2Parser.T__14) + self.state = 435 + self.match(CoreDSL2Parser.T__15) pass - elif token in [33]: + elif token in [34]: self.enterOuterAlt(localctx, 2) - self.state = 425 - self.match(CoreDSL2Parser.T__32) - self.state = 426 - self.match(CoreDSL2Parser.T__14) + self.state = 437 + self.match(CoreDSL2Parser.T__33) + self.state = 438 + self.match(CoreDSL2Parser.T__15) pass else: raise NoViableAltException(self) @@ -2741,20 +2779,20 @@ def block(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 429 + self.state = 441 self.match(CoreDSL2Parser.T__4) - self.state = 433 + self.state = 445 self._errHandler.sync(self) _la = self._input.LA(1) - while (((_la) & ~0x3f) == 0 and ((1 << _la) & 1149543585831976992) != 0) or ((((_la - 85)) & ~0x3f) == 0 and ((1 << (_la - 85)) & 32575) != 0): - self.state = 430 + while (((_la) & ~0x3f) == 0 and ((1 << _la) & 2299087171663953952) != 0) or ((((_la - 86)) & ~0x3f) == 0 and ((1 << (_la - 86)) & 32575) != 0): + self.state = 442 localctx._block_item = self.block_item() localctx.items.append(localctx._block_item) - self.state = 435 + self.state = 447 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 436 + self.state = 448 self.match(CoreDSL2Parser.T__5) except RecognitionException as re: localctx.exception = re @@ -2805,17 +2843,17 @@ def block_item(self): localctx = CoreDSL2Parser.Block_itemContext(self, self._ctx, self.state) self.enterRule(localctx, 30, self.RULE_block_item) try: - self.state = 440 + self.state = 452 self._errHandler.sync(self) token = self._input.LA(1) - if token in [5, 20, 22, 24, 25, 26, 27, 28, 29, 30, 31, 34, 35, 52, 53, 54, 55, 56, 57, 58, 59, 93, 94, 95, 96, 97, 98, 99]: + if token in [5, 21, 23, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 53, 54, 55, 56, 57, 58, 59, 60, 94, 95, 96, 97, 98, 99, 100]: self.enterOuterAlt(localctx, 1) - self.state = 438 + self.state = 450 self.statement() pass - elif token in [19, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 85, 86, 87, 88, 89, 90]: + elif token in [20, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 86, 87, 88, 89, 90, 91]: self.enterOuterAlt(localctx, 2) - self.state = 439 + self.state = 451 self.declaration() pass else: @@ -2880,55 +2918,55 @@ def for_condition(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 447 + self.state = 459 self._errHandler.sync(self) token = self._input.LA(1) - if token in [19, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 85, 86, 87, 88, 89, 90]: - self.state = 442 + if token in [20, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 86, 87, 88, 89, 90, 91]: + self.state = 454 localctx.start_decl = self.declaration() pass - elif token in [10, 20, 34, 35, 52, 53, 54, 55, 56, 57, 58, 59, 93, 94, 95, 96, 97, 98, 99]: - self.state = 444 + elif token in [8, 21, 35, 36, 53, 54, 55, 56, 57, 58, 59, 60, 94, 95, 96, 97, 98, 99, 100]: + self.state = 456 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417956520132608) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0): - self.state = 443 + if (((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835913040265216) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0): + self.state = 455 localctx.start_expr = self.expression(0) - self.state = 446 - self.match(CoreDSL2Parser.T__9) + self.state = 458 + self.match(CoreDSL2Parser.T__7) pass else: raise NoViableAltException(self) - self.state = 450 + self.state = 462 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417956520132608) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0): - self.state = 449 + if (((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835913040265216) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0): + self.state = 461 localctx.end_expr = self.expression(0) - self.state = 452 - self.match(CoreDSL2Parser.T__9) - self.state = 461 + self.state = 464 + self.match(CoreDSL2Parser.T__7) + self.state = 473 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417956520132608) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0): - self.state = 453 + if (((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835913040265216) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0): + self.state = 465 localctx._expression = self.expression(0) localctx.loop_exprs.append(localctx._expression) - self.state = 458 + self.state = 470 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 454 + self.state = 466 self.match(CoreDSL2Parser.T__3) - self.state = 455 + self.state = 467 localctx._expression = self.expression(0) localctx.loop_exprs.append(localctx._expression) - self.state = 460 + self.state = 472 self._errHandler.sync(self) _la = self._input.LA(1) @@ -3018,61 +3056,61 @@ def declaration(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 468 + self.state = 480 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==19 or _la==49 or ((((_la - 85)) & ~0x3f) == 0 and ((1 << (_la - 85)) & 15) != 0): - self.state = 466 + while _la==20 or _la==50 or ((((_la - 86)) & ~0x3f) == 0 and ((1 << (_la - 86)) & 15) != 0): + self.state = 478 self._errHandler.sync(self) token = self._input.LA(1) - if token in [19, 87, 88]: - self.state = 463 + if token in [20, 88, 89]: + self.state = 475 localctx._storage_class_specifier = self.storage_class_specifier() localctx.storage.append(localctx._storage_class_specifier) pass - elif token in [85, 86]: - self.state = 464 + elif token in [86, 87]: + self.state = 476 localctx._type_qualifier = self.type_qualifier() localctx.qualifiers.append(localctx._type_qualifier) pass - elif token in [49]: - self.state = 465 + elif token in [50]: + self.state = 477 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) pass else: raise NoViableAltException(self) - self.state = 470 + self.state = 482 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 471 + self.state = 483 localctx.type_ = self.type_specifier() - self.state = 480 + self.state = 492 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==96: - self.state = 472 + if _la==97: + self.state = 484 localctx._declarator = self.declarator() localctx.declarations.append(localctx._declarator) - self.state = 477 + self.state = 489 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 473 + self.state = 485 self.match(CoreDSL2Parser.T__3) - self.state = 474 + self.state = 486 localctx._declarator = self.declarator() localctx.declarations.append(localctx._declarator) - self.state = 479 + self.state = 491 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 482 - self.match(CoreDSL2Parser.T__9) + self.state = 494 + self.match(CoreDSL2Parser.T__7) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) @@ -3121,20 +3159,20 @@ def type_specifier(self): self.enterRule(localctx, 36, self.RULE_type_specifier) try: self.enterOuterAlt(localctx, 1) - self.state = 484 + self.state = 496 localctx.type_ = self.value_type_specifier() - self.state = 487 + self.state = 499 self._errHandler.sync(self) token = self._input.LA(1) - if token in [34]: - self.state = 485 - localctx.ptr = self.match(CoreDSL2Parser.T__33) - pass - elif token in [35]: - self.state = 486 + if token in [35]: + self.state = 497 localctx.ptr = self.match(CoreDSL2Parser.T__34) pass - elif token in [4, 10, 21, 96]: + elif token in [36]: + self.state = 498 + localctx.ptr = self.match(CoreDSL2Parser.T__35) + pass + elif token in [4, 8, 22, 97]: pass else: pass @@ -3398,28 +3436,28 @@ def value_type_specifier(self): self.enterRule(localctx, 38, self.RULE_value_type_specifier) self._la = 0 # Token type try: - self.state = 530 + self.state = 542 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,60,self._ctx) + la_ = self._interp.adaptivePredict(self._input,62,self._ctx) if la_ == 1: localctx = CoreDSL2Parser.Integer_typeContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 489 + self.state = 501 localctx.signed = self.integer_signedness() - self.state = 495 + self.state = 507 self._errHandler.sync(self) token = self._input.LA(1) - if token in [43, 44, 45, 46]: - self.state = 490 + if token in [44, 45, 46, 47]: + self.state = 502 localctx.shorthand = self.integer_shorthand() pass - elif token in [36]: - self.state = 491 - self.match(CoreDSL2Parser.T__35) - self.state = 492 - localctx.size = self.primary() - self.state = 493 + elif token in [37]: + self.state = 503 self.match(CoreDSL2Parser.T__36) + self.state = 504 + localctx.size = self.primary() + self.state = 505 + self.match(CoreDSL2Parser.T__37) pass else: raise NoViableAltException(self) @@ -3429,105 +3467,105 @@ def value_type_specifier(self): elif la_ == 2: localctx = CoreDSL2Parser.Integer_typeContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 497 + self.state = 509 localctx.shorthand = self.integer_shorthand() pass elif la_ == 3: localctx = CoreDSL2Parser.Float_typeContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 498 + self.state = 510 localctx.shorthand = self.float_shorthand() pass elif la_ == 4: localctx = CoreDSL2Parser.Bool_typeContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 499 - localctx.type_ = self.match(CoreDSL2Parser.T__37) + self.state = 511 + localctx.type_ = self.match(CoreDSL2Parser.T__38) pass elif la_ == 5: localctx = CoreDSL2Parser.Void_typeContext(self, localctx) self.enterOuterAlt(localctx, 5) - self.state = 500 - localctx.type_ = self.match(CoreDSL2Parser.T__38) + self.state = 512 + localctx.type_ = self.match(CoreDSL2Parser.T__39) pass elif la_ == 6: localctx = CoreDSL2Parser.Composite_declarationContext(self, localctx) self.enterOuterAlt(localctx, 6) - self.state = 501 + self.state = 513 localctx.type_ = self.struct_or_union() - self.state = 503 + self.state = 515 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==96: - self.state = 502 + if _la==97: + self.state = 514 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 505 + self.state = 517 self.match(CoreDSL2Parser.T__4) - self.state = 509 + self.state = 521 self._errHandler.sync(self) _la = self._input.LA(1) - while ((((_la - 38)) & ~0x3f) == 0 and ((1 << (_la - 38)) & 7177611906123775) != 0): - self.state = 506 + while ((((_la - 39)) & ~0x3f) == 0 and ((1 << (_la - 39)) & 7177611906123775) != 0): + self.state = 518 localctx._struct_declaration = self.struct_declaration() localctx.declarations.append(localctx._struct_declaration) - self.state = 511 + self.state = 523 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 512 + self.state = 524 self.match(CoreDSL2Parser.T__5) pass elif la_ == 7: localctx = CoreDSL2Parser.Composite_referenceContext(self, localctx) self.enterOuterAlt(localctx, 7) - self.state = 514 + self.state = 526 localctx.type_ = self.struct_or_union() - self.state = 515 + self.state = 527 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) pass elif la_ == 8: localctx = CoreDSL2Parser.Enum_declarationContext(self, localctx) self.enterOuterAlt(localctx, 8) - self.state = 517 - localctx.type_ = self.match(CoreDSL2Parser.T__39) - self.state = 519 + self.state = 529 + localctx.type_ = self.match(CoreDSL2Parser.T__40) + self.state = 531 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==96: - self.state = 518 + if _la==97: + self.state = 530 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 521 + self.state = 533 self.match(CoreDSL2Parser.T__4) - self.state = 522 + self.state = 534 self.enumerator_list() - self.state = 524 + self.state = 536 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4: - self.state = 523 + self.state = 535 self.match(CoreDSL2Parser.T__3) - self.state = 526 + self.state = 538 self.match(CoreDSL2Parser.T__5) pass elif la_ == 9: localctx = CoreDSL2Parser.Enum_referenceContext(self, localctx) self.enterOuterAlt(localctx, 9) - self.state = 528 - localctx.type_ = self.match(CoreDSL2Parser.T__39) - self.state = 529 + self.state = 540 + localctx.type_ = self.match(CoreDSL2Parser.T__40) + self.state = 541 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) pass @@ -3576,9 +3614,9 @@ def integer_signedness(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 532 + self.state = 544 _la = self._input.LA(1) - if not(_la==41 or _la==42): + if not(_la==42 or _la==43): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -3627,9 +3665,9 @@ def integer_shorthand(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 534 + self.state = 546 _la = self._input.LA(1) - if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 131941395333120) != 0)): + if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 263882790666240) != 0)): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -3678,9 +3716,9 @@ def float_shorthand(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 536 + self.state = 548 _la = self._input.LA(1) - if not(_la==47 or _la==48): + if not(_la==48 or _la==49): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -3741,48 +3779,48 @@ def attribute(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 538 - self.match(CoreDSL2Parser.T__48) - self.state = 539 + self.state = 550 + self.match(CoreDSL2Parser.T__49) + self.state = 551 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 553 + self.state = 565 self._errHandler.sync(self) token = self._input.LA(1) - if token in [50]: - self.state = 540 - self.match(CoreDSL2Parser.T__49) - self.state = 541 + if token in [51]: + self.state = 552 + self.match(CoreDSL2Parser.T__50) + self.state = 553 localctx._expression = self.expression(0) localctx.params.append(localctx._expression) pass - elif token in [20]: - self.state = 542 - self.match(CoreDSL2Parser.T__19) - self.state = 543 + elif token in [21]: + self.state = 554 + self.match(CoreDSL2Parser.T__20) + self.state = 555 localctx._expression = self.expression(0) localctx.params.append(localctx._expression) - self.state = 548 + self.state = 560 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 544 + self.state = 556 self.match(CoreDSL2Parser.T__3) - self.state = 545 + self.state = 557 localctx._expression = self.expression(0) localctx.params.append(localctx._expression) - self.state = 550 + self.state = 562 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 551 - self.match(CoreDSL2Parser.T__20) + self.state = 563 + self.match(CoreDSL2Parser.T__21) pass - elif token in [51]: + elif token in [52]: pass else: pass - self.state = 555 - self.match(CoreDSL2Parser.T__50) + self.state = 567 + self.match(CoreDSL2Parser.T__51) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) @@ -3835,34 +3873,34 @@ def bit_size_specifier(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 557 - self.match(CoreDSL2Parser.T__35) - self.state = 558 + self.state = 569 + self.match(CoreDSL2Parser.T__36) + self.state = 570 localctx._primary = self.primary() localctx.size.append(localctx._primary) - self.state = 566 + self.state = 578 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4: - self.state = 559 + self.state = 571 self.match(CoreDSL2Parser.T__3) - self.state = 560 + self.state = 572 localctx._primary = self.primary() localctx.size.append(localctx._primary) - self.state = 561 + self.state = 573 self.match(CoreDSL2Parser.T__3) - self.state = 562 + self.state = 574 localctx._primary = self.primary() localctx.size.append(localctx._primary) - self.state = 563 + self.state = 575 self.match(CoreDSL2Parser.T__3) - self.state = 564 + self.state = 576 localctx._primary = self.primary() localctx.size.append(localctx._primary) - self.state = 568 - self.match(CoreDSL2Parser.T__36) + self.state = 580 + self.match(CoreDSL2Parser.T__37) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) @@ -3914,22 +3952,22 @@ def enumerator_list(self): self.enterRule(localctx, 50, self.RULE_enumerator_list) try: self.enterOuterAlt(localctx, 1) - self.state = 570 + self.state = 582 localctx._enumerator = self.enumerator() localctx.enumerators.append(localctx._enumerator) - self.state = 575 + self.state = 587 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,64,self._ctx) + _alt = self._interp.adaptivePredict(self._input,66,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 571 + self.state = 583 self.match(CoreDSL2Parser.T__3) - self.state = 572 + self.state = 584 localctx._enumerator = self.enumerator() localctx.enumerators.append(localctx._enumerator) - self.state = 577 + self.state = 589 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,64,self._ctx) + _alt = self._interp.adaptivePredict(self._input,66,self._ctx) except RecognitionException as re: localctx.exception = re @@ -3980,22 +4018,22 @@ def enumerator(self): localctx = CoreDSL2Parser.EnumeratorContext(self, self._ctx, self.state) self.enterRule(localctx, 52, self.RULE_enumerator) try: - self.state = 582 + self.state = 594 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,65,self._ctx) + la_ = self._interp.adaptivePredict(self._input,67,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 578 + self.state = 590 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 579 + self.state = 591 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 580 - self.match(CoreDSL2Parser.T__49) - self.state = 581 + self.state = 592 + self.match(CoreDSL2Parser.T__50) + self.state = 593 self.expression(0) pass @@ -4057,26 +4095,26 @@ def struct_declaration(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 584 + self.state = 596 localctx.specifier = self.struct_declaration_specifier() - self.state = 585 + self.state = 597 localctx._declarator = self.declarator() localctx.declarators.append(localctx._declarator) - self.state = 590 + self.state = 602 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 586 + self.state = 598 self.match(CoreDSL2Parser.T__3) - self.state = 587 + self.state = 599 localctx._declarator = self.declarator() localctx.declarators.append(localctx._declarator) - self.state = 592 + self.state = 604 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 593 - self.match(CoreDSL2Parser.T__9) + self.state = 605 + self.match(CoreDSL2Parser.T__7) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) @@ -4129,17 +4167,17 @@ def struct_declaration_specifier(self): localctx = CoreDSL2Parser.Struct_declaration_specifierContext(self, self._ctx, self.state) self.enterRule(localctx, 56, self.RULE_struct_declaration_specifier) try: - self.state = 597 + self.state = 609 self._errHandler.sync(self) token = self._input.LA(1) - if token in [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 89, 90]: + if token in [39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 90, 91]: self.enterOuterAlt(localctx, 1) - self.state = 595 + self.state = 607 localctx.type_ = self.type_specifier() pass - elif token in [85, 86]: + elif token in [86, 87]: self.enterOuterAlt(localctx, 2) - self.state = 596 + self.state = 608 localctx._type_qualifier = self.type_qualifier() localctx.qualifiers.append(localctx._type_qualifier) pass @@ -4228,41 +4266,41 @@ def declarator(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 599 + self.state = 611 localctx.name = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 606 + self.state = 618 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==91: - self.state = 600 + while _la==92: + self.state = 612 self.match(CoreDSL2Parser.LEFT_BR) - self.state = 601 + self.state = 613 localctx._expression = self.expression(0) localctx.size.append(localctx._expression) - self.state = 602 + self.state = 614 self.match(CoreDSL2Parser.RIGHT_BR) - self.state = 608 + self.state = 620 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 612 + self.state = 624 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==49: - self.state = 609 + while _la==50: + self.state = 621 localctx._attribute = self.attribute() localctx.attributes.append(localctx._attribute) - self.state = 614 + self.state = 626 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 617 + self.state = 629 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==50: - self.state = 615 - self.match(CoreDSL2Parser.T__49) - self.state = 616 + if _la==51: + self.state = 627 + self.match(CoreDSL2Parser.T__50) + self.state = 628 localctx.init = self.initializer() @@ -4317,29 +4355,29 @@ def initializer(self): self.enterRule(localctx, 60, self.RULE_initializer) self._la = 0 # Token type try: - self.state = 627 + self.state = 639 self._errHandler.sync(self) token = self._input.LA(1) - if token in [20, 34, 35, 52, 53, 54, 55, 56, 57, 58, 59, 93, 94, 95, 96, 97, 98, 99]: + if token in [21, 35, 36, 53, 54, 55, 56, 57, 58, 59, 60, 94, 95, 96, 97, 98, 99, 100]: self.enterOuterAlt(localctx, 1) - self.state = 619 + self.state = 631 localctx.expr = self.expression(0) pass elif token in [5]: self.enterOuterAlt(localctx, 2) - self.state = 620 + self.state = 632 self.match(CoreDSL2Parser.T__4) - self.state = 621 + self.state = 633 self.initializerList() - self.state = 623 + self.state = 635 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4: - self.state = 622 + self.state = 634 self.match(CoreDSL2Parser.T__3) - self.state = 625 + self.state = 637 self.match(CoreDSL2Parser.T__5) pass else: @@ -4401,44 +4439,44 @@ def initializerList(self): self.enterRule(localctx, 62, self.RULE_initializerList) try: self.enterOuterAlt(localctx, 1) - self.state = 631 + self.state = 643 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,73,self._ctx) + la_ = self._interp.adaptivePredict(self._input,75,self._ctx) if la_ == 1: - self.state = 629 + self.state = 641 self.designated_initializer() pass elif la_ == 2: - self.state = 630 + self.state = 642 self.initializer() pass - self.state = 640 + self.state = 652 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,75,self._ctx) + _alt = self._interp.adaptivePredict(self._input,77,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 633 + self.state = 645 self.match(CoreDSL2Parser.T__3) - self.state = 636 + self.state = 648 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,74,self._ctx) + la_ = self._interp.adaptivePredict(self._input,76,self._ctx) if la_ == 1: - self.state = 634 + self.state = 646 self.designated_initializer() pass elif la_ == 2: - self.state = 635 + self.state = 647 self.initializer() pass - self.state = 642 + self.state = 654 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,75,self._ctx) + _alt = self._interp.adaptivePredict(self._input,77,self._ctx) except RecognitionException as re: localctx.exception = re @@ -4497,22 +4535,22 @@ def designated_initializer(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 644 + self.state = 656 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 643 + self.state = 655 localctx._designator = self.designator() localctx.designators.append(localctx._designator) - self.state = 646 + self.state = 658 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==52 or _la==91): + if not (_la==53 or _la==92): break - self.state = 648 - self.match(CoreDSL2Parser.T__49) - self.state = 649 + self.state = 660 + self.match(CoreDSL2Parser.T__50) + self.state = 661 localctx.init = self.initializer() except RecognitionException as re: localctx.exception = re @@ -4570,23 +4608,23 @@ def designator(self): localctx = CoreDSL2Parser.DesignatorContext(self, self._ctx, self.state) self.enterRule(localctx, 66, self.RULE_designator) try: - self.state = 657 + self.state = 669 self._errHandler.sync(self) token = self._input.LA(1) - if token in [91]: + if token in [92]: self.enterOuterAlt(localctx, 1) - self.state = 651 + self.state = 663 self.match(CoreDSL2Parser.LEFT_BR) - self.state = 652 + self.state = 664 localctx.idx = self.expression(0) - self.state = 653 + self.state = 665 self.match(CoreDSL2Parser.RIGHT_BR) pass - elif token in [52]: + elif token in [53]: self.enterOuterAlt(localctx, 2) - self.state = 655 - self.match(CoreDSL2Parser.T__51) - self.state = 656 + self.state = 667 + self.match(CoreDSL2Parser.T__52) + self.state = 668 localctx.prop = self.match(CoreDSL2Parser.IDENTIFIER) pass else: @@ -4988,15 +5026,15 @@ def expression(self, _p:int=0): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 690 + self.state = 702 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,81,self._ctx) + la_ = self._interp.adaptivePredict(self._input,83,self._ctx) if la_ == 1: localctx = CoreDSL2Parser.Primary_expressionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 660 + self.state = 672 self.primary() pass @@ -5004,15 +5042,15 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Deref_expressionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 661 + self.state = 673 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not(_la==52 or _la==53): + if not(_la==53 or _la==54): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 662 + self.state = 674 localctx.ref = self.match(CoreDSL2Parser.IDENTIFIER) pass @@ -5020,49 +5058,49 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Method_callContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 663 + self.state = 675 localctx.ref = self.match(CoreDSL2Parser.IDENTIFIER) - self.state = 664 - self.match(CoreDSL2Parser.T__19) - self.state = 673 + self.state = 676 + self.match(CoreDSL2Parser.T__20) + self.state = 685 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & 1148417956520132608) != 0) or ((((_la - 93)) & ~0x3f) == 0 and ((1 << (_la - 93)) & 127) != 0): - self.state = 665 + if (((_la) & ~0x3f) == 0 and ((1 << _la) & 2296835913040265216) != 0) or ((((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 127) != 0): + self.state = 677 localctx._expression = self.expression(0) localctx.args.append(localctx._expression) - self.state = 670 + self.state = 682 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 666 + self.state = 678 self.match(CoreDSL2Parser.T__3) - self.state = 667 + self.state = 679 localctx._expression = self.expression(0) localctx.args.append(localctx._expression) - self.state = 672 + self.state = 684 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 675 - self.match(CoreDSL2Parser.T__20) + self.state = 687 + self.match(CoreDSL2Parser.T__21) pass elif la_ == 4: localctx = CoreDSL2Parser.Preinc_expressionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 676 + self.state = 688 localctx.op = self._input.LT(1) _la = self._input.LA(1) - if not(_la==54 or _la==55): + if not(_la==55 or _la==56): localctx.op = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 677 + self.state = 689 localctx.right = self.expression(17) pass @@ -5070,15 +5108,15 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Prefix_expressionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 678 + self.state = 690 localctx.prefix = self._input.LT(1) _la = self._input.LA(1) - if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 216172833653391360) != 0)): + if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 432345667306782720) != 0)): localctx.prefix = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 679 + self.state = 691 localctx.right = self.expression(16) pass @@ -5086,15 +5124,15 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Prefix_expressionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 680 + self.state = 692 localctx.prefix = self._input.LT(1) _la = self._input.LA(1) - if not(_la==58 or _la==59): + if not(_la==59 or _la==60): localctx.prefix = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 681 + self.state = 693 localctx.right = self.expression(15) pass @@ -5102,58 +5140,58 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Cast_expressionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 682 - self.match(CoreDSL2Parser.T__19) - self.state = 685 + self.state = 694 + self.match(CoreDSL2Parser.T__20) + self.state = 697 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,80,self._ctx) + la_ = self._interp.adaptivePredict(self._input,82,self._ctx) if la_ == 1: - self.state = 683 + self.state = 695 localctx.type_ = self.type_specifier() pass elif la_ == 2: - self.state = 684 + self.state = 696 localctx.sign = self.integer_signedness() pass - self.state = 687 - self.match(CoreDSL2Parser.T__20) - self.state = 688 + self.state = 699 + self.match(CoreDSL2Parser.T__21) + self.state = 700 localctx.right = self.expression(14) pass self._ctx.stop = self._input.LT(-1) - self.state = 747 + self.state = 759 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,84,self._ctx) + _alt = self._interp.adaptivePredict(self._input,86,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx - self.state = 745 + self.state = 757 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,83,self._ctx) + la_ = self._interp.adaptivePredict(self._input,85,self._ctx) if la_ == 1: localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 692 + self.state = 704 if not self.precpred(self._ctx, 13): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 13)") - self.state = 693 + self.state = 705 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 3458764531000410112) != 0)): + if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 6917529062000820224) != 0)): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 694 + self.state = 706 localctx.right = self.expression(14) pass @@ -5161,19 +5199,19 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 695 + self.state = 707 if not self.precpred(self._ctx, 12): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 12)") - self.state = 696 + self.state = 708 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not(_la==56 or _la==57): + if not(_la==57 or _la==58): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 697 + self.state = 709 localctx.right = self.expression(13) pass @@ -5181,19 +5219,19 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 698 + self.state = 710 if not self.precpred(self._ctx, 11): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 11)") - self.state = 699 + self.state = 711 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not(_la==62 or _la==63): + if not(_la==63 or _la==64): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 700 + self.state = 712 localctx.right = self.expression(12) pass @@ -5201,19 +5239,19 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 701 + self.state = 713 if not self.precpred(self._ctx, 10): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 10)") - self.state = 702 + self.state = 714 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not(((((_la - 36)) & ~0x3f) == 0 and ((1 << (_la - 36)) & 805306371) != 0)): + if not(((((_la - 37)) & ~0x3f) == 0 and ((1 << (_la - 37)) & 805306371) != 0)): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 703 + self.state = 715 localctx.right = self.expression(11) pass @@ -5221,19 +5259,19 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 704 + self.state = 716 if not self.precpred(self._ctx, 9): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 9)") - self.state = 705 + self.state = 717 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not(_la==66 or _la==67): + if not(_la==67 or _la==68): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 706 + self.state = 718 localctx.right = self.expression(10) pass @@ -5241,13 +5279,13 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 707 + self.state = 719 if not self.precpred(self._ctx, 8): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 8)") - self.state = 708 - localctx.bop = self.match(CoreDSL2Parser.T__34) - self.state = 709 + self.state = 720 + localctx.bop = self.match(CoreDSL2Parser.T__35) + self.state = 721 localctx.right = self.expression(9) pass @@ -5255,13 +5293,13 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 710 + self.state = 722 if not self.precpred(self._ctx, 7): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 7)") - self.state = 711 - localctx.bop = self.match(CoreDSL2Parser.T__67) - self.state = 712 + self.state = 723 + localctx.bop = self.match(CoreDSL2Parser.T__68) + self.state = 724 localctx.right = self.expression(8) pass @@ -5269,13 +5307,13 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 713 + self.state = 725 if not self.precpred(self._ctx, 6): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 6)") - self.state = 714 - localctx.bop = self.match(CoreDSL2Parser.T__68) - self.state = 715 + self.state = 726 + localctx.bop = self.match(CoreDSL2Parser.T__69) + self.state = 727 localctx.right = self.expression(7) pass @@ -5283,13 +5321,13 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 716 + self.state = 728 if not self.precpred(self._ctx, 5): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 5)") - self.state = 717 - localctx.bop = self.match(CoreDSL2Parser.T__69) - self.state = 718 + self.state = 729 + localctx.bop = self.match(CoreDSL2Parser.T__70) + self.state = 730 localctx.right = self.expression(6) pass @@ -5297,13 +5335,13 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Binary_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 719 + self.state = 731 if not self.precpred(self._ctx, 4): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 4)") - self.state = 720 - localctx.bop = self.match(CoreDSL2Parser.T__70) - self.state = 721 + self.state = 732 + localctx.bop = self.match(CoreDSL2Parser.T__71) + self.state = 733 localctx.right = self.expression(5) pass @@ -5311,13 +5349,13 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Concat_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 722 + self.state = 734 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") - self.state = 723 - localctx.bop = self.match(CoreDSL2Parser.T__15) - self.state = 724 + self.state = 735 + localctx.bop = self.match(CoreDSL2Parser.T__16) + self.state = 736 localctx.right = self.expression(4) pass @@ -5325,17 +5363,17 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Conditional_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.cond = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 725 + self.state = 737 if not self.precpred(self._ctx, 2): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") - self.state = 726 - localctx.bop = self.match(CoreDSL2Parser.T__71) - self.state = 727 + self.state = 738 + localctx.bop = self.match(CoreDSL2Parser.T__72) + self.state = 739 localctx.then_expr = self.expression(0) - self.state = 728 - self.match(CoreDSL2Parser.T__14) - self.state = 729 + self.state = 740 + self.match(CoreDSL2Parser.T__15) + self.state = 741 localctx.else_expr = self.expression(2) pass @@ -5343,19 +5381,19 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Assignment_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 731 + self.state = 743 if not self.precpred(self._ctx, 1): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 1)") - self.state = 732 + self.state = 744 localctx.bop = self._input.LT(1) _la = self._input.LA(1) - if not(((((_la - 50)) & ~0x3f) == 0 and ((1 << (_la - 50)) & 17171480577) != 0)): + if not(((((_la - 51)) & ~0x3f) == 0 and ((1 << (_la - 51)) & 17171480577) != 0)): localctx.bop = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 733 + self.state = 745 localctx.right = self.expression(1) pass @@ -5363,25 +5401,25 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Slice_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.expr = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 734 + self.state = 746 if not self.precpred(self._ctx, 20): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 20)") - self.state = 735 + self.state = 747 localctx.bop = self.match(CoreDSL2Parser.LEFT_BR) - self.state = 736 + self.state = 748 localctx.left = self.expression(0) - self.state = 739 + self.state = 751 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==15: - self.state = 737 - self.match(CoreDSL2Parser.T__14) - self.state = 738 + if _la==16: + self.state = 749 + self.match(CoreDSL2Parser.T__15) + self.state = 750 localctx.right = self.expression(0) - self.state = 741 + self.state = 753 self.match(CoreDSL2Parser.RIGHT_BR) pass @@ -5389,14 +5427,14 @@ def expression(self, _p:int=0): localctx = CoreDSL2Parser.Postinc_expressionContext(self, CoreDSL2Parser.ExpressionContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_expression) - self.state = 743 + self.state = 755 if not self.precpred(self._ctx, 18): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 18)") - self.state = 744 + self.state = 756 localctx.op = self._input.LT(1) _la = self._input.LA(1) - if not(_la==54 or _la==55): + if not(_la==55 or _la==56): localctx.op = self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -5404,9 +5442,9 @@ def expression(self, _p:int=0): pass - self.state = 749 + self.state = 761 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,84,self._ctx) + _alt = self._interp.adaptivePredict(self._input,86,self._ctx) except RecognitionException as re: localctx.exception = re @@ -5547,52 +5585,52 @@ def primary(self): localctx = CoreDSL2Parser.PrimaryContext(self, self._ctx, self.state) self.enterRule(localctx, 70, self.RULE_primary) try: - self.state = 761 + self.state = 773 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,86,self._ctx) + la_ = self._interp.adaptivePredict(self._input,88,self._ctx) if la_ == 1: localctx = CoreDSL2Parser.Reference_expressionContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 750 + self.state = 762 localctx.ref = self.match(CoreDSL2Parser.IDENTIFIER) pass elif la_ == 2: localctx = CoreDSL2Parser.Constant_expressionContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 751 + self.state = 763 localctx.const_expr = self.constant() pass elif la_ == 3: localctx = CoreDSL2Parser.Literal_expressionContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 753 + self.state = 765 self._errHandler.sync(self) _alt = 1 while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt == 1: - self.state = 752 + self.state = 764 localctx._string_literal = self.string_literal() localctx.literal.append(localctx._string_literal) else: raise NoViableAltException(self) - self.state = 755 + self.state = 767 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,85,self._ctx) + _alt = self._interp.adaptivePredict(self._input,87,self._ctx) pass elif la_ == 4: localctx = CoreDSL2Parser.Parens_expressionContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 757 - self.match(CoreDSL2Parser.T__19) - self.state = 758 - localctx.expr = self.expression(0) - self.state = 759 + self.state = 769 self.match(CoreDSL2Parser.T__20) + self.state = 770 + localctx.expr = self.expression(0) + self.state = 771 + self.match(CoreDSL2Parser.T__21) pass @@ -5645,9 +5683,9 @@ def string_literal(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 763 + self.state = 775 _la = self._input.LA(1) - if not(_la==98 or _la==99): + if not(_la==99 or _la==100): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -5713,32 +5751,32 @@ def constant(self): localctx = CoreDSL2Parser.ConstantContext(self, self._ctx, self.state) self.enterRule(localctx, 74, self.RULE_constant) try: - self.state = 770 + self.state = 782 self._errHandler.sync(self) token = self._input.LA(1) - if token in [95]: + if token in [96]: self.enterOuterAlt(localctx, 1) - self.state = 765 + self.state = 777 self.integer_constant() pass - elif token in [94]: + elif token in [95]: self.enterOuterAlt(localctx, 2) - self.state = 766 + self.state = 778 self.floating_constant() pass - elif token in [97]: + elif token in [98]: self.enterOuterAlt(localctx, 3) - self.state = 767 + self.state = 779 self.character_constant() pass - elif token in [99]: + elif token in [100]: self.enterOuterAlt(localctx, 4) - self.state = 768 + self.state = 780 self.string_constant() pass - elif token in [93]: + elif token in [94]: self.enterOuterAlt(localctx, 5) - self.state = 769 + self.state = 781 self.bool_constant() pass else: @@ -5790,7 +5828,7 @@ def integer_constant(self): self.enterRule(localctx, 76, self.RULE_integer_constant) try: self.enterOuterAlt(localctx, 1) - self.state = 772 + self.state = 784 localctx.value = self.match(CoreDSL2Parser.INTEGER) except RecognitionException as re: localctx.exception = re @@ -5838,7 +5876,7 @@ def floating_constant(self): self.enterRule(localctx, 78, self.RULE_floating_constant) try: self.enterOuterAlt(localctx, 1) - self.state = 774 + self.state = 786 localctx.value = self.match(CoreDSL2Parser.FLOAT) except RecognitionException as re: localctx.exception = re @@ -5886,7 +5924,7 @@ def bool_constant(self): self.enterRule(localctx, 80, self.RULE_bool_constant) try: self.enterOuterAlt(localctx, 1) - self.state = 776 + self.state = 788 localctx.value = self.match(CoreDSL2Parser.BOOLEAN) except RecognitionException as re: localctx.exception = re @@ -5934,7 +5972,7 @@ def character_constant(self): self.enterRule(localctx, 82, self.RULE_character_constant) try: self.enterOuterAlt(localctx, 1) - self.state = 778 + self.state = 790 localctx.value = self.match(CoreDSL2Parser.CHARCONST) except RecognitionException as re: localctx.exception = re @@ -5982,7 +6020,7 @@ def string_constant(self): self.enterRule(localctx, 84, self.RULE_string_constant) try: self.enterOuterAlt(localctx, 1) - self.state = 780 + self.state = 792 localctx.value = self.match(CoreDSL2Parser.STRING) except RecognitionException as re: localctx.exception = re @@ -6032,9 +6070,9 @@ def double_left_bracket(self): self.enterRule(localctx, 86, self.RULE_double_left_bracket) try: self.enterOuterAlt(localctx, 1) - self.state = 782 + self.state = 794 self.match(CoreDSL2Parser.LEFT_BR) - self.state = 783 + self.state = 795 self.match(CoreDSL2Parser.LEFT_BR) except RecognitionException as re: localctx.exception = re @@ -6084,9 +6122,9 @@ def double_right_bracket(self): self.enterRule(localctx, 88, self.RULE_double_right_bracket) try: self.enterOuterAlt(localctx, 1) - self.state = 785 + self.state = 797 self.match(CoreDSL2Parser.RIGHT_BR) - self.state = 786 + self.state = 798 self.match(CoreDSL2Parser.RIGHT_BR) except RecognitionException as re: localctx.exception = re @@ -6132,9 +6170,9 @@ def data_types(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 788 + self.state = 800 _la = self._input.LA(1) - if not(((((_la - 38)) & ~0x3f) == 0 and ((1 << (_la - 38)) & 70368744179707) != 0)): + if not(((((_la - 39)) & ~0x3f) == 0 and ((1 << (_la - 39)) & 70368744179707) != 0)): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -6183,9 +6221,9 @@ def type_qualifier(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 790 + self.state = 802 _la = self._input.LA(1) - if not(_la==85 or _la==86): + if not(_la==86 or _la==87): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -6234,9 +6272,9 @@ def storage_class_specifier(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 792 + self.state = 804 _la = self._input.LA(1) - if not(_la==19 or _la==87 or _la==88): + if not(_la==20 or _la==88 or _la==89): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -6285,9 +6323,9 @@ def struct_or_union(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 794 + self.state = 806 _la = self._input.LA(1) - if not(_la==89 or _la==90): + if not(_la==90 or _la==91): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) From 2b52c7c75f91ae50d5fa43a4f03d0d3b0b9e527a Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Sun, 15 Jun 2025 00:11:21 +0200 Subject: [PATCH 3/3] [WIP] coredsl2 frontend: handle combines keyword --- .../coredsl2/architecture_model_builder.py | 15 ++++++++++++++- m2isar/frontends/coredsl2/load_order.py | 8 ++++++++ m2isar/metamodel/arch.py | 8 ++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/m2isar/frontends/coredsl2/architecture_model_builder.py b/m2isar/frontends/coredsl2/architecture_model_builder.py index 22bcfd6e..9c848cc0 100644 --- a/m2isar/frontends/coredsl2/architecture_model_builder.py +++ b/m2isar/frontends/coredsl2/architecture_model_builder.py @@ -76,8 +76,18 @@ def visitInstruction_set(self, ctx: CoreDSL2Parser.Instruction_setContext): name = ctx.name.text extension = [] if ctx.extension: + if len(ctx.extension) > 1: + logger.warning("Extending more than one InstrSet is not CoreDSL2 compiliant!") extension = [obj.text for obj in ctx.extension] + combines = [] + if ctx.combines: + combines = [obj.text for obj in ctx.combines] + assert len(ctx.sections) == 0 + sections = [] + else: + sections = ctx.sections + # generate flat list of instruction set contents contents = flatten([self.visit(obj) for obj in ctx.sections]) @@ -104,7 +114,10 @@ def visitInstruction_set(self, ctx: CoreDSL2Parser.Instruction_setContext): raise M2ValueError("unexpected item encountered") # instantiate M2-ISA-R object - i = arch.InstructionSet(name, extension, constants, memories, functions, instructions) + if ctx.combines: + i = arch.InstructionSetGroup(name, combines) + else: + i = arch.InstructionSet(name, extension, constants, memories, functions, instructions) if name in self._instruction_sets: raise M2DuplicateError(f"instruction set \"{name}\" already defined") diff --git a/m2isar/frontends/coredsl2/load_order.py b/m2isar/frontends/coredsl2/load_order.py index a48f639c..96876011 100644 --- a/m2isar/frontends/coredsl2/load_order.py +++ b/m2isar/frontends/coredsl2/load_order.py @@ -36,11 +36,19 @@ def extend_ins_set(self, ins_set_name): raise M2NameError(f"instruction set {ins_set_name} is unknown") extensions = [e.text for e in self.instruction_sets[ins_set_name].extension] + combines = [e.text for e in self.instruction_sets[ins_set_name].combines] if extensions: + assert len(combines) == 0 ret = [ins_set_name] for extension in extensions: ret = self.extend_ins_set(extension) + ret return ret + elif combines: + assert len(extensions) == 0 + ret = [ins_set_name] + for combine in combines: + ret = self.extend_ins_set(combines) + ret + return ret else: return [ins_set_name] diff --git a/m2isar/metamodel/arch.py b/m2isar/metamodel/arch.py index adcd7e9f..b7f1ad61 100644 --- a/m2isar/metamodel/arch.py +++ b/m2isar/metamodel/arch.py @@ -549,6 +549,7 @@ def __init__(self, name, extension: "list[str]", constants: "dict[str, Constant] functions: "dict[str, Function]", instructions: "dict[tuple[int, int], Instruction]"): self.extension = extension + self.combines = [] self.constants = constants self.memories, self.memory_aliases = extract_memory_alias(memories.values()) self.functions = functions @@ -556,6 +557,13 @@ def __init__(self, name, extension: "list[str]", constants: "dict[str, Constant] super().__init__(name) +class InstructionSetGroup(InstructionSet): + """A group of InstructionSet instances.""" + + def __init__(self, name, combines: "list[str]"): + super()__init__(name, [], {}, {}, {}, {}) + self.combines = combines + class CoreDef(Named): """A class representing an entire CPU core. Contains the collected attributes of multiple InstructionSets."""