diff --git a/src/main/antlr/Decaf.g4 b/src/main/antlr/Decaf.g4 index ff45f1d..f1e9cf0 100644 --- a/src/main/antlr/Decaf.g4 +++ b/src/main/antlr/Decaf.g4 @@ -2,7 +2,7 @@ grammar Decaf; program : (class)+; -class : PUBLIC? 'class' id '{' mainmeth (field | meth | constructor)* '}'; +class : PUBLIC? 'class' id '{' mainmeth? (field | meth | constructor)* '}'; field : type id ';'; localVar : type id ';'; diff --git a/src/main/java/de/maishai/ASTGenerator.java b/src/main/java/de/maishai/ASTGenerator.java index a5f9c2d..5de5b65 100644 --- a/src/main/java/de/maishai/ASTGenerator.java +++ b/src/main/java/de/maishai/ASTGenerator.java @@ -25,7 +25,10 @@ public class ASTGenerator { if (ctx.field() != null) { fields = ctx.field().stream().map(ASTGenerator::generateFieldVariable).toList(); } - MainMethod mainMethod = generateMainMethod(ctx.mainmeth()); + MainMethod mainMethod = null; + if(ctx.mainmeth() != null){ + mainMethod = generateMainMethod(ctx.mainmeth()); + } List constructors = new ArrayList<>(); if (ctx.constructor() != null) { constructors = ctx.constructor().stream().map(ASTGenerator::generateConstructor).toList(); diff --git a/src/main/java/de/maishai/antlr/Decaf.interp b/src/main/java/de/maishai/antlr/Decaf.interp index 862a7a6..d6115c2 100644 --- a/src/main/java/de/maishai/antlr/Decaf.interp +++ b/src/main/java/de/maishai/antlr/Decaf.interp @@ -129,4 +129,4 @@ id atn: -[4, 1, 48, 287, 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, 1, 0, 4, 0, 52, 8, 0, 11, 0, 12, 0, 53, 1, 1, 3, 1, 57, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 66, 8, 1, 10, 1, 12, 1, 69, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 3, 5, 85, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 91, 8, 6, 1, 7, 3, 7, 94, 8, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 100, 8, 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, 9, 3, 9, 115, 8, 9, 1, 9, 1, 9, 1, 9, 3, 9, 120, 8, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 5, 10, 128, 8, 10, 10, 10, 12, 10, 131, 9, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 5, 12, 139, 8, 12, 10, 12, 12, 12, 142, 9, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 153, 8, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 196, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 203, 8, 14, 1, 14, 1, 14, 3, 14, 207, 8, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 221, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 227, 8, 15, 10, 15, 12, 15, 230, 9, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 3, 18, 238, 8, 18, 1, 18, 1, 18, 1, 18, 5, 18, 243, 8, 18, 10, 18, 12, 18, 246, 9, 18, 1, 18, 1, 18, 1, 19, 1, 19, 3, 19, 252, 8, 19, 1, 19, 1, 19, 1, 19, 5, 19, 257, 8, 19, 10, 19, 12, 19, 260, 9, 19, 1, 19, 1, 19, 1, 20, 1, 20, 3, 20, 266, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 271, 8, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 5, 22, 278, 8, 22, 10, 22, 12, 22, 281, 9, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 0, 1, 30, 25, 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, 0, 4, 1, 0, 35, 38, 1, 0, 24, 34, 2, 0, 24, 24, 39, 39, 2, 0, 44, 45, 47, 47, 302, 0, 51, 1, 0, 0, 0, 2, 56, 1, 0, 0, 0, 4, 72, 1, 0, 0, 0, 6, 76, 1, 0, 0, 0, 8, 80, 1, 0, 0, 0, 10, 84, 1, 0, 0, 0, 12, 90, 1, 0, 0, 0, 14, 93, 1, 0, 0, 0, 16, 104, 1, 0, 0, 0, 18, 114, 1, 0, 0, 0, 20, 124, 1, 0, 0, 0, 22, 132, 1, 0, 0, 0, 24, 135, 1, 0, 0, 0, 26, 195, 1, 0, 0, 0, 28, 206, 1, 0, 0, 0, 30, 220, 1, 0, 0, 0, 32, 231, 1, 0, 0, 0, 34, 233, 1, 0, 0, 0, 36, 237, 1, 0, 0, 0, 38, 251, 1, 0, 0, 0, 40, 265, 1, 0, 0, 0, 42, 267, 1, 0, 0, 0, 44, 274, 1, 0, 0, 0, 46, 282, 1, 0, 0, 0, 48, 284, 1, 0, 0, 0, 50, 52, 3, 2, 1, 0, 51, 50, 1, 0, 0, 0, 52, 53, 1, 0, 0, 0, 53, 51, 1, 0, 0, 0, 53, 54, 1, 0, 0, 0, 54, 1, 1, 0, 0, 0, 55, 57, 5, 20, 0, 0, 56, 55, 1, 0, 0, 0, 56, 57, 1, 0, 0, 0, 57, 58, 1, 0, 0, 0, 58, 59, 5, 1, 0, 0, 59, 60, 3, 48, 24, 0, 60, 61, 5, 2, 0, 0, 61, 67, 3, 16, 8, 0, 62, 66, 3, 4, 2, 0, 63, 66, 3, 14, 7, 0, 64, 66, 3, 18, 9, 0, 65, 62, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 64, 1, 0, 0, 0, 66, 69, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 67, 68, 1, 0, 0, 0, 68, 70, 1, 0, 0, 0, 69, 67, 1, 0, 0, 0, 70, 71, 5, 3, 0, 0, 71, 3, 1, 0, 0, 0, 72, 73, 3, 12, 6, 0, 73, 74, 3, 48, 24, 0, 74, 75, 5, 4, 0, 0, 75, 5, 1, 0, 0, 0, 76, 77, 3, 12, 6, 0, 77, 78, 3, 48, 24, 0, 78, 79, 5, 4, 0, 0, 79, 7, 1, 0, 0, 0, 80, 81, 7, 0, 0, 0, 81, 9, 1, 0, 0, 0, 82, 85, 3, 12, 6, 0, 83, 85, 5, 42, 0, 0, 84, 82, 1, 0, 0, 0, 84, 83, 1, 0, 0, 0, 85, 11, 1, 0, 0, 0, 86, 91, 5, 40, 0, 0, 87, 91, 5, 41, 0, 0, 88, 91, 5, 43, 0, 0, 89, 91, 3, 48, 24, 0, 90, 86, 1, 0, 0, 0, 90, 87, 1, 0, 0, 0, 90, 88, 1, 0, 0, 0, 90, 89, 1, 0, 0, 0, 91, 13, 1, 0, 0, 0, 92, 94, 5, 20, 0, 0, 93, 92, 1, 0, 0, 0, 93, 94, 1, 0, 0, 0, 94, 95, 1, 0, 0, 0, 95, 96, 3, 10, 5, 0, 96, 97, 3, 48, 24, 0, 97, 99, 5, 5, 0, 0, 98, 100, 3, 20, 10, 0, 99, 98, 1, 0, 0, 0, 99, 100, 1, 0, 0, 0, 100, 101, 1, 0, 0, 0, 101, 102, 5, 6, 0, 0, 102, 103, 3, 24, 12, 0, 103, 15, 1, 0, 0, 0, 104, 105, 5, 20, 0, 0, 105, 106, 5, 7, 0, 0, 106, 107, 5, 42, 0, 0, 107, 108, 5, 8, 0, 0, 108, 109, 5, 5, 0, 0, 109, 110, 5, 9, 0, 0, 110, 111, 5, 6, 0, 0, 111, 112, 3, 24, 12, 0, 112, 17, 1, 0, 0, 0, 113, 115, 5, 20, 0, 0, 114, 113, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 117, 3, 48, 24, 0, 117, 119, 5, 5, 0, 0, 118, 120, 3, 20, 10, 0, 119, 118, 1, 0, 0, 0, 119, 120, 1, 0, 0, 0, 120, 121, 1, 0, 0, 0, 121, 122, 5, 6, 0, 0, 122, 123, 3, 24, 12, 0, 123, 19, 1, 0, 0, 0, 124, 129, 3, 22, 11, 0, 125, 126, 5, 10, 0, 0, 126, 128, 3, 22, 11, 0, 127, 125, 1, 0, 0, 0, 128, 131, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 130, 1, 0, 0, 0, 130, 21, 1, 0, 0, 0, 131, 129, 1, 0, 0, 0, 132, 133, 3, 12, 6, 0, 133, 134, 3, 48, 24, 0, 134, 23, 1, 0, 0, 0, 135, 140, 5, 2, 0, 0, 136, 139, 3, 6, 3, 0, 137, 139, 3, 26, 13, 0, 138, 136, 1, 0, 0, 0, 138, 137, 1, 0, 0, 0, 139, 142, 1, 0, 0, 0, 140, 138, 1, 0, 0, 0, 140, 141, 1, 0, 0, 0, 141, 143, 1, 0, 0, 0, 142, 140, 1, 0, 0, 0, 143, 144, 5, 3, 0, 0, 144, 25, 1, 0, 0, 0, 145, 146, 5, 11, 0, 0, 146, 147, 5, 5, 0, 0, 147, 148, 3, 30, 15, 0, 148, 149, 5, 6, 0, 0, 149, 152, 3, 24, 12, 0, 150, 151, 5, 12, 0, 0, 151, 153, 3, 24, 12, 0, 152, 150, 1, 0, 0, 0, 152, 153, 1, 0, 0, 0, 153, 196, 1, 0, 0, 0, 154, 155, 5, 13, 0, 0, 155, 156, 5, 5, 0, 0, 156, 157, 3, 30, 15, 0, 157, 158, 5, 4, 0, 0, 158, 159, 3, 30, 15, 0, 159, 160, 5, 4, 0, 0, 160, 161, 3, 30, 15, 0, 161, 162, 5, 6, 0, 0, 162, 163, 3, 24, 12, 0, 163, 196, 1, 0, 0, 0, 164, 165, 5, 14, 0, 0, 165, 166, 5, 5, 0, 0, 166, 167, 3, 30, 15, 0, 167, 168, 5, 6, 0, 0, 168, 169, 3, 24, 12, 0, 169, 196, 1, 0, 0, 0, 170, 171, 5, 15, 0, 0, 171, 172, 3, 24, 12, 0, 172, 173, 5, 14, 0, 0, 173, 174, 5, 5, 0, 0, 174, 175, 3, 30, 15, 0, 175, 176, 5, 6, 0, 0, 176, 196, 1, 0, 0, 0, 177, 178, 5, 16, 0, 0, 178, 179, 3, 30, 15, 0, 179, 180, 5, 4, 0, 0, 180, 196, 1, 0, 0, 0, 181, 182, 5, 16, 0, 0, 182, 196, 5, 4, 0, 0, 183, 184, 5, 17, 0, 0, 184, 196, 5, 4, 0, 0, 185, 186, 5, 18, 0, 0, 186, 196, 5, 4, 0, 0, 187, 188, 3, 48, 24, 0, 188, 189, 3, 8, 4, 0, 189, 190, 3, 30, 15, 0, 190, 191, 5, 4, 0, 0, 191, 196, 1, 0, 0, 0, 192, 193, 3, 28, 14, 0, 193, 194, 5, 4, 0, 0, 194, 196, 1, 0, 0, 0, 195, 145, 1, 0, 0, 0, 195, 154, 1, 0, 0, 0, 195, 164, 1, 0, 0, 0, 195, 170, 1, 0, 0, 0, 195, 177, 1, 0, 0, 0, 195, 181, 1, 0, 0, 0, 195, 183, 1, 0, 0, 0, 195, 185, 1, 0, 0, 0, 195, 187, 1, 0, 0, 0, 195, 192, 1, 0, 0, 0, 196, 27, 1, 0, 0, 0, 197, 207, 3, 38, 19, 0, 198, 199, 5, 21, 0, 0, 199, 200, 3, 12, 6, 0, 200, 202, 5, 5, 0, 0, 201, 203, 3, 44, 22, 0, 202, 201, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 204, 1, 0, 0, 0, 204, 205, 5, 6, 0, 0, 205, 207, 1, 0, 0, 0, 206, 197, 1, 0, 0, 0, 206, 198, 1, 0, 0, 0, 207, 29, 1, 0, 0, 0, 208, 209, 6, 15, -1, 0, 209, 210, 3, 34, 17, 0, 210, 211, 3, 30, 15, 6, 211, 221, 1, 0, 0, 0, 212, 221, 3, 46, 23, 0, 213, 214, 5, 5, 0, 0, 214, 215, 3, 30, 15, 0, 215, 216, 5, 6, 0, 0, 216, 221, 1, 0, 0, 0, 217, 221, 3, 36, 18, 0, 218, 221, 3, 28, 14, 0, 219, 221, 5, 22, 0, 0, 220, 208, 1, 0, 0, 0, 220, 212, 1, 0, 0, 0, 220, 213, 1, 0, 0, 0, 220, 217, 1, 0, 0, 0, 220, 218, 1, 0, 0, 0, 220, 219, 1, 0, 0, 0, 221, 228, 1, 0, 0, 0, 222, 223, 10, 7, 0, 0, 223, 224, 3, 32, 16, 0, 224, 225, 3, 30, 15, 8, 225, 227, 1, 0, 0, 0, 226, 222, 1, 0, 0, 0, 227, 230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 31, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 231, 232, 7, 1, 0, 0, 232, 33, 1, 0, 0, 0, 233, 234, 7, 2, 0, 0, 234, 35, 1, 0, 0, 0, 235, 236, 5, 23, 0, 0, 236, 238, 5, 19, 0, 0, 237, 235, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 244, 1, 0, 0, 0, 239, 240, 3, 40, 20, 0, 240, 241, 5, 19, 0, 0, 241, 243, 1, 0, 0, 0, 242, 239, 1, 0, 0, 0, 243, 246, 1, 0, 0, 0, 244, 242, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 247, 1, 0, 0, 0, 246, 244, 1, 0, 0, 0, 247, 248, 3, 48, 24, 0, 248, 37, 1, 0, 0, 0, 249, 250, 5, 23, 0, 0, 250, 252, 5, 19, 0, 0, 251, 249, 1, 0, 0, 0, 251, 252, 1, 0, 0, 0, 252, 258, 1, 0, 0, 0, 253, 254, 3, 40, 20, 0, 254, 255, 5, 19, 0, 0, 255, 257, 1, 0, 0, 0, 256, 253, 1, 0, 0, 0, 257, 260, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 258, 259, 1, 0, 0, 0, 259, 261, 1, 0, 0, 0, 260, 258, 1, 0, 0, 0, 261, 262, 3, 42, 21, 0, 262, 39, 1, 0, 0, 0, 263, 266, 3, 42, 21, 0, 264, 266, 3, 48, 24, 0, 265, 263, 1, 0, 0, 0, 265, 264, 1, 0, 0, 0, 266, 41, 1, 0, 0, 0, 267, 268, 3, 48, 24, 0, 268, 270, 5, 5, 0, 0, 269, 271, 3, 44, 22, 0, 270, 269, 1, 0, 0, 0, 270, 271, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 273, 5, 6, 0, 0, 273, 43, 1, 0, 0, 0, 274, 279, 3, 30, 15, 0, 275, 276, 5, 10, 0, 0, 276, 278, 3, 30, 15, 0, 277, 275, 1, 0, 0, 0, 278, 281, 1, 0, 0, 0, 279, 277, 1, 0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 45, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 282, 283, 7, 3, 0, 0, 283, 47, 1, 0, 0, 0, 284, 285, 5, 46, 0, 0, 285, 49, 1, 0, 0, 0, 26, 53, 56, 65, 67, 84, 90, 93, 99, 114, 119, 129, 138, 140, 152, 195, 202, 206, 220, 228, 237, 244, 251, 258, 265, 270, 279] \ No newline at end of file +[4, 1, 48, 289, 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, 1, 0, 4, 0, 52, 8, 0, 11, 0, 12, 0, 53, 1, 1, 3, 1, 57, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 63, 8, 1, 1, 1, 1, 1, 1, 1, 5, 1, 68, 8, 1, 10, 1, 12, 1, 71, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 3, 5, 87, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 93, 8, 6, 1, 7, 3, 7, 96, 8, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 102, 8, 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, 9, 3, 9, 117, 8, 9, 1, 9, 1, 9, 1, 9, 3, 9, 122, 8, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 5, 10, 130, 8, 10, 10, 10, 12, 10, 133, 9, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 5, 12, 141, 8, 12, 10, 12, 12, 12, 144, 9, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 155, 8, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 198, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 205, 8, 14, 1, 14, 1, 14, 3, 14, 209, 8, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 223, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 229, 8, 15, 10, 15, 12, 15, 232, 9, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 3, 18, 240, 8, 18, 1, 18, 1, 18, 1, 18, 5, 18, 245, 8, 18, 10, 18, 12, 18, 248, 9, 18, 1, 18, 1, 18, 1, 19, 1, 19, 3, 19, 254, 8, 19, 1, 19, 1, 19, 1, 19, 5, 19, 259, 8, 19, 10, 19, 12, 19, 262, 9, 19, 1, 19, 1, 19, 1, 20, 1, 20, 3, 20, 268, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 273, 8, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 5, 22, 280, 8, 22, 10, 22, 12, 22, 283, 9, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 0, 1, 30, 25, 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, 0, 4, 1, 0, 35, 38, 1, 0, 24, 34, 2, 0, 24, 24, 39, 39, 2, 0, 44, 45, 47, 47, 305, 0, 51, 1, 0, 0, 0, 2, 56, 1, 0, 0, 0, 4, 74, 1, 0, 0, 0, 6, 78, 1, 0, 0, 0, 8, 82, 1, 0, 0, 0, 10, 86, 1, 0, 0, 0, 12, 92, 1, 0, 0, 0, 14, 95, 1, 0, 0, 0, 16, 106, 1, 0, 0, 0, 18, 116, 1, 0, 0, 0, 20, 126, 1, 0, 0, 0, 22, 134, 1, 0, 0, 0, 24, 137, 1, 0, 0, 0, 26, 197, 1, 0, 0, 0, 28, 208, 1, 0, 0, 0, 30, 222, 1, 0, 0, 0, 32, 233, 1, 0, 0, 0, 34, 235, 1, 0, 0, 0, 36, 239, 1, 0, 0, 0, 38, 253, 1, 0, 0, 0, 40, 267, 1, 0, 0, 0, 42, 269, 1, 0, 0, 0, 44, 276, 1, 0, 0, 0, 46, 284, 1, 0, 0, 0, 48, 286, 1, 0, 0, 0, 50, 52, 3, 2, 1, 0, 51, 50, 1, 0, 0, 0, 52, 53, 1, 0, 0, 0, 53, 51, 1, 0, 0, 0, 53, 54, 1, 0, 0, 0, 54, 1, 1, 0, 0, 0, 55, 57, 5, 20, 0, 0, 56, 55, 1, 0, 0, 0, 56, 57, 1, 0, 0, 0, 57, 58, 1, 0, 0, 0, 58, 59, 5, 1, 0, 0, 59, 60, 3, 48, 24, 0, 60, 62, 5, 2, 0, 0, 61, 63, 3, 16, 8, 0, 62, 61, 1, 0, 0, 0, 62, 63, 1, 0, 0, 0, 63, 69, 1, 0, 0, 0, 64, 68, 3, 4, 2, 0, 65, 68, 3, 14, 7, 0, 66, 68, 3, 18, 9, 0, 67, 64, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 67, 66, 1, 0, 0, 0, 68, 71, 1, 0, 0, 0, 69, 67, 1, 0, 0, 0, 69, 70, 1, 0, 0, 0, 70, 72, 1, 0, 0, 0, 71, 69, 1, 0, 0, 0, 72, 73, 5, 3, 0, 0, 73, 3, 1, 0, 0, 0, 74, 75, 3, 12, 6, 0, 75, 76, 3, 48, 24, 0, 76, 77, 5, 4, 0, 0, 77, 5, 1, 0, 0, 0, 78, 79, 3, 12, 6, 0, 79, 80, 3, 48, 24, 0, 80, 81, 5, 4, 0, 0, 81, 7, 1, 0, 0, 0, 82, 83, 7, 0, 0, 0, 83, 9, 1, 0, 0, 0, 84, 87, 3, 12, 6, 0, 85, 87, 5, 42, 0, 0, 86, 84, 1, 0, 0, 0, 86, 85, 1, 0, 0, 0, 87, 11, 1, 0, 0, 0, 88, 93, 5, 40, 0, 0, 89, 93, 5, 41, 0, 0, 90, 93, 5, 43, 0, 0, 91, 93, 3, 48, 24, 0, 92, 88, 1, 0, 0, 0, 92, 89, 1, 0, 0, 0, 92, 90, 1, 0, 0, 0, 92, 91, 1, 0, 0, 0, 93, 13, 1, 0, 0, 0, 94, 96, 5, 20, 0, 0, 95, 94, 1, 0, 0, 0, 95, 96, 1, 0, 0, 0, 96, 97, 1, 0, 0, 0, 97, 98, 3, 10, 5, 0, 98, 99, 3, 48, 24, 0, 99, 101, 5, 5, 0, 0, 100, 102, 3, 20, 10, 0, 101, 100, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 104, 5, 6, 0, 0, 104, 105, 3, 24, 12, 0, 105, 15, 1, 0, 0, 0, 106, 107, 5, 20, 0, 0, 107, 108, 5, 7, 0, 0, 108, 109, 5, 42, 0, 0, 109, 110, 5, 8, 0, 0, 110, 111, 5, 5, 0, 0, 111, 112, 5, 9, 0, 0, 112, 113, 5, 6, 0, 0, 113, 114, 3, 24, 12, 0, 114, 17, 1, 0, 0, 0, 115, 117, 5, 20, 0, 0, 116, 115, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 119, 3, 48, 24, 0, 119, 121, 5, 5, 0, 0, 120, 122, 3, 20, 10, 0, 121, 120, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 123, 1, 0, 0, 0, 123, 124, 5, 6, 0, 0, 124, 125, 3, 24, 12, 0, 125, 19, 1, 0, 0, 0, 126, 131, 3, 22, 11, 0, 127, 128, 5, 10, 0, 0, 128, 130, 3, 22, 11, 0, 129, 127, 1, 0, 0, 0, 130, 133, 1, 0, 0, 0, 131, 129, 1, 0, 0, 0, 131, 132, 1, 0, 0, 0, 132, 21, 1, 0, 0, 0, 133, 131, 1, 0, 0, 0, 134, 135, 3, 12, 6, 0, 135, 136, 3, 48, 24, 0, 136, 23, 1, 0, 0, 0, 137, 142, 5, 2, 0, 0, 138, 141, 3, 6, 3, 0, 139, 141, 3, 26, 13, 0, 140, 138, 1, 0, 0, 0, 140, 139, 1, 0, 0, 0, 141, 144, 1, 0, 0, 0, 142, 140, 1, 0, 0, 0, 142, 143, 1, 0, 0, 0, 143, 145, 1, 0, 0, 0, 144, 142, 1, 0, 0, 0, 145, 146, 5, 3, 0, 0, 146, 25, 1, 0, 0, 0, 147, 148, 5, 11, 0, 0, 148, 149, 5, 5, 0, 0, 149, 150, 3, 30, 15, 0, 150, 151, 5, 6, 0, 0, 151, 154, 3, 24, 12, 0, 152, 153, 5, 12, 0, 0, 153, 155, 3, 24, 12, 0, 154, 152, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155, 198, 1, 0, 0, 0, 156, 157, 5, 13, 0, 0, 157, 158, 5, 5, 0, 0, 158, 159, 3, 30, 15, 0, 159, 160, 5, 4, 0, 0, 160, 161, 3, 30, 15, 0, 161, 162, 5, 4, 0, 0, 162, 163, 3, 30, 15, 0, 163, 164, 5, 6, 0, 0, 164, 165, 3, 24, 12, 0, 165, 198, 1, 0, 0, 0, 166, 167, 5, 14, 0, 0, 167, 168, 5, 5, 0, 0, 168, 169, 3, 30, 15, 0, 169, 170, 5, 6, 0, 0, 170, 171, 3, 24, 12, 0, 171, 198, 1, 0, 0, 0, 172, 173, 5, 15, 0, 0, 173, 174, 3, 24, 12, 0, 174, 175, 5, 14, 0, 0, 175, 176, 5, 5, 0, 0, 176, 177, 3, 30, 15, 0, 177, 178, 5, 6, 0, 0, 178, 198, 1, 0, 0, 0, 179, 180, 5, 16, 0, 0, 180, 181, 3, 30, 15, 0, 181, 182, 5, 4, 0, 0, 182, 198, 1, 0, 0, 0, 183, 184, 5, 16, 0, 0, 184, 198, 5, 4, 0, 0, 185, 186, 5, 17, 0, 0, 186, 198, 5, 4, 0, 0, 187, 188, 5, 18, 0, 0, 188, 198, 5, 4, 0, 0, 189, 190, 3, 48, 24, 0, 190, 191, 3, 8, 4, 0, 191, 192, 3, 30, 15, 0, 192, 193, 5, 4, 0, 0, 193, 198, 1, 0, 0, 0, 194, 195, 3, 28, 14, 0, 195, 196, 5, 4, 0, 0, 196, 198, 1, 0, 0, 0, 197, 147, 1, 0, 0, 0, 197, 156, 1, 0, 0, 0, 197, 166, 1, 0, 0, 0, 197, 172, 1, 0, 0, 0, 197, 179, 1, 0, 0, 0, 197, 183, 1, 0, 0, 0, 197, 185, 1, 0, 0, 0, 197, 187, 1, 0, 0, 0, 197, 189, 1, 0, 0, 0, 197, 194, 1, 0, 0, 0, 198, 27, 1, 0, 0, 0, 199, 209, 3, 38, 19, 0, 200, 201, 5, 21, 0, 0, 201, 202, 3, 12, 6, 0, 202, 204, 5, 5, 0, 0, 203, 205, 3, 44, 22, 0, 204, 203, 1, 0, 0, 0, 204, 205, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 207, 5, 6, 0, 0, 207, 209, 1, 0, 0, 0, 208, 199, 1, 0, 0, 0, 208, 200, 1, 0, 0, 0, 209, 29, 1, 0, 0, 0, 210, 211, 6, 15, -1, 0, 211, 212, 3, 34, 17, 0, 212, 213, 3, 30, 15, 6, 213, 223, 1, 0, 0, 0, 214, 223, 3, 46, 23, 0, 215, 216, 5, 5, 0, 0, 216, 217, 3, 30, 15, 0, 217, 218, 5, 6, 0, 0, 218, 223, 1, 0, 0, 0, 219, 223, 3, 36, 18, 0, 220, 223, 3, 28, 14, 0, 221, 223, 5, 22, 0, 0, 222, 210, 1, 0, 0, 0, 222, 214, 1, 0, 0, 0, 222, 215, 1, 0, 0, 0, 222, 219, 1, 0, 0, 0, 222, 220, 1, 0, 0, 0, 222, 221, 1, 0, 0, 0, 223, 230, 1, 0, 0, 0, 224, 225, 10, 7, 0, 0, 225, 226, 3, 32, 16, 0, 226, 227, 3, 30, 15, 8, 227, 229, 1, 0, 0, 0, 228, 224, 1, 0, 0, 0, 229, 232, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 230, 231, 1, 0, 0, 0, 231, 31, 1, 0, 0, 0, 232, 230, 1, 0, 0, 0, 233, 234, 7, 1, 0, 0, 234, 33, 1, 0, 0, 0, 235, 236, 7, 2, 0, 0, 236, 35, 1, 0, 0, 0, 237, 238, 5, 23, 0, 0, 238, 240, 5, 19, 0, 0, 239, 237, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 246, 1, 0, 0, 0, 241, 242, 3, 40, 20, 0, 242, 243, 5, 19, 0, 0, 243, 245, 1, 0, 0, 0, 244, 241, 1, 0, 0, 0, 245, 248, 1, 0, 0, 0, 246, 244, 1, 0, 0, 0, 246, 247, 1, 0, 0, 0, 247, 249, 1, 0, 0, 0, 248, 246, 1, 0, 0, 0, 249, 250, 3, 48, 24, 0, 250, 37, 1, 0, 0, 0, 251, 252, 5, 23, 0, 0, 252, 254, 5, 19, 0, 0, 253, 251, 1, 0, 0, 0, 253, 254, 1, 0, 0, 0, 254, 260, 1, 0, 0, 0, 255, 256, 3, 40, 20, 0, 256, 257, 5, 19, 0, 0, 257, 259, 1, 0, 0, 0, 258, 255, 1, 0, 0, 0, 259, 262, 1, 0, 0, 0, 260, 258, 1, 0, 0, 0, 260, 261, 1, 0, 0, 0, 261, 263, 1, 0, 0, 0, 262, 260, 1, 0, 0, 0, 263, 264, 3, 42, 21, 0, 264, 39, 1, 0, 0, 0, 265, 268, 3, 42, 21, 0, 266, 268, 3, 48, 24, 0, 267, 265, 1, 0, 0, 0, 267, 266, 1, 0, 0, 0, 268, 41, 1, 0, 0, 0, 269, 270, 3, 48, 24, 0, 270, 272, 5, 5, 0, 0, 271, 273, 3, 44, 22, 0, 272, 271, 1, 0, 0, 0, 272, 273, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 275, 5, 6, 0, 0, 275, 43, 1, 0, 0, 0, 276, 281, 3, 30, 15, 0, 277, 278, 5, 10, 0, 0, 278, 280, 3, 30, 15, 0, 279, 277, 1, 0, 0, 0, 280, 283, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 281, 282, 1, 0, 0, 0, 282, 45, 1, 0, 0, 0, 283, 281, 1, 0, 0, 0, 284, 285, 7, 3, 0, 0, 285, 47, 1, 0, 0, 0, 286, 287, 5, 46, 0, 0, 287, 49, 1, 0, 0, 0, 27, 53, 56, 62, 67, 69, 86, 92, 95, 101, 116, 121, 131, 140, 142, 154, 197, 204, 208, 222, 230, 239, 246, 253, 260, 267, 272, 281] \ No newline at end of file diff --git a/src/main/java/de/maishai/antlr/DecafBaseListener.java b/src/main/java/de/maishai/antlr/DecafBaseListener.java index 5f14336..2e2ade1 100644 --- a/src/main/java/de/maishai/antlr/DecafBaseListener.java +++ b/src/main/java/de/maishai/antlr/DecafBaseListener.java @@ -1,4 +1,4 @@ -// Generated from C:/Users/laure/Documents/Dev/Compilerbau/Projekt/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 +// Generated from C:/dev/Compilerbau/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 package de.maishai.antlr; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/src/main/java/de/maishai/antlr/DecafBaseVisitor.java b/src/main/java/de/maishai/antlr/DecafBaseVisitor.java index 324f522..5fc8514 100644 --- a/src/main/java/de/maishai/antlr/DecafBaseVisitor.java +++ b/src/main/java/de/maishai/antlr/DecafBaseVisitor.java @@ -1,4 +1,4 @@ -// Generated from C:/Users/laure/Documents/Dev/Compilerbau/Projekt/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 +// Generated from C:/dev/Compilerbau/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 package de.maishai.antlr; import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor; diff --git a/src/main/java/de/maishai/antlr/DecafLexer.java b/src/main/java/de/maishai/antlr/DecafLexer.java index f8afa1a..7145a24 100644 --- a/src/main/java/de/maishai/antlr/DecafLexer.java +++ b/src/main/java/de/maishai/antlr/DecafLexer.java @@ -1,4 +1,4 @@ -// Generated from C:/Users/laure/Documents/Dev/Compilerbau/Projekt/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 +// Generated from C:/dev/Compilerbau/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 package de.maishai.antlr; import org.antlr.v4.runtime.Lexer; import org.antlr.v4.runtime.CharStream; diff --git a/src/main/java/de/maishai/antlr/DecafListener.java b/src/main/java/de/maishai/antlr/DecafListener.java index 5b97673..25c125e 100644 --- a/src/main/java/de/maishai/antlr/DecafListener.java +++ b/src/main/java/de/maishai/antlr/DecafListener.java @@ -1,4 +1,4 @@ -// Generated from C:/Users/laure/Documents/Dev/Compilerbau/Projekt/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 +// Generated from C:/dev/Compilerbau/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 package de.maishai.antlr; import org.antlr.v4.runtime.tree.ParseTreeListener; diff --git a/src/main/java/de/maishai/antlr/DecafParser.java b/src/main/java/de/maishai/antlr/DecafParser.java index d24ffc5..7484f91 100644 --- a/src/main/java/de/maishai/antlr/DecafParser.java +++ b/src/main/java/de/maishai/antlr/DecafParser.java @@ -1,4 +1,4 @@ -// Generated from C:/Users/laure/Documents/Dev/Compilerbau/Projekt/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 +// Generated from C:/dev/Compilerbau/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 package de.maishai.antlr; import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; @@ -179,10 +179,10 @@ public class DecafParser extends Parser { public IdContext id() { return getRuleContext(IdContext.class,0); } + public TerminalNode PUBLIC() { return getToken(DecafParser.PUBLIC, 0); } public MainmethContext mainmeth() { return getRuleContext(MainmethContext.class,0); } - public TerminalNode PUBLIC() { return getToken(DecafParser.PUBLIC, 0); } public List field() { return getRuleContexts(FieldContext.class); } @@ -243,41 +243,49 @@ public class DecafParser extends Parser { id(); setState(60); match(T__1); - setState(61); - mainmeth(); - setState(67); + setState(62); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) { + case 1: + { + setState(61); + mainmeth(); + } + break; + } + setState(69); _errHandler.sync(this); _la = _input.LA(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 86861419642880L) != 0)) { { - setState(65); + setState(67); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) { case 1: { - setState(62); + setState(64); field(); } break; case 2: { - setState(63); + setState(65); meth(); } break; case 3: { - setState(64); + setState(66); constructor(); } break; } } - setState(69); + setState(71); _errHandler.sync(this); _la = _input.LA(1); } - setState(70); + setState(72); match(T__2); } } @@ -325,11 +333,11 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(72); - type(); - setState(73); - id(); setState(74); + type(); + setState(75); + id(); + setState(76); match(T__3); } } @@ -377,11 +385,11 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(76); - type(); - setState(77); - id(); setState(78); + type(); + setState(79); + id(); + setState(80); match(T__3); } } @@ -428,7 +436,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(80); + setState(82); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 515396075520L) != 0)) ) { _errHandler.recoverInline(this); @@ -480,7 +488,7 @@ public class DecafParser extends Parser { ReturntypeContext _localctx = new ReturntypeContext(_ctx, getState()); enterRule(_localctx, 10, RULE_returntype); try { - setState(84); + setState(86); _errHandler.sync(this); switch (_input.LA(1)) { case INT: @@ -489,14 +497,14 @@ public class DecafParser extends Parser { case IDENTIFIER: enterOuterAlt(_localctx, 1); { - setState(82); + setState(84); type(); } break; case VOID: enterOuterAlt(_localctx, 2); { - setState(83); + setState(85); match(VOID); } break; @@ -546,34 +554,34 @@ public class DecafParser extends Parser { TypeContext _localctx = new TypeContext(_ctx, getState()); enterRule(_localctx, 12, RULE_type); try { - setState(90); + setState(92); _errHandler.sync(this); switch (_input.LA(1)) { case INT: enterOuterAlt(_localctx, 1); { - setState(86); + setState(88); match(INT); } break; case BOOL: enterOuterAlt(_localctx, 2); { - setState(87); + setState(89); match(BOOL); } break; case CHAR: enterOuterAlt(_localctx, 3); { - setState(88); + setState(90); match(CHAR); } break; case IDENTIFIER: enterOuterAlt(_localctx, 4); { - setState(89); + setState(91); id(); } break; @@ -633,35 +641,35 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(93); + setState(95); _errHandler.sync(this); _la = _input.LA(1); if (_la==PUBLIC) { { - setState(92); + setState(94); match(PUBLIC); } } - setState(95); - returntype(); - setState(96); - id(); setState(97); - match(T__4); + returntype(); + setState(98); + id(); setState(99); + match(T__4); + setState(101); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 82463372083200L) != 0)) { { - setState(98); + setState(100); params(); } } - setState(101); + setState(103); match(T__5); - setState(102); + setState(104); block(); } } @@ -708,21 +716,21 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(104); - match(PUBLIC); - setState(105); - match(T__6); setState(106); - match(VOID); + match(PUBLIC); setState(107); - match(T__7); + match(T__6); setState(108); - match(T__4); + match(VOID); setState(109); - match(T__8); + match(T__7); setState(110); - match(T__5); + match(T__4); setState(111); + match(T__8); + setState(112); + match(T__5); + setState(113); block(); } } @@ -775,33 +783,33 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(114); + setState(116); _errHandler.sync(this); _la = _input.LA(1); if (_la==PUBLIC) { { - setState(113); + setState(115); match(PUBLIC); } } - setState(116); + setState(118); id(); - setState(117); - match(T__4); setState(119); + match(T__4); + setState(121); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 82463372083200L) != 0)) { { - setState(118); + setState(120); params(); } } - setState(121); + setState(123); match(T__5); - setState(122); + setState(124); block(); } } @@ -850,21 +858,21 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(124); + setState(126); param(); - setState(129); + setState(131); _errHandler.sync(this); _la = _input.LA(1); while (_la==T__9) { { { - setState(125); + setState(127); match(T__9); - setState(126); + setState(128); param(); } } - setState(131); + setState(133); _errHandler.sync(this); _la = _input.LA(1); } @@ -914,9 +922,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(132); + setState(134); type(); - setState(133); + setState(135); id(); } } @@ -971,35 +979,35 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(135); + setState(137); match(T__1); - setState(140); + setState(142); _errHandler.sync(this); _la = _input.LA(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 82463383087104L) != 0)) { { - setState(138); + setState(140); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) { case 1: { - setState(136); + setState(138); localVar(); } break; case 2: { - setState(137); + setState(139); stmt(); } break; } } - setState(142); + setState(144); _errHandler.sync(this); _la = _input.LA(1); } - setState(143); + setState(145); match(T__2); } } @@ -1247,31 +1255,31 @@ public class DecafParser extends Parser { enterRule(_localctx, 26, RULE_stmt); int _la; try { - setState(195); + setState(197); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { case 1: _localctx = new IfContext(_localctx); enterOuterAlt(_localctx, 1); { - setState(145); - match(T__10); - setState(146); - match(T__4); setState(147); - expr(0); + match(T__10); setState(148); - match(T__5); + match(T__4); setState(149); + expr(0); + setState(150); + match(T__5); + setState(151); block(); - setState(152); + setState(154); _errHandler.sync(this); _la = _input.LA(1); if (_la==T__11) { { - setState(150); + setState(152); match(T__11); - setState(151); + setState(153); block(); } } @@ -1282,14 +1290,10 @@ public class DecafParser extends Parser { _localctx = new ForContext(_localctx); enterOuterAlt(_localctx, 2); { - setState(154); - match(T__12); - setState(155); - match(T__4); setState(156); - expr(0); + match(T__12); setState(157); - match(T__3); + match(T__4); setState(158); expr(0); setState(159); @@ -1297,8 +1301,12 @@ public class DecafParser extends Parser { setState(160); expr(0); setState(161); - match(T__5); + match(T__3); setState(162); + expr(0); + setState(163); + match(T__5); + setState(164); block(); } break; @@ -1306,15 +1314,15 @@ public class DecafParser extends Parser { _localctx = new WhileContext(_localctx); enterOuterAlt(_localctx, 3); { - setState(164); - match(T__13); - setState(165); - match(T__4); setState(166); - expr(0); + match(T__13); setState(167); - match(T__5); + match(T__4); setState(168); + expr(0); + setState(169); + match(T__5); + setState(170); block(); } break; @@ -1322,17 +1330,17 @@ public class DecafParser extends Parser { _localctx = new DoWhileContext(_localctx); enterOuterAlt(_localctx, 4); { - setState(170); - match(T__14); - setState(171); - block(); setState(172); - match(T__13); + match(T__14); setState(173); - match(T__4); + block(); setState(174); - expr(0); + match(T__13); setState(175); + match(T__4); + setState(176); + expr(0); + setState(177); match(T__5); } break; @@ -1340,11 +1348,11 @@ public class DecafParser extends Parser { _localctx = new ReturnContext(_localctx); enterOuterAlt(_localctx, 5); { - setState(177); - match(T__15); - setState(178); - expr(0); setState(179); + match(T__15); + setState(180); + expr(0); + setState(181); match(T__3); } break; @@ -1352,9 +1360,9 @@ public class DecafParser extends Parser { _localctx = new ReturnVoidContext(_localctx); enterOuterAlt(_localctx, 6); { - setState(181); + setState(183); match(T__15); - setState(182); + setState(184); match(T__3); } break; @@ -1362,9 +1370,9 @@ public class DecafParser extends Parser { _localctx = new BreakContext(_localctx); enterOuterAlt(_localctx, 7); { - setState(183); + setState(185); match(T__16); - setState(184); + setState(186); match(T__3); } break; @@ -1372,9 +1380,9 @@ public class DecafParser extends Parser { _localctx = new ContinueContext(_localctx); enterOuterAlt(_localctx, 8); { - setState(185); + setState(187); match(T__17); - setState(186); + setState(188); match(T__3); } break; @@ -1382,13 +1390,13 @@ public class DecafParser extends Parser { _localctx = new AssignmentContext(_localctx); enterOuterAlt(_localctx, 9); { - setState(187); - id(); - setState(188); - assignSign(); setState(189); - expr(0); + id(); setState(190); + assignSign(); + setState(191); + expr(0); + setState(192); match(T__3); } break; @@ -1396,9 +1404,9 @@ public class DecafParser extends Parser { _localctx = new StatementExpressionstmtContext(_localctx); enterOuterAlt(_localctx, 10); { - setState(192); + setState(194); stmtexpr(); - setState(193); + setState(195); match(T__3); } break; @@ -1477,7 +1485,7 @@ public class DecafParser extends Parser { enterRule(_localctx, 28, RULE_stmtexpr); int _la; try { - setState(206); + setState(208); _errHandler.sync(this); switch (_input.LA(1)) { case THIS: @@ -1485,7 +1493,7 @@ public class DecafParser extends Parser { _localctx = new MethodCallContext(_localctx); enterOuterAlt(_localctx, 1); { - setState(197); + setState(199); methCall(); } break; @@ -1493,23 +1501,23 @@ public class DecafParser extends Parser { _localctx = new NewContext(_localctx); enterOuterAlt(_localctx, 2); { - setState(198); - match(NEW); - setState(199); - type(); setState(200); - match(T__4); + match(NEW); + setState(201); + type(); setState(202); + match(T__4); + setState(204); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 264432577937440L) != 0)) { { - setState(201); + setState(203); args(); } } - setState(204); + setState(206); match(T__5); } break; @@ -1703,18 +1711,18 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(220); + setState(222); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,18,_ctx) ) { case 1: { _localctx = new UnaryOperationContext(_localctx); _ctx = _localctx; _prevctx = _localctx; - setState(209); + setState(211); unaryOp(); - setState(210); + setState(212); expr(6); } break; @@ -1723,7 +1731,7 @@ public class DecafParser extends Parser { _localctx = new ConstantContext(_localctx); _ctx = _localctx; _prevctx = _localctx; - setState(212); + setState(214); literal(); } break; @@ -1732,11 +1740,11 @@ public class DecafParser extends Parser { _localctx = new ExpressionContext(_localctx); _ctx = _localctx; _prevctx = _localctx; - setState(213); - match(T__4); - setState(214); - expr(0); setState(215); + match(T__4); + setState(216); + expr(0); + setState(217); match(T__5); } break; @@ -1745,7 +1753,7 @@ public class DecafParser extends Parser { _localctx = new IdentifierContext(_localctx); _ctx = _localctx; _prevctx = _localctx; - setState(217); + setState(219); fieldId(); } break; @@ -1754,7 +1762,7 @@ public class DecafParser extends Parser { _localctx = new StatementExpressionexprContext(_localctx); _ctx = _localctx; _prevctx = _localctx; - setState(218); + setState(220); stmtexpr(); } break; @@ -1763,15 +1771,15 @@ public class DecafParser extends Parser { _localctx = new NullContext(_localctx); _ctx = _localctx; _prevctx = _localctx; - setState(219); + setState(221); match(NULL); } break; } _ctx.stop = _input.LT(-1); - setState(228); + setState(230); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,18,_ctx); + _alt = getInterpreter().adaptivePredict(_input,19,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); @@ -1780,18 +1788,18 @@ public class DecafParser extends Parser { { _localctx = new BinaryOperationContext(new ExprContext(_parentctx, _parentState)); pushNewRecursionContext(_localctx, _startState, RULE_expr); - setState(222); - if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)"); - setState(223); - binaryOp(); setState(224); + if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)"); + setState(225); + binaryOp(); + setState(226); expr(8); } } } - setState(230); + setState(232); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,18,_ctx); + _alt = getInterpreter().adaptivePredict(_input,19,_ctx); } } } @@ -1845,7 +1853,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(231); + setState(233); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 34342961152L) != 0)) ) { _errHandler.recoverInline(this); @@ -1898,7 +1906,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(233); + setState(235); _la = _input.LA(1); if ( !(_la==SUB || _la==NOT) ) { _errHandler.recoverInline(this); @@ -1960,37 +1968,37 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(237); + setState(239); _errHandler.sync(this); _la = _input.LA(1); if (_la==THIS) { { - setState(235); + setState(237); match(THIS); - setState(236); + setState(238); match(T__18); } } - setState(244); + setState(246); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,20,_ctx); + _alt = getInterpreter().adaptivePredict(_input,21,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(239); + setState(241); recipient(); - setState(240); + setState(242); match(T__18); } } } - setState(246); + setState(248); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,20,_ctx); + _alt = getInterpreter().adaptivePredict(_input,21,_ctx); } - setState(247); + setState(249); id(); } } @@ -2044,37 +2052,37 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(251); + setState(253); _errHandler.sync(this); _la = _input.LA(1); if (_la==THIS) { { - setState(249); + setState(251); match(THIS); - setState(250); + setState(252); match(T__18); } } - setState(258); + setState(260); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,22,_ctx); + _alt = getInterpreter().adaptivePredict(_input,23,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(253); + setState(255); recipient(); - setState(254); + setState(256); match(T__18); } } } - setState(260); + setState(262); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,22,_ctx); + _alt = getInterpreter().adaptivePredict(_input,23,_ctx); } - setState(261); + setState(263); methName(); } } @@ -2120,20 +2128,20 @@ public class DecafParser extends Parser { RecipientContext _localctx = new RecipientContext(_ctx, getState()); enterRule(_localctx, 40, RULE_recipient); try { - setState(265); + setState(267); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,23,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(263); + setState(265); methName(); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(264); + setState(266); id(); } break; @@ -2184,21 +2192,21 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(267); + setState(269); id(); - setState(268); - match(T__4); setState(270); + match(T__4); + setState(272); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 264432577937440L) != 0)) { { - setState(269); + setState(271); args(); } } - setState(272); + setState(274); match(T__5); } } @@ -2247,21 +2255,21 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(274); + setState(276); expr(0); - setState(279); + setState(281); _errHandler.sync(this); _la = _input.LA(1); while (_la==T__9) { { { - setState(275); + setState(277); match(T__9); - setState(276); + setState(278); expr(0); } } - setState(281); + setState(283); _errHandler.sync(this); _la = _input.LA(1); } @@ -2309,7 +2317,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(282); + setState(284); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 193514046488576L) != 0)) ) { _errHandler.recoverInline(this); @@ -2360,7 +2368,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(284); + setState(286); match(IDENTIFIER); } } @@ -2391,7 +2399,7 @@ public class DecafParser extends Parser { } public static final String _serializedATN = - "\u0004\u00010\u011f\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+ + "\u0004\u00010\u0121\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+ "\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"+ "\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007\u0002"+ "\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002\u000b\u0007\u000b\u0002"+ @@ -2400,177 +2408,179 @@ public class DecafParser extends Parser { "\u0002\u0013\u0007\u0013\u0002\u0014\u0007\u0014\u0002\u0015\u0007\u0015"+ "\u0002\u0016\u0007\u0016\u0002\u0017\u0007\u0017\u0002\u0018\u0007\u0018"+ "\u0001\u0000\u0004\u00004\b\u0000\u000b\u0000\f\u00005\u0001\u0001\u0003"+ - "\u00019\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+ - "\u0001\u0001\u0001\u0001\u0001\u0005\u0001B\b\u0001\n\u0001\f\u0001E\t"+ - "\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0002\u0001"+ - "\u0002\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0004\u0001"+ - "\u0004\u0001\u0005\u0001\u0005\u0003\u0005U\b\u0005\u0001\u0006\u0001"+ - "\u0006\u0001\u0006\u0001\u0006\u0003\u0006[\b\u0006\u0001\u0007\u0003"+ - "\u0007^\b\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0003"+ - "\u0007d\b\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001"+ - "\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\t\u0003\ts\b"+ - "\t\u0001\t\u0001\t\u0001\t\u0003\tx\b\t\u0001\t\u0001\t\u0001\t\u0001"+ - "\n\u0001\n\u0001\n\u0005\n\u0080\b\n\n\n\f\n\u0083\t\n\u0001\u000b\u0001"+ - "\u000b\u0001\u000b\u0001\f\u0001\f\u0001\f\u0005\f\u008b\b\f\n\f\f\f\u008e"+ - "\t\f\u0001\f\u0001\f\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001"+ - "\r\u0003\r\u0099\b\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001"+ + "\u00019\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0003"+ + "\u0001?\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0005\u0001D\b\u0001"+ + "\n\u0001\f\u0001G\t\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002"+ + "\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ + "\u0001\u0004\u0001\u0004\u0001\u0005\u0001\u0005\u0003\u0005W\b\u0005"+ + "\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0003\u0006]\b\u0006"+ + "\u0001\u0007\u0003\u0007`\b\u0007\u0001\u0007\u0001\u0007\u0001\u0007"+ + "\u0001\u0007\u0003\u0007f\b\u0007\u0001\u0007\u0001\u0007\u0001\u0007"+ + "\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001"+ + "\b\u0001\t\u0003\tu\b\t\u0001\t\u0001\t\u0001\t\u0003\tz\b\t\u0001\t\u0001"+ + "\t\u0001\t\u0001\n\u0001\n\u0001\n\u0005\n\u0082\b\n\n\n\f\n\u0085\t\n"+ + "\u0001\u000b\u0001\u000b\u0001\u000b\u0001\f\u0001\f\u0001\f\u0005\f\u008d"+ + "\b\f\n\f\f\f\u0090\t\f\u0001\f\u0001\f\u0001\r\u0001\r\u0001\r\u0001\r"+ + "\u0001\r\u0001\r\u0001\r\u0003\r\u009b\b\r\u0001\r\u0001\r\u0001\r\u0001"+ "\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001"+ "\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001"+ "\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001"+ - "\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0003\r\u00c4"+ - "\b\r\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0003"+ - "\u000e\u00cb\b\u000e\u0001\u000e\u0001\u000e\u0003\u000e\u00cf\b\u000e"+ - "\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f"+ - "\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f"+ - "\u0003\u000f\u00dd\b\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f"+ - "\u0005\u000f\u00e3\b\u000f\n\u000f\f\u000f\u00e6\t\u000f\u0001\u0010\u0001"+ - "\u0010\u0001\u0011\u0001\u0011\u0001\u0012\u0001\u0012\u0003\u0012\u00ee"+ - "\b\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0005\u0012\u00f3\b\u0012"+ - "\n\u0012\f\u0012\u00f6\t\u0012\u0001\u0012\u0001\u0012\u0001\u0013\u0001"+ - "\u0013\u0003\u0013\u00fc\b\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0005"+ - "\u0013\u0101\b\u0013\n\u0013\f\u0013\u0104\t\u0013\u0001\u0013\u0001\u0013"+ - "\u0001\u0014\u0001\u0014\u0003\u0014\u010a\b\u0014\u0001\u0015\u0001\u0015"+ - "\u0001\u0015\u0003\u0015\u010f\b\u0015\u0001\u0015\u0001\u0015\u0001\u0016"+ - "\u0001\u0016\u0001\u0016\u0005\u0016\u0116\b\u0016\n\u0016\f\u0016\u0119"+ - "\t\u0016\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018\u0001\u0018\u0000"+ - "\u0001\u001e\u0019\u0000\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012\u0014"+ - "\u0016\u0018\u001a\u001c\u001e \"$&(*,.0\u0000\u0004\u0001\u0000#&\u0001"+ - "\u0000\u0018\"\u0002\u0000\u0018\u0018\'\'\u0002\u0000,-//\u012e\u0000"+ - "3\u0001\u0000\u0000\u0000\u00028\u0001\u0000\u0000\u0000\u0004H\u0001"+ - "\u0000\u0000\u0000\u0006L\u0001\u0000\u0000\u0000\bP\u0001\u0000\u0000"+ - "\u0000\nT\u0001\u0000\u0000\u0000\fZ\u0001\u0000\u0000\u0000\u000e]\u0001"+ - "\u0000\u0000\u0000\u0010h\u0001\u0000\u0000\u0000\u0012r\u0001\u0000\u0000"+ - "\u0000\u0014|\u0001\u0000\u0000\u0000\u0016\u0084\u0001\u0000\u0000\u0000"+ - "\u0018\u0087\u0001\u0000\u0000\u0000\u001a\u00c3\u0001\u0000\u0000\u0000"+ - "\u001c\u00ce\u0001\u0000\u0000\u0000\u001e\u00dc\u0001\u0000\u0000\u0000"+ - " \u00e7\u0001\u0000\u0000\u0000\"\u00e9\u0001\u0000\u0000\u0000$\u00ed"+ - "\u0001\u0000\u0000\u0000&\u00fb\u0001\u0000\u0000\u0000(\u0109\u0001\u0000"+ - "\u0000\u0000*\u010b\u0001\u0000\u0000\u0000,\u0112\u0001\u0000\u0000\u0000"+ - ".\u011a\u0001\u0000\u0000\u00000\u011c\u0001\u0000\u0000\u000024\u0003"+ - "\u0002\u0001\u000032\u0001\u0000\u0000\u000045\u0001\u0000\u0000\u0000"+ - "53\u0001\u0000\u0000\u000056\u0001\u0000\u0000\u00006\u0001\u0001\u0000"+ - "\u0000\u000079\u0005\u0014\u0000\u000087\u0001\u0000\u0000\u000089\u0001"+ - "\u0000\u0000\u00009:\u0001\u0000\u0000\u0000:;\u0005\u0001\u0000\u0000"+ - ";<\u00030\u0018\u0000<=\u0005\u0002\u0000\u0000=C\u0003\u0010\b\u0000"+ - ">B\u0003\u0004\u0002\u0000?B\u0003\u000e\u0007\u0000@B\u0003\u0012\t\u0000"+ - "A>\u0001\u0000\u0000\u0000A?\u0001\u0000\u0000\u0000A@\u0001\u0000\u0000"+ - "\u0000BE\u0001\u0000\u0000\u0000CA\u0001\u0000\u0000\u0000CD\u0001\u0000"+ - "\u0000\u0000DF\u0001\u0000\u0000\u0000EC\u0001\u0000\u0000\u0000FG\u0005"+ - "\u0003\u0000\u0000G\u0003\u0001\u0000\u0000\u0000HI\u0003\f\u0006\u0000"+ - "IJ\u00030\u0018\u0000JK\u0005\u0004\u0000\u0000K\u0005\u0001\u0000\u0000"+ - "\u0000LM\u0003\f\u0006\u0000MN\u00030\u0018\u0000NO\u0005\u0004\u0000"+ - "\u0000O\u0007\u0001\u0000\u0000\u0000PQ\u0007\u0000\u0000\u0000Q\t\u0001"+ - "\u0000\u0000\u0000RU\u0003\f\u0006\u0000SU\u0005*\u0000\u0000TR\u0001"+ - "\u0000\u0000\u0000TS\u0001\u0000\u0000\u0000U\u000b\u0001\u0000\u0000"+ - "\u0000V[\u0005(\u0000\u0000W[\u0005)\u0000\u0000X[\u0005+\u0000\u0000"+ - "Y[\u00030\u0018\u0000ZV\u0001\u0000\u0000\u0000ZW\u0001\u0000\u0000\u0000"+ - "ZX\u0001\u0000\u0000\u0000ZY\u0001\u0000\u0000\u0000[\r\u0001\u0000\u0000"+ - "\u0000\\^\u0005\u0014\u0000\u0000]\\\u0001\u0000\u0000\u0000]^\u0001\u0000"+ - "\u0000\u0000^_\u0001\u0000\u0000\u0000_`\u0003\n\u0005\u0000`a\u00030"+ - "\u0018\u0000ac\u0005\u0005\u0000\u0000bd\u0003\u0014\n\u0000cb\u0001\u0000"+ - "\u0000\u0000cd\u0001\u0000\u0000\u0000de\u0001\u0000\u0000\u0000ef\u0005"+ - "\u0006\u0000\u0000fg\u0003\u0018\f\u0000g\u000f\u0001\u0000\u0000\u0000"+ - "hi\u0005\u0014\u0000\u0000ij\u0005\u0007\u0000\u0000jk\u0005*\u0000\u0000"+ - "kl\u0005\b\u0000\u0000lm\u0005\u0005\u0000\u0000mn\u0005\t\u0000\u0000"+ - "no\u0005\u0006\u0000\u0000op\u0003\u0018\f\u0000p\u0011\u0001\u0000\u0000"+ - "\u0000qs\u0005\u0014\u0000\u0000rq\u0001\u0000\u0000\u0000rs\u0001\u0000"+ - "\u0000\u0000st\u0001\u0000\u0000\u0000tu\u00030\u0018\u0000uw\u0005\u0005"+ - "\u0000\u0000vx\u0003\u0014\n\u0000wv\u0001\u0000\u0000\u0000wx\u0001\u0000"+ - "\u0000\u0000xy\u0001\u0000\u0000\u0000yz\u0005\u0006\u0000\u0000z{\u0003"+ - "\u0018\f\u0000{\u0013\u0001\u0000\u0000\u0000|\u0081\u0003\u0016\u000b"+ - "\u0000}~\u0005\n\u0000\u0000~\u0080\u0003\u0016\u000b\u0000\u007f}\u0001"+ - "\u0000\u0000\u0000\u0080\u0083\u0001\u0000\u0000\u0000\u0081\u007f\u0001"+ - "\u0000\u0000\u0000\u0081\u0082\u0001\u0000\u0000\u0000\u0082\u0015\u0001"+ - "\u0000\u0000\u0000\u0083\u0081\u0001\u0000\u0000\u0000\u0084\u0085\u0003"+ - "\f\u0006\u0000\u0085\u0086\u00030\u0018\u0000\u0086\u0017\u0001\u0000"+ - "\u0000\u0000\u0087\u008c\u0005\u0002\u0000\u0000\u0088\u008b\u0003\u0006"+ - "\u0003\u0000\u0089\u008b\u0003\u001a\r\u0000\u008a\u0088\u0001\u0000\u0000"+ - "\u0000\u008a\u0089\u0001\u0000\u0000\u0000\u008b\u008e\u0001\u0000\u0000"+ - "\u0000\u008c\u008a\u0001\u0000\u0000\u0000\u008c\u008d\u0001\u0000\u0000"+ - "\u0000\u008d\u008f\u0001\u0000\u0000\u0000\u008e\u008c\u0001\u0000\u0000"+ - "\u0000\u008f\u0090\u0005\u0003\u0000\u0000\u0090\u0019\u0001\u0000\u0000"+ - "\u0000\u0091\u0092\u0005\u000b\u0000\u0000\u0092\u0093\u0005\u0005\u0000"+ - "\u0000\u0093\u0094\u0003\u001e\u000f\u0000\u0094\u0095\u0005\u0006\u0000"+ - "\u0000\u0095\u0098\u0003\u0018\f\u0000\u0096\u0097\u0005\f\u0000\u0000"+ - "\u0097\u0099\u0003\u0018\f\u0000\u0098\u0096\u0001\u0000\u0000\u0000\u0098"+ - "\u0099\u0001\u0000\u0000\u0000\u0099\u00c4\u0001\u0000\u0000\u0000\u009a"+ - "\u009b\u0005\r\u0000\u0000\u009b\u009c\u0005\u0005\u0000\u0000\u009c\u009d"+ - "\u0003\u001e\u000f\u0000\u009d\u009e\u0005\u0004\u0000\u0000\u009e\u009f"+ - "\u0003\u001e\u000f\u0000\u009f\u00a0\u0005\u0004\u0000\u0000\u00a0\u00a1"+ - "\u0003\u001e\u000f\u0000\u00a1\u00a2\u0005\u0006\u0000\u0000\u00a2\u00a3"+ - "\u0003\u0018\f\u0000\u00a3\u00c4\u0001\u0000\u0000\u0000\u00a4\u00a5\u0005"+ - "\u000e\u0000\u0000\u00a5\u00a6\u0005\u0005\u0000\u0000\u00a6\u00a7\u0003"+ - "\u001e\u000f\u0000\u00a7\u00a8\u0005\u0006\u0000\u0000\u00a8\u00a9\u0003"+ - "\u0018\f\u0000\u00a9\u00c4\u0001\u0000\u0000\u0000\u00aa\u00ab\u0005\u000f"+ - "\u0000\u0000\u00ab\u00ac\u0003\u0018\f\u0000\u00ac\u00ad\u0005\u000e\u0000"+ - "\u0000\u00ad\u00ae\u0005\u0005\u0000\u0000\u00ae\u00af\u0003\u001e\u000f"+ - "\u0000\u00af\u00b0\u0005\u0006\u0000\u0000\u00b0\u00c4\u0001\u0000\u0000"+ - "\u0000\u00b1\u00b2\u0005\u0010\u0000\u0000\u00b2\u00b3\u0003\u001e\u000f"+ - "\u0000\u00b3\u00b4\u0005\u0004\u0000\u0000\u00b4\u00c4\u0001\u0000\u0000"+ - "\u0000\u00b5\u00b6\u0005\u0010\u0000\u0000\u00b6\u00c4\u0005\u0004\u0000"+ - "\u0000\u00b7\u00b8\u0005\u0011\u0000\u0000\u00b8\u00c4\u0005\u0004\u0000"+ - "\u0000\u00b9\u00ba\u0005\u0012\u0000\u0000\u00ba\u00c4\u0005\u0004\u0000"+ - "\u0000\u00bb\u00bc\u00030\u0018\u0000\u00bc\u00bd\u0003\b\u0004\u0000"+ - "\u00bd\u00be\u0003\u001e\u000f\u0000\u00be\u00bf\u0005\u0004\u0000\u0000"+ - "\u00bf\u00c4\u0001\u0000\u0000\u0000\u00c0\u00c1\u0003\u001c\u000e\u0000"+ - "\u00c1\u00c2\u0005\u0004\u0000\u0000\u00c2\u00c4\u0001\u0000\u0000\u0000"+ - "\u00c3\u0091\u0001\u0000\u0000\u0000\u00c3\u009a\u0001\u0000\u0000\u0000"+ - "\u00c3\u00a4\u0001\u0000\u0000\u0000\u00c3\u00aa\u0001\u0000\u0000\u0000"+ - "\u00c3\u00b1\u0001\u0000\u0000\u0000\u00c3\u00b5\u0001\u0000\u0000\u0000"+ - "\u00c3\u00b7\u0001\u0000\u0000\u0000\u00c3\u00b9\u0001\u0000\u0000\u0000"+ - "\u00c3\u00bb\u0001\u0000\u0000\u0000\u00c3\u00c0\u0001\u0000\u0000\u0000"+ - "\u00c4\u001b\u0001\u0000\u0000\u0000\u00c5\u00cf\u0003&\u0013\u0000\u00c6"+ - "\u00c7\u0005\u0015\u0000\u0000\u00c7\u00c8\u0003\f\u0006\u0000\u00c8\u00ca"+ - "\u0005\u0005\u0000\u0000\u00c9\u00cb\u0003,\u0016\u0000\u00ca\u00c9\u0001"+ - "\u0000\u0000\u0000\u00ca\u00cb\u0001\u0000\u0000\u0000\u00cb\u00cc\u0001"+ - "\u0000\u0000\u0000\u00cc\u00cd\u0005\u0006\u0000\u0000\u00cd\u00cf\u0001"+ - "\u0000\u0000\u0000\u00ce\u00c5\u0001\u0000\u0000\u0000\u00ce\u00c6\u0001"+ - "\u0000\u0000\u0000\u00cf\u001d\u0001\u0000\u0000\u0000\u00d0\u00d1\u0006"+ - "\u000f\uffff\uffff\u0000\u00d1\u00d2\u0003\"\u0011\u0000\u00d2\u00d3\u0003"+ - "\u001e\u000f\u0006\u00d3\u00dd\u0001\u0000\u0000\u0000\u00d4\u00dd\u0003"+ - ".\u0017\u0000\u00d5\u00d6\u0005\u0005\u0000\u0000\u00d6\u00d7\u0003\u001e"+ - "\u000f\u0000\u00d7\u00d8\u0005\u0006\u0000\u0000\u00d8\u00dd\u0001\u0000"+ - "\u0000\u0000\u00d9\u00dd\u0003$\u0012\u0000\u00da\u00dd\u0003\u001c\u000e"+ - "\u0000\u00db\u00dd\u0005\u0016\u0000\u0000\u00dc\u00d0\u0001\u0000\u0000"+ - "\u0000\u00dc\u00d4\u0001\u0000\u0000\u0000\u00dc\u00d5\u0001\u0000\u0000"+ - "\u0000\u00dc\u00d9\u0001\u0000\u0000\u0000\u00dc\u00da\u0001\u0000\u0000"+ - "\u0000\u00dc\u00db\u0001\u0000\u0000\u0000\u00dd\u00e4\u0001\u0000\u0000"+ - "\u0000\u00de\u00df\n\u0007\u0000\u0000\u00df\u00e0\u0003 \u0010\u0000"+ - "\u00e0\u00e1\u0003\u001e\u000f\b\u00e1\u00e3\u0001\u0000\u0000\u0000\u00e2"+ - "\u00de\u0001\u0000\u0000\u0000\u00e3\u00e6\u0001\u0000\u0000\u0000\u00e4"+ - "\u00e2\u0001\u0000\u0000\u0000\u00e4\u00e5\u0001\u0000\u0000\u0000\u00e5"+ - "\u001f\u0001\u0000\u0000\u0000\u00e6\u00e4\u0001\u0000\u0000\u0000\u00e7"+ - "\u00e8\u0007\u0001\u0000\u0000\u00e8!\u0001\u0000\u0000\u0000\u00e9\u00ea"+ - "\u0007\u0002\u0000\u0000\u00ea#\u0001\u0000\u0000\u0000\u00eb\u00ec\u0005"+ - "\u0017\u0000\u0000\u00ec\u00ee\u0005\u0013\u0000\u0000\u00ed\u00eb\u0001"+ - "\u0000\u0000\u0000\u00ed\u00ee\u0001\u0000\u0000\u0000\u00ee\u00f4\u0001"+ - "\u0000\u0000\u0000\u00ef\u00f0\u0003(\u0014\u0000\u00f0\u00f1\u0005\u0013"+ - "\u0000\u0000\u00f1\u00f3\u0001\u0000\u0000\u0000\u00f2\u00ef\u0001\u0000"+ - "\u0000\u0000\u00f3\u00f6\u0001\u0000\u0000\u0000\u00f4\u00f2\u0001\u0000"+ - "\u0000\u0000\u00f4\u00f5\u0001\u0000\u0000\u0000\u00f5\u00f7\u0001\u0000"+ - "\u0000\u0000\u00f6\u00f4\u0001\u0000\u0000\u0000\u00f7\u00f8\u00030\u0018"+ - "\u0000\u00f8%\u0001\u0000\u0000\u0000\u00f9\u00fa\u0005\u0017\u0000\u0000"+ - "\u00fa\u00fc\u0005\u0013\u0000\u0000\u00fb\u00f9\u0001\u0000\u0000\u0000"+ - "\u00fb\u00fc\u0001\u0000\u0000\u0000\u00fc\u0102\u0001\u0000\u0000\u0000"+ - "\u00fd\u00fe\u0003(\u0014\u0000\u00fe\u00ff\u0005\u0013\u0000\u0000\u00ff"+ - "\u0101\u0001\u0000\u0000\u0000\u0100\u00fd\u0001\u0000\u0000\u0000\u0101"+ - "\u0104\u0001\u0000\u0000\u0000\u0102\u0100\u0001\u0000\u0000\u0000\u0102"+ - "\u0103\u0001\u0000\u0000\u0000\u0103\u0105\u0001\u0000\u0000\u0000\u0104"+ - "\u0102\u0001\u0000\u0000\u0000\u0105\u0106\u0003*\u0015\u0000\u0106\'"+ - "\u0001\u0000\u0000\u0000\u0107\u010a\u0003*\u0015\u0000\u0108\u010a\u0003"+ - "0\u0018\u0000\u0109\u0107\u0001\u0000\u0000\u0000\u0109\u0108\u0001\u0000"+ - "\u0000\u0000\u010a)\u0001\u0000\u0000\u0000\u010b\u010c\u00030\u0018\u0000"+ - "\u010c\u010e\u0005\u0005\u0000\u0000\u010d\u010f\u0003,\u0016\u0000\u010e"+ - "\u010d\u0001\u0000\u0000\u0000\u010e\u010f\u0001\u0000\u0000\u0000\u010f"+ - "\u0110\u0001\u0000\u0000\u0000\u0110\u0111\u0005\u0006\u0000\u0000\u0111"+ - "+\u0001\u0000\u0000\u0000\u0112\u0117\u0003\u001e\u000f\u0000\u0113\u0114"+ - "\u0005\n\u0000\u0000\u0114\u0116\u0003\u001e\u000f\u0000\u0115\u0113\u0001"+ - "\u0000\u0000\u0000\u0116\u0119\u0001\u0000\u0000\u0000\u0117\u0115\u0001"+ - "\u0000\u0000\u0000\u0117\u0118\u0001\u0000\u0000\u0000\u0118-\u0001\u0000"+ - "\u0000\u0000\u0119\u0117\u0001\u0000\u0000\u0000\u011a\u011b\u0007\u0003"+ - "\u0000\u0000\u011b/\u0001\u0000\u0000\u0000\u011c\u011d\u0005.\u0000\u0000"+ - "\u011d1\u0001\u0000\u0000\u0000\u001a58ACTZ]crw\u0081\u008a\u008c\u0098"+ - "\u00c3\u00ca\u00ce\u00dc\u00e4\u00ed\u00f4\u00fb\u0102\u0109\u010e\u0117"; + "\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001"+ + "\r\u0001\r\u0003\r\u00c6\b\r\u0001\u000e\u0001\u000e\u0001\u000e\u0001"+ + "\u000e\u0001\u000e\u0003\u000e\u00cd\b\u000e\u0001\u000e\u0001\u000e\u0003"+ + "\u000e\u00d1\b\u000e\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001"+ + "\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001"+ + "\u000f\u0001\u000f\u0003\u000f\u00df\b\u000f\u0001\u000f\u0001\u000f\u0001"+ + "\u000f\u0001\u000f\u0005\u000f\u00e5\b\u000f\n\u000f\f\u000f\u00e8\t\u000f"+ + "\u0001\u0010\u0001\u0010\u0001\u0011\u0001\u0011\u0001\u0012\u0001\u0012"+ + "\u0003\u0012\u00f0\b\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0005\u0012"+ + "\u00f5\b\u0012\n\u0012\f\u0012\u00f8\t\u0012\u0001\u0012\u0001\u0012\u0001"+ + "\u0013\u0001\u0013\u0003\u0013\u00fe\b\u0013\u0001\u0013\u0001\u0013\u0001"+ + "\u0013\u0005\u0013\u0103\b\u0013\n\u0013\f\u0013\u0106\t\u0013\u0001\u0013"+ + "\u0001\u0013\u0001\u0014\u0001\u0014\u0003\u0014\u010c\b\u0014\u0001\u0015"+ + "\u0001\u0015\u0001\u0015\u0003\u0015\u0111\b\u0015\u0001\u0015\u0001\u0015"+ + "\u0001\u0016\u0001\u0016\u0001\u0016\u0005\u0016\u0118\b\u0016\n\u0016"+ + "\f\u0016\u011b\t\u0016\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018"+ + "\u0001\u0018\u0000\u0001\u001e\u0019\u0000\u0002\u0004\u0006\b\n\f\u000e"+ + "\u0010\u0012\u0014\u0016\u0018\u001a\u001c\u001e \"$&(*,.0\u0000\u0004"+ + "\u0001\u0000#&\u0001\u0000\u0018\"\u0002\u0000\u0018\u0018\'\'\u0002\u0000"+ + ",-//\u0131\u00003\u0001\u0000\u0000\u0000\u00028\u0001\u0000\u0000\u0000"+ + "\u0004J\u0001\u0000\u0000\u0000\u0006N\u0001\u0000\u0000\u0000\bR\u0001"+ + "\u0000\u0000\u0000\nV\u0001\u0000\u0000\u0000\f\\\u0001\u0000\u0000\u0000"+ + "\u000e_\u0001\u0000\u0000\u0000\u0010j\u0001\u0000\u0000\u0000\u0012t"+ + "\u0001\u0000\u0000\u0000\u0014~\u0001\u0000\u0000\u0000\u0016\u0086\u0001"+ + "\u0000\u0000\u0000\u0018\u0089\u0001\u0000\u0000\u0000\u001a\u00c5\u0001"+ + "\u0000\u0000\u0000\u001c\u00d0\u0001\u0000\u0000\u0000\u001e\u00de\u0001"+ + "\u0000\u0000\u0000 \u00e9\u0001\u0000\u0000\u0000\"\u00eb\u0001\u0000"+ + "\u0000\u0000$\u00ef\u0001\u0000\u0000\u0000&\u00fd\u0001\u0000\u0000\u0000"+ + "(\u010b\u0001\u0000\u0000\u0000*\u010d\u0001\u0000\u0000\u0000,\u0114"+ + "\u0001\u0000\u0000\u0000.\u011c\u0001\u0000\u0000\u00000\u011e\u0001\u0000"+ + "\u0000\u000024\u0003\u0002\u0001\u000032\u0001\u0000\u0000\u000045\u0001"+ + "\u0000\u0000\u000053\u0001\u0000\u0000\u000056\u0001\u0000\u0000\u0000"+ + "6\u0001\u0001\u0000\u0000\u000079\u0005\u0014\u0000\u000087\u0001\u0000"+ + "\u0000\u000089\u0001\u0000\u0000\u00009:\u0001\u0000\u0000\u0000:;\u0005"+ + "\u0001\u0000\u0000;<\u00030\u0018\u0000<>\u0005\u0002\u0000\u0000=?\u0003"+ + "\u0010\b\u0000>=\u0001\u0000\u0000\u0000>?\u0001\u0000\u0000\u0000?E\u0001"+ + "\u0000\u0000\u0000@D\u0003\u0004\u0002\u0000AD\u0003\u000e\u0007\u0000"+ + "BD\u0003\u0012\t\u0000C@\u0001\u0000\u0000\u0000CA\u0001\u0000\u0000\u0000"+ + "CB\u0001\u0000\u0000\u0000DG\u0001\u0000\u0000\u0000EC\u0001\u0000\u0000"+ + "\u0000EF\u0001\u0000\u0000\u0000FH\u0001\u0000\u0000\u0000GE\u0001\u0000"+ + "\u0000\u0000HI\u0005\u0003\u0000\u0000I\u0003\u0001\u0000\u0000\u0000"+ + "JK\u0003\f\u0006\u0000KL\u00030\u0018\u0000LM\u0005\u0004\u0000\u0000"+ + "M\u0005\u0001\u0000\u0000\u0000NO\u0003\f\u0006\u0000OP\u00030\u0018\u0000"+ + "PQ\u0005\u0004\u0000\u0000Q\u0007\u0001\u0000\u0000\u0000RS\u0007\u0000"+ + "\u0000\u0000S\t\u0001\u0000\u0000\u0000TW\u0003\f\u0006\u0000UW\u0005"+ + "*\u0000\u0000VT\u0001\u0000\u0000\u0000VU\u0001\u0000\u0000\u0000W\u000b"+ + "\u0001\u0000\u0000\u0000X]\u0005(\u0000\u0000Y]\u0005)\u0000\u0000Z]\u0005"+ + "+\u0000\u0000[]\u00030\u0018\u0000\\X\u0001\u0000\u0000\u0000\\Y\u0001"+ + "\u0000\u0000\u0000\\Z\u0001\u0000\u0000\u0000\\[\u0001\u0000\u0000\u0000"+ + "]\r\u0001\u0000\u0000\u0000^`\u0005\u0014\u0000\u0000_^\u0001\u0000\u0000"+ + "\u0000_`\u0001\u0000\u0000\u0000`a\u0001\u0000\u0000\u0000ab\u0003\n\u0005"+ + "\u0000bc\u00030\u0018\u0000ce\u0005\u0005\u0000\u0000df\u0003\u0014\n"+ + "\u0000ed\u0001\u0000\u0000\u0000ef\u0001\u0000\u0000\u0000fg\u0001\u0000"+ + "\u0000\u0000gh\u0005\u0006\u0000\u0000hi\u0003\u0018\f\u0000i\u000f\u0001"+ + "\u0000\u0000\u0000jk\u0005\u0014\u0000\u0000kl\u0005\u0007\u0000\u0000"+ + "lm\u0005*\u0000\u0000mn\u0005\b\u0000\u0000no\u0005\u0005\u0000\u0000"+ + "op\u0005\t\u0000\u0000pq\u0005\u0006\u0000\u0000qr\u0003\u0018\f\u0000"+ + "r\u0011\u0001\u0000\u0000\u0000su\u0005\u0014\u0000\u0000ts\u0001\u0000"+ + "\u0000\u0000tu\u0001\u0000\u0000\u0000uv\u0001\u0000\u0000\u0000vw\u0003"+ + "0\u0018\u0000wy\u0005\u0005\u0000\u0000xz\u0003\u0014\n\u0000yx\u0001"+ + "\u0000\u0000\u0000yz\u0001\u0000\u0000\u0000z{\u0001\u0000\u0000\u0000"+ + "{|\u0005\u0006\u0000\u0000|}\u0003\u0018\f\u0000}\u0013\u0001\u0000\u0000"+ + "\u0000~\u0083\u0003\u0016\u000b\u0000\u007f\u0080\u0005\n\u0000\u0000"+ + "\u0080\u0082\u0003\u0016\u000b\u0000\u0081\u007f\u0001\u0000\u0000\u0000"+ + "\u0082\u0085\u0001\u0000\u0000\u0000\u0083\u0081\u0001\u0000\u0000\u0000"+ + "\u0083\u0084\u0001\u0000\u0000\u0000\u0084\u0015\u0001\u0000\u0000\u0000"+ + "\u0085\u0083\u0001\u0000\u0000\u0000\u0086\u0087\u0003\f\u0006\u0000\u0087"+ + "\u0088\u00030\u0018\u0000\u0088\u0017\u0001\u0000\u0000\u0000\u0089\u008e"+ + "\u0005\u0002\u0000\u0000\u008a\u008d\u0003\u0006\u0003\u0000\u008b\u008d"+ + "\u0003\u001a\r\u0000\u008c\u008a\u0001\u0000\u0000\u0000\u008c\u008b\u0001"+ + "\u0000\u0000\u0000\u008d\u0090\u0001\u0000\u0000\u0000\u008e\u008c\u0001"+ + "\u0000\u0000\u0000\u008e\u008f\u0001\u0000\u0000\u0000\u008f\u0091\u0001"+ + "\u0000\u0000\u0000\u0090\u008e\u0001\u0000\u0000\u0000\u0091\u0092\u0005"+ + "\u0003\u0000\u0000\u0092\u0019\u0001\u0000\u0000\u0000\u0093\u0094\u0005"+ + "\u000b\u0000\u0000\u0094\u0095\u0005\u0005\u0000\u0000\u0095\u0096\u0003"+ + "\u001e\u000f\u0000\u0096\u0097\u0005\u0006\u0000\u0000\u0097\u009a\u0003"+ + "\u0018\f\u0000\u0098\u0099\u0005\f\u0000\u0000\u0099\u009b\u0003\u0018"+ + "\f\u0000\u009a\u0098\u0001\u0000\u0000\u0000\u009a\u009b\u0001\u0000\u0000"+ + "\u0000\u009b\u00c6\u0001\u0000\u0000\u0000\u009c\u009d\u0005\r\u0000\u0000"+ + "\u009d\u009e\u0005\u0005\u0000\u0000\u009e\u009f\u0003\u001e\u000f\u0000"+ + "\u009f\u00a0\u0005\u0004\u0000\u0000\u00a0\u00a1\u0003\u001e\u000f\u0000"+ + "\u00a1\u00a2\u0005\u0004\u0000\u0000\u00a2\u00a3\u0003\u001e\u000f\u0000"+ + "\u00a3\u00a4\u0005\u0006\u0000\u0000\u00a4\u00a5\u0003\u0018\f\u0000\u00a5"+ + "\u00c6\u0001\u0000\u0000\u0000\u00a6\u00a7\u0005\u000e\u0000\u0000\u00a7"+ + "\u00a8\u0005\u0005\u0000\u0000\u00a8\u00a9\u0003\u001e\u000f\u0000\u00a9"+ + "\u00aa\u0005\u0006\u0000\u0000\u00aa\u00ab\u0003\u0018\f\u0000\u00ab\u00c6"+ + "\u0001\u0000\u0000\u0000\u00ac\u00ad\u0005\u000f\u0000\u0000\u00ad\u00ae"+ + "\u0003\u0018\f\u0000\u00ae\u00af\u0005\u000e\u0000\u0000\u00af\u00b0\u0005"+ + "\u0005\u0000\u0000\u00b0\u00b1\u0003\u001e\u000f\u0000\u00b1\u00b2\u0005"+ + "\u0006\u0000\u0000\u00b2\u00c6\u0001\u0000\u0000\u0000\u00b3\u00b4\u0005"+ + "\u0010\u0000\u0000\u00b4\u00b5\u0003\u001e\u000f\u0000\u00b5\u00b6\u0005"+ + "\u0004\u0000\u0000\u00b6\u00c6\u0001\u0000\u0000\u0000\u00b7\u00b8\u0005"+ + "\u0010\u0000\u0000\u00b8\u00c6\u0005\u0004\u0000\u0000\u00b9\u00ba\u0005"+ + "\u0011\u0000\u0000\u00ba\u00c6\u0005\u0004\u0000\u0000\u00bb\u00bc\u0005"+ + "\u0012\u0000\u0000\u00bc\u00c6\u0005\u0004\u0000\u0000\u00bd\u00be\u0003"+ + "0\u0018\u0000\u00be\u00bf\u0003\b\u0004\u0000\u00bf\u00c0\u0003\u001e"+ + "\u000f\u0000\u00c0\u00c1\u0005\u0004\u0000\u0000\u00c1\u00c6\u0001\u0000"+ + "\u0000\u0000\u00c2\u00c3\u0003\u001c\u000e\u0000\u00c3\u00c4\u0005\u0004"+ + "\u0000\u0000\u00c4\u00c6\u0001\u0000\u0000\u0000\u00c5\u0093\u0001\u0000"+ + "\u0000\u0000\u00c5\u009c\u0001\u0000\u0000\u0000\u00c5\u00a6\u0001\u0000"+ + "\u0000\u0000\u00c5\u00ac\u0001\u0000\u0000\u0000\u00c5\u00b3\u0001\u0000"+ + "\u0000\u0000\u00c5\u00b7\u0001\u0000\u0000\u0000\u00c5\u00b9\u0001\u0000"+ + "\u0000\u0000\u00c5\u00bb\u0001\u0000\u0000\u0000\u00c5\u00bd\u0001\u0000"+ + "\u0000\u0000\u00c5\u00c2\u0001\u0000\u0000\u0000\u00c6\u001b\u0001\u0000"+ + "\u0000\u0000\u00c7\u00d1\u0003&\u0013\u0000\u00c8\u00c9\u0005\u0015\u0000"+ + "\u0000\u00c9\u00ca\u0003\f\u0006\u0000\u00ca\u00cc\u0005\u0005\u0000\u0000"+ + "\u00cb\u00cd\u0003,\u0016\u0000\u00cc\u00cb\u0001\u0000\u0000\u0000\u00cc"+ + "\u00cd\u0001\u0000\u0000\u0000\u00cd\u00ce\u0001\u0000\u0000\u0000\u00ce"+ + "\u00cf\u0005\u0006\u0000\u0000\u00cf\u00d1\u0001\u0000\u0000\u0000\u00d0"+ + "\u00c7\u0001\u0000\u0000\u0000\u00d0\u00c8\u0001\u0000\u0000\u0000\u00d1"+ + "\u001d\u0001\u0000\u0000\u0000\u00d2\u00d3\u0006\u000f\uffff\uffff\u0000"+ + "\u00d3\u00d4\u0003\"\u0011\u0000\u00d4\u00d5\u0003\u001e\u000f\u0006\u00d5"+ + "\u00df\u0001\u0000\u0000\u0000\u00d6\u00df\u0003.\u0017\u0000\u00d7\u00d8"+ + "\u0005\u0005\u0000\u0000\u00d8\u00d9\u0003\u001e\u000f\u0000\u00d9\u00da"+ + "\u0005\u0006\u0000\u0000\u00da\u00df\u0001\u0000\u0000\u0000\u00db\u00df"+ + "\u0003$\u0012\u0000\u00dc\u00df\u0003\u001c\u000e\u0000\u00dd\u00df\u0005"+ + "\u0016\u0000\u0000\u00de\u00d2\u0001\u0000\u0000\u0000\u00de\u00d6\u0001"+ + "\u0000\u0000\u0000\u00de\u00d7\u0001\u0000\u0000\u0000\u00de\u00db\u0001"+ + "\u0000\u0000\u0000\u00de\u00dc\u0001\u0000\u0000\u0000\u00de\u00dd\u0001"+ + "\u0000\u0000\u0000\u00df\u00e6\u0001\u0000\u0000\u0000\u00e0\u00e1\n\u0007"+ + "\u0000\u0000\u00e1\u00e2\u0003 \u0010\u0000\u00e2\u00e3\u0003\u001e\u000f"+ + "\b\u00e3\u00e5\u0001\u0000\u0000\u0000\u00e4\u00e0\u0001\u0000\u0000\u0000"+ + "\u00e5\u00e8\u0001\u0000\u0000\u0000\u00e6\u00e4\u0001\u0000\u0000\u0000"+ + "\u00e6\u00e7\u0001\u0000\u0000\u0000\u00e7\u001f\u0001\u0000\u0000\u0000"+ + "\u00e8\u00e6\u0001\u0000\u0000\u0000\u00e9\u00ea\u0007\u0001\u0000\u0000"+ + "\u00ea!\u0001\u0000\u0000\u0000\u00eb\u00ec\u0007\u0002\u0000\u0000\u00ec"+ + "#\u0001\u0000\u0000\u0000\u00ed\u00ee\u0005\u0017\u0000\u0000\u00ee\u00f0"+ + "\u0005\u0013\u0000\u0000\u00ef\u00ed\u0001\u0000\u0000\u0000\u00ef\u00f0"+ + "\u0001\u0000\u0000\u0000\u00f0\u00f6\u0001\u0000\u0000\u0000\u00f1\u00f2"+ + "\u0003(\u0014\u0000\u00f2\u00f3\u0005\u0013\u0000\u0000\u00f3\u00f5\u0001"+ + "\u0000\u0000\u0000\u00f4\u00f1\u0001\u0000\u0000\u0000\u00f5\u00f8\u0001"+ + "\u0000\u0000\u0000\u00f6\u00f4\u0001\u0000\u0000\u0000\u00f6\u00f7\u0001"+ + "\u0000\u0000\u0000\u00f7\u00f9\u0001\u0000\u0000\u0000\u00f8\u00f6\u0001"+ + "\u0000\u0000\u0000\u00f9\u00fa\u00030\u0018\u0000\u00fa%\u0001\u0000\u0000"+ + "\u0000\u00fb\u00fc\u0005\u0017\u0000\u0000\u00fc\u00fe\u0005\u0013\u0000"+ + "\u0000\u00fd\u00fb\u0001\u0000\u0000\u0000\u00fd\u00fe\u0001\u0000\u0000"+ + "\u0000\u00fe\u0104\u0001\u0000\u0000\u0000\u00ff\u0100\u0003(\u0014\u0000"+ + "\u0100\u0101\u0005\u0013\u0000\u0000\u0101\u0103\u0001\u0000\u0000\u0000"+ + "\u0102\u00ff\u0001\u0000\u0000\u0000\u0103\u0106\u0001\u0000\u0000\u0000"+ + "\u0104\u0102\u0001\u0000\u0000\u0000\u0104\u0105\u0001\u0000\u0000\u0000"+ + "\u0105\u0107\u0001\u0000\u0000\u0000\u0106\u0104\u0001\u0000\u0000\u0000"+ + "\u0107\u0108\u0003*\u0015\u0000\u0108\'\u0001\u0000\u0000\u0000\u0109"+ + "\u010c\u0003*\u0015\u0000\u010a\u010c\u00030\u0018\u0000\u010b\u0109\u0001"+ + "\u0000\u0000\u0000\u010b\u010a\u0001\u0000\u0000\u0000\u010c)\u0001\u0000"+ + "\u0000\u0000\u010d\u010e\u00030\u0018\u0000\u010e\u0110\u0005\u0005\u0000"+ + "\u0000\u010f\u0111\u0003,\u0016\u0000\u0110\u010f\u0001\u0000\u0000\u0000"+ + "\u0110\u0111\u0001\u0000\u0000\u0000\u0111\u0112\u0001\u0000\u0000\u0000"+ + "\u0112\u0113\u0005\u0006\u0000\u0000\u0113+\u0001\u0000\u0000\u0000\u0114"+ + "\u0119\u0003\u001e\u000f\u0000\u0115\u0116\u0005\n\u0000\u0000\u0116\u0118"+ + "\u0003\u001e\u000f\u0000\u0117\u0115\u0001\u0000\u0000\u0000\u0118\u011b"+ + "\u0001\u0000\u0000\u0000\u0119\u0117\u0001\u0000\u0000\u0000\u0119\u011a"+ + "\u0001\u0000\u0000\u0000\u011a-\u0001\u0000\u0000\u0000\u011b\u0119\u0001"+ + "\u0000\u0000\u0000\u011c\u011d\u0007\u0003\u0000\u0000\u011d/\u0001\u0000"+ + "\u0000\u0000\u011e\u011f\u0005.\u0000\u0000\u011f1\u0001\u0000\u0000\u0000"+ + "\u001b58>CEV\\_ety\u0083\u008c\u008e\u009a\u00c5\u00cc\u00d0\u00de\u00e6"+ + "\u00ef\u00f6\u00fd\u0104\u010b\u0110\u0119"; public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray()); static { diff --git a/src/main/java/de/maishai/antlr/DecafVisitor.java b/src/main/java/de/maishai/antlr/DecafVisitor.java index 561b8ad..360ffc5 100644 --- a/src/main/java/de/maishai/antlr/DecafVisitor.java +++ b/src/main/java/de/maishai/antlr/DecafVisitor.java @@ -1,4 +1,4 @@ -// Generated from C:/Users/laure/Documents/Dev/Compilerbau/Projekt/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 +// Generated from C:/dev/Compilerbau/CompilerULTIMATE/src/main/antlr/Decaf.g4 by ANTLR 4.13.1 package de.maishai.antlr; import org.antlr.v4.runtime.tree.ParseTreeVisitor;