From 0c9acb2bc9400c80c117e5262f75d3c518a613eb Mon Sep 17 00:00:00 2001
From: StefanZ3 The default implementation does nothing. The default implementation does nothing. The default implementation does nothing.
The default implementation returns the result of calling + * {@link #visitChildren} on {@code ctx}.
+ */ + @Override public T visitPrint(DecafParser.PrintContext ctx) { return visitChildren(ctx); } } \ No newline at end of file diff --git a/src/main/java/gen/DecafLexer.interp b/src/main/java/gen/DecafLexer.interp index ddc17ed..ac2282a 100644 --- a/src/main/java/gen/DecafLexer.interp +++ b/src/main/java/gen/DecafLexer.interp @@ -1,5 +1,7 @@ token literal names: null +'print(' +');' null 'null' 'public' @@ -48,6 +50,8 @@ null token symbolic names: null +null +null BooleanValue NullValue AccessModifierPublic @@ -95,6 +99,8 @@ Identifier WS rule names: +T__0 +T__1 BooleanValue NullValue AccessModifierPublic @@ -152,4 +158,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 45, 325, 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, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 107, 8, 0, 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, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 3, 8, 185, 8, 8, 1, 9, 1, 9, 3, 9, 189, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 197, 8, 10, 1, 11, 1, 11, 3, 11, 201, 8, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 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, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 5, 41, 290, 8, 41, 10, 41, 12, 41, 293, 9, 41, 1, 41, 4, 41, 296, 8, 41, 11, 41, 12, 41, 297, 1, 42, 1, 42, 3, 42, 302, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 3, 45, 313, 8, 45, 1, 46, 1, 46, 5, 46, 317, 8, 46, 10, 46, 12, 46, 320, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 0, 0, 48, 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, 0, 89, 0, 91, 0, 93, 44, 95, 45, 1, 0, 6, 2, 0, 43, 43, 45, 45, 1, 0, 48, 57, 2, 0, 10, 10, 13, 13, 2, 0, 65, 90, 97, 122, 2, 0, 36, 36, 95, 95, 3, 0, 9, 10, 13, 13, 32, 32, 337, 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, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 1, 106, 1, 0, 0, 0, 3, 108, 1, 0, 0, 0, 5, 113, 1, 0, 0, 0, 7, 120, 1, 0, 0, 0, 9, 159, 1, 0, 0, 0, 11, 164, 1, 0, 0, 0, 13, 168, 1, 0, 0, 0, 15, 176, 1, 0, 0, 0, 17, 184, 1, 0, 0, 0, 19, 188, 1, 0, 0, 0, 21, 196, 1, 0, 0, 0, 23, 200, 1, 0, 0, 0, 25, 202, 1, 0, 0, 0, 27, 204, 1, 0, 0, 0, 29, 206, 1, 0, 0, 0, 31, 208, 1, 0, 0, 0, 33, 210, 1, 0, 0, 0, 35, 212, 1, 0, 0, 0, 37, 214, 1, 0, 0, 0, 39, 216, 1, 0, 0, 0, 41, 218, 1, 0, 0, 0, 43, 221, 1, 0, 0, 0, 45, 224, 1, 0, 0, 0, 47, 227, 1, 0, 0, 0, 49, 230, 1, 0, 0, 0, 51, 232, 1, 0, 0, 0, 53, 235, 1, 0, 0, 0, 55, 238, 1, 0, 0, 0, 57, 240, 1, 0, 0, 0, 59, 242, 1, 0, 0, 0, 61, 244, 1, 0, 0, 0, 63, 246, 1, 0, 0, 0, 65, 248, 1, 0, 0, 0, 67, 250, 1, 0, 0, 0, 69, 252, 1, 0, 0, 0, 71, 258, 1, 0, 0, 0, 73, 263, 1, 0, 0, 0, 75, 269, 1, 0, 0, 0, 77, 272, 1, 0, 0, 0, 79, 277, 1, 0, 0, 0, 81, 284, 1, 0, 0, 0, 83, 291, 1, 0, 0, 0, 85, 299, 1, 0, 0, 0, 87, 305, 1, 0, 0, 0, 89, 307, 1, 0, 0, 0, 91, 312, 1, 0, 0, 0, 93, 314, 1, 0, 0, 0, 95, 321, 1, 0, 0, 0, 97, 98, 5, 116, 0, 0, 98, 99, 5, 114, 0, 0, 99, 100, 5, 117, 0, 0, 100, 107, 5, 101, 0, 0, 101, 102, 5, 102, 0, 0, 102, 103, 5, 97, 0, 0, 103, 104, 5, 108, 0, 0, 104, 105, 5, 115, 0, 0, 105, 107, 5, 101, 0, 0, 106, 97, 1, 0, 0, 0, 106, 101, 1, 0, 0, 0, 107, 2, 1, 0, 0, 0, 108, 109, 5, 110, 0, 0, 109, 110, 5, 117, 0, 0, 110, 111, 5, 108, 0, 0, 111, 112, 5, 108, 0, 0, 112, 4, 1, 0, 0, 0, 113, 114, 5, 112, 0, 0, 114, 115, 5, 117, 0, 0, 115, 116, 5, 98, 0, 0, 116, 117, 5, 108, 0, 0, 117, 118, 5, 105, 0, 0, 118, 119, 5, 99, 0, 0, 119, 6, 1, 0, 0, 0, 120, 121, 5, 112, 0, 0, 121, 122, 5, 117, 0, 0, 122, 123, 5, 98, 0, 0, 123, 124, 5, 108, 0, 0, 124, 125, 5, 105, 0, 0, 125, 126, 5, 99, 0, 0, 126, 127, 5, 32, 0, 0, 127, 128, 5, 115, 0, 0, 128, 129, 5, 116, 0, 0, 129, 130, 5, 97, 0, 0, 130, 131, 5, 116, 0, 0, 131, 132, 5, 105, 0, 0, 132, 133, 5, 99, 0, 0, 133, 134, 5, 32, 0, 0, 134, 135, 5, 118, 0, 0, 135, 136, 5, 111, 0, 0, 136, 137, 5, 105, 0, 0, 137, 138, 5, 100, 0, 0, 138, 139, 5, 32, 0, 0, 139, 140, 5, 109, 0, 0, 140, 141, 5, 97, 0, 0, 141, 142, 5, 105, 0, 0, 142, 143, 5, 110, 0, 0, 143, 144, 5, 40, 0, 0, 144, 145, 5, 83, 0, 0, 145, 146, 5, 116, 0, 0, 146, 147, 5, 114, 0, 0, 147, 148, 5, 105, 0, 0, 148, 149, 5, 110, 0, 0, 149, 150, 5, 103, 0, 0, 150, 151, 5, 91, 0, 0, 151, 152, 5, 93, 0, 0, 152, 153, 5, 32, 0, 0, 153, 154, 5, 97, 0, 0, 154, 155, 5, 114, 0, 0, 155, 156, 5, 103, 0, 0, 156, 157, 5, 115, 0, 0, 157, 158, 5, 41, 0, 0, 158, 8, 1, 0, 0, 0, 159, 160, 5, 118, 0, 0, 160, 161, 5, 111, 0, 0, 161, 162, 5, 105, 0, 0, 162, 163, 5, 100, 0, 0, 163, 10, 1, 0, 0, 0, 164, 165, 5, 105, 0, 0, 165, 166, 5, 110, 0, 0, 166, 167, 5, 116, 0, 0, 167, 12, 1, 0, 0, 0, 168, 169, 5, 98, 0, 0, 169, 170, 5, 111, 0, 0, 170, 171, 5, 111, 0, 0, 171, 172, 5, 108, 0, 0, 172, 173, 5, 101, 0, 0, 173, 174, 5, 97, 0, 0, 174, 175, 5, 110, 0, 0, 175, 14, 1, 0, 0, 0, 176, 177, 5, 99, 0, 0, 177, 178, 5, 104, 0, 0, 178, 179, 5, 97, 0, 0, 179, 180, 5, 114, 0, 0, 180, 16, 1, 0, 0, 0, 181, 185, 3, 31, 15, 0, 182, 185, 3, 33, 16, 0, 183, 185, 3, 35, 17, 0, 184, 181, 1, 0, 0, 0, 184, 182, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 18, 1, 0, 0, 0, 186, 189, 3, 29, 14, 0, 187, 189, 3, 27, 13, 0, 188, 186, 1, 0, 0, 0, 188, 187, 1, 0, 0, 0, 189, 20, 1, 0, 0, 0, 190, 197, 3, 37, 18, 0, 191, 197, 3, 39, 19, 0, 192, 197, 3, 41, 20, 0, 193, 197, 3, 43, 21, 0, 194, 197, 3, 45, 22, 0, 195, 197, 3, 47, 23, 0, 196, 190, 1, 0, 0, 0, 196, 191, 1, 0, 0, 0, 196, 192, 1, 0, 0, 0, 196, 193, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 196, 195, 1, 0, 0, 0, 197, 22, 1, 0, 0, 0, 198, 201, 3, 51, 25, 0, 199, 201, 3, 53, 26, 0, 200, 198, 1, 0, 0, 0, 200, 199, 1, 0, 0, 0, 201, 24, 1, 0, 0, 0, 202, 203, 5, 61, 0, 0, 203, 26, 1, 0, 0, 0, 204, 205, 5, 45, 0, 0, 205, 28, 1, 0, 0, 0, 206, 207, 5, 43, 0, 0, 207, 30, 1, 0, 0, 0, 208, 209, 5, 42, 0, 0, 209, 32, 1, 0, 0, 0, 210, 211, 5, 47, 0, 0, 211, 34, 1, 0, 0, 0, 212, 213, 5, 37, 0, 0, 213, 36, 1, 0, 0, 0, 214, 215, 5, 62, 0, 0, 215, 38, 1, 0, 0, 0, 216, 217, 5, 60, 0, 0, 217, 40, 1, 0, 0, 0, 218, 219, 5, 62, 0, 0, 219, 220, 5, 61, 0, 0, 220, 42, 1, 0, 0, 0, 221, 222, 5, 60, 0, 0, 222, 223, 5, 61, 0, 0, 223, 44, 1, 0, 0, 0, 224, 225, 5, 61, 0, 0, 225, 226, 5, 61, 0, 0, 226, 46, 1, 0, 0, 0, 227, 228, 5, 33, 0, 0, 228, 229, 5, 61, 0, 0, 229, 48, 1, 0, 0, 0, 230, 231, 5, 33, 0, 0, 231, 50, 1, 0, 0, 0, 232, 233, 5, 38, 0, 0, 233, 234, 5, 38, 0, 0, 234, 52, 1, 0, 0, 0, 235, 236, 5, 124, 0, 0, 236, 237, 5, 124, 0, 0, 237, 54, 1, 0, 0, 0, 238, 239, 5, 46, 0, 0, 239, 56, 1, 0, 0, 0, 240, 241, 5, 40, 0, 0, 241, 58, 1, 0, 0, 0, 242, 243, 5, 41, 0, 0, 243, 60, 1, 0, 0, 0, 244, 245, 5, 123, 0, 0, 245, 62, 1, 0, 0, 0, 246, 247, 5, 125, 0, 0, 247, 64, 1, 0, 0, 0, 248, 249, 5, 59, 0, 0, 249, 66, 1, 0, 0, 0, 250, 251, 5, 44, 0, 0, 251, 68, 1, 0, 0, 0, 252, 253, 5, 99, 0, 0, 253, 254, 5, 108, 0, 0, 254, 255, 5, 97, 0, 0, 255, 256, 5, 115, 0, 0, 256, 257, 5, 115, 0, 0, 257, 70, 1, 0, 0, 0, 258, 259, 5, 116, 0, 0, 259, 260, 5, 104, 0, 0, 260, 261, 5, 105, 0, 0, 261, 262, 5, 115, 0, 0, 262, 72, 1, 0, 0, 0, 263, 264, 5, 119, 0, 0, 264, 265, 5, 104, 0, 0, 265, 266, 5, 105, 0, 0, 266, 267, 5, 108, 0, 0, 267, 268, 5, 101, 0, 0, 268, 74, 1, 0, 0, 0, 269, 270, 5, 105, 0, 0, 270, 271, 5, 102, 0, 0, 271, 76, 1, 0, 0, 0, 272, 273, 5, 101, 0, 0, 273, 274, 5, 108, 0, 0, 274, 275, 5, 115, 0, 0, 275, 276, 5, 101, 0, 0, 276, 78, 1, 0, 0, 0, 277, 278, 5, 114, 0, 0, 278, 279, 5, 101, 0, 0, 279, 280, 5, 116, 0, 0, 280, 281, 5, 117, 0, 0, 281, 282, 5, 114, 0, 0, 282, 283, 5, 110, 0, 0, 283, 80, 1, 0, 0, 0, 284, 285, 5, 110, 0, 0, 285, 286, 5, 101, 0, 0, 286, 287, 5, 119, 0, 0, 287, 82, 1, 0, 0, 0, 288, 290, 7, 0, 0, 0, 289, 288, 1, 0, 0, 0, 290, 293, 1, 0, 0, 0, 291, 289, 1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0, 293, 291, 1, 0, 0, 0, 294, 296, 7, 1, 0, 0, 295, 294, 1, 0, 0, 0, 296, 297, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 84, 1, 0, 0, 0, 299, 301, 5, 39, 0, 0, 300, 302, 8, 2, 0, 0, 301, 300, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 303, 1, 0, 0, 0, 303, 304, 5, 39, 0, 0, 304, 86, 1, 0, 0, 0, 305, 306, 7, 3, 0, 0, 306, 88, 1, 0, 0, 0, 307, 308, 7, 1, 0, 0, 308, 90, 1, 0, 0, 0, 309, 313, 3, 87, 43, 0, 310, 313, 3, 89, 44, 0, 311, 313, 7, 4, 0, 0, 312, 309, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 311, 1, 0, 0, 0, 313, 92, 1, 0, 0, 0, 314, 318, 3, 87, 43, 0, 315, 317, 3, 91, 45, 0, 316, 315, 1, 0, 0, 0, 317, 320, 1, 0, 0, 0, 318, 316, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 94, 1, 0, 0, 0, 320, 318, 1, 0, 0, 0, 321, 322, 7, 5, 0, 0, 322, 323, 1, 0, 0, 0, 323, 324, 6, 47, 0, 0, 324, 96, 1, 0, 0, 0, 11, 0, 106, 184, 188, 196, 200, 291, 297, 301, 312, 318, 1, 6, 0, 0] \ No newline at end of file +[4, 0, 47, 339, 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, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 121, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 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, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 3, 10, 199, 8, 10, 1, 11, 1, 11, 3, 11, 203, 8, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 211, 8, 12, 1, 13, 1, 13, 3, 13, 215, 8, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 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, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 1, 34, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 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, 38, 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, 42, 1, 42, 1, 42, 1, 42, 1, 43, 5, 43, 304, 8, 43, 10, 43, 12, 43, 307, 9, 43, 1, 43, 4, 43, 310, 8, 43, 11, 43, 12, 43, 311, 1, 44, 1, 44, 3, 44, 316, 8, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 3, 47, 327, 8, 47, 1, 48, 1, 48, 5, 48, 331, 8, 48, 10, 48, 12, 48, 334, 9, 48, 1, 49, 1, 49, 1, 49, 1, 49, 0, 0, 50, 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, 0, 93, 0, 95, 0, 97, 46, 99, 47, 1, 0, 6, 2, 0, 43, 43, 45, 45, 1, 0, 48, 57, 2, 0, 10, 10, 13, 13, 2, 0, 65, 90, 97, 122, 2, 0, 36, 36, 95, 95, 3, 0, 9, 10, 13, 13, 32, 32, 351, 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, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 1, 101, 1, 0, 0, 0, 3, 108, 1, 0, 0, 0, 5, 120, 1, 0, 0, 0, 7, 122, 1, 0, 0, 0, 9, 127, 1, 0, 0, 0, 11, 134, 1, 0, 0, 0, 13, 173, 1, 0, 0, 0, 15, 178, 1, 0, 0, 0, 17, 182, 1, 0, 0, 0, 19, 190, 1, 0, 0, 0, 21, 198, 1, 0, 0, 0, 23, 202, 1, 0, 0, 0, 25, 210, 1, 0, 0, 0, 27, 214, 1, 0, 0, 0, 29, 216, 1, 0, 0, 0, 31, 218, 1, 0, 0, 0, 33, 220, 1, 0, 0, 0, 35, 222, 1, 0, 0, 0, 37, 224, 1, 0, 0, 0, 39, 226, 1, 0, 0, 0, 41, 228, 1, 0, 0, 0, 43, 230, 1, 0, 0, 0, 45, 232, 1, 0, 0, 0, 47, 235, 1, 0, 0, 0, 49, 238, 1, 0, 0, 0, 51, 241, 1, 0, 0, 0, 53, 244, 1, 0, 0, 0, 55, 246, 1, 0, 0, 0, 57, 249, 1, 0, 0, 0, 59, 252, 1, 0, 0, 0, 61, 254, 1, 0, 0, 0, 63, 256, 1, 0, 0, 0, 65, 258, 1, 0, 0, 0, 67, 260, 1, 0, 0, 0, 69, 262, 1, 0, 0, 0, 71, 264, 1, 0, 0, 0, 73, 266, 1, 0, 0, 0, 75, 272, 1, 0, 0, 0, 77, 277, 1, 0, 0, 0, 79, 283, 1, 0, 0, 0, 81, 286, 1, 0, 0, 0, 83, 291, 1, 0, 0, 0, 85, 298, 1, 0, 0, 0, 87, 305, 1, 0, 0, 0, 89, 313, 1, 0, 0, 0, 91, 319, 1, 0, 0, 0, 93, 321, 1, 0, 0, 0, 95, 326, 1, 0, 0, 0, 97, 328, 1, 0, 0, 0, 99, 335, 1, 0, 0, 0, 101, 102, 5, 112, 0, 0, 102, 103, 5, 114, 0, 0, 103, 104, 5, 105, 0, 0, 104, 105, 5, 110, 0, 0, 105, 106, 5, 116, 0, 0, 106, 107, 5, 40, 0, 0, 107, 2, 1, 0, 0, 0, 108, 109, 5, 41, 0, 0, 109, 110, 5, 59, 0, 0, 110, 4, 1, 0, 0, 0, 111, 112, 5, 116, 0, 0, 112, 113, 5, 114, 0, 0, 113, 114, 5, 117, 0, 0, 114, 121, 5, 101, 0, 0, 115, 116, 5, 102, 0, 0, 116, 117, 5, 97, 0, 0, 117, 118, 5, 108, 0, 0, 118, 119, 5, 115, 0, 0, 119, 121, 5, 101, 0, 0, 120, 111, 1, 0, 0, 0, 120, 115, 1, 0, 0, 0, 121, 6, 1, 0, 0, 0, 122, 123, 5, 110, 0, 0, 123, 124, 5, 117, 0, 0, 124, 125, 5, 108, 0, 0, 125, 126, 5, 108, 0, 0, 126, 8, 1, 0, 0, 0, 127, 128, 5, 112, 0, 0, 128, 129, 5, 117, 0, 0, 129, 130, 5, 98, 0, 0, 130, 131, 5, 108, 0, 0, 131, 132, 5, 105, 0, 0, 132, 133, 5, 99, 0, 0, 133, 10, 1, 0, 0, 0, 134, 135, 5, 112, 0, 0, 135, 136, 5, 117, 0, 0, 136, 137, 5, 98, 0, 0, 137, 138, 5, 108, 0, 0, 138, 139, 5, 105, 0, 0, 139, 140, 5, 99, 0, 0, 140, 141, 5, 32, 0, 0, 141, 142, 5, 115, 0, 0, 142, 143, 5, 116, 0, 0, 143, 144, 5, 97, 0, 0, 144, 145, 5, 116, 0, 0, 145, 146, 5, 105, 0, 0, 146, 147, 5, 99, 0, 0, 147, 148, 5, 32, 0, 0, 148, 149, 5, 118, 0, 0, 149, 150, 5, 111, 0, 0, 150, 151, 5, 105, 0, 0, 151, 152, 5, 100, 0, 0, 152, 153, 5, 32, 0, 0, 153, 154, 5, 109, 0, 0, 154, 155, 5, 97, 0, 0, 155, 156, 5, 105, 0, 0, 156, 157, 5, 110, 0, 0, 157, 158, 5, 40, 0, 0, 158, 159, 5, 83, 0, 0, 159, 160, 5, 116, 0, 0, 160, 161, 5, 114, 0, 0, 161, 162, 5, 105, 0, 0, 162, 163, 5, 110, 0, 0, 163, 164, 5, 103, 0, 0, 164, 165, 5, 91, 0, 0, 165, 166, 5, 93, 0, 0, 166, 167, 5, 32, 0, 0, 167, 168, 5, 97, 0, 0, 168, 169, 5, 114, 0, 0, 169, 170, 5, 103, 0, 0, 170, 171, 5, 115, 0, 0, 171, 172, 5, 41, 0, 0, 172, 12, 1, 0, 0, 0, 173, 174, 5, 118, 0, 0, 174, 175, 5, 111, 0, 0, 175, 176, 5, 105, 0, 0, 176, 177, 5, 100, 0, 0, 177, 14, 1, 0, 0, 0, 178, 179, 5, 105, 0, 0, 179, 180, 5, 110, 0, 0, 180, 181, 5, 116, 0, 0, 181, 16, 1, 0, 0, 0, 182, 183, 5, 98, 0, 0, 183, 184, 5, 111, 0, 0, 184, 185, 5, 111, 0, 0, 185, 186, 5, 108, 0, 0, 186, 187, 5, 101, 0, 0, 187, 188, 5, 97, 0, 0, 188, 189, 5, 110, 0, 0, 189, 18, 1, 0, 0, 0, 190, 191, 5, 99, 0, 0, 191, 192, 5, 104, 0, 0, 192, 193, 5, 97, 0, 0, 193, 194, 5, 114, 0, 0, 194, 20, 1, 0, 0, 0, 195, 199, 3, 35, 17, 0, 196, 199, 3, 37, 18, 0, 197, 199, 3, 39, 19, 0, 198, 195, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 22, 1, 0, 0, 0, 200, 203, 3, 33, 16, 0, 201, 203, 3, 31, 15, 0, 202, 200, 1, 0, 0, 0, 202, 201, 1, 0, 0, 0, 203, 24, 1, 0, 0, 0, 204, 211, 3, 41, 20, 0, 205, 211, 3, 43, 21, 0, 206, 211, 3, 45, 22, 0, 207, 211, 3, 47, 23, 0, 208, 211, 3, 49, 24, 0, 209, 211, 3, 51, 25, 0, 210, 204, 1, 0, 0, 0, 210, 205, 1, 0, 0, 0, 210, 206, 1, 0, 0, 0, 210, 207, 1, 0, 0, 0, 210, 208, 1, 0, 0, 0, 210, 209, 1, 0, 0, 0, 211, 26, 1, 0, 0, 0, 212, 215, 3, 55, 27, 0, 213, 215, 3, 57, 28, 0, 214, 212, 1, 0, 0, 0, 214, 213, 1, 0, 0, 0, 215, 28, 1, 0, 0, 0, 216, 217, 5, 61, 0, 0, 217, 30, 1, 0, 0, 0, 218, 219, 5, 45, 0, 0, 219, 32, 1, 0, 0, 0, 220, 221, 5, 43, 0, 0, 221, 34, 1, 0, 0, 0, 222, 223, 5, 42, 0, 0, 223, 36, 1, 0, 0, 0, 224, 225, 5, 47, 0, 0, 225, 38, 1, 0, 0, 0, 226, 227, 5, 37, 0, 0, 227, 40, 1, 0, 0, 0, 228, 229, 5, 62, 0, 0, 229, 42, 1, 0, 0, 0, 230, 231, 5, 60, 0, 0, 231, 44, 1, 0, 0, 0, 232, 233, 5, 62, 0, 0, 233, 234, 5, 61, 0, 0, 234, 46, 1, 0, 0, 0, 235, 236, 5, 60, 0, 0, 236, 237, 5, 61, 0, 0, 237, 48, 1, 0, 0, 0, 238, 239, 5, 61, 0, 0, 239, 240, 5, 61, 0, 0, 240, 50, 1, 0, 0, 0, 241, 242, 5, 33, 0, 0, 242, 243, 5, 61, 0, 0, 243, 52, 1, 0, 0, 0, 244, 245, 5, 33, 0, 0, 245, 54, 1, 0, 0, 0, 246, 247, 5, 38, 0, 0, 247, 248, 5, 38, 0, 0, 248, 56, 1, 0, 0, 0, 249, 250, 5, 124, 0, 0, 250, 251, 5, 124, 0, 0, 251, 58, 1, 0, 0, 0, 252, 253, 5, 46, 0, 0, 253, 60, 1, 0, 0, 0, 254, 255, 5, 40, 0, 0, 255, 62, 1, 0, 0, 0, 256, 257, 5, 41, 0, 0, 257, 64, 1, 0, 0, 0, 258, 259, 5, 123, 0, 0, 259, 66, 1, 0, 0, 0, 260, 261, 5, 125, 0, 0, 261, 68, 1, 0, 0, 0, 262, 263, 5, 59, 0, 0, 263, 70, 1, 0, 0, 0, 264, 265, 5, 44, 0, 0, 265, 72, 1, 0, 0, 0, 266, 267, 5, 99, 0, 0, 267, 268, 5, 108, 0, 0, 268, 269, 5, 97, 0, 0, 269, 270, 5, 115, 0, 0, 270, 271, 5, 115, 0, 0, 271, 74, 1, 0, 0, 0, 272, 273, 5, 116, 0, 0, 273, 274, 5, 104, 0, 0, 274, 275, 5, 105, 0, 0, 275, 276, 5, 115, 0, 0, 276, 76, 1, 0, 0, 0, 277, 278, 5, 119, 0, 0, 278, 279, 5, 104, 0, 0, 279, 280, 5, 105, 0, 0, 280, 281, 5, 108, 0, 0, 281, 282, 5, 101, 0, 0, 282, 78, 1, 0, 0, 0, 283, 284, 5, 105, 0, 0, 284, 285, 5, 102, 0, 0, 285, 80, 1, 0, 0, 0, 286, 287, 5, 101, 0, 0, 287, 288, 5, 108, 0, 0, 288, 289, 5, 115, 0, 0, 289, 290, 5, 101, 0, 0, 290, 82, 1, 0, 0, 0, 291, 292, 5, 114, 0, 0, 292, 293, 5, 101, 0, 0, 293, 294, 5, 116, 0, 0, 294, 295, 5, 117, 0, 0, 295, 296, 5, 114, 0, 0, 296, 297, 5, 110, 0, 0, 297, 84, 1, 0, 0, 0, 298, 299, 5, 110, 0, 0, 299, 300, 5, 101, 0, 0, 300, 301, 5, 119, 0, 0, 301, 86, 1, 0, 0, 0, 302, 304, 7, 0, 0, 0, 303, 302, 1, 0, 0, 0, 304, 307, 1, 0, 0, 0, 305, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 309, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 308, 310, 7, 1, 0, 0, 309, 308, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 309, 1, 0, 0, 0, 311, 312, 1, 0, 0, 0, 312, 88, 1, 0, 0, 0, 313, 315, 5, 39, 0, 0, 314, 316, 8, 2, 0, 0, 315, 314, 1, 0, 0, 0, 315, 316, 1, 0, 0, 0, 316, 317, 1, 0, 0, 0, 317, 318, 5, 39, 0, 0, 318, 90, 1, 0, 0, 0, 319, 320, 7, 3, 0, 0, 320, 92, 1, 0, 0, 0, 321, 322, 7, 1, 0, 0, 322, 94, 1, 0, 0, 0, 323, 327, 3, 91, 45, 0, 324, 327, 3, 93, 46, 0, 325, 327, 7, 4, 0, 0, 326, 323, 1, 0, 0, 0, 326, 324, 1, 0, 0, 0, 326, 325, 1, 0, 0, 0, 327, 96, 1, 0, 0, 0, 328, 332, 3, 91, 45, 0, 329, 331, 3, 95, 47, 0, 330, 329, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 98, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 336, 7, 5, 0, 0, 336, 337, 1, 0, 0, 0, 337, 338, 6, 49, 0, 0, 338, 100, 1, 0, 0, 0, 11, 0, 120, 198, 202, 210, 214, 305, 311, 315, 326, 332, 1, 6, 0, 0] \ No newline at end of file diff --git a/src/main/java/gen/DecafLexer.java b/src/main/java/gen/DecafLexer.java index 1251680..6beb679 100644 --- a/src/main/java/gen/DecafLexer.java +++ b/src/main/java/gen/DecafLexer.java @@ -17,14 +17,14 @@ public class DecafLexer extends Lexer { protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); public static final int - BooleanValue=1, NullValue=2, AccessModifierPublic=3, MainMethodDecl=4, - Void=5, Int=6, Boolean=7, Char=8, DotOperator=9, LineOperator=10, ComparisonOperator=11, - LogicalOpertor=12, Assign=13, Minus=14, Plus=15, Multipilkation=16, Division=17, - Modulo=18, Greater=19, Less=20, GreaterEqual=21, LessEqual=22, Equal=23, - NotEqual=24, Not=25, And=26, Or=27, Dot=28, OpenRoundBracket=29, ClosedRoundBracket=30, - OpenCurlyBracket=31, ClosedCurlyBracket=32, Semicolon=33, Comma=34, Class=35, - This=36, While=37, If=38, Else=39, Return=40, New=41, IntValue=42, CharValue=43, - Identifier=44, WS=45; + T__0=1, T__1=2, BooleanValue=3, NullValue=4, AccessModifierPublic=5, MainMethodDecl=6, + Void=7, Int=8, Boolean=9, Char=10, DotOperator=11, LineOperator=12, ComparisonOperator=13, + LogicalOpertor=14, Assign=15, Minus=16, Plus=17, Multipilkation=18, Division=19, + Modulo=20, Greater=21, Less=22, GreaterEqual=23, LessEqual=24, Equal=25, + NotEqual=26, Not=27, And=28, Or=29, Dot=30, OpenRoundBracket=31, ClosedRoundBracket=32, + OpenCurlyBracket=33, ClosedCurlyBracket=34, Semicolon=35, Comma=36, Class=37, + This=38, While=39, If=40, Else=41, Return=42, New=43, IntValue=44, CharValue=45, + Identifier=46, WS=47; public static String[] channelNames = { "DEFAULT_TOKEN_CHANNEL", "HIDDEN" }; @@ -35,11 +35,11 @@ public class DecafLexer extends Lexer { private static String[] makeRuleNames() { return new String[] { - "BooleanValue", "NullValue", "AccessModifierPublic", "MainMethodDecl", - "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", "ComparisonOperator", - "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", "Division", - "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", "Equal", "NotEqual", - "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket", + "T__0", "T__1", "BooleanValue", "NullValue", "AccessModifierPublic", + "MainMethodDecl", "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", + "ComparisonOperator", "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", + "Division", "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", + "Equal", "NotEqual", "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket", "OpenCurlyBracket", "ClosedCurlyBracket", "Semicolon", "Comma", "Class", "This", "While", "If", "Else", "Return", "New", "IntValue", "CharValue", "Alpabetic", "Numeric", "ValidIdentSymbols", "Identifier", "WS" @@ -49,7 +49,7 @@ public class DecafLexer extends Lexer { private static String[] makeLiteralNames() { return new String[] { - null, null, "'null'", "'public'", "'public static void main(String[] args)'", + null, "'print('", "');'", null, "'null'", "'public'", "'public static void main(String[] args)'", "'void'", "'int'", "'boolean'", "'char'", null, null, null, null, "'='", "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='", "'<='", "'=='", "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'", "'}'", "';'", @@ -60,11 +60,11 @@ public class DecafLexer extends Lexer { private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { - null, "BooleanValue", "NullValue", "AccessModifierPublic", "MainMethodDecl", - "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", "ComparisonOperator", - "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", "Division", - "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", "Equal", "NotEqual", - "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket", + null, null, null, "BooleanValue", "NullValue", "AccessModifierPublic", + "MainMethodDecl", "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", + "ComparisonOperator", "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", + "Division", "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", + "Equal", "NotEqual", "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket", "OpenCurlyBracket", "ClosedCurlyBracket", "Semicolon", "Comma", "Class", "This", "While", "If", "Else", "Return", "New", "IntValue", "CharValue", "Identifier", "WS" @@ -129,7 +129,7 @@ public class DecafLexer extends Lexer { public ATN getATN() { return _ATN; } public static final String _serializedATN = - "\u0004\u0000-\u0145\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002\u0001"+ + "\u0004\u0000/\u0153\u0006\uffff\uffff\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"+ @@ -142,194 +142,201 @@ public class DecafLexer extends Lexer { "\u001e\u0007\u001e\u0002\u001f\u0007\u001f\u0002 \u0007 \u0002!\u0007"+ "!\u0002\"\u0007\"\u0002#\u0007#\u0002$\u0007$\u0002%\u0007%\u0002&\u0007"+ "&\u0002\'\u0007\'\u0002(\u0007(\u0002)\u0007)\u0002*\u0007*\u0002+\u0007"+ - "+\u0002,\u0007,\u0002-\u0007-\u0002.\u0007.\u0002/\u0007/\u0001\u0000"+ - "\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000"+ - "\u0001\u0000\u0001\u0000\u0003\u0000k\b\u0000\u0001\u0001\u0001\u0001"+ - "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0002"+ - "\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ - "\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004"+ - "\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006"+ - "\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006"+ - "\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001"+ - "\b\u0001\b\u0003\b\u00b9\b\b\u0001\t\u0001\t\u0003\t\u00bd\b\t\u0001\n"+ - "\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0003\n\u00c5\b\n\u0001\u000b"+ - "\u0001\u000b\u0003\u000b\u00c9\b\u000b\u0001\f\u0001\f\u0001\r\u0001\r"+ - "\u0001\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u0010\u0001\u0010"+ - "\u0001\u0011\u0001\u0011\u0001\u0012\u0001\u0012\u0001\u0013\u0001\u0013"+ - "\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0001\u0015"+ - "\u0001\u0016\u0001\u0016\u0001\u0016\u0001\u0017\u0001\u0017\u0001\u0017"+ - "\u0001\u0018\u0001\u0018\u0001\u0019\u0001\u0019\u0001\u0019\u0001\u001a"+ - "\u0001\u001a\u0001\u001a\u0001\u001b\u0001\u001b\u0001\u001c\u0001\u001c"+ - "\u0001\u001d\u0001\u001d\u0001\u001e\u0001\u001e\u0001\u001f\u0001\u001f"+ - "\u0001 \u0001 \u0001!\u0001!\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001"+ - "\"\u0001#\u0001#\u0001#\u0001#\u0001#\u0001$\u0001$\u0001$\u0001$\u0001"+ - "$\u0001$\u0001%\u0001%\u0001%\u0001&\u0001&\u0001&\u0001&\u0001&\u0001"+ - "\'\u0001\'\u0001\'\u0001\'\u0001\'\u0001\'\u0001\'\u0001(\u0001(\u0001"+ - "(\u0001(\u0001)\u0005)\u0122\b)\n)\f)\u0125\t)\u0001)\u0004)\u0128\b)"+ - "\u000b)\f)\u0129\u0001*\u0001*\u0003*\u012e\b*\u0001*\u0001*\u0001+\u0001"+ - "+\u0001,\u0001,\u0001-\u0001-\u0001-\u0003-\u0139\b-\u0001.\u0001.\u0005"+ - ".\u013d\b.\n.\f.\u0140\t.\u0001/\u0001/\u0001/\u0001/\u0000\u00000\u0001"+ - "\u0001\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005\u000b\u0006\r\u0007"+ - "\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b\u000e\u001d"+ - "\u000f\u001f\u0010!\u0011#\u0012%\u0013\'\u0014)\u0015+\u0016-\u0017/"+ - "\u00181\u00193\u001a5\u001b7\u001c9\u001d;\u001e=\u001f? A!C\"E#G$I%K"+ - "&M\'O(Q)S*U+W\u0000Y\u0000[\u0000],_-\u0001\u0000\u0006\u0002\u0000++"+ - "--\u0001\u000009\u0002\u0000\n\n\r\r\u0002\u0000AZaz\u0002\u0000$$__\u0003"+ - "\u0000\t\n\r\r \u0151\u0000\u0001\u0001\u0000\u0000\u0000\u0000\u0003"+ - "\u0001\u0000\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000\u0007"+ - "\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001"+ - "\u0000\u0000\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000"+ - "\u0000\u0000\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013\u0001\u0000"+ - "\u0000\u0000\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017\u0001\u0000"+ - "\u0000\u0000\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b\u0001\u0000"+ - "\u0000\u0000\u0000\u001d\u0001\u0000\u0000\u0000\u0000\u001f\u0001\u0000"+ - "\u0000\u0000\u0000!\u0001\u0000\u0000\u0000\u0000#\u0001\u0000\u0000\u0000"+ - "\u0000%\u0001\u0000\u0000\u0000\u0000\'\u0001\u0000\u0000\u0000\u0000"+ - ")\u0001\u0000\u0000\u0000\u0000+\u0001\u0000\u0000\u0000\u0000-\u0001"+ - "\u0000\u0000\u0000\u0000/\u0001\u0000\u0000\u0000\u00001\u0001\u0000\u0000"+ - "\u0000\u00003\u0001\u0000\u0000\u0000\u00005\u0001\u0000\u0000\u0000\u0000"+ - "7\u0001\u0000\u0000\u0000\u00009\u0001\u0000\u0000\u0000\u0000;\u0001"+ - "\u0000\u0000\u0000\u0000=\u0001\u0000\u0000\u0000\u0000?\u0001\u0000\u0000"+ - "\u0000\u0000A\u0001\u0000\u0000\u0000\u0000C\u0001\u0000\u0000\u0000\u0000"+ - "E\u0001\u0000\u0000\u0000\u0000G\u0001\u0000\u0000\u0000\u0000I\u0001"+ - "\u0000\u0000\u0000\u0000K\u0001\u0000\u0000\u0000\u0000M\u0001\u0000\u0000"+ - "\u0000\u0000O\u0001\u0000\u0000\u0000\u0000Q\u0001\u0000\u0000\u0000\u0000"+ - "S\u0001\u0000\u0000\u0000\u0000U\u0001\u0000\u0000\u0000\u0000]\u0001"+ - "\u0000\u0000\u0000\u0000_\u0001\u0000\u0000\u0000\u0001j\u0001\u0000\u0000"+ - "\u0000\u0003l\u0001\u0000\u0000\u0000\u0005q\u0001\u0000\u0000\u0000\u0007"+ - "x\u0001\u0000\u0000\u0000\t\u009f\u0001\u0000\u0000\u0000\u000b\u00a4"+ - "\u0001\u0000\u0000\u0000\r\u00a8\u0001\u0000\u0000\u0000\u000f\u00b0\u0001"+ - "\u0000\u0000\u0000\u0011\u00b8\u0001\u0000\u0000\u0000\u0013\u00bc\u0001"+ - "\u0000\u0000\u0000\u0015\u00c4\u0001\u0000\u0000\u0000\u0017\u00c8\u0001"+ - "\u0000\u0000\u0000\u0019\u00ca\u0001\u0000\u0000\u0000\u001b\u00cc\u0001"+ - "\u0000\u0000\u0000\u001d\u00ce\u0001\u0000\u0000\u0000\u001f\u00d0\u0001"+ - "\u0000\u0000\u0000!\u00d2\u0001\u0000\u0000\u0000#\u00d4\u0001\u0000\u0000"+ - "\u0000%\u00d6\u0001\u0000\u0000\u0000\'\u00d8\u0001\u0000\u0000\u0000"+ - ")\u00da\u0001\u0000\u0000\u0000+\u00dd\u0001\u0000\u0000\u0000-\u00e0"+ - "\u0001\u0000\u0000\u0000/\u00e3\u0001\u0000\u0000\u00001\u00e6\u0001\u0000"+ - "\u0000\u00003\u00e8\u0001\u0000\u0000\u00005\u00eb\u0001\u0000\u0000\u0000"+ - "7\u00ee\u0001\u0000\u0000\u00009\u00f0\u0001\u0000\u0000\u0000;\u00f2"+ - "\u0001\u0000\u0000\u0000=\u00f4\u0001\u0000\u0000\u0000?\u00f6\u0001\u0000"+ - "\u0000\u0000A\u00f8\u0001\u0000\u0000\u0000C\u00fa\u0001\u0000\u0000\u0000"+ - "E\u00fc\u0001\u0000\u0000\u0000G\u0102\u0001\u0000\u0000\u0000I\u0107"+ - "\u0001\u0000\u0000\u0000K\u010d\u0001\u0000\u0000\u0000M\u0110\u0001\u0000"+ - "\u0000\u0000O\u0115\u0001\u0000\u0000\u0000Q\u011c\u0001\u0000\u0000\u0000"+ - "S\u0123\u0001\u0000\u0000\u0000U\u012b\u0001\u0000\u0000\u0000W\u0131"+ - "\u0001\u0000\u0000\u0000Y\u0133\u0001\u0000\u0000\u0000[\u0138\u0001\u0000"+ - "\u0000\u0000]\u013a\u0001\u0000\u0000\u0000_\u0141\u0001\u0000\u0000\u0000"+ - "ab\u0005t\u0000\u0000bc\u0005r\u0000\u0000cd\u0005u\u0000\u0000dk\u0005"+ - "e\u0000\u0000ef\u0005f\u0000\u0000fg\u0005a\u0000\u0000gh\u0005l\u0000"+ - "\u0000hi\u0005s\u0000\u0000ik\u0005e\u0000\u0000ja\u0001\u0000\u0000\u0000"+ - "je\u0001\u0000\u0000\u0000k\u0002\u0001\u0000\u0000\u0000lm\u0005n\u0000"+ - "\u0000mn\u0005u\u0000\u0000no\u0005l\u0000\u0000op\u0005l\u0000\u0000"+ - "p\u0004\u0001\u0000\u0000\u0000qr\u0005p\u0000\u0000rs\u0005u\u0000\u0000"+ - "st\u0005b\u0000\u0000tu\u0005l\u0000\u0000uv\u0005i\u0000\u0000vw\u0005"+ - "c\u0000\u0000w\u0006\u0001\u0000\u0000\u0000xy\u0005p\u0000\u0000yz\u0005"+ - "u\u0000\u0000z{\u0005b\u0000\u0000{|\u0005l\u0000\u0000|}\u0005i\u0000"+ - "\u0000}~\u0005c\u0000\u0000~\u007f\u0005 \u0000\u0000\u007f\u0080\u0005"+ - "s\u0000\u0000\u0080\u0081\u0005t\u0000\u0000\u0081\u0082\u0005a\u0000"+ - "\u0000\u0082\u0083\u0005t\u0000\u0000\u0083\u0084\u0005i\u0000\u0000\u0084"+ - "\u0085\u0005c\u0000\u0000\u0085\u0086\u0005 \u0000\u0000\u0086\u0087\u0005"+ - "v\u0000\u0000\u0087\u0088\u0005o\u0000\u0000\u0088\u0089\u0005i\u0000"+ - "\u0000\u0089\u008a\u0005d\u0000\u0000\u008a\u008b\u0005 \u0000\u0000\u008b"+ - "\u008c\u0005m\u0000\u0000\u008c\u008d\u0005a\u0000\u0000\u008d\u008e\u0005"+ - "i\u0000\u0000\u008e\u008f\u0005n\u0000\u0000\u008f\u0090\u0005(\u0000"+ - "\u0000\u0090\u0091\u0005S\u0000\u0000\u0091\u0092\u0005t\u0000\u0000\u0092"+ - "\u0093\u0005r\u0000\u0000\u0093\u0094\u0005i\u0000\u0000\u0094\u0095\u0005"+ - "n\u0000\u0000\u0095\u0096\u0005g\u0000\u0000\u0096\u0097\u0005[\u0000"+ - "\u0000\u0097\u0098\u0005]\u0000\u0000\u0098\u0099\u0005 \u0000\u0000\u0099"+ - "\u009a\u0005a\u0000\u0000\u009a\u009b\u0005r\u0000\u0000\u009b\u009c\u0005"+ - "g\u0000\u0000\u009c\u009d\u0005s\u0000\u0000\u009d\u009e\u0005)\u0000"+ - "\u0000\u009e\b\u0001\u0000\u0000\u0000\u009f\u00a0\u0005v\u0000\u0000"+ - "\u00a0\u00a1\u0005o\u0000\u0000\u00a1\u00a2\u0005i\u0000\u0000\u00a2\u00a3"+ - "\u0005d\u0000\u0000\u00a3\n\u0001\u0000\u0000\u0000\u00a4\u00a5\u0005"+ - "i\u0000\u0000\u00a5\u00a6\u0005n\u0000\u0000\u00a6\u00a7\u0005t\u0000"+ - "\u0000\u00a7\f\u0001\u0000\u0000\u0000\u00a8\u00a9\u0005b\u0000\u0000"+ - "\u00a9\u00aa\u0005o\u0000\u0000\u00aa\u00ab\u0005o\u0000\u0000\u00ab\u00ac"+ - "\u0005l\u0000\u0000\u00ac\u00ad\u0005e\u0000\u0000\u00ad\u00ae\u0005a"+ - "\u0000\u0000\u00ae\u00af\u0005n\u0000\u0000\u00af\u000e\u0001\u0000\u0000"+ - "\u0000\u00b0\u00b1\u0005c\u0000\u0000\u00b1\u00b2\u0005h\u0000\u0000\u00b2"+ - "\u00b3\u0005a\u0000\u0000\u00b3\u00b4\u0005r\u0000\u0000\u00b4\u0010\u0001"+ - "\u0000\u0000\u0000\u00b5\u00b9\u0003\u001f\u000f\u0000\u00b6\u00b9\u0003"+ - "!\u0010\u0000\u00b7\u00b9\u0003#\u0011\u0000\u00b8\u00b5\u0001\u0000\u0000"+ - "\u0000\u00b8\u00b6\u0001\u0000\u0000\u0000\u00b8\u00b7\u0001\u0000\u0000"+ - "\u0000\u00b9\u0012\u0001\u0000\u0000\u0000\u00ba\u00bd\u0003\u001d\u000e"+ - "\u0000\u00bb\u00bd\u0003\u001b\r\u0000\u00bc\u00ba\u0001\u0000\u0000\u0000"+ - "\u00bc\u00bb\u0001\u0000\u0000\u0000\u00bd\u0014\u0001\u0000\u0000\u0000"+ - "\u00be\u00c5\u0003%\u0012\u0000\u00bf\u00c5\u0003\'\u0013\u0000\u00c0"+ - "\u00c5\u0003)\u0014\u0000\u00c1\u00c5\u0003+\u0015\u0000\u00c2\u00c5\u0003"+ - "-\u0016\u0000\u00c3\u00c5\u0003/\u0017\u0000\u00c4\u00be\u0001\u0000\u0000"+ - "\u0000\u00c4\u00bf\u0001\u0000\u0000\u0000\u00c4\u00c0\u0001\u0000\u0000"+ - "\u0000\u00c4\u00c1\u0001\u0000\u0000\u0000\u00c4\u00c2\u0001\u0000\u0000"+ - "\u0000\u00c4\u00c3\u0001\u0000\u0000\u0000\u00c5\u0016\u0001\u0000\u0000"+ - "\u0000\u00c6\u00c9\u00033\u0019\u0000\u00c7\u00c9\u00035\u001a\u0000\u00c8"+ - "\u00c6\u0001\u0000\u0000\u0000\u00c8\u00c7\u0001\u0000\u0000\u0000\u00c9"+ - "\u0018\u0001\u0000\u0000\u0000\u00ca\u00cb\u0005=\u0000\u0000\u00cb\u001a"+ - "\u0001\u0000\u0000\u0000\u00cc\u00cd\u0005-\u0000\u0000\u00cd\u001c\u0001"+ - "\u0000\u0000\u0000\u00ce\u00cf\u0005+\u0000\u0000\u00cf\u001e\u0001\u0000"+ - "\u0000\u0000\u00d0\u00d1\u0005*\u0000\u0000\u00d1 \u0001\u0000\u0000\u0000"+ - "\u00d2\u00d3\u0005/\u0000\u0000\u00d3\"\u0001\u0000\u0000\u0000\u00d4"+ - "\u00d5\u0005%\u0000\u0000\u00d5$\u0001\u0000\u0000\u0000\u00d6\u00d7\u0005"+ - ">\u0000\u0000\u00d7&\u0001\u0000\u0000\u0000\u00d8\u00d9\u0005<\u0000"+ - "\u0000\u00d9(\u0001\u0000\u0000\u0000\u00da\u00db\u0005>\u0000\u0000\u00db"+ - "\u00dc\u0005=\u0000\u0000\u00dc*\u0001\u0000\u0000\u0000\u00dd\u00de\u0005"+ - "<\u0000\u0000\u00de\u00df\u0005=\u0000\u0000\u00df,\u0001\u0000\u0000"+ - "\u0000\u00e0\u00e1\u0005=\u0000\u0000\u00e1\u00e2\u0005=\u0000\u0000\u00e2"+ - ".\u0001\u0000\u0000\u0000\u00e3\u00e4\u0005!\u0000\u0000\u00e4\u00e5\u0005"+ - "=\u0000\u0000\u00e50\u0001\u0000\u0000\u0000\u00e6\u00e7\u0005!\u0000"+ - "\u0000\u00e72\u0001\u0000\u0000\u0000\u00e8\u00e9\u0005&\u0000\u0000\u00e9"+ - "\u00ea\u0005&\u0000\u0000\u00ea4\u0001\u0000\u0000\u0000\u00eb\u00ec\u0005"+ - "|\u0000\u0000\u00ec\u00ed\u0005|\u0000\u0000\u00ed6\u0001\u0000\u0000"+ - "\u0000\u00ee\u00ef\u0005.\u0000\u0000\u00ef8\u0001\u0000\u0000\u0000\u00f0"+ - "\u00f1\u0005(\u0000\u0000\u00f1:\u0001\u0000\u0000\u0000\u00f2\u00f3\u0005"+ - ")\u0000\u0000\u00f3<\u0001\u0000\u0000\u0000\u00f4\u00f5\u0005{\u0000"+ - "\u0000\u00f5>\u0001\u0000\u0000\u0000\u00f6\u00f7\u0005}\u0000\u0000\u00f7"+ - "@\u0001\u0000\u0000\u0000\u00f8\u00f9\u0005;\u0000\u0000\u00f9B\u0001"+ - "\u0000\u0000\u0000\u00fa\u00fb\u0005,\u0000\u0000\u00fbD\u0001\u0000\u0000"+ - "\u0000\u00fc\u00fd\u0005c\u0000\u0000\u00fd\u00fe\u0005l\u0000\u0000\u00fe"+ - "\u00ff\u0005a\u0000\u0000\u00ff\u0100\u0005s\u0000\u0000\u0100\u0101\u0005"+ - "s\u0000\u0000\u0101F\u0001\u0000\u0000\u0000\u0102\u0103\u0005t\u0000"+ - "\u0000\u0103\u0104\u0005h\u0000\u0000\u0104\u0105\u0005i\u0000\u0000\u0105"+ - "\u0106\u0005s\u0000\u0000\u0106H\u0001\u0000\u0000\u0000\u0107\u0108\u0005"+ - "w\u0000\u0000\u0108\u0109\u0005h\u0000\u0000\u0109\u010a\u0005i\u0000"+ - "\u0000\u010a\u010b\u0005l\u0000\u0000\u010b\u010c\u0005e\u0000\u0000\u010c"+ - "J\u0001\u0000\u0000\u0000\u010d\u010e\u0005i\u0000\u0000\u010e\u010f\u0005"+ - "f\u0000\u0000\u010fL\u0001\u0000\u0000\u0000\u0110\u0111\u0005e\u0000"+ - "\u0000\u0111\u0112\u0005l\u0000\u0000\u0112\u0113\u0005s\u0000\u0000\u0113"+ - "\u0114\u0005e\u0000\u0000\u0114N\u0001\u0000\u0000\u0000\u0115\u0116\u0005"+ - "r\u0000\u0000\u0116\u0117\u0005e\u0000\u0000\u0117\u0118\u0005t\u0000"+ - "\u0000\u0118\u0119\u0005u\u0000\u0000\u0119\u011a\u0005r\u0000\u0000\u011a"+ - "\u011b\u0005n\u0000\u0000\u011bP\u0001\u0000\u0000\u0000\u011c\u011d\u0005"+ - "n\u0000\u0000\u011d\u011e\u0005e\u0000\u0000\u011e\u011f\u0005w\u0000"+ - "\u0000\u011fR\u0001\u0000\u0000\u0000\u0120\u0122\u0007\u0000\u0000\u0000"+ - "\u0121\u0120\u0001\u0000\u0000\u0000\u0122\u0125\u0001\u0000\u0000\u0000"+ - "\u0123\u0121\u0001\u0000\u0000\u0000\u0123\u0124\u0001\u0000\u0000\u0000"+ - "\u0124\u0127\u0001\u0000\u0000\u0000\u0125\u0123\u0001\u0000\u0000\u0000"+ - "\u0126\u0128\u0007\u0001\u0000\u0000\u0127\u0126\u0001\u0000\u0000\u0000"+ - "\u0128\u0129\u0001\u0000\u0000\u0000\u0129\u0127\u0001\u0000\u0000\u0000"+ - "\u0129\u012a\u0001\u0000\u0000\u0000\u012aT\u0001\u0000\u0000\u0000\u012b"+ - "\u012d\u0005\'\u0000\u0000\u012c\u012e\b\u0002\u0000\u0000\u012d\u012c"+ - "\u0001\u0000\u0000\u0000\u012d\u012e\u0001\u0000\u0000\u0000\u012e\u012f"+ - "\u0001\u0000\u0000\u0000\u012f\u0130\u0005\'\u0000\u0000\u0130V\u0001"+ - "\u0000\u0000\u0000\u0131\u0132\u0007\u0003\u0000\u0000\u0132X\u0001\u0000"+ - "\u0000\u0000\u0133\u0134\u0007\u0001\u0000\u0000\u0134Z\u0001\u0000\u0000"+ - "\u0000\u0135\u0139\u0003W+\u0000\u0136\u0139\u0003Y,\u0000\u0137\u0139"+ - "\u0007\u0004\u0000\u0000\u0138\u0135\u0001\u0000\u0000\u0000\u0138\u0136"+ - "\u0001\u0000\u0000\u0000\u0138\u0137\u0001\u0000\u0000\u0000\u0139\\\u0001"+ - "\u0000\u0000\u0000\u013a\u013e\u0003W+\u0000\u013b\u013d\u0003[-\u0000"+ - "\u013c\u013b\u0001\u0000\u0000\u0000\u013d\u0140\u0001\u0000\u0000\u0000"+ - "\u013e\u013c\u0001\u0000\u0000\u0000\u013e\u013f\u0001\u0000\u0000\u0000"+ - "\u013f^\u0001\u0000\u0000\u0000\u0140\u013e\u0001\u0000\u0000\u0000\u0141"+ - "\u0142\u0007\u0005\u0000\u0000\u0142\u0143\u0001\u0000\u0000\u0000\u0143"+ - "\u0144\u0006/\u0000\u0000\u0144`\u0001\u0000\u0000\u0000\u000b\u0000j"+ - "\u00b8\u00bc\u00c4\u00c8\u0123\u0129\u012d\u0138\u013e\u0001\u0006\u0000"+ - "\u0000"; + "+\u0002,\u0007,\u0002-\u0007-\u0002.\u0007.\u0002/\u0007/\u00020\u0007"+ + "0\u00021\u00071\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001"+ + "\u0000\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+ + "\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001"+ + "\u0002\u0001\u0002\u0001\u0002\u0003\u0002y\b\u0002\u0001\u0003\u0001"+ + "\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001"+ + "\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001"+ + "\u0006\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001\b"+ + "\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\t\u0001\t\u0001"+ + "\t\u0001\t\u0001\t\u0001\n\u0001\n\u0001\n\u0003\n\u00c7\b\n\u0001\u000b"+ + "\u0001\u000b\u0003\u000b\u00cb\b\u000b\u0001\f\u0001\f\u0001\f\u0001\f"+ + "\u0001\f\u0001\f\u0003\f\u00d3\b\f\u0001\r\u0001\r\u0003\r\u00d7\b\r\u0001"+ + "\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u0010\u0001\u0010\u0001"+ + "\u0011\u0001\u0011\u0001\u0012\u0001\u0012\u0001\u0013\u0001\u0013\u0001"+ + "\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0001\u0016\u0001\u0016\u0001"+ + "\u0016\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018\u0001"+ + "\u0018\u0001\u0019\u0001\u0019\u0001\u0019\u0001\u001a\u0001\u001a\u0001"+ + "\u001b\u0001\u001b\u0001\u001b\u0001\u001c\u0001\u001c\u0001\u001c\u0001"+ + "\u001d\u0001\u001d\u0001\u001e\u0001\u001e\u0001\u001f\u0001\u001f\u0001"+ + " \u0001 \u0001!\u0001!\u0001\"\u0001\"\u0001#\u0001#\u0001$\u0001$\u0001"+ + "$\u0001$\u0001$\u0001$\u0001%\u0001%\u0001%\u0001%\u0001%\u0001&\u0001"+ + "&\u0001&\u0001&\u0001&\u0001&\u0001\'\u0001\'\u0001\'\u0001(\u0001(\u0001"+ + "(\u0001(\u0001(\u0001)\u0001)\u0001)\u0001)\u0001)\u0001)\u0001)\u0001"+ + "*\u0001*\u0001*\u0001*\u0001+\u0005+\u0130\b+\n+\f+\u0133\t+\u0001+\u0004"+ + "+\u0136\b+\u000b+\f+\u0137\u0001,\u0001,\u0003,\u013c\b,\u0001,\u0001"+ + ",\u0001-\u0001-\u0001.\u0001.\u0001/\u0001/\u0001/\u0003/\u0147\b/\u0001"+ + "0\u00010\u00050\u014b\b0\n0\f0\u014e\t0\u00011\u00011\u00011\u00011\u0000"+ + "\u00002\u0001\u0001\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005\u000b"+ + "\u0006\r\u0007\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b"+ + "\u000e\u001d\u000f\u001f\u0010!\u0011#\u0012%\u0013\'\u0014)\u0015+\u0016"+ + "-\u0017/\u00181\u00193\u001a5\u001b7\u001c9\u001d;\u001e=\u001f? A!C\""+ + "E#G$I%K&M\'O(Q)S*U+W,Y-[\u0000]\u0000_\u0000a.c/\u0001\u0000\u0006\u0002"+ + "\u0000++--\u0001\u000009\u0002\u0000\n\n\r\r\u0002\u0000AZaz\u0002\u0000"+ + "$$__\u0003\u0000\t\n\r\r \u015f\u0000\u0001\u0001\u0000\u0000\u0000\u0000"+ + "\u0003\u0001\u0000\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000"+ + "\u0007\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b"+ + "\u0001\u0000\u0000\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001"+ + "\u0000\u0000\u0000\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013\u0001"+ + "\u0000\u0000\u0000\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017\u0001"+ + "\u0000\u0000\u0000\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b\u0001"+ + "\u0000\u0000\u0000\u0000\u001d\u0001\u0000\u0000\u0000\u0000\u001f\u0001"+ + "\u0000\u0000\u0000\u0000!\u0001\u0000\u0000\u0000\u0000#\u0001\u0000\u0000"+ + "\u0000\u0000%\u0001\u0000\u0000\u0000\u0000\'\u0001\u0000\u0000\u0000"+ + "\u0000)\u0001\u0000\u0000\u0000\u0000+\u0001\u0000\u0000\u0000\u0000-"+ + "\u0001\u0000\u0000\u0000\u0000/\u0001\u0000\u0000\u0000\u00001\u0001\u0000"+ + "\u0000\u0000\u00003\u0001\u0000\u0000\u0000\u00005\u0001\u0000\u0000\u0000"+ + "\u00007\u0001\u0000\u0000\u0000\u00009\u0001\u0000\u0000\u0000\u0000;"+ + "\u0001\u0000\u0000\u0000\u0000=\u0001\u0000\u0000\u0000\u0000?\u0001\u0000"+ + "\u0000\u0000\u0000A\u0001\u0000\u0000\u0000\u0000C\u0001\u0000\u0000\u0000"+ + "\u0000E\u0001\u0000\u0000\u0000\u0000G\u0001\u0000\u0000\u0000\u0000I"+ + "\u0001\u0000\u0000\u0000\u0000K\u0001\u0000\u0000\u0000\u0000M\u0001\u0000"+ + "\u0000\u0000\u0000O\u0001\u0000\u0000\u0000\u0000Q\u0001\u0000\u0000\u0000"+ + "\u0000S\u0001\u0000\u0000\u0000\u0000U\u0001\u0000\u0000\u0000\u0000W"+ + "\u0001\u0000\u0000\u0000\u0000Y\u0001\u0000\u0000\u0000\u0000a\u0001\u0000"+ + "\u0000\u0000\u0000c\u0001\u0000\u0000\u0000\u0001e\u0001\u0000\u0000\u0000"+ + "\u0003l\u0001\u0000\u0000\u0000\u0005x\u0001\u0000\u0000\u0000\u0007z"+ + "\u0001\u0000\u0000\u0000\t\u007f\u0001\u0000\u0000\u0000\u000b\u0086\u0001"+ + "\u0000\u0000\u0000\r\u00ad\u0001\u0000\u0000\u0000\u000f\u00b2\u0001\u0000"+ + "\u0000\u0000\u0011\u00b6\u0001\u0000\u0000\u0000\u0013\u00be\u0001\u0000"+ + "\u0000\u0000\u0015\u00c6\u0001\u0000\u0000\u0000\u0017\u00ca\u0001\u0000"+ + "\u0000\u0000\u0019\u00d2\u0001\u0000\u0000\u0000\u001b\u00d6\u0001\u0000"+ + "\u0000\u0000\u001d\u00d8\u0001\u0000\u0000\u0000\u001f\u00da\u0001\u0000"+ + "\u0000\u0000!\u00dc\u0001\u0000\u0000\u0000#\u00de\u0001\u0000\u0000\u0000"+ + "%\u00e0\u0001\u0000\u0000\u0000\'\u00e2\u0001\u0000\u0000\u0000)\u00e4"+ + "\u0001\u0000\u0000\u0000+\u00e6\u0001\u0000\u0000\u0000-\u00e8\u0001\u0000"+ + "\u0000\u0000/\u00eb\u0001\u0000\u0000\u00001\u00ee\u0001\u0000\u0000\u0000"+ + "3\u00f1\u0001\u0000\u0000\u00005\u00f4\u0001\u0000\u0000\u00007\u00f6"+ + "\u0001\u0000\u0000\u00009\u00f9\u0001\u0000\u0000\u0000;\u00fc\u0001\u0000"+ + "\u0000\u0000=\u00fe\u0001\u0000\u0000\u0000?\u0100\u0001\u0000\u0000\u0000"+ + "A\u0102\u0001\u0000\u0000\u0000C\u0104\u0001\u0000\u0000\u0000E\u0106"+ + "\u0001\u0000\u0000\u0000G\u0108\u0001\u0000\u0000\u0000I\u010a\u0001\u0000"+ + "\u0000\u0000K\u0110\u0001\u0000\u0000\u0000M\u0115\u0001\u0000\u0000\u0000"+ + "O\u011b\u0001\u0000\u0000\u0000Q\u011e\u0001\u0000\u0000\u0000S\u0123"+ + "\u0001\u0000\u0000\u0000U\u012a\u0001\u0000\u0000\u0000W\u0131\u0001\u0000"+ + "\u0000\u0000Y\u0139\u0001\u0000\u0000\u0000[\u013f\u0001\u0000\u0000\u0000"+ + "]\u0141\u0001\u0000\u0000\u0000_\u0146\u0001\u0000\u0000\u0000a\u0148"+ + "\u0001\u0000\u0000\u0000c\u014f\u0001\u0000\u0000\u0000ef\u0005p\u0000"+ + "\u0000fg\u0005r\u0000\u0000gh\u0005i\u0000\u0000hi\u0005n\u0000\u0000"+ + "ij\u0005t\u0000\u0000jk\u0005(\u0000\u0000k\u0002\u0001\u0000\u0000\u0000"+ + "lm\u0005)\u0000\u0000mn\u0005;\u0000\u0000n\u0004\u0001\u0000\u0000\u0000"+ + "op\u0005t\u0000\u0000pq\u0005r\u0000\u0000qr\u0005u\u0000\u0000ry\u0005"+ + "e\u0000\u0000st\u0005f\u0000\u0000tu\u0005a\u0000\u0000uv\u0005l\u0000"+ + "\u0000vw\u0005s\u0000\u0000wy\u0005e\u0000\u0000xo\u0001\u0000\u0000\u0000"+ + "xs\u0001\u0000\u0000\u0000y\u0006\u0001\u0000\u0000\u0000z{\u0005n\u0000"+ + "\u0000{|\u0005u\u0000\u0000|}\u0005l\u0000\u0000}~\u0005l\u0000\u0000"+ + "~\b\u0001\u0000\u0000\u0000\u007f\u0080\u0005p\u0000\u0000\u0080\u0081"+ + "\u0005u\u0000\u0000\u0081\u0082\u0005b\u0000\u0000\u0082\u0083\u0005l"+ + "\u0000\u0000\u0083\u0084\u0005i\u0000\u0000\u0084\u0085\u0005c\u0000\u0000"+ + "\u0085\n\u0001\u0000\u0000\u0000\u0086\u0087\u0005p\u0000\u0000\u0087"+ + "\u0088\u0005u\u0000\u0000\u0088\u0089\u0005b\u0000\u0000\u0089\u008a\u0005"+ + "l\u0000\u0000\u008a\u008b\u0005i\u0000\u0000\u008b\u008c\u0005c\u0000"+ + "\u0000\u008c\u008d\u0005 \u0000\u0000\u008d\u008e\u0005s\u0000\u0000\u008e"+ + "\u008f\u0005t\u0000\u0000\u008f\u0090\u0005a\u0000\u0000\u0090\u0091\u0005"+ + "t\u0000\u0000\u0091\u0092\u0005i\u0000\u0000\u0092\u0093\u0005c\u0000"+ + "\u0000\u0093\u0094\u0005 \u0000\u0000\u0094\u0095\u0005v\u0000\u0000\u0095"+ + "\u0096\u0005o\u0000\u0000\u0096\u0097\u0005i\u0000\u0000\u0097\u0098\u0005"+ + "d\u0000\u0000\u0098\u0099\u0005 \u0000\u0000\u0099\u009a\u0005m\u0000"+ + "\u0000\u009a\u009b\u0005a\u0000\u0000\u009b\u009c\u0005i\u0000\u0000\u009c"+ + "\u009d\u0005n\u0000\u0000\u009d\u009e\u0005(\u0000\u0000\u009e\u009f\u0005"+ + "S\u0000\u0000\u009f\u00a0\u0005t\u0000\u0000\u00a0\u00a1\u0005r\u0000"+ + "\u0000\u00a1\u00a2\u0005i\u0000\u0000\u00a2\u00a3\u0005n\u0000\u0000\u00a3"+ + "\u00a4\u0005g\u0000\u0000\u00a4\u00a5\u0005[\u0000\u0000\u00a5\u00a6\u0005"+ + "]\u0000\u0000\u00a6\u00a7\u0005 \u0000\u0000\u00a7\u00a8\u0005a\u0000"+ + "\u0000\u00a8\u00a9\u0005r\u0000\u0000\u00a9\u00aa\u0005g\u0000\u0000\u00aa"+ + "\u00ab\u0005s\u0000\u0000\u00ab\u00ac\u0005)\u0000\u0000\u00ac\f\u0001"+ + "\u0000\u0000\u0000\u00ad\u00ae\u0005v\u0000\u0000\u00ae\u00af\u0005o\u0000"+ + "\u0000\u00af\u00b0\u0005i\u0000\u0000\u00b0\u00b1\u0005d\u0000\u0000\u00b1"+ + "\u000e\u0001\u0000\u0000\u0000\u00b2\u00b3\u0005i\u0000\u0000\u00b3\u00b4"+ + "\u0005n\u0000\u0000\u00b4\u00b5\u0005t\u0000\u0000\u00b5\u0010\u0001\u0000"+ + "\u0000\u0000\u00b6\u00b7\u0005b\u0000\u0000\u00b7\u00b8\u0005o\u0000\u0000"+ + "\u00b8\u00b9\u0005o\u0000\u0000\u00b9\u00ba\u0005l\u0000\u0000\u00ba\u00bb"+ + "\u0005e\u0000\u0000\u00bb\u00bc\u0005a\u0000\u0000\u00bc\u00bd\u0005n"+ + "\u0000\u0000\u00bd\u0012\u0001\u0000\u0000\u0000\u00be\u00bf\u0005c\u0000"+ + "\u0000\u00bf\u00c0\u0005h\u0000\u0000\u00c0\u00c1\u0005a\u0000\u0000\u00c1"+ + "\u00c2\u0005r\u0000\u0000\u00c2\u0014\u0001\u0000\u0000\u0000\u00c3\u00c7"+ + "\u0003#\u0011\u0000\u00c4\u00c7\u0003%\u0012\u0000\u00c5\u00c7\u0003\'"+ + "\u0013\u0000\u00c6\u00c3\u0001\u0000\u0000\u0000\u00c6\u00c4\u0001\u0000"+ + "\u0000\u0000\u00c6\u00c5\u0001\u0000\u0000\u0000\u00c7\u0016\u0001\u0000"+ + "\u0000\u0000\u00c8\u00cb\u0003!\u0010\u0000\u00c9\u00cb\u0003\u001f\u000f"+ + "\u0000\u00ca\u00c8\u0001\u0000\u0000\u0000\u00ca\u00c9\u0001\u0000\u0000"+ + "\u0000\u00cb\u0018\u0001\u0000\u0000\u0000\u00cc\u00d3\u0003)\u0014\u0000"+ + "\u00cd\u00d3\u0003+\u0015\u0000\u00ce\u00d3\u0003-\u0016\u0000\u00cf\u00d3"+ + "\u0003/\u0017\u0000\u00d0\u00d3\u00031\u0018\u0000\u00d1\u00d3\u00033"+ + "\u0019\u0000\u00d2\u00cc\u0001\u0000\u0000\u0000\u00d2\u00cd\u0001\u0000"+ + "\u0000\u0000\u00d2\u00ce\u0001\u0000\u0000\u0000\u00d2\u00cf\u0001\u0000"+ + "\u0000\u0000\u00d2\u00d0\u0001\u0000\u0000\u0000\u00d2\u00d1\u0001\u0000"+ + "\u0000\u0000\u00d3\u001a\u0001\u0000\u0000\u0000\u00d4\u00d7\u00037\u001b"+ + "\u0000\u00d5\u00d7\u00039\u001c\u0000\u00d6\u00d4\u0001\u0000\u0000\u0000"+ + "\u00d6\u00d5\u0001\u0000\u0000\u0000\u00d7\u001c\u0001\u0000\u0000\u0000"+ + "\u00d8\u00d9\u0005=\u0000\u0000\u00d9\u001e\u0001\u0000\u0000\u0000\u00da"+ + "\u00db\u0005-\u0000\u0000\u00db \u0001\u0000\u0000\u0000\u00dc\u00dd\u0005"+ + "+\u0000\u0000\u00dd\"\u0001\u0000\u0000\u0000\u00de\u00df\u0005*\u0000"+ + "\u0000\u00df$\u0001\u0000\u0000\u0000\u00e0\u00e1\u0005/\u0000\u0000\u00e1"+ + "&\u0001\u0000\u0000\u0000\u00e2\u00e3\u0005%\u0000\u0000\u00e3(\u0001"+ + "\u0000\u0000\u0000\u00e4\u00e5\u0005>\u0000\u0000\u00e5*\u0001\u0000\u0000"+ + "\u0000\u00e6\u00e7\u0005<\u0000\u0000\u00e7,\u0001\u0000\u0000\u0000\u00e8"+ + "\u00e9\u0005>\u0000\u0000\u00e9\u00ea\u0005=\u0000\u0000\u00ea.\u0001"+ + "\u0000\u0000\u0000\u00eb\u00ec\u0005<\u0000\u0000\u00ec\u00ed\u0005=\u0000"+ + "\u0000\u00ed0\u0001\u0000\u0000\u0000\u00ee\u00ef\u0005=\u0000\u0000\u00ef"+ + "\u00f0\u0005=\u0000\u0000\u00f02\u0001\u0000\u0000\u0000\u00f1\u00f2\u0005"+ + "!\u0000\u0000\u00f2\u00f3\u0005=\u0000\u0000\u00f34\u0001\u0000\u0000"+ + "\u0000\u00f4\u00f5\u0005!\u0000\u0000\u00f56\u0001\u0000\u0000\u0000\u00f6"+ + "\u00f7\u0005&\u0000\u0000\u00f7\u00f8\u0005&\u0000\u0000\u00f88\u0001"+ + "\u0000\u0000\u0000\u00f9\u00fa\u0005|\u0000\u0000\u00fa\u00fb\u0005|\u0000"+ + "\u0000\u00fb:\u0001\u0000\u0000\u0000\u00fc\u00fd\u0005.\u0000\u0000\u00fd"+ + "<\u0001\u0000\u0000\u0000\u00fe\u00ff\u0005(\u0000\u0000\u00ff>\u0001"+ + "\u0000\u0000\u0000\u0100\u0101\u0005)\u0000\u0000\u0101@\u0001\u0000\u0000"+ + "\u0000\u0102\u0103\u0005{\u0000\u0000\u0103B\u0001\u0000\u0000\u0000\u0104"+ + "\u0105\u0005}\u0000\u0000\u0105D\u0001\u0000\u0000\u0000\u0106\u0107\u0005"+ + ";\u0000\u0000\u0107F\u0001\u0000\u0000\u0000\u0108\u0109\u0005,\u0000"+ + "\u0000\u0109H\u0001\u0000\u0000\u0000\u010a\u010b\u0005c\u0000\u0000\u010b"+ + "\u010c\u0005l\u0000\u0000\u010c\u010d\u0005a\u0000\u0000\u010d\u010e\u0005"+ + "s\u0000\u0000\u010e\u010f\u0005s\u0000\u0000\u010fJ\u0001\u0000\u0000"+ + "\u0000\u0110\u0111\u0005t\u0000\u0000\u0111\u0112\u0005h\u0000\u0000\u0112"+ + "\u0113\u0005i\u0000\u0000\u0113\u0114\u0005s\u0000\u0000\u0114L\u0001"+ + "\u0000\u0000\u0000\u0115\u0116\u0005w\u0000\u0000\u0116\u0117\u0005h\u0000"+ + "\u0000\u0117\u0118\u0005i\u0000\u0000\u0118\u0119\u0005l\u0000\u0000\u0119"+ + "\u011a\u0005e\u0000\u0000\u011aN\u0001\u0000\u0000\u0000\u011b\u011c\u0005"+ + "i\u0000\u0000\u011c\u011d\u0005f\u0000\u0000\u011dP\u0001\u0000\u0000"+ + "\u0000\u011e\u011f\u0005e\u0000\u0000\u011f\u0120\u0005l\u0000\u0000\u0120"+ + "\u0121\u0005s\u0000\u0000\u0121\u0122\u0005e\u0000\u0000\u0122R\u0001"+ + "\u0000\u0000\u0000\u0123\u0124\u0005r\u0000\u0000\u0124\u0125\u0005e\u0000"+ + "\u0000\u0125\u0126\u0005t\u0000\u0000\u0126\u0127\u0005u\u0000\u0000\u0127"+ + "\u0128\u0005r\u0000\u0000\u0128\u0129\u0005n\u0000\u0000\u0129T\u0001"+ + "\u0000\u0000\u0000\u012a\u012b\u0005n\u0000\u0000\u012b\u012c\u0005e\u0000"+ + "\u0000\u012c\u012d\u0005w\u0000\u0000\u012dV\u0001\u0000\u0000\u0000\u012e"+ + "\u0130\u0007\u0000\u0000\u0000\u012f\u012e\u0001\u0000\u0000\u0000\u0130"+ + "\u0133\u0001\u0000\u0000\u0000\u0131\u012f\u0001\u0000\u0000\u0000\u0131"+ + "\u0132\u0001\u0000\u0000\u0000\u0132\u0135\u0001\u0000\u0000\u0000\u0133"+ + "\u0131\u0001\u0000\u0000\u0000\u0134\u0136\u0007\u0001\u0000\u0000\u0135"+ + "\u0134\u0001\u0000\u0000\u0000\u0136\u0137\u0001\u0000\u0000\u0000\u0137"+ + "\u0135\u0001\u0000\u0000\u0000\u0137\u0138\u0001\u0000\u0000\u0000\u0138"+ + "X\u0001\u0000\u0000\u0000\u0139\u013b\u0005\'\u0000\u0000\u013a\u013c"+ + "\b\u0002\u0000\u0000\u013b\u013a\u0001\u0000\u0000\u0000\u013b\u013c\u0001"+ + "\u0000\u0000\u0000\u013c\u013d\u0001\u0000\u0000\u0000\u013d\u013e\u0005"+ + "\'\u0000\u0000\u013eZ\u0001\u0000\u0000\u0000\u013f\u0140\u0007\u0003"+ + "\u0000\u0000\u0140\\\u0001\u0000\u0000\u0000\u0141\u0142\u0007\u0001\u0000"+ + "\u0000\u0142^\u0001\u0000\u0000\u0000\u0143\u0147\u0003[-\u0000\u0144"+ + "\u0147\u0003].\u0000\u0145\u0147\u0007\u0004\u0000\u0000\u0146\u0143\u0001"+ + "\u0000\u0000\u0000\u0146\u0144\u0001\u0000\u0000\u0000\u0146\u0145\u0001"+ + "\u0000\u0000\u0000\u0147`\u0001\u0000\u0000\u0000\u0148\u014c\u0003[-"+ + "\u0000\u0149\u014b\u0003_/\u0000\u014a\u0149\u0001\u0000\u0000\u0000\u014b"+ + "\u014e\u0001\u0000\u0000\u0000\u014c\u014a\u0001\u0000\u0000\u0000\u014c"+ + "\u014d\u0001\u0000\u0000\u0000\u014db\u0001\u0000\u0000\u0000\u014e\u014c"+ + "\u0001\u0000\u0000\u0000\u014f\u0150\u0007\u0005\u0000\u0000\u0150\u0151"+ + "\u0001\u0000\u0000\u0000\u0151\u0152\u00061\u0000\u0000\u0152d\u0001\u0000"+ + "\u0000\u0000\u000b\u0000x\u00c6\u00ca\u00d2\u00d6\u0131\u0137\u013b\u0146"+ + "\u014c\u0001\u0006\u0000\u0000"; public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray()); static { diff --git a/src/main/java/gen/DecafLexer.tokens b/src/main/java/gen/DecafLexer.tokens index 501cbd7..88dd76e 100644 --- a/src/main/java/gen/DecafLexer.tokens +++ b/src/main/java/gen/DecafLexer.tokens @@ -1,81 +1,85 @@ -BooleanValue=1 -NullValue=2 -AccessModifierPublic=3 -MainMethodDecl=4 -Void=5 -Int=6 -Boolean=7 -Char=8 -DotOperator=9 -LineOperator=10 -ComparisonOperator=11 -LogicalOpertor=12 -Assign=13 -Minus=14 -Plus=15 -Multipilkation=16 -Division=17 -Modulo=18 -Greater=19 -Less=20 -GreaterEqual=21 -LessEqual=22 -Equal=23 -NotEqual=24 -Not=25 -And=26 -Or=27 -Dot=28 -OpenRoundBracket=29 -ClosedRoundBracket=30 -OpenCurlyBracket=31 -ClosedCurlyBracket=32 -Semicolon=33 -Comma=34 -Class=35 -This=36 -While=37 -If=38 -Else=39 -Return=40 -New=41 -IntValue=42 -CharValue=43 -Identifier=44 -WS=45 -'null'=2 -'public'=3 -'public static void main(String[] args)'=4 -'void'=5 -'int'=6 -'boolean'=7 -'char'=8 -'='=13 -'-'=14 -'+'=15 -'*'=16 -'/'=17 -'%'=18 -'>'=19 -'<'=20 -'>='=21 -'<='=22 -'=='=23 -'!='=24 -'!'=25 -'&&'=26 -'||'=27 -'.'=28 -'('=29 -')'=30 -'{'=31 -'}'=32 -';'=33 -','=34 -'class'=35 -'this'=36 -'while'=37 -'if'=38 -'else'=39 -'return'=40 -'new'=41 +T__0=1 +T__1=2 +BooleanValue=3 +NullValue=4 +AccessModifierPublic=5 +MainMethodDecl=6 +Void=7 +Int=8 +Boolean=9 +Char=10 +DotOperator=11 +LineOperator=12 +ComparisonOperator=13 +LogicalOpertor=14 +Assign=15 +Minus=16 +Plus=17 +Multipilkation=18 +Division=19 +Modulo=20 +Greater=21 +Less=22 +GreaterEqual=23 +LessEqual=24 +Equal=25 +NotEqual=26 +Not=27 +And=28 +Or=29 +Dot=30 +OpenRoundBracket=31 +ClosedRoundBracket=32 +OpenCurlyBracket=33 +ClosedCurlyBracket=34 +Semicolon=35 +Comma=36 +Class=37 +This=38 +While=39 +If=40 +Else=41 +Return=42 +New=43 +IntValue=44 +CharValue=45 +Identifier=46 +WS=47 +'print('=1 +');'=2 +'null'=4 +'public'=5 +'public static void main(String[] args)'=6 +'void'=7 +'int'=8 +'boolean'=9 +'char'=10 +'='=15 +'-'=16 +'+'=17 +'*'=18 +'/'=19 +'%'=20 +'>'=21 +'<'=22 +'>='=23 +'<='=24 +'=='=25 +'!='=26 +'!'=27 +'&&'=28 +'||'=29 +'.'=30 +'('=31 +')'=32 +'{'=33 +'}'=34 +';'=35 +','=36 +'class'=37 +'this'=38 +'while'=39 +'if'=40 +'else'=41 +'return'=42 +'new'=43 diff --git a/src/main/java/gen/DecafListener.java b/src/main/java/gen/DecafListener.java index 1009cd4..9b69a07 100644 --- a/src/main/java/gen/DecafListener.java +++ b/src/main/java/gen/DecafListener.java @@ -357,4 +357,14 @@ public interface DecafListener extends ParseTreeListener { * @param ctx the parse tree */ void exitValue(DecafParser.ValueContext ctx); + /** + * Enter a parse tree produced by {@link DecafParser#print}. + * @param ctx the parse tree + */ + void enterPrint(DecafParser.PrintContext ctx); + /** + * Exit a parse tree produced by {@link DecafParser#print}. + * @param ctx the parse tree + */ + void exitPrint(DecafParser.PrintContext ctx); } \ No newline at end of file diff --git a/src/main/java/gen/DecafParser.java b/src/main/java/gen/DecafParser.java index 2eca0af..ee5c432 100644 --- a/src/main/java/gen/DecafParser.java +++ b/src/main/java/gen/DecafParser.java @@ -17,14 +17,14 @@ public class DecafParser extends Parser { protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); public static final int - BooleanValue=1, NullValue=2, AccessModifierPublic=3, MainMethodDecl=4, - Void=5, Int=6, Boolean=7, Char=8, DotOperator=9, LineOperator=10, ComparisonOperator=11, - LogicalOpertor=12, Assign=13, Minus=14, Plus=15, Multipilkation=16, Division=17, - Modulo=18, Greater=19, Less=20, GreaterEqual=21, LessEqual=22, Equal=23, - NotEqual=24, Not=25, And=26, Or=27, Dot=28, OpenRoundBracket=29, ClosedRoundBracket=30, - OpenCurlyBracket=31, ClosedCurlyBracket=32, Semicolon=33, Comma=34, Class=35, - This=36, While=37, If=38, Else=39, Return=40, New=41, IntValue=42, CharValue=43, - Identifier=44, WS=45; + T__0=1, T__1=2, BooleanValue=3, NullValue=4, AccessModifierPublic=5, MainMethodDecl=6, + Void=7, Int=8, Boolean=9, Char=10, DotOperator=11, LineOperator=12, ComparisonOperator=13, + LogicalOpertor=14, Assign=15, Minus=16, Plus=17, Multipilkation=18, Division=19, + Modulo=20, Greater=21, Less=22, GreaterEqual=23, LessEqual=24, Equal=25, + NotEqual=26, Not=27, And=28, Or=29, Dot=30, OpenRoundBracket=31, ClosedRoundBracket=32, + OpenCurlyBracket=33, ClosedCurlyBracket=34, Semicolon=35, Comma=36, Class=37, + This=38, While=39, If=40, Else=41, Return=42, New=43, IntValue=44, CharValue=45, + Identifier=46, WS=47; public static final int RULE_program = 0, RULE_classdecl = 1, RULE_constuctorDecl = 2, RULE_methodDecl = 3, RULE_parameterList = 4, RULE_parameter = 5, RULE_argumentList = 6, RULE_expression = 7, @@ -34,7 +34,8 @@ public class DecafParser extends Parser { RULE_nonCalcOperator = 20, RULE_returnStmt = 21, RULE_localVarDecl = 22, RULE_block = 23, RULE_whileStmt = 24, RULE_ifElseStmt = 25, RULE_ifStmt = 26, RULE_elseStmt = 27, RULE_assign = 28, RULE_newDecl = 29, RULE_receiver = 30, - RULE_receivingMethod = 31, RULE_emptyStatement = 32, RULE_type = 33, RULE_value = 34; + RULE_receivingMethod = 31, RULE_emptyStatement = 32, RULE_type = 33, RULE_value = 34, + RULE_print = 35; private static String[] makeRuleNames() { return new String[] { "program", "classdecl", "constuctorDecl", "methodDecl", "parameterList", @@ -43,14 +44,14 @@ public class DecafParser extends Parser { "binaryExpr", "calcExpr", "dotExpr", "dotSubExpr", "nonCalcExpr", "nonCalcOperator", "returnStmt", "localVarDecl", "block", "whileStmt", "ifElseStmt", "ifStmt", "elseStmt", "assign", "newDecl", "receiver", "receivingMethod", "emptyStatement", - "type", "value" + "type", "value", "print" }; } public static final String[] ruleNames = makeRuleNames(); private static String[] makeLiteralNames() { return new String[] { - null, null, "'null'", "'public'", "'public static void main(String[] args)'", + null, "'print('", "');'", null, "'null'", "'public'", "'public static void main(String[] args)'", "'void'", "'int'", "'boolean'", "'char'", null, null, null, null, "'='", "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='", "'<='", "'=='", "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'", "'}'", "';'", @@ -61,11 +62,11 @@ public class DecafParser extends Parser { private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { - null, "BooleanValue", "NullValue", "AccessModifierPublic", "MainMethodDecl", - "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", "ComparisonOperator", - "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", "Division", - "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", "Equal", "NotEqual", - "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket", + null, null, null, "BooleanValue", "NullValue", "AccessModifierPublic", + "MainMethodDecl", "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", + "ComparisonOperator", "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", + "Division", "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", + "Equal", "NotEqual", "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket", "OpenCurlyBracket", "ClosedCurlyBracket", "Semicolon", "Comma", "Class", "This", "While", "If", "Else", "Return", "New", "IntValue", "CharValue", "Identifier", "WS" @@ -156,17 +157,17 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(71); + setState(73); _errHandler.sync(this); _la = _input.LA(1); do { { { - setState(70); + setState(72); classdecl(); } } - setState(73); + setState(75); _errHandler.sync(this); _la = _input.LA(1); } while ( _la==AccessModifierPublic || _la==Class ); @@ -238,67 +239,67 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(76); + setState(78); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(75); + setState(77); match(AccessModifierPublic); } } - setState(78); - match(Class); - setState(79); - match(Identifier); setState(80); + match(Class); + setState(81); + match(Identifier); + setState(82); match(OpenCurlyBracket); - setState(86); + setState(88); _errHandler.sync(this); _la = _input.LA(1); - while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044904L) != 0)) { + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179616L) != 0)) { { - setState(84); + setState(86); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) { case 1: { - setState(81); + setState(83); constuctorDecl(); } break; case 2: { - setState(82); + setState(84); localVarDecl(); } break; case 3: { - setState(83); + setState(85); methodDecl(); } break; } } - setState(88); + setState(90); _errHandler.sync(this); _la = _input.LA(1); } - setState(91); + setState(93); _errHandler.sync(this); _la = _input.LA(1); if (_la==MainMethodDecl) { { - setState(89); + setState(91); match(MainMethodDecl); - setState(90); + setState(92); block(); } } - setState(93); + setState(95); match(ClosedCurlyBracket); } } @@ -351,33 +352,33 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(96); + setState(98); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(95); + setState(97); match(AccessModifierPublic); } } - setState(98); + setState(100); match(Identifier); - setState(99); - match(OpenRoundBracket); setState(101); + match(OpenRoundBracket); + setState(103); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179456L) != 0)) { { - setState(100); + setState(102); parameterList(); } } - setState(103); + setState(105); match(ClosedRoundBracket); - setState(104); + setState(106); block(); } } @@ -434,17 +435,17 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(107); + setState(109); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(106); + setState(108); match(AccessModifierPublic); } } - setState(111); + setState(113); _errHandler.sync(this); switch (_input.LA(1)) { case Int: @@ -452,36 +453,36 @@ public class DecafParser extends Parser { case Char: case Identifier: { - setState(109); + setState(111); type(); } break; case Void: { - setState(110); + setState(112); match(Void); } break; default: throw new NoViableAltException(this); } - setState(113); + setState(115); match(Identifier); - setState(114); - match(OpenRoundBracket); setState(116); + match(OpenRoundBracket); + setState(118); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179456L) != 0)) { { - setState(115); + setState(117); parameterList(); } } - setState(118); + setState(120); match(ClosedRoundBracket); - setState(119); + setState(121); block(); } } @@ -534,21 +535,21 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(121); + setState(123); parameter(); - setState(126); + setState(128); _errHandler.sync(this); _la = _input.LA(1); while (_la==Comma) { { { - setState(122); + setState(124); match(Comma); - setState(123); + setState(125); parameter(); } } - setState(128); + setState(130); _errHandler.sync(this); _la = _input.LA(1); } @@ -596,9 +597,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(129); + setState(131); type(); - setState(130); + setState(132); match(Identifier); } } @@ -649,18 +650,18 @@ public class DecafParser extends Parser { enterRule(_localctx, 12, RULE_argumentList); int _la; try { - setState(142); + setState(144); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(133); + setState(135); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33054638735366L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 132218554941464L) != 0)) { { - setState(132); + setState(134); expression(); } } @@ -670,21 +671,21 @@ public class DecafParser extends Parser { case 2: enterOuterAlt(_localctx, 2); { - setState(135); + setState(137); expression(); - setState(138); + setState(140); _errHandler.sync(this); _la = _input.LA(1); do { { { - setState(136); + setState(138); match(Comma); - setState(137); + setState(139); expression(); } } - setState(140); + setState(142); _errHandler.sync(this); _la = _input.LA(1); } while ( _la==Comma ); @@ -734,20 +735,20 @@ public class DecafParser extends Parser { ExpressionContext _localctx = new ExpressionContext(_ctx, getState()); enterRule(_localctx, 14, RULE_expression); try { - setState(146); + setState(148); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(144); + setState(146); subExpression(); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(145); + setState(147); binaryExpr(); } break; @@ -801,38 +802,38 @@ public class DecafParser extends Parser { SubExpressionContext _localctx = new SubExpressionContext(_ctx, getState()); enterRule(_localctx, 16, RULE_subExpression); try { - setState(155); + setState(157); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(148); + setState(150); match(This); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(149); + setState(151); assignableExpr(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(150); + setState(152); stmtExpr(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(151); - match(OpenRoundBracket); - setState(152); - subExpression(); setState(153); + match(OpenRoundBracket); + setState(154); + subExpression(); + setState(155); match(ClosedRoundBracket); } break; @@ -892,39 +893,39 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(158); + setState(160); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) { case 1: { - setState(157); + setState(159); receiver(); } break; } - setState(163); + setState(165); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,17,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(160); + setState(162); receivingMethod(); } } } - setState(165); + setState(167); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,17,_ctx); } - setState(166); - match(Identifier); - setState(167); - match(OpenRoundBracket); setState(168); - argumentList(); + match(Identifier); setState(169); + match(OpenRoundBracket); + setState(170); + argumentList(); + setState(171); match(ClosedRoundBracket); } } @@ -957,6 +958,9 @@ public class DecafParser extends Parser { public IfElseStmtContext ifElseStmt() { return getRuleContext(IfElseStmtContext.class,0); } + public PrintContext print() { + return getRuleContext(PrintContext.class,0); + } public StmtExprContext stmtExpr() { return getRuleContext(StmtExprContext.class,0); } @@ -986,59 +990,66 @@ public class DecafParser extends Parser { StatementContext _localctx = new StatementContext(_ctx, getState()); enterRule(_localctx, 20, RULE_statement); try { - setState(182); + setState(185); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,18,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(171); + setState(173); returnStmt(); - setState(172); + setState(174); match(Semicolon); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(174); + setState(176); localVarDecl(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(175); + setState(177); block(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(176); + setState(178); whileStmt(); } break; case 5: enterOuterAlt(_localctx, 5); { - setState(177); + setState(179); ifElseStmt(); } break; case 6: enterOuterAlt(_localctx, 6); { - setState(178); - stmtExpr(); - setState(179); - match(Semicolon); + setState(180); + print(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(181); + stmtExpr(); + setState(182); + match(Semicolon); + } + break; + case 8: + enterOuterAlt(_localctx, 8); + { + setState(184); emptyStatement(); } break; @@ -1089,27 +1100,27 @@ public class DecafParser extends Parser { StmtExprContext _localctx = new StmtExprContext(_ctx, getState()); enterRule(_localctx, 22, RULE_stmtExpr); try { - setState(187); + setState(190); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(184); + setState(187); assign(); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(185); + setState(188); newDecl(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(186); + setState(189); methodCall(); } break; @@ -1155,20 +1166,20 @@ public class DecafParser extends Parser { AssignableExprContext _localctx = new AssignableExprContext(_ctx, getState()); enterRule(_localctx, 24, RULE_assignableExpr); try { - setState(191); + setState(194); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(189); + setState(192); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(190); + setState(193); instVar(); } break; @@ -1219,31 +1230,31 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(196); + setState(199); _errHandler.sync(this); switch (_input.LA(1)) { case This: { - setState(193); + setState(196); match(This); } break; case New: { - setState(194); + setState(197); newDecl(); } break; case Identifier: { - setState(195); + setState(198); match(Identifier); } break; default: throw new NoViableAltException(this); } - setState(198); + setState(201); match(Dot); } } @@ -1300,7 +1311,7 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(201); + setState(204); _errHandler.sync(this); _alt = 1; do { @@ -1308,7 +1319,7 @@ public class DecafParser extends Parser { case 1: { { - setState(200); + setState(203); subReceiver(); } } @@ -1316,27 +1327,27 @@ public class DecafParser extends Parser { default: throw new NoViableAltException(this); } - setState(203); + setState(206); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,22,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); - setState(208); + setState(211); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,23,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(205); + setState(208); receivingMethod(); } } } - setState(210); + setState(213); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,23,_ctx); } - setState(211); + setState(214); match(Identifier); } } @@ -1389,36 +1400,36 @@ public class DecafParser extends Parser { BinaryExprContext _localctx = new BinaryExprContext(_ctx, getState()); enterRule(_localctx, 30, RULE_binaryExpr); try { - setState(218); + setState(221); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(213); + setState(216); calcExpr(0); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(214); + setState(217); nonCalcExpr(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(215); + setState(218); value(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(216); + setState(219); match(Not); - setState(217); + setState(220); binaryExpr(); } break; @@ -1479,11 +1490,11 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(221); + setState(224); dotExpr(0); } _ctx.stop = _input.LT(-1); - setState(228); + setState(231); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,25,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { @@ -1494,16 +1505,16 @@ public class DecafParser extends Parser { { _localctx = new CalcExprContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_calcExpr); - setState(223); + setState(226); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); - setState(224); + setState(227); match(LineOperator); - setState(225); + setState(228); dotExpr(0); } } } - setState(230); + setState(233); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,25,_ctx); } @@ -1564,11 +1575,11 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(232); + setState(235); dotSubExpr(); } _ctx.stop = _input.LT(-1); - setState(239); + setState(242); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,26,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { @@ -1579,16 +1590,16 @@ public class DecafParser extends Parser { { _localctx = new DotExprContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_dotExpr); - setState(234); + setState(237); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); - setState(235); + setState(238); match(DotOperator); - setState(236); + setState(239); dotSubExpr(); } } } - setState(241); + setState(244); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,26,_ctx); } @@ -1643,45 +1654,45 @@ public class DecafParser extends Parser { DotSubExprContext _localctx = new DotSubExprContext(_ctx, getState()); enterRule(_localctx, 36, RULE_dotSubExpr); try { - setState(250); + setState(253); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(242); + setState(245); match(IntValue); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(243); + setState(246); match(Identifier); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(244); + setState(247); instVar(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(245); + setState(248); methodCall(); } break; case 5: enterOuterAlt(_localctx, 5); { - setState(246); + setState(249); match(OpenRoundBracket); - setState(247); + setState(250); calcExpr(0); - setState(248); + setState(251); match(ClosedRoundBracket); } break; @@ -1734,11 +1745,11 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(252); + setState(255); subExpression(); - setState(253); + setState(256); nonCalcOperator(); - setState(254); + setState(257); expression(); } } @@ -1783,7 +1794,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(256); + setState(259); _la = _input.LA(1); if ( !(_la==ComparisonOperator || _la==LogicalOpertor) ) { _errHandler.recoverInline(this); @@ -1838,14 +1849,14 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(258); + setState(261); match(Return); - setState(260); + setState(263); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33054638735366L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 132218554941464L) != 0)) { { - setState(259); + setState(262); expression(); } } @@ -1901,33 +1912,33 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(263); + setState(266); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(262); + setState(265); match(AccessModifierPublic); } } - setState(265); + setState(268); type(); - setState(266); - match(Identifier); setState(269); + match(Identifier); + setState(272); _errHandler.sync(this); _la = _input.LA(1); if (_la==Assign) { { - setState(267); + setState(270); match(Assign); - setState(268); + setState(271); expression(); } } - setState(271); + setState(274); match(Semicolon); } } @@ -1978,23 +1989,23 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(273); + setState(276); match(OpenCurlyBracket); - setState(277); + setState(280); _errHandler.sync(this); _la = _input.LA(1); - while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 21382494683592L) != 0)) { + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 85529978734370L) != 0)) { { { - setState(274); + setState(277); statement(); } } - setState(279); + setState(282); _errHandler.sync(this); _la = _input.LA(1); } - setState(280); + setState(283); match(ClosedCurlyBracket); } } @@ -2045,15 +2056,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(282); - match(While); - setState(283); - match(OpenRoundBracket); - setState(284); - expression(); setState(285); - match(ClosedRoundBracket); + match(While); setState(286); + match(OpenRoundBracket); + setState(287); + expression(); + setState(288); + match(ClosedRoundBracket); + setState(289); statement(); } } @@ -2101,14 +2112,14 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(288); + setState(291); ifStmt(); - setState(290); + setState(293); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) { case 1: { - setState(289); + setState(292); elseStmt(); } break; @@ -2162,15 +2173,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(292); - match(If); - setState(293); - match(OpenRoundBracket); - setState(294); - expression(); setState(295); - match(ClosedRoundBracket); + match(If); setState(296); + match(OpenRoundBracket); + setState(297); + expression(); + setState(298); + match(ClosedRoundBracket); + setState(299); statement(); } } @@ -2216,9 +2227,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(298); + setState(301); match(Else); - setState(299); + setState(302); statement(); } } @@ -2267,11 +2278,11 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(301); + setState(304); assignableExpr(); - setState(302); + setState(305); match(Assign); - setState(303); + setState(306); expression(); } } @@ -2320,15 +2331,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(305); - match(New); - setState(306); - match(Identifier); - setState(307); - match(OpenRoundBracket); setState(308); - argumentList(); + match(New); setState(309); + match(Identifier); + setState(310); + match(OpenRoundBracket); + setState(311); + argumentList(); + setState(312); match(ClosedRoundBracket); } } @@ -2380,35 +2391,35 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(315); + setState(318); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) { case 1: { - setState(311); + setState(314); match(This); } break; case 2: { - setState(312); + setState(315); instVar(); } break; case 3: { - setState(313); + setState(316); newDecl(); } break; case 4: { - setState(314); + setState(317); match(Identifier); } break; } - setState(317); + setState(320); match(Dot); } } @@ -2458,15 +2469,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(319); - match(Identifier); - setState(320); - match(OpenRoundBracket); - setState(321); - argumentList(); setState(322); - match(ClosedRoundBracket); + match(Identifier); setState(323); + match(OpenRoundBracket); + setState(324); + argumentList(); + setState(325); + match(ClosedRoundBracket); + setState(326); match(Dot); } } @@ -2509,7 +2520,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(325); + setState(328); match(Semicolon); } } @@ -2556,9 +2567,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(327); + setState(330); _la = _input.LA(1); - if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) ) { + if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179456L) != 0)) ) { _errHandler.recoverInline(this); } else { @@ -2611,9 +2622,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(329); + setState(332); _la = _input.LA(1); - if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 13194139533318L) != 0)) ) { + if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 52776558133272L) != 0)) ) { _errHandler.recoverInline(this); } else { @@ -2634,6 +2645,53 @@ public class DecafParser extends Parser { return _localctx; } + @SuppressWarnings("CheckReturnValue") + public static class PrintContext extends ParserRuleContext { + public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); } + public PrintContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_print; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof DecafListener ) ((DecafListener)listener).enterPrint(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof DecafListener ) ((DecafListener)listener).exitPrint(this); + } + @Override + public