From 8aeae09e74b46ca52866f22b48f55fecdf27b849 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Patrick=20Sch=C3=B6nberger?= Date: Mon, 2 Aug 2021 14:43:11 +0200 Subject: [PATCH] type modifiers, parenthesized expressions, chained access expressions --- Toc.g4 | 15 +- gen/Toc.interp | 6 +- gen/Toc.tokens | 125 ++--- gen/TocLexer.cpp | 480 +++++++++--------- gen/TocLexer.h | 5 +- gen/TocLexer.interp | 8 +- gen/TocLexer.tokens | 125 ++--- gen/TocParser.cpp | 1127 ++++++++++++++++++++++--------------------- gen/TocParser.h | 7 +- src/MyListener.h | 64 --- src/check.h | 49 ++ src/main.cpp | 10 +- src/repr.h | 4 + src/repr_get.h | 54 ++- src/toc.h | 293 ++--------- test.toc | 37 +- todo.txt | 5 +- 17 files changed, 1134 insertions(+), 1280 deletions(-) delete mode 100644 src/MyListener.h create mode 100644 src/check.h diff --git a/Toc.g4 b/Toc.g4 index 2170321..afe4209 100644 --- a/Toc.g4 +++ b/Toc.g4 @@ -2,7 +2,7 @@ grammar Toc; prog: (decl)+ EOF; -decl: varDecl +decl: varDecl ';' | funcDecl | structDecl ; @@ -12,7 +12,7 @@ var: varName (':' type) ('=' expr)?; varInit: varName (':' type) ('=' expr); type: typeName (typeModifier)*; -typeModifier: '*' | '[' NUMBER? ']'; +typeModifier: '*' | ('[' (INT_LIT)? ']'); funcDecl: 'func' func; @@ -24,18 +24,18 @@ body: '{' stmt* '}'; structDecl: 'struct' structName '{' structMember* '}'; structMember: structVar | structMethod; -structVar: var; +structVar: var ';'; structMethod: func; -stmt: varDecl +stmt: varDecl ';' | ifStmt | switchStmt | forStmt | whileStmt - | assignStmt - | returnStmt - | expr; + | assignStmt ';' + | returnStmt ';' + | expr ';'; ifStmt: 'if' expr body elseIfStmt* elseStmt?; elseIfStmt: 'else' 'if' expr body; @@ -115,4 +115,3 @@ BOOL_LIT: 'true' | 'false'; NAME: ([a-z] | [A-Z] | [0-9])+; WS: [ \t\r\n]+ -> skip; NEWLINE: [\r\n]+; -NUMBER: [0-9]+; diff --git a/gen/Toc.interp b/gen/Toc.interp index f161181..4111b6a 100644 --- a/gen/Toc.interp +++ b/gen/Toc.interp @@ -1,5 +1,6 @@ token literal names: null +';' 'var' ':' '=' @@ -61,7 +62,6 @@ null null null null -null token symbolic names: null @@ -119,6 +119,7 @@ null null null null +null INT_LIT DECIMAL_LIT STRING_LIT @@ -126,7 +127,6 @@ BOOL_LIT NAME WS NEWLINE -NUMBER rule names: prog @@ -181,4 +181,4 @@ binary_op atn: -[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 64, 374, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 3, 2, 6, 2, 102, 10, 2, 13, 2, 14, 2, 103, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 5, 3, 111, 10, 3, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 5, 5, 122, 10, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 7, 7, 133, 10, 7, 12, 7, 14, 7, 136, 11, 7, 3, 8, 3, 8, 3, 8, 5, 8, 141, 10, 8, 3, 8, 5, 8, 144, 10, 8, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 7, 11, 161, 10, 11, 12, 11, 14, 11, 164, 11, 11, 5, 11, 166, 10, 11, 3, 12, 3, 12, 7, 12, 170, 10, 12, 12, 12, 14, 12, 173, 11, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 7, 13, 181, 10, 13, 12, 13, 14, 13, 184, 11, 13, 3, 13, 3, 13, 3, 14, 3, 14, 5, 14, 190, 10, 14, 3, 15, 3, 15, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 5, 17, 204, 10, 17, 3, 18, 3, 18, 3, 18, 3, 18, 7, 18, 210, 10, 18, 12, 18, 14, 18, 213, 11, 18, 3, 18, 5, 18, 216, 10, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 7, 22, 232, 10, 22, 12, 22, 14, 22, 235, 11, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 5, 24, 246, 10, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 271, 10, 28, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 278, 10, 29, 3, 30, 3, 30, 3, 30, 5, 30, 283, 10, 30, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 7, 31, 290, 10, 31, 12, 31, 14, 31, 293, 11, 31, 5, 31, 295, 10, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32, 5, 32, 303, 10, 32, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 7, 33, 311, 10, 33, 12, 33, 14, 33, 314, 11, 33, 3, 34, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37, 3, 38, 3, 38, 3, 39, 3, 39, 6, 39, 334, 10, 39, 13, 39, 14, 39, 335, 3, 40, 3, 40, 5, 40, 340, 10, 40, 3, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 45, 3, 45, 3, 46, 3, 46, 3, 47, 3, 47, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 5, 49, 370, 10, 49, 3, 50, 3, 50, 3, 50, 2, 2, 51, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 2, 6, 3, 2, 57, 60, 3, 2, 24, 25, 3, 2, 26, 27, 5, 2, 6, 6, 28, 29, 32, 56, 2, 372, 2, 101, 3, 2, 2, 2, 4, 110, 3, 2, 2, 2, 6, 112, 3, 2, 2, 2, 8, 115, 3, 2, 2, 2, 10, 123, 3, 2, 2, 2, 12, 130, 3, 2, 2, 2, 14, 143, 3, 2, 2, 2, 16, 145, 3, 2, 2, 2, 18, 148, 3, 2, 2, 2, 20, 165, 3, 2, 2, 2, 22, 167, 3, 2, 2, 2, 24, 176, 3, 2, 2, 2, 26, 189, 3, 2, 2, 2, 28, 191, 3, 2, 2, 2, 30, 193, 3, 2, 2, 2, 32, 203, 3, 2, 2, 2, 34, 205, 3, 2, 2, 2, 36, 217, 3, 2, 2, 2, 38, 222, 3, 2, 2, 2, 40, 225, 3, 2, 2, 2, 42, 229, 3, 2, 2, 2, 44, 238, 3, 2, 2, 2, 46, 242, 3, 2, 2, 2, 48, 253, 3, 2, 2, 2, 50, 257, 3, 2, 2, 2, 52, 261, 3, 2, 2, 2, 54, 270, 3, 2, 2, 2, 56, 277, 3, 2, 2, 2, 58, 282, 3, 2, 2, 2, 60, 284, 3, 2, 2, 2, 62, 302, 3, 2, 2, 2, 64, 304, 3, 2, 2, 2, 66, 315, 3, 2, 2, 2, 68, 318, 3, 2, 2, 2, 70, 321, 3, 2, 2, 2, 72, 327, 3, 2, 2, 2, 74, 329, 3, 2, 2, 2, 76, 331, 3, 2, 2, 2, 78, 339, 3, 2, 2, 2, 80, 341, 3, 2, 2, 2, 82, 344, 3, 2, 2, 2, 84, 348, 3, 2, 2, 2, 86, 352, 3, 2, 2, 2, 88, 354, 3, 2, 2, 2, 90, 356, 3, 2, 2, 2, 92, 358, 3, 2, 2, 2, 94, 360, 3, 2, 2, 2, 96, 369, 3, 2, 2, 2, 98, 371, 3, 2, 2, 2, 100, 102, 5, 4, 3, 2, 101, 100, 3, 2, 2, 2, 102, 103, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 105, 3, 2, 2, 2, 105, 106, 7, 2, 2, 3, 106, 3, 3, 2, 2, 2, 107, 111, 5, 6, 4, 2, 108, 111, 5, 16, 9, 2, 109, 111, 5, 24, 13, 2, 110, 107, 3, 2, 2, 2, 110, 108, 3, 2, 2, 2, 110, 109, 3, 2, 2, 2, 111, 5, 3, 2, 2, 2, 112, 113, 7, 3, 2, 2, 113, 114, 5, 8, 5, 2, 114, 7, 3, 2, 2, 2, 115, 116, 5, 88, 45, 2, 116, 117, 7, 4, 2, 2, 117, 118, 5, 12, 7, 2, 118, 121, 3, 2, 2, 2, 119, 120, 7, 5, 2, 2, 120, 122, 5, 54, 28, 2, 121, 119, 3, 2, 2, 2, 121, 122, 3, 2, 2, 2, 122, 9, 3, 2, 2, 2, 123, 124, 5, 88, 45, 2, 124, 125, 7, 4, 2, 2, 125, 126, 5, 12, 7, 2, 126, 127, 3, 2, 2, 2, 127, 128, 7, 5, 2, 2, 128, 129, 5, 54, 28, 2, 129, 11, 3, 2, 2, 2, 130, 134, 5, 90, 46, 2, 131, 133, 5, 14, 8, 2, 132, 131, 3, 2, 2, 2, 133, 136, 3, 2, 2, 2, 134, 132, 3, 2, 2, 2, 134, 135, 3, 2, 2, 2, 135, 13, 3, 2, 2, 2, 136, 134, 3, 2, 2, 2, 137, 144, 7, 6, 2, 2, 138, 140, 7, 7, 2, 2, 139, 141, 7, 64, 2, 2, 140, 139, 3, 2, 2, 2, 140, 141, 3, 2, 2, 2, 141, 142, 3, 2, 2, 2, 142, 144, 7, 8, 2, 2, 143, 137, 3, 2, 2, 2, 143, 138, 3, 2, 2, 2, 144, 15, 3, 2, 2, 2, 145, 146, 7, 9, 2, 2, 146, 147, 5, 18, 10, 2, 147, 17, 3, 2, 2, 2, 148, 149, 5, 86, 44, 2, 149, 150, 7, 10, 2, 2, 150, 151, 5, 20, 11, 2, 151, 152, 7, 11, 2, 2, 152, 153, 7, 4, 2, 2, 153, 154, 5, 12, 7, 2, 154, 155, 3, 2, 2, 2, 155, 156, 5, 22, 12, 2, 156, 19, 3, 2, 2, 2, 157, 162, 5, 8, 5, 2, 158, 159, 7, 12, 2, 2, 159, 161, 5, 8, 5, 2, 160, 158, 3, 2, 2, 2, 161, 164, 3, 2, 2, 2, 162, 160, 3, 2, 2, 2, 162, 163, 3, 2, 2, 2, 163, 166, 3, 2, 2, 2, 164, 162, 3, 2, 2, 2, 165, 157, 3, 2, 2, 2, 165, 166, 3, 2, 2, 2, 166, 21, 3, 2, 2, 2, 167, 171, 7, 13, 2, 2, 168, 170, 5, 32, 17, 2, 169, 168, 3, 2, 2, 2, 170, 173, 3, 2, 2, 2, 171, 169, 3, 2, 2, 2, 171, 172, 3, 2, 2, 2, 172, 174, 3, 2, 2, 2, 173, 171, 3, 2, 2, 2, 174, 175, 7, 14, 2, 2, 175, 23, 3, 2, 2, 2, 176, 177, 7, 15, 2, 2, 177, 178, 5, 92, 47, 2, 178, 182, 7, 13, 2, 2, 179, 181, 5, 26, 14, 2, 180, 179, 3, 2, 2, 2, 181, 184, 3, 2, 2, 2, 182, 180, 3, 2, 2, 2, 182, 183, 3, 2, 2, 2, 183, 185, 3, 2, 2, 2, 184, 182, 3, 2, 2, 2, 185, 186, 7, 14, 2, 2, 186, 25, 3, 2, 2, 2, 187, 190, 5, 28, 15, 2, 188, 190, 5, 30, 16, 2, 189, 187, 3, 2, 2, 2, 189, 188, 3, 2, 2, 2, 190, 27, 3, 2, 2, 2, 191, 192, 5, 8, 5, 2, 192, 29, 3, 2, 2, 2, 193, 194, 5, 18, 10, 2, 194, 31, 3, 2, 2, 2, 195, 204, 5, 6, 4, 2, 196, 204, 5, 34, 18, 2, 197, 204, 5, 40, 21, 2, 198, 204, 5, 46, 24, 2, 199, 204, 5, 48, 25, 2, 200, 204, 5, 50, 26, 2, 201, 204, 5, 52, 27, 2, 202, 204, 5, 54, 28, 2, 203, 195, 3, 2, 2, 2, 203, 196, 3, 2, 2, 2, 203, 197, 3, 2, 2, 2, 203, 198, 3, 2, 2, 2, 203, 199, 3, 2, 2, 2, 203, 200, 3, 2, 2, 2, 203, 201, 3, 2, 2, 2, 203, 202, 3, 2, 2, 2, 204, 33, 3, 2, 2, 2, 205, 206, 7, 16, 2, 2, 206, 207, 5, 54, 28, 2, 207, 211, 5, 22, 12, 2, 208, 210, 5, 36, 19, 2, 209, 208, 3, 2, 2, 2, 210, 213, 3, 2, 2, 2, 211, 209, 3, 2, 2, 2, 211, 212, 3, 2, 2, 2, 212, 215, 3, 2, 2, 2, 213, 211, 3, 2, 2, 2, 214, 216, 5, 38, 20, 2, 215, 214, 3, 2, 2, 2, 215, 216, 3, 2, 2, 2, 216, 35, 3, 2, 2, 2, 217, 218, 7, 17, 2, 2, 218, 219, 7, 16, 2, 2, 219, 220, 5, 54, 28, 2, 220, 221, 5, 22, 12, 2, 221, 37, 3, 2, 2, 2, 222, 223, 7, 17, 2, 2, 223, 224, 5, 22, 12, 2, 224, 39, 3, 2, 2, 2, 225, 226, 7, 18, 2, 2, 226, 227, 5, 72, 37, 2, 227, 228, 5, 42, 22, 2, 228, 41, 3, 2, 2, 2, 229, 233, 7, 13, 2, 2, 230, 232, 5, 44, 23, 2, 231, 230, 3, 2, 2, 2, 232, 235, 3, 2, 2, 2, 233, 231, 3, 2, 2, 2, 233, 234, 3, 2, 2, 2, 234, 236, 3, 2, 2, 2, 235, 233, 3, 2, 2, 2, 236, 237, 7, 14, 2, 2, 237, 43, 3, 2, 2, 2, 238, 239, 7, 19, 2, 2, 239, 240, 5, 54, 28, 2, 240, 241, 5, 22, 12, 2, 241, 45, 3, 2, 2, 2, 242, 245, 7, 20, 2, 2, 243, 246, 5, 10, 6, 2, 244, 246, 5, 50, 26, 2, 245, 243, 3, 2, 2, 2, 245, 244, 3, 2, 2, 2, 246, 247, 3, 2, 2, 2, 247, 248, 7, 12, 2, 2, 248, 249, 5, 54, 28, 2, 249, 250, 7, 12, 2, 2, 250, 251, 5, 54, 28, 2, 251, 252, 5, 22, 12, 2, 252, 47, 3, 2, 2, 2, 253, 254, 7, 21, 2, 2, 254, 255, 5, 54, 28, 2, 255, 256, 5, 22, 12, 2, 256, 49, 3, 2, 2, 2, 257, 258, 5, 72, 37, 2, 258, 259, 7, 5, 2, 2, 259, 260, 5, 54, 28, 2, 260, 51, 3, 2, 2, 2, 261, 262, 7, 22, 2, 2, 262, 263, 5, 54, 28, 2, 263, 53, 3, 2, 2, 2, 264, 271, 5, 60, 31, 2, 265, 271, 5, 74, 38, 2, 266, 271, 5, 72, 37, 2, 267, 271, 5, 84, 43, 2, 268, 271, 5, 76, 39, 2, 269, 271, 5, 62, 32, 2, 270, 264, 3, 2, 2, 2, 270, 265, 3, 2, 2, 2, 270, 266, 3, 2, 2, 2, 270, 267, 3, 2, 2, 2, 270, 268, 3, 2, 2, 2, 270, 269, 3, 2, 2, 2, 271, 55, 3, 2, 2, 2, 272, 278, 5, 60, 31, 2, 273, 278, 5, 74, 38, 2, 274, 278, 5, 72, 37, 2, 275, 278, 5, 84, 43, 2, 276, 278, 5, 76, 39, 2, 277, 272, 3, 2, 2, 2, 277, 273, 3, 2, 2, 2, 277, 274, 3, 2, 2, 2, 277, 275, 3, 2, 2, 2, 277, 276, 3, 2, 2, 2, 278, 57, 3, 2, 2, 2, 279, 283, 5, 60, 31, 2, 280, 283, 5, 72, 37, 2, 281, 283, 5, 84, 43, 2, 282, 279, 3, 2, 2, 2, 282, 280, 3, 2, 2, 2, 282, 281, 3, 2, 2, 2, 283, 59, 3, 2, 2, 2, 284, 285, 5, 86, 44, 2, 285, 294, 7, 10, 2, 2, 286, 291, 5, 54, 28, 2, 287, 288, 7, 12, 2, 2, 288, 290, 5, 54, 28, 2, 289, 287, 3, 2, 2, 2, 290, 293, 3, 2, 2, 2, 291, 289, 3, 2, 2, 2, 291, 292, 3, 2, 2, 2, 292, 295, 3, 2, 2, 2, 293, 291, 3, 2, 2, 2, 294, 286, 3, 2, 2, 2, 294, 295, 3, 2, 2, 2, 295, 296, 3, 2, 2, 2, 296, 297, 7, 11, 2, 2, 297, 61, 3, 2, 2, 2, 298, 303, 5, 64, 33, 2, 299, 303, 5, 66, 34, 2, 300, 303, 5, 68, 35, 2, 301, 303, 5, 70, 36, 2, 302, 298, 3, 2, 2, 2, 302, 299, 3, 2, 2, 2, 302, 300, 3, 2, 2, 2, 302, 301, 3, 2, 2, 2, 303, 63, 3, 2, 2, 2, 304, 305, 5, 56, 29, 2, 305, 306, 5, 98, 50, 2, 306, 312, 5, 56, 29, 2, 307, 308, 5, 98, 50, 2, 308, 309, 5, 56, 29, 2, 309, 311, 3, 2, 2, 2, 310, 307, 3, 2, 2, 2, 311, 314, 3, 2, 2, 2, 312, 310, 3, 2, 2, 2, 312, 313, 3, 2, 2, 2, 313, 65, 3, 2, 2, 2, 314, 312, 3, 2, 2, 2, 315, 316, 5, 96, 49, 2, 316, 317, 5, 56, 29, 2, 317, 67, 3, 2, 2, 2, 318, 319, 5, 56, 29, 2, 319, 320, 5, 94, 48, 2, 320, 69, 3, 2, 2, 2, 321, 322, 5, 56, 29, 2, 322, 323, 7, 23, 2, 2, 323, 324, 5, 54, 28, 2, 324, 325, 7, 4, 2, 2, 325, 326, 5, 54, 28, 2, 326, 71, 3, 2, 2, 2, 327, 328, 5, 88, 45, 2, 328, 73, 3, 2, 2, 2, 329, 330, 9, 2, 2, 2, 330, 75, 3, 2, 2, 2, 331, 333, 5, 58, 30, 2, 332, 334, 5, 78, 40, 2, 333, 332, 3, 2, 2, 2, 334, 335, 3, 2, 2, 2, 335, 333, 3, 2, 2, 2, 335, 336, 3, 2, 2, 2, 336, 77, 3, 2, 2, 2, 337, 340, 5, 80, 41, 2, 338, 340, 5, 82, 42, 2, 339, 337, 3, 2, 2, 2, 339, 338, 3, 2, 2, 2, 340, 79, 3, 2, 2, 2, 341, 342, 9, 3, 2, 2, 342, 343, 5, 72, 37, 2, 343, 81, 3, 2, 2, 2, 344, 345, 7, 7, 2, 2, 345, 346, 5, 54, 28, 2, 346, 347, 7, 8, 2, 2, 347, 83, 3, 2, 2, 2, 348, 349, 7, 10, 2, 2, 349, 350, 5, 54, 28, 2, 350, 351, 7, 11, 2, 2, 351, 85, 3, 2, 2, 2, 352, 353, 7, 61, 2, 2, 353, 87, 3, 2, 2, 2, 354, 355, 7, 61, 2, 2, 355, 89, 3, 2, 2, 2, 356, 357, 7, 61, 2, 2, 357, 91, 3, 2, 2, 2, 358, 359, 7, 61, 2, 2, 359, 93, 3, 2, 2, 2, 360, 361, 9, 4, 2, 2, 361, 95, 3, 2, 2, 2, 362, 370, 7, 28, 2, 2, 363, 370, 7, 29, 2, 2, 364, 370, 7, 30, 2, 2, 365, 370, 7, 31, 2, 2, 366, 370, 7, 32, 2, 2, 367, 370, 7, 6, 2, 2, 368, 370, 5, 94, 48, 2, 369, 362, 3, 2, 2, 2, 369, 363, 3, 2, 2, 2, 369, 364, 3, 2, 2, 2, 369, 365, 3, 2, 2, 2, 369, 366, 3, 2, 2, 2, 369, 367, 3, 2, 2, 2, 369, 368, 3, 2, 2, 2, 370, 97, 3, 2, 2, 2, 371, 372, 9, 5, 2, 2, 372, 99, 3, 2, 2, 2, 28, 103, 110, 121, 134, 140, 143, 162, 165, 171, 182, 189, 203, 211, 215, 233, 245, 270, 277, 282, 291, 294, 302, 312, 335, 339, 369] \ No newline at end of file +[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 64, 385, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 3, 2, 6, 2, 102, 10, 2, 13, 2, 14, 2, 103, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 113, 10, 3, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 5, 5, 124, 10, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 7, 7, 135, 10, 7, 12, 7, 14, 7, 138, 11, 7, 3, 8, 3, 8, 3, 8, 5, 8, 143, 10, 8, 3, 8, 5, 8, 146, 10, 8, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 7, 11, 163, 10, 11, 12, 11, 14, 11, 166, 11, 11, 5, 11, 168, 10, 11, 3, 12, 3, 12, 7, 12, 172, 10, 12, 12, 12, 14, 12, 175, 11, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 7, 13, 183, 10, 13, 12, 13, 14, 13, 186, 11, 13, 3, 13, 3, 13, 3, 14, 3, 14, 5, 14, 192, 10, 14, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 5, 17, 215, 10, 17, 3, 18, 3, 18, 3, 18, 3, 18, 7, 18, 221, 10, 18, 12, 18, 14, 18, 224, 11, 18, 3, 18, 5, 18, 227, 10, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 7, 22, 243, 10, 22, 12, 22, 14, 22, 246, 11, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 5, 24, 257, 10, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 282, 10, 28, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 289, 10, 29, 3, 30, 3, 30, 3, 30, 5, 30, 294, 10, 30, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 7, 31, 301, 10, 31, 12, 31, 14, 31, 304, 11, 31, 5, 31, 306, 10, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32, 5, 32, 314, 10, 32, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 7, 33, 322, 10, 33, 12, 33, 14, 33, 325, 11, 33, 3, 34, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37, 3, 38, 3, 38, 3, 39, 3, 39, 6, 39, 345, 10, 39, 13, 39, 14, 39, 346, 3, 40, 3, 40, 5, 40, 351, 10, 40, 3, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 45, 3, 45, 3, 46, 3, 46, 3, 47, 3, 47, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 5, 49, 381, 10, 49, 3, 50, 3, 50, 3, 50, 2, 2, 51, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 2, 6, 3, 2, 58, 61, 3, 2, 25, 26, 3, 2, 27, 28, 5, 2, 7, 7, 29, 30, 33, 57, 2, 383, 2, 101, 3, 2, 2, 2, 4, 112, 3, 2, 2, 2, 6, 114, 3, 2, 2, 2, 8, 117, 3, 2, 2, 2, 10, 125, 3, 2, 2, 2, 12, 132, 3, 2, 2, 2, 14, 145, 3, 2, 2, 2, 16, 147, 3, 2, 2, 2, 18, 150, 3, 2, 2, 2, 20, 167, 3, 2, 2, 2, 22, 169, 3, 2, 2, 2, 24, 178, 3, 2, 2, 2, 26, 191, 3, 2, 2, 2, 28, 193, 3, 2, 2, 2, 30, 196, 3, 2, 2, 2, 32, 214, 3, 2, 2, 2, 34, 216, 3, 2, 2, 2, 36, 228, 3, 2, 2, 2, 38, 233, 3, 2, 2, 2, 40, 236, 3, 2, 2, 2, 42, 240, 3, 2, 2, 2, 44, 249, 3, 2, 2, 2, 46, 253, 3, 2, 2, 2, 48, 264, 3, 2, 2, 2, 50, 268, 3, 2, 2, 2, 52, 272, 3, 2, 2, 2, 54, 281, 3, 2, 2, 2, 56, 288, 3, 2, 2, 2, 58, 293, 3, 2, 2, 2, 60, 295, 3, 2, 2, 2, 62, 313, 3, 2, 2, 2, 64, 315, 3, 2, 2, 2, 66, 326, 3, 2, 2, 2, 68, 329, 3, 2, 2, 2, 70, 332, 3, 2, 2, 2, 72, 338, 3, 2, 2, 2, 74, 340, 3, 2, 2, 2, 76, 342, 3, 2, 2, 2, 78, 350, 3, 2, 2, 2, 80, 352, 3, 2, 2, 2, 82, 355, 3, 2, 2, 2, 84, 359, 3, 2, 2, 2, 86, 363, 3, 2, 2, 2, 88, 365, 3, 2, 2, 2, 90, 367, 3, 2, 2, 2, 92, 369, 3, 2, 2, 2, 94, 371, 3, 2, 2, 2, 96, 380, 3, 2, 2, 2, 98, 382, 3, 2, 2, 2, 100, 102, 5, 4, 3, 2, 101, 100, 3, 2, 2, 2, 102, 103, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 105, 3, 2, 2, 2, 105, 106, 7, 2, 2, 3, 106, 3, 3, 2, 2, 2, 107, 108, 5, 6, 4, 2, 108, 109, 7, 3, 2, 2, 109, 113, 3, 2, 2, 2, 110, 113, 5, 16, 9, 2, 111, 113, 5, 24, 13, 2, 112, 107, 3, 2, 2, 2, 112, 110, 3, 2, 2, 2, 112, 111, 3, 2, 2, 2, 113, 5, 3, 2, 2, 2, 114, 115, 7, 4, 2, 2, 115, 116, 5, 8, 5, 2, 116, 7, 3, 2, 2, 2, 117, 118, 5, 88, 45, 2, 118, 119, 7, 5, 2, 2, 119, 120, 5, 12, 7, 2, 120, 123, 3, 2, 2, 2, 121, 122, 7, 6, 2, 2, 122, 124, 5, 54, 28, 2, 123, 121, 3, 2, 2, 2, 123, 124, 3, 2, 2, 2, 124, 9, 3, 2, 2, 2, 125, 126, 5, 88, 45, 2, 126, 127, 7, 5, 2, 2, 127, 128, 5, 12, 7, 2, 128, 129, 3, 2, 2, 2, 129, 130, 7, 6, 2, 2, 130, 131, 5, 54, 28, 2, 131, 11, 3, 2, 2, 2, 132, 136, 5, 90, 46, 2, 133, 135, 5, 14, 8, 2, 134, 133, 3, 2, 2, 2, 135, 138, 3, 2, 2, 2, 136, 134, 3, 2, 2, 2, 136, 137, 3, 2, 2, 2, 137, 13, 3, 2, 2, 2, 138, 136, 3, 2, 2, 2, 139, 146, 7, 7, 2, 2, 140, 142, 7, 8, 2, 2, 141, 143, 7, 58, 2, 2, 142, 141, 3, 2, 2, 2, 142, 143, 3, 2, 2, 2, 143, 144, 3, 2, 2, 2, 144, 146, 7, 9, 2, 2, 145, 139, 3, 2, 2, 2, 145, 140, 3, 2, 2, 2, 146, 15, 3, 2, 2, 2, 147, 148, 7, 10, 2, 2, 148, 149, 5, 18, 10, 2, 149, 17, 3, 2, 2, 2, 150, 151, 5, 86, 44, 2, 151, 152, 7, 11, 2, 2, 152, 153, 5, 20, 11, 2, 153, 154, 7, 12, 2, 2, 154, 155, 7, 5, 2, 2, 155, 156, 5, 12, 7, 2, 156, 157, 3, 2, 2, 2, 157, 158, 5, 22, 12, 2, 158, 19, 3, 2, 2, 2, 159, 164, 5, 8, 5, 2, 160, 161, 7, 13, 2, 2, 161, 163, 5, 8, 5, 2, 162, 160, 3, 2, 2, 2, 163, 166, 3, 2, 2, 2, 164, 162, 3, 2, 2, 2, 164, 165, 3, 2, 2, 2, 165, 168, 3, 2, 2, 2, 166, 164, 3, 2, 2, 2, 167, 159, 3, 2, 2, 2, 167, 168, 3, 2, 2, 2, 168, 21, 3, 2, 2, 2, 169, 173, 7, 14, 2, 2, 170, 172, 5, 32, 17, 2, 171, 170, 3, 2, 2, 2, 172, 175, 3, 2, 2, 2, 173, 171, 3, 2, 2, 2, 173, 174, 3, 2, 2, 2, 174, 176, 3, 2, 2, 2, 175, 173, 3, 2, 2, 2, 176, 177, 7, 15, 2, 2, 177, 23, 3, 2, 2, 2, 178, 179, 7, 16, 2, 2, 179, 180, 5, 92, 47, 2, 180, 184, 7, 14, 2, 2, 181, 183, 5, 26, 14, 2, 182, 181, 3, 2, 2, 2, 183, 186, 3, 2, 2, 2, 184, 182, 3, 2, 2, 2, 184, 185, 3, 2, 2, 2, 185, 187, 3, 2, 2, 2, 186, 184, 3, 2, 2, 2, 187, 188, 7, 15, 2, 2, 188, 25, 3, 2, 2, 2, 189, 192, 5, 28, 15, 2, 190, 192, 5, 30, 16, 2, 191, 189, 3, 2, 2, 2, 191, 190, 3, 2, 2, 2, 192, 27, 3, 2, 2, 2, 193, 194, 5, 8, 5, 2, 194, 195, 7, 3, 2, 2, 195, 29, 3, 2, 2, 2, 196, 197, 5, 18, 10, 2, 197, 31, 3, 2, 2, 2, 198, 199, 5, 6, 4, 2, 199, 200, 7, 3, 2, 2, 200, 215, 3, 2, 2, 2, 201, 215, 5, 34, 18, 2, 202, 215, 5, 40, 21, 2, 203, 215, 5, 46, 24, 2, 204, 215, 5, 48, 25, 2, 205, 206, 5, 50, 26, 2, 206, 207, 7, 3, 2, 2, 207, 215, 3, 2, 2, 2, 208, 209, 5, 52, 27, 2, 209, 210, 7, 3, 2, 2, 210, 215, 3, 2, 2, 2, 211, 212, 5, 54, 28, 2, 212, 213, 7, 3, 2, 2, 213, 215, 3, 2, 2, 2, 214, 198, 3, 2, 2, 2, 214, 201, 3, 2, 2, 2, 214, 202, 3, 2, 2, 2, 214, 203, 3, 2, 2, 2, 214, 204, 3, 2, 2, 2, 214, 205, 3, 2, 2, 2, 214, 208, 3, 2, 2, 2, 214, 211, 3, 2, 2, 2, 215, 33, 3, 2, 2, 2, 216, 217, 7, 17, 2, 2, 217, 218, 5, 54, 28, 2, 218, 222, 5, 22, 12, 2, 219, 221, 5, 36, 19, 2, 220, 219, 3, 2, 2, 2, 221, 224, 3, 2, 2, 2, 222, 220, 3, 2, 2, 2, 222, 223, 3, 2, 2, 2, 223, 226, 3, 2, 2, 2, 224, 222, 3, 2, 2, 2, 225, 227, 5, 38, 20, 2, 226, 225, 3, 2, 2, 2, 226, 227, 3, 2, 2, 2, 227, 35, 3, 2, 2, 2, 228, 229, 7, 18, 2, 2, 229, 230, 7, 17, 2, 2, 230, 231, 5, 54, 28, 2, 231, 232, 5, 22, 12, 2, 232, 37, 3, 2, 2, 2, 233, 234, 7, 18, 2, 2, 234, 235, 5, 22, 12, 2, 235, 39, 3, 2, 2, 2, 236, 237, 7, 19, 2, 2, 237, 238, 5, 72, 37, 2, 238, 239, 5, 42, 22, 2, 239, 41, 3, 2, 2, 2, 240, 244, 7, 14, 2, 2, 241, 243, 5, 44, 23, 2, 242, 241, 3, 2, 2, 2, 243, 246, 3, 2, 2, 2, 244, 242, 3, 2, 2, 2, 244, 245, 3, 2, 2, 2, 245, 247, 3, 2, 2, 2, 246, 244, 3, 2, 2, 2, 247, 248, 7, 15, 2, 2, 248, 43, 3, 2, 2, 2, 249, 250, 7, 20, 2, 2, 250, 251, 5, 54, 28, 2, 251, 252, 5, 22, 12, 2, 252, 45, 3, 2, 2, 2, 253, 256, 7, 21, 2, 2, 254, 257, 5, 10, 6, 2, 255, 257, 5, 50, 26, 2, 256, 254, 3, 2, 2, 2, 256, 255, 3, 2, 2, 2, 257, 258, 3, 2, 2, 2, 258, 259, 7, 13, 2, 2, 259, 260, 5, 54, 28, 2, 260, 261, 7, 13, 2, 2, 261, 262, 5, 54, 28, 2, 262, 263, 5, 22, 12, 2, 263, 47, 3, 2, 2, 2, 264, 265, 7, 22, 2, 2, 265, 266, 5, 54, 28, 2, 266, 267, 5, 22, 12, 2, 267, 49, 3, 2, 2, 2, 268, 269, 5, 72, 37, 2, 269, 270, 7, 6, 2, 2, 270, 271, 5, 54, 28, 2, 271, 51, 3, 2, 2, 2, 272, 273, 7, 23, 2, 2, 273, 274, 5, 54, 28, 2, 274, 53, 3, 2, 2, 2, 275, 282, 5, 60, 31, 2, 276, 282, 5, 74, 38, 2, 277, 282, 5, 72, 37, 2, 278, 282, 5, 84, 43, 2, 279, 282, 5, 76, 39, 2, 280, 282, 5, 62, 32, 2, 281, 275, 3, 2, 2, 2, 281, 276, 3, 2, 2, 2, 281, 277, 3, 2, 2, 2, 281, 278, 3, 2, 2, 2, 281, 279, 3, 2, 2, 2, 281, 280, 3, 2, 2, 2, 282, 55, 3, 2, 2, 2, 283, 289, 5, 60, 31, 2, 284, 289, 5, 74, 38, 2, 285, 289, 5, 72, 37, 2, 286, 289, 5, 84, 43, 2, 287, 289, 5, 76, 39, 2, 288, 283, 3, 2, 2, 2, 288, 284, 3, 2, 2, 2, 288, 285, 3, 2, 2, 2, 288, 286, 3, 2, 2, 2, 288, 287, 3, 2, 2, 2, 289, 57, 3, 2, 2, 2, 290, 294, 5, 60, 31, 2, 291, 294, 5, 72, 37, 2, 292, 294, 5, 84, 43, 2, 293, 290, 3, 2, 2, 2, 293, 291, 3, 2, 2, 2, 293, 292, 3, 2, 2, 2, 294, 59, 3, 2, 2, 2, 295, 296, 5, 86, 44, 2, 296, 305, 7, 11, 2, 2, 297, 302, 5, 54, 28, 2, 298, 299, 7, 13, 2, 2, 299, 301, 5, 54, 28, 2, 300, 298, 3, 2, 2, 2, 301, 304, 3, 2, 2, 2, 302, 300, 3, 2, 2, 2, 302, 303, 3, 2, 2, 2, 303, 306, 3, 2, 2, 2, 304, 302, 3, 2, 2, 2, 305, 297, 3, 2, 2, 2, 305, 306, 3, 2, 2, 2, 306, 307, 3, 2, 2, 2, 307, 308, 7, 12, 2, 2, 308, 61, 3, 2, 2, 2, 309, 314, 5, 64, 33, 2, 310, 314, 5, 66, 34, 2, 311, 314, 5, 68, 35, 2, 312, 314, 5, 70, 36, 2, 313, 309, 3, 2, 2, 2, 313, 310, 3, 2, 2, 2, 313, 311, 3, 2, 2, 2, 313, 312, 3, 2, 2, 2, 314, 63, 3, 2, 2, 2, 315, 316, 5, 56, 29, 2, 316, 317, 5, 98, 50, 2, 317, 323, 5, 56, 29, 2, 318, 319, 5, 98, 50, 2, 319, 320, 5, 56, 29, 2, 320, 322, 3, 2, 2, 2, 321, 318, 3, 2, 2, 2, 322, 325, 3, 2, 2, 2, 323, 321, 3, 2, 2, 2, 323, 324, 3, 2, 2, 2, 324, 65, 3, 2, 2, 2, 325, 323, 3, 2, 2, 2, 326, 327, 5, 96, 49, 2, 327, 328, 5, 56, 29, 2, 328, 67, 3, 2, 2, 2, 329, 330, 5, 56, 29, 2, 330, 331, 5, 94, 48, 2, 331, 69, 3, 2, 2, 2, 332, 333, 5, 56, 29, 2, 333, 334, 7, 24, 2, 2, 334, 335, 5, 54, 28, 2, 335, 336, 7, 5, 2, 2, 336, 337, 5, 54, 28, 2, 337, 71, 3, 2, 2, 2, 338, 339, 5, 88, 45, 2, 339, 73, 3, 2, 2, 2, 340, 341, 9, 2, 2, 2, 341, 75, 3, 2, 2, 2, 342, 344, 5, 58, 30, 2, 343, 345, 5, 78, 40, 2, 344, 343, 3, 2, 2, 2, 345, 346, 3, 2, 2, 2, 346, 344, 3, 2, 2, 2, 346, 347, 3, 2, 2, 2, 347, 77, 3, 2, 2, 2, 348, 351, 5, 80, 41, 2, 349, 351, 5, 82, 42, 2, 350, 348, 3, 2, 2, 2, 350, 349, 3, 2, 2, 2, 351, 79, 3, 2, 2, 2, 352, 353, 9, 3, 2, 2, 353, 354, 5, 72, 37, 2, 354, 81, 3, 2, 2, 2, 355, 356, 7, 8, 2, 2, 356, 357, 5, 54, 28, 2, 357, 358, 7, 9, 2, 2, 358, 83, 3, 2, 2, 2, 359, 360, 7, 11, 2, 2, 360, 361, 5, 54, 28, 2, 361, 362, 7, 12, 2, 2, 362, 85, 3, 2, 2, 2, 363, 364, 7, 62, 2, 2, 364, 87, 3, 2, 2, 2, 365, 366, 7, 62, 2, 2, 366, 89, 3, 2, 2, 2, 367, 368, 7, 62, 2, 2, 368, 91, 3, 2, 2, 2, 369, 370, 7, 62, 2, 2, 370, 93, 3, 2, 2, 2, 371, 372, 9, 4, 2, 2, 372, 95, 3, 2, 2, 2, 373, 381, 7, 29, 2, 2, 374, 381, 7, 30, 2, 2, 375, 381, 7, 31, 2, 2, 376, 381, 7, 32, 2, 2, 377, 381, 7, 33, 2, 2, 378, 381, 7, 7, 2, 2, 379, 381, 5, 94, 48, 2, 380, 373, 3, 2, 2, 2, 380, 374, 3, 2, 2, 2, 380, 375, 3, 2, 2, 2, 380, 376, 3, 2, 2, 2, 380, 377, 3, 2, 2, 2, 380, 378, 3, 2, 2, 2, 380, 379, 3, 2, 2, 2, 381, 97, 3, 2, 2, 2, 382, 383, 9, 5, 2, 2, 383, 99, 3, 2, 2, 2, 28, 103, 112, 123, 136, 142, 145, 164, 167, 173, 184, 191, 214, 222, 226, 244, 256, 281, 288, 293, 302, 305, 313, 323, 346, 350, 380] \ No newline at end of file diff --git a/gen/Toc.tokens b/gen/Toc.tokens index 446ddcd..4580517 100644 --- a/gen/Toc.tokens +++ b/gen/Toc.tokens @@ -52,65 +52,66 @@ T__50=51 T__51=52 T__52=53 T__53=54 -INT_LIT=55 -DECIMAL_LIT=56 -STRING_LIT=57 -BOOL_LIT=58 -NAME=59 -WS=60 -NEWLINE=61 -NUMBER=62 -'var'=1 -':'=2 -'='=3 -'*'=4 -'['=5 -']'=6 -'func'=7 -'('=8 -')'=9 -','=10 -'{'=11 -'}'=12 -'struct'=13 -'if'=14 -'else'=15 -'switch'=16 -'case'=17 -'for'=18 -'while'=19 -'return'=20 -'?'=21 -'.'=22 -'->'=23 -'++'=24 -'--'=25 -'+'=26 -'-'=27 -'!'=28 -'~'=29 -'&'=30 -'/'=31 -'%'=32 -'<'=33 -'|'=34 -'^'=35 -'>'=36 -'=='=37 -'!='=38 -'<='=39 -'>='=40 -'<<'=41 -'>>'=42 -'||'=43 -'&&'=44 -'&='=45 -'|='=46 -'^='=47 -'<<='=48 -'>>='=49 -'+='=50 -'-='=51 -'*='=52 -'/='=53 -'%='=54 +T__54=55 +INT_LIT=56 +DECIMAL_LIT=57 +STRING_LIT=58 +BOOL_LIT=59 +NAME=60 +WS=61 +NEWLINE=62 +';'=1 +'var'=2 +':'=3 +'='=4 +'*'=5 +'['=6 +']'=7 +'func'=8 +'('=9 +')'=10 +','=11 +'{'=12 +'}'=13 +'struct'=14 +'if'=15 +'else'=16 +'switch'=17 +'case'=18 +'for'=19 +'while'=20 +'return'=21 +'?'=22 +'.'=23 +'->'=24 +'++'=25 +'--'=26 +'+'=27 +'-'=28 +'!'=29 +'~'=30 +'&'=31 +'/'=32 +'%'=33 +'<'=34 +'|'=35 +'^'=36 +'>'=37 +'=='=38 +'!='=39 +'<='=40 +'>='=41 +'<<'=42 +'>>'=43 +'||'=44 +'&&'=45 +'&='=46 +'|='=47 +'^='=48 +'<<='=49 +'>>='=50 +'+='=51 +'-='=52 +'*='=53 +'/='=54 +'%='=55 diff --git a/gen/TocLexer.cpp b/gen/TocLexer.cpp index 7074805..5580e66 100644 --- a/gen/TocLexer.cpp +++ b/gen/TocLexer.cpp @@ -66,8 +66,8 @@ std::vector TocLexer::_ruleNames = { "T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "T__31", "T__32", "T__33", "T__34", "T__35", "T__36", "T__37", "T__38", "T__39", "T__40", "T__41", "T__42", "T__43", "T__44", "T__45", "T__46", "T__47", "T__48", - "T__49", "T__50", "T__51", "T__52", "T__53", "INT_LIT", "DECIMAL_LIT", - "STRING_LIT", "BOOL_LIT", "NAME", "WS", "NEWLINE", "NUMBER" + "T__49", "T__50", "T__51", "T__52", "T__53", "T__54", "INT_LIT", "DECIMAL_LIT", + "STRING_LIT", "BOOL_LIT", "NAME", "WS", "NEWLINE" }; std::vector TocLexer::_channelNames = { @@ -79,21 +79,21 @@ std::vector TocLexer::_modeNames = { }; std::vector TocLexer::_literalNames = { - "", "'var'", "':'", "'='", "'*'", "'['", "']'", "'func'", "'('", "')'", - "','", "'{'", "'}'", "'struct'", "'if'", "'else'", "'switch'", "'case'", - "'for'", "'while'", "'return'", "'\u003F'", "'.'", "'->'", "'++'", "'--'", - "'+'", "'-'", "'!'", "'~'", "'&'", "'/'", "'%'", "'<'", "'|'", "'^'", - "'>'", "'=='", "'!='", "'<='", "'>='", "'<<'", "'>>'", "'||'", "'&&'", - "'&='", "'|='", "'^='", "'<<='", "'>>='", "'+='", "'-='", "'*='", "'/='", - "'%='" + "", "';'", "'var'", "':'", "'='", "'*'", "'['", "']'", "'func'", "'('", + "')'", "','", "'{'", "'}'", "'struct'", "'if'", "'else'", "'switch'", + "'case'", "'for'", "'while'", "'return'", "'\u003F'", "'.'", "'->'", "'++'", + "'--'", "'+'", "'-'", "'!'", "'~'", "'&'", "'/'", "'%'", "'<'", "'|'", + "'^'", "'>'", "'=='", "'!='", "'<='", "'>='", "'<<'", "'>>'", "'||'", + "'&&'", "'&='", "'|='", "'^='", "'<<='", "'>>='", "'+='", "'-='", "'*='", + "'/='", "'%='" }; std::vector TocLexer::_symbolicNames = { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", - "", "INT_LIT", "DECIMAL_LIT", "STRING_LIT", "BOOL_LIT", "NAME", "WS", - "NEWLINE", "NUMBER" + "", "", "INT_LIT", "DECIMAL_LIT", "STRING_LIT", "BOOL_LIT", "NAME", "WS", + "NEWLINE" }; dfa::Vocabulary TocLexer::_vocabulary(_literalNames, _symbolicNames); @@ -117,7 +117,7 @@ TocLexer::Initializer::Initializer() { static const uint16_t serializedATNSegment0[] = { 0x3, 0x608b, 0xa72a, 0x8133, 0xb9ed, 0x417c, 0x3be7, 0x7786, 0x5964, - 0x2, 0x40, 0x166, 0x8, 0x1, 0x4, 0x2, 0x9, 0x2, 0x4, 0x3, 0x9, 0x3, + 0x2, 0x40, 0x163, 0x8, 0x1, 0x4, 0x2, 0x9, 0x2, 0x4, 0x3, 0x9, 0x3, 0x4, 0x4, 0x9, 0x4, 0x4, 0x5, 0x9, 0x5, 0x4, 0x6, 0x9, 0x6, 0x4, 0x7, 0x9, 0x7, 0x4, 0x8, 0x9, 0x8, 0x4, 0x9, 0x9, 0x9, 0x4, 0xa, 0x9, 0xa, 0x4, 0xb, 0x9, 0xb, 0x4, 0xc, 0x9, 0xc, 0x4, 0xd, 0x9, @@ -138,240 +138,238 @@ TocLexer::Initializer::Initializer() { 0x4, 0x38, 0x9, 0x38, 0x4, 0x39, 0x9, 0x39, 0x4, 0x3a, 0x9, 0x3a, 0x4, 0x3b, 0x9, 0x3b, 0x4, 0x3c, 0x9, 0x3c, 0x4, 0x3d, 0x9, 0x3d, 0x4, 0x3e, 0x9, 0x3e, 0x4, 0x3f, 0x9, 0x3f, 0x3, 0x2, 0x3, 0x2, 0x3, - 0x2, 0x3, 0x2, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x4, 0x3, 0x5, + 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x4, 0x3, 0x5, 0x3, 0x5, 0x3, 0x6, 0x3, 0x6, 0x3, 0x7, 0x3, 0x7, 0x3, 0x8, 0x3, - 0x8, 0x3, 0x8, 0x3,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x2, 0x10b, 0x60, 0x3, 0x2, 0x2, 0x2, 0x10c, 0x10d, - 0x7, 0x3e, 0x2, 0x2, 0x10d, 0x10e, 0x7, 0x3e, 0x2, 0x2, 0x10e, 0x10f, - 0x7, 0x3f, 0x2, 0x2, 0x10f, 0x62, 0x3, 0x2, 0x2, 0x2, 0x110, 0x111, - 0x7, 0x40, 0x2, 0x2, 0x111, 0x112, 0x7, 0x40, 0x2, 0x2, 0x112, 0x113, - 0x7, 0x3f, 0x2, 0x2, 0x113, 0x64, 0x3, 0x2, 0x2, 0x2, 0x114, 0x115, - 0x7, 0x2d, 0x2, 0x2, 0x115, 0x116, 0x7, 0x3f, 0x2, 0x2, 0x116, 0x66, - 0x3, 0x2, 0x2, 0x2, 0x117, 0x118, 0x7, 0x2f, 0x2, 0x2, 0x118, 0x119, - 0x7, 0x3f, 0x2, 0x2, 0x119, 0x68, 0x3, 0x2, 0x2, 0x2, 0x11a, 0x11b, - 0x7, 0x2c, 0x2, 0x2, 0x11b, 0x11c, 0x7, 0x3f, 0x2, 0x2, 0x11c, 0x6a, - 0x3, 0x2, 0x2, 0x2, 0x11d, 0x11e, 0x7, 0x31, 0x2, 0x2, 0x11e, 0x11f, - 0x7, 0x3f, 0x2, 0x2, 0x11f, 0x6c, 0x3, 0x2, 0x2, 0x2, 0x120, 0x121, - 0x7, 0x27, 0x2, 0x2, 0x121, 0x122, 0x7, 0x3f, 0x2, 0x2, 0x122, 0x6e, - 0x3, 0x2, 0x2, 0x2, 0x123, 0x125, 0x9, 0x2, 0x2, 0x2, 0x124, 0x123, - 0x3, 0x2, 0x2, 0x2, 0x124, 0x125, 0x3, 0x2, 0x2, 0x2, 0x125, 0x127, - 0x3, 0x2, 0x2, 0x2, 0x126, 0x128, 0x9, 0x3, 0x2, 0x2, 0x127, 0x126, - 0x3, 0x2, 0x2, 0x2, 0x128, 0x129, 0x3, 0x2, 0x2, 0x2, 0x129, 0x127, - 0x3, 0x2, 0x2, 0x2, 0x129, 0x12a, 0x3, 0x2, 0x2, 0x2, 0x12a, 0x70, - 0x3, 0x2, 0x2, 0x2, 0x12b, 0x12d, 0x9, 0x2, 0x2, 0x2, 0x12c, 0x12b, - 0x3, 0x2, 0x2, 0x2, 0x12d, 0x130, 0x3, 0x2, 0x2, 0x2, 0x12e, 0x12c, - 0x3, 0x2, 0x2, 0x2, 0x12e, 0x12f, 0x3, 0x2, 0x2, 0x2, 0x12f, 0x132, - 0x3, 0x2, 0x2, 0x2, 0x130, 0x12e, 0x3, 0x2, 0x2, 0x2, 0x131, 0x133, - 0x9, 0x3, 0x2, 0x2, 0x132, 0x131, 0x3, 0x2, 0x2, 0x2, 0x133, 0x134, - 0x3, 0x2, 0x2, 0x2, 0x134, 0x132, 0x3, 0x2, 0x2, 0x2, 0x134, 0x135, - 0x3, 0x2, 0x2, 0x2, 0x135, 0x136, 0x3, 0x2, 0x2, 0x2, 0x136, 0x138, - 0x7, 0x30, 0x2, 0x2, 0x137, 0x139, 0x9, 0x3, 0x2, 0x2, 0x138, 0x137, - 0x3, 0x2, 0x2, 0x2, 0x139, 0x13a, 0x3, 0x2, 0x2, 0x2, 0x13a, 0x138, - 0x3, 0x2, 0x2, 0x2, 0x13a, 0x13b, 0x3, 0x2, 0x2, 0x2, 0x13b, 0x72, - 0x3, 0x2, 0x2, 0x2, 0x13c, 0x140, 0x7, 0x24, 0x2, 0x2, 0x13d, 0x13f, - 0x9, 0x4, 0x2, 0x2, 0x13e, 0x13d, 0x3, 0x2, 0x2, 0x2, 0x13f, 0x142, - 0x3, 0x2, 0x2, 0x2, 0x140, 0x13e, 0x3, 0x2, 0x2, 0x2, 0x140, 0x141, - 0x3, 0x2, 0x2, 0x2, 0x141, 0x143, 0x3, 0x2, 0x2, 0x2, 0x142, 0x140, - 0x3, 0x2, 0x2, 0x2, 0x143, 0x144, 0x7, 0x24, 0x2, 0x2, 0x144, 0x74, - 0x3, 0x2, 0x2, 0x2, 0x145, 0x146, 0x7, 0x76, 0x2, 0x2, 0x146, 0x147, - 0x7, 0x74, 0x2, 0x2, 0x147, 0x148, 0x7, 0x77, 0x2, 0x2, 0x148, 0x14f, - 0x7, 0x67, 0x2, 0x2, 0x149, 0x14a, 0x7, 0x68, 0x2, 0x2, 0x14a, 0x14b, - 0x7, 0x63, 0x2, 0x2, 0x14b, 0x14c, 0x7, 0x6e, 0x2, 0x2, 0x14c, 0x14d, - 0x7, 0x75, 0x2, 0x2, 0x14d, 0x14f, 0x7, 0x67, 0x2, 0x2, 0x14e, 0x145, - 0x3, 0x2, 0x2, 0x2, 0x14e, 0x149, 0x3, 0x2, 0x2, 0x2, 0x14f, 0x76, - 0x3, 0x2, 0x2, 0x2, 0x150, 0x152, 0x9, 0x5, 0x2, 0x2, 0x151, 0x150, - 0x3, 0x2, 0x2, 0x2, 0x152, 0x153, 0x3, 0x2, 0x2, 0x2, 0x153, 0x151, - 0x3, 0x2, 0x2, 0x2, 0x153, 0x154, 0x3, 0x2, 0x2, 0x2, 0x154, 0x78, - 0x3, 0x2, 0x2, 0x2, 0x155, 0x157, 0x9, 0x6, 0x2, 0x2, 0x156, 0x155, - 0x3, 0x2, 0x2, 0x2, 0x157, 0x158, 0x3, 0x2, 0x2, 0x2, 0x158, 0x156, - 0x3, 0x2, 0x2, 0x2, 0x158, 0x159, 0x3, 0x2, 0x2, 0x2, 0x159, 0x15a, - 0x3, 0x2, 0x2, 0x2, 0x15a, 0x15b, 0x8, 0x3d, 0x2, 0x2, 0x15b, 0x7a, - 0x3, 0x2, 0x2, 0x2, 0x15c, 0x15e, 0x9, 0x7, 0x2, 0x2, 0x15d, 0x15c, - 0x3, 0x2, 0x2, 0x2, 0x15e, 0x15f, 0x3, 0x2, 0x2, 0x2, 0x15f, 0x15d, - 0x3, 0x2, 0x2, 0x2, 0x15f, 0x160, 0x3, 0x2, 0x2, 0x2, 0x160, 0x7c, - 0x3, 0x2, 0x2, 0x2, 0x161, 0x163, 0x9, 0x3, 0x2, 0x2, 0x162, 0x161, - 0x3, 0x2, 0x2, 0x2, 0x163, 0x164, 0x3, 0x2, 0x2, 0x2, 0x164, 0x162, - 0x3, 0x2, 0x2, 0x2, 0x164, 0x165, 0x3, 0x2, 0x2, 0x2, 0x165, 0x7e, - 0x3, 0x2, 0x2, 0x2, 0xf, 0x2, 0x124, 0x129, 0x12e, 0x134, 0x13a, - 0x140, 0x14e, 0x151, 0x153, 0x158, 0x15f, 0x164, 0x3, 0x8, 0x2, 0x2, + 0x25, 0x3, 0x26, 0x3, 0x26, 0x3, 0x27, 0x3, 0x27, 0x3, 0x27, 0x3, + 0x28, 0x3, 0x28, 0x3, 0x28, 0x3, 0x29, 0x3, 0x29, 0x3, 0x29, 0x3, + 0x2a, 0x3, 0x2a, 0x3, 0x2a, 0x3, 0x2b, 0x3, 0x2b, 0x3, 0x2b, 0x3, + 0x2c, 0x3, 0x2c, 0x3, 0x2c, 0x3, 0x2d, 0x3, 0x2d, 0x3, 0x2d, 0x3, + 0x2e, 0x3, 0x2e, 0x3, 0x2e, 0x3, 0x2f, 0x3, 0x2f, 0x3, 0x2f, 0x3, + 0x30, 0x3, 0x30, 0x3, 0x30, 0x3, 0x31, 0x3, 0x31, 0x3, 0x31, 0x3, + 0x32, 0x3, 0x32, 0x3, 0x32, 0x3, 0x32, 0x3, 0x33, 0x3, 0x33, 0x3, + 0x33, 0x3, 0x33, 0x3, 0x34, 0x3, 0x34, 0x3, 0x34, 0x3, 0x35, 0x3, + 0x35, 0x3, 0x35, 0x3, 0x36, 0x3, 0x36, 0x3, 0x36, 0x3, 0x37, 0x3, + 0x37, 0x3, 0x37, 0x3, 0x38, 0x3, 0x38, 0x3, 0x38, 0x3, 0x39, 0x5, + 0x39, 0x127, 0xa, 0x39, 0x3, 0x39, 0x6, 0x39, 0x12a, 0xa, 0x39, 0xd, + 0x39, 0xe, 0x39, 0x12b, 0x3, 0x3a, 0x7, 0x3a, 0x12f, 0xa, 0x3a, 0xc, + 0x3a, 0xe, 0x3a, 0x132, 0xb, 0x3a, 0x3, 0x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, 0xf8, 0x7, 0x3f, + 0x2, 0x2, 0xf8, 0x54, 0x3, 0x2, 0x2, 0x2, 0xf9, 0xfa, 0x7, 0x3e, + 0x2, 0x2, 0xfa, 0xfb, 0x7, 0x3e, 0x2, 0x2, 0xfb, 0x56, 0x3, 0x2, + 0x2, 0x2, 0xfc, 0xfd, 0x7, 0x40, 0x2, 0x2, 0xfd, 0xfe, 0x7, 0x40, + 0x2, 0x2, 0xfe, 0x58, 0x3, 0x2, 0x2, 0x2, 0xff, 0x100, 0x7, 0x7e, + 0x2, 0x2, 0x100, 0x101, 0x7, 0x7e, 0x2, 0x2, 0x101, 0x5a, 0x3, 0x2, + 0x2, 0x2, 0x102, 0x103, 0x7, 0x28, 0x2, 0x2, 0x103, 0x104, 0x7, 0x28, + 0x2, 0x2, 0x104, 0x5c, 0x3, 0x2, 0x2, 0x2, 0x105, 0x106, 0x7, 0x28, + 0x2, 0x2, 0x106, 0x107, 0x7, 0x3f, 0x2, 0x2, 0x107, 0x5e, 0x3, 0x2, + 0x2, 0x2, 0x108, 0x109, 0x7, 0x7e, 0x2, 0x2, 0x109, 0x10a, 0x7, 0x3f, + 0x2, 0x2, 0x10a, 0x60, 0x3, 0x2, 0x2, 0x2, 0x10b, 0x10c, 0x7, 0x60, + 0x2, 0x2, 0x10c, 0x10d, 0x7, 0x3f, 0x2, 0x2, 0x10d, 0x62, 0x3, 0x2, + 0x2, 0x2, 0x10e, 0x10f, 0x7, 0x3e, 0x2, 0x2, 0x10f, 0x110, 0x7, 0x3e, + 0x2, 0x2, 0x110, 0x111, 0x7, 0x3f, 0x2, 0x2, 0x111, 0x64, 0x3, 0x2, + 0x2, 0x2, 0x112, 0x113, 0x7, 0x40, 0x2, 0x2, 0x113, 0x114, 0x7, 0x40, + 0x2, 0x2, 0x114, 0x115, 0x7, 0x3f, 0x2, 0x2, 0x115, 0x66, 0x3, 0x2, + 0x2, 0x2, 0x116, 0x117, 0x7, 0x2d, 0x2, 0x2, 0x117, 0x118, 0x7, 0x3f, + 0x2, 0x2, 0x118, 0x68, 0x3, 0x2, 0x2, 0x2, 0x119, 0x11a, 0x7, 0x2f, + 0x2, 0x2, 0x11a, 0x11b, 0x7, 0x3f, 0x2, 0x2, 0x11b, 0x6a, 0x3, 0x2, + 0x2, 0x2, 0x11c, 0x11d, 0x7, 0x2c, 0x2, 0x2, 0x11d, 0x11e, 0x7, 0x3f, + 0x2, 0x2, 0x11e, 0x6c, 0x3, 0x2, 0x2, 0x2, 0x11f, 0x120, 0x7, 0x31, + 0x2, 0x2, 0x120, 0x121, 0x7, 0x3f, 0x2, 0x2, 0x121, 0x6e, 0x3, 0x2, + 0x2, 0x2, 0x122, 0x123, 0x7, 0x27, 0x2, 0x2, 0x123, 0x124, 0x7, 0x3f, + 0x2, 0x2, 0x124, 0x70, 0x3, 0x2, 0x2, 0x2, 0x125, 0x127, 0x9, 0x2, + 0x2, 0x2, 0x126, 0x125, 0x3, 0x2, 0x2, 0x2, 0x126, 0x127, 0x3, 0x2, + 0x2, 0x2, 0x127, 0x129, 0x3, 0x2, 0x2, 0x2, 0x128, 0x12a, 0x9, 0x3, + 0x2, 0x2, 0x129, 0x128, 0x3, 0x2, 0x2, 0x2, 0x12a, 0x12b, 0x3, 0x2, + 0x2, 0x2, 0x12b, 0x129, 0x3, 0x2, 0x2, 0x2, 0x12b, 0x12c, 0x3, 0x2, + 0x2, 0x2, 0x12c, 0x72, 0x3, 0x2, 0x2, 0x2, 0x12d, 0x12f, 0x9, 0x2, + 0x2, 0x2, 0x12e, 0x12d, 0x3, 0x2, 0x2, 0x2, 0x12f, 0x132, 0x3, 0x2, + 0x2, 0x2, 0x130, 0x12e, 0x3, 0x2, 0x2, 0x2, 0x130, 0x131, 0x3, 0x2, + 0x2, 0x2, 0x131, 0x134, 0x3, 0x2, 0x2, 0x2, 0x132, 0x130, 0x3, 0x2, + 0x2, 0x2, 0x133, 0x135, 0x9, 0x3, 0x2, 0x2, 0x134, 0x133, 0x3, 0x2, + 0x2, 0x2, 0x135, 0x136, 0x3, 0x2, 0x2, 0x2, 0x136, 0x134, 0x3, 0x2, + 0x2, 0x2, 0x136, 0x137, 0x3, 0x2, 0x2, 0x2, 0x137, 0x138, 0x3, 0x2, + 0x2, 0x2, 0x138, 0x13a, 0x7, 0x30, 0x2, 0x2, 0x139, 0x13b, 0x9, 0x3, + 0x2, 0x2, 0x13a, 0x139, 0x3, 0x2, 0x2, 0x2, 0x13b, 0x13c, 0x3, 0x2, + 0x2, 0x2, 0x13c, 0x13a, 0x3, 0x2, 0x2, 0x2, 0x13c, 0x13d, 0x3, 0x2, + 0x2, 0x2, 0x13d, 0x74, 0x3, 0x2, 0x2, 0x2, 0x13e, 0x142, 0x7, 0x24, + 0x2, 0x2, 0x13f, 0x141, 0x9, 0x4, 0x2, 0x2, 0x140, 0x13f, 0x3, 0x2, + 0x2, 0x2, 0x141, 0x144, 0x3, 0x2, 0x2, 0x2, 0x142, 0x140, 0x3, 0x2, + 0x2, 0x2, 0x142, 0x143, 0x3, 0x2, 0x2, 0x2, 0x143, 0x145, 0x3, 0x2, + 0x2, 0x2, 0x144, 0x142, 0x3, 0x2, 0x2, 0x2, 0x145, 0x146, 0x7, 0x24, + 0x2, 0x2, 0x146, 0x76, 0x3, 0x2, 0x2, 0x2, 0x147, 0x148, 0x7, 0x76, + 0x2, 0x2, 0x148, 0x149, 0x7, 0x74, 0x2, 0x2, 0x149, 0x14a, 0x7, 0x77, + 0x2, 0x2, 0x14a, 0x151, 0x7, 0x67, 0x2, 0x2, 0x14b, 0x14c, 0x7, 0x68, + 0x2, 0x2, 0x14c, 0x14d, 0x7, 0x63, 0x2, 0x2, 0x14d, 0x14e, 0x7, 0x6e, + 0x2, 0x2, 0x14e, 0x14f, 0x7, 0x75, 0x2, 0x2, 0x14f, 0x151, 0x7, 0x67, + 0x2, 0x2, 0x150, 0x147, 0x3, 0x2, 0x2, 0x2, 0x150, 0x14b, 0x3, 0x2, + 0x2, 0x2, 0x151, 0x78, 0x3, 0x2, 0x2, 0x2, 0x152, 0x154, 0x9, 0x5, + 0x2, 0x2, 0x153, 0x152, 0x3, 0x2, 0x2, 0x2, 0x154, 0x155, 0x3, 0x2, + 0x2, 0x2, 0x155, 0x153, 0x3, 0x2, 0x2, 0x2, 0x155, 0x156, 0x3, 0x2, + 0x2, 0x2, 0x156, 0x7a, 0x3, 0x2, 0x2, 0x2, 0x157, 0x159, 0x9, 0x6, + 0x2, 0x2, 0x158, 0x157, 0x3, 0x2, 0x2, 0x2, 0x159, 0x15a, 0x3, 0x2, + 0x2, 0x2, 0x15a, 0x158, 0x3, 0x2, 0x2, 0x2, 0x15a, 0x15b, 0x3, 0x2, + 0x2, 0x2, 0x15b, 0x15c, 0x3, 0x2, 0x2, 0x2, 0x15c, 0x15d, 0x8, 0x3e, + 0x2, 0x2, 0x15d, 0x7c, 0x3, 0x2, 0x2, 0x2, 0x15e, 0x160, 0x9, 0x7, + 0x2, 0x2, 0x15f, 0x15e, 0x3, 0x2, 0x2, 0x2, 0x160, 0x161, 0x3, 0x2, + 0x2, 0x2, 0x161, 0x15f, 0x3, 0x2, 0x2, 0x2, 0x161, 0x162, 0x3, 0x2, + 0x2, 0x2, 0x162, 0x7e, 0x3, 0x2, 0x2, 0x2, 0xe, 0x2, 0x126, 0x12b, + 0x130, 0x136, 0x13c, 0x142, 0x150, 0x153, 0x155, 0x15a, 0x161, 0x3, + 0x8, 0x2, 0x2, }; _serializedATN.insert(_serializedATN.end(), serializedATNSegment0, diff --git a/gen/TocLexer.h b/gen/TocLexer.h index 752d97b..c93c851 100644 --- a/gen/TocLexer.h +++ b/gen/TocLexer.h @@ -20,8 +20,9 @@ public: T__32 = 33, T__33 = 34, T__34 = 35, T__35 = 36, T__36 = 37, T__37 = 38, T__38 = 39, T__39 = 40, T__40 = 41, T__41 = 42, T__42 = 43, T__43 = 44, T__44 = 45, T__45 = 46, T__46 = 47, T__47 = 48, T__48 = 49, T__49 = 50, - T__50 = 51, T__51 = 52, T__52 = 53, T__53 = 54, INT_LIT = 55, DECIMAL_LIT = 56, - STRING_LIT = 57, BOOL_LIT = 58, NAME = 59, WS = 60, NEWLINE = 61, NUMBER = 62 + T__50 = 51, T__51 = 52, T__52 = 53, T__53 = 54, T__54 = 55, INT_LIT = 56, + DECIMAL_LIT = 57, STRING_LIT = 58, BOOL_LIT = 59, NAME = 60, WS = 61, + NEWLINE = 62 }; explicit TocLexer(antlr4::CharStream *input); diff --git a/gen/TocLexer.interp b/gen/TocLexer.interp index 06d1b7c..c25749b 100644 --- a/gen/TocLexer.interp +++ b/gen/TocLexer.interp @@ -1,5 +1,6 @@ token literal names: null +';' 'var' ':' '=' @@ -61,7 +62,6 @@ null null null null -null token symbolic names: null @@ -119,6 +119,7 @@ null null null null +null INT_LIT DECIMAL_LIT STRING_LIT @@ -126,7 +127,6 @@ BOOL_LIT NAME WS NEWLINE -NUMBER rule names: T__0 @@ -183,6 +183,7 @@ T__50 T__51 T__52 T__53 +T__54 INT_LIT DECIMAL_LIT STRING_LIT @@ -190,7 +191,6 @@ BOOL_LIT NAME WS NEWLINE -NUMBER channel names: DEFAULT_TOKEN_CHANNEL @@ -200,4 +200,4 @@ mode names: DEFAULT_MODE atn: -[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 64, 358, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54, 4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 4, 58, 9, 58, 4, 59, 9, 59, 4, 60, 9, 60, 4, 61, 9, 61, 4, 62, 9, 62, 4, 63, 9, 63, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29, 3, 29, 3, 30, 3, 30, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 34, 3, 34, 3, 35, 3, 35, 3, 36, 3, 36, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 3, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 3, 45, 3, 45, 3, 45, 3, 46, 3, 46, 3, 46, 3, 47, 3, 47, 3, 47, 3, 48, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 3, 49, 3, 50, 3, 50, 3, 50, 3, 50, 3, 51, 3, 51, 3, 51, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 3, 54, 3, 55, 3, 55, 3, 55, 3, 56, 5, 56, 293, 10, 56, 3, 56, 6, 56, 296, 10, 56, 13, 56, 14, 56, 297, 3, 57, 7, 57, 301, 10, 57, 12, 57, 14, 57, 304, 11, 57, 3, 57, 6, 57, 307, 10, 57, 13, 57, 14, 57, 308, 3, 57, 3, 57, 6, 57, 313, 10, 57, 13, 57, 14, 57, 314, 3, 58, 3, 58, 7, 58, 319, 10, 58, 12, 58, 14, 58, 322, 11, 58, 3, 58, 3, 58, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 5, 59, 335, 10, 59, 3, 60, 6, 60, 338, 10, 60, 13, 60, 14, 60, 339, 3, 61, 6, 61, 343, 10, 61, 13, 61, 14, 61, 344, 3, 61, 3, 61, 3, 62, 6, 62, 350, 10, 62, 13, 62, 14, 62, 351, 3, 63, 6, 63, 355, 10, 63, 13, 63, 14, 63, 356, 2, 2, 64, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39, 21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57, 30, 59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75, 39, 77, 40, 79, 41, 81, 42, 83, 43, 85, 44, 87, 45, 89, 46, 91, 47, 93, 48, 95, 49, 97, 50, 99, 51, 101, 52, 103, 53, 105, 54, 107, 55, 109, 56, 111, 57, 113, 58, 115, 59, 117, 60, 119, 61, 121, 62, 123, 63, 125, 64, 3, 2, 8, 4, 2, 45, 45, 47, 47, 3, 2, 50, 59, 4, 2, 36, 36, 96, 96, 5, 2, 50, 59, 67, 92, 99, 124, 5, 2, 11, 12, 15, 15, 34, 34, 4, 2, 12, 12, 15, 15, 2, 368, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 51, 3, 2, 2, 2, 2, 53, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57, 3, 2, 2, 2, 2, 59, 3, 2, 2, 2, 2, 61, 3, 2, 2, 2, 2, 63, 3, 2, 2, 2, 2, 65, 3, 2, 2, 2, 2, 67, 3, 2, 2, 2, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2, 2, 73, 3, 2, 2, 2, 2, 75, 3, 2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2, 2, 2, 81, 3, 2, 2, 2, 2, 83, 3, 2, 2, 2, 2, 85, 3, 2, 2, 2, 2, 87, 3, 2, 2, 2, 2, 89, 3, 2, 2, 2, 2, 91, 3, 2, 2, 2, 2, 93, 3, 2, 2, 2, 2, 95, 3, 2, 2, 2, 2, 97, 3, 2, 2, 2, 2, 99, 3, 2, 2, 2, 2, 101, 3, 2, 2, 2, 2, 103, 3, 2, 2, 2, 2, 105, 3, 2, 2, 2, 2, 107, 3, 2, 2, 2, 2, 109, 3, 2, 2, 2, 2, 111, 3, 2, 2, 2, 2, 113, 3, 2, 2, 2, 2, 115, 3, 2, 2, 2, 2, 117, 3, 2, 2, 2, 2, 119, 3, 2, 2, 2, 2, 121, 3, 2, 2, 2, 2, 123, 3, 2, 2, 2, 2, 125, 3, 2, 2, 2, 3, 127, 3, 2, 2, 2, 5, 131, 3, 2, 2, 2, 7, 133, 3, 2, 2, 2, 9, 135, 3, 2, 2, 2, 11, 137, 3, 2, 2, 2, 13, 139, 3, 2, 2, 2, 15, 141, 3, 2, 2, 2, 17, 146, 3, 2, 2, 2, 19, 148, 3, 2, 2, 2, 21, 150, 3, 2, 2, 2, 23, 152, 3, 2, 2, 2, 25, 154, 3, 2, 2, 2, 27, 156, 3, 2, 2, 2, 29, 163, 3, 2, 2, 2, 31, 166, 3, 2, 2, 2, 33, 171, 3, 2, 2, 2, 35, 178, 3, 2, 2, 2, 37, 183, 3, 2, 2, 2, 39, 187, 3, 2, 2, 2, 41, 193, 3, 2, 2, 2, 43, 200, 3, 2, 2, 2, 45, 202, 3, 2, 2, 2, 47, 204, 3, 2, 2, 2, 49, 207, 3, 2, 2, 2, 51, 210, 3, 2, 2, 2, 53, 213, 3, 2, 2, 2, 55, 215, 3, 2, 2, 2, 57, 217, 3, 2, 2, 2, 59, 219, 3, 2, 2, 2, 61, 221, 3, 2, 2, 2, 63, 223, 3, 2, 2, 2, 65, 225, 3, 2, 2, 2, 67, 227, 3, 2, 2, 2, 69, 229, 3, 2, 2, 2, 71, 231, 3, 2, 2, 2, 73, 233, 3, 2, 2, 2, 75, 235, 3, 2, 2, 2, 77, 238, 3, 2, 2, 2, 79, 241, 3, 2, 2, 2, 81, 244, 3, 2, 2, 2, 83, 247, 3, 2, 2, 2, 85, 250, 3, 2, 2, 2, 87, 253, 3, 2, 2, 2, 89, 256, 3, 2, 2, 2, 91, 259, 3, 2, 2, 2, 93, 262, 3, 2, 2, 2, 95, 265, 3, 2, 2, 2, 97, 268, 3, 2, 2, 2, 99, 272, 3, 2, 2, 2, 101, 276, 3, 2, 2, 2, 103, 279, 3, 2, 2, 2, 105, 282, 3, 2, 2, 2, 107, 285, 3, 2, 2, 2, 109, 288, 3, 2, 2, 2, 111, 292, 3, 2, 2, 2, 113, 302, 3, 2, 2, 2, 115, 316, 3, 2, 2, 2, 117, 334, 3, 2, 2, 2, 119, 337, 3, 2, 2, 2, 121, 342, 3, 2, 2, 2, 123, 349, 3, 2, 2, 2, 125, 354, 3, 2, 2, 2, 127, 128, 7, 120, 2, 2, 128, 129, 7, 99, 2, 2, 129, 130, 7, 116, 2, 2, 130, 4, 3, 2, 2, 2, 131, 132, 7, 60, 2, 2, 132, 6, 3, 2, 2, 2, 133, 134, 7, 63, 2, 2, 134, 8, 3, 2, 2, 2, 135, 136, 7, 44, 2, 2, 136, 10, 3, 2, 2, 2, 137, 138, 7, 93, 2, 2, 138, 12, 3, 2, 2, 2, 139, 140, 7, 95, 2, 2, 140, 14, 3, 2, 2, 2, 141, 142, 7, 104, 2, 2, 142, 143, 7, 119, 2, 2, 143, 144, 7, 112, 2, 2, 144, 145, 7, 101, 2, 2, 145, 16, 3, 2, 2, 2, 146, 147, 7, 42, 2, 2, 147, 18, 3, 2, 2, 2, 148, 149, 7, 43, 2, 2, 149, 20, 3, 2, 2, 2, 150, 151, 7, 46, 2, 2, 151, 22, 3, 2, 2, 2, 152, 153, 7, 125, 2, 2, 153, 24, 3, 2, 2, 2, 154, 155, 7, 127, 2, 2, 155, 26, 3, 2, 2, 2, 156, 157, 7, 117, 2, 2, 157, 158, 7, 118, 2, 2, 158, 159, 7, 116, 2, 2, 159, 160, 7, 119, 2, 2, 160, 161, 7, 101, 2, 2, 161, 162, 7, 118, 2, 2, 162, 28, 3, 2, 2, 2, 163, 164, 7, 107, 2, 2, 164, 165, 7, 104, 2, 2, 165, 30, 3, 2, 2, 2, 166, 167, 7, 103, 2, 2, 167, 168, 7, 110, 2, 2, 168, 169, 7, 117, 2, 2, 169, 170, 7, 103, 2, 2, 170, 32, 3, 2, 2, 2, 171, 172, 7, 117, 2, 2, 172, 173, 7, 121, 2, 2, 173, 174, 7, 107, 2, 2, 174, 175, 7, 118, 2, 2, 175, 176, 7, 101, 2, 2, 176, 177, 7, 106, 2, 2, 177, 34, 3, 2, 2, 2, 178, 179, 7, 101, 2, 2, 179, 180, 7, 99, 2, 2, 180, 181, 7, 117, 2, 2, 181, 182, 7, 103, 2, 2, 182, 36, 3, 2, 2, 2, 183, 184, 7, 104, 2, 2, 184, 185, 7, 113, 2, 2, 185, 186, 7, 116, 2, 2, 186, 38, 3, 2, 2, 2, 187, 188, 7, 121, 2, 2, 188, 189, 7, 106, 2, 2, 189, 190, 7, 107, 2, 2, 190, 191, 7, 110, 2, 2, 191, 192, 7, 103, 2, 2, 192, 40, 3, 2, 2, 2, 193, 194, 7, 116, 2, 2, 194, 195, 7, 103, 2, 2, 195, 196, 7, 118, 2, 2, 196, 197, 7, 119, 2, 2, 197, 198, 7, 116, 2, 2, 198, 199, 7, 112, 2, 2, 199, 42, 3, 2, 2, 2, 200, 201, 7, 65, 2, 2, 201, 44, 3, 2, 2, 2, 202, 203, 7, 48, 2, 2, 203, 46, 3, 2, 2, 2, 204, 205, 7, 47, 2, 2, 205, 206, 7, 64, 2, 2, 206, 48, 3, 2, 2, 2, 207, 208, 7, 45, 2, 2, 208, 209, 7, 45, 2, 2, 209, 50, 3, 2, 2, 2, 210, 211, 7, 47, 2, 2, 211, 212, 7, 47, 2, 2, 212, 52, 3, 2, 2, 2, 213, 214, 7, 45, 2, 2, 214, 54, 3, 2, 2, 2, 215, 216, 7, 47, 2, 2, 216, 56, 3, 2, 2, 2, 217, 218, 7, 35, 2, 2, 218, 58, 3, 2, 2, 2, 219, 220, 7, 128, 2, 2, 220, 60, 3, 2, 2, 2, 221, 222, 7, 40, 2, 2, 222, 62, 3, 2, 2, 2, 223, 224, 7, 49, 2, 2, 224, 64, 3, 2, 2, 2, 225, 226, 7, 39, 2, 2, 226, 66, 3, 2, 2, 2, 227, 228, 7, 62, 2, 2, 228, 68, 3, 2, 2, 2, 229, 230, 7, 126, 2, 2, 230, 70, 3, 2, 2, 2, 231, 232, 7, 96, 2, 2, 232, 72, 3, 2, 2, 2, 233, 234, 7, 64, 2, 2, 234, 74, 3, 2, 2, 2, 235, 236, 7, 63, 2, 2, 236, 237, 7, 63, 2, 2, 237, 76, 3, 2, 2, 2, 238, 239, 7, 35, 2, 2, 239, 240, 7, 63, 2, 2, 240, 78, 3, 2, 2, 2, 241, 242, 7, 62, 2, 2, 242, 243, 7, 63, 2, 2, 243, 80, 3, 2, 2, 2, 244, 245, 7, 64, 2, 2, 245, 246, 7, 63, 2, 2, 246, 82, 3, 2, 2, 2, 247, 248, 7, 62, 2, 2, 248, 249, 7, 62, 2, 2, 249, 84, 3, 2, 2, 2, 250, 251, 7, 64, 2, 2, 251, 252, 7, 64, 2, 2, 252, 86, 3, 2, 2, 2, 253, 254, 7, 126, 2, 2, 254, 255, 7, 126, 2, 2, 255, 88, 3, 2, 2, 2, 256, 257, 7, 40, 2, 2, 257, 258, 7, 40, 2, 2, 258, 90, 3, 2, 2, 2, 259, 260, 7, 40, 2, 2, 260, 261, 7, 63, 2, 2, 261, 92, 3, 2, 2, 2, 262, 263, 7, 126, 2, 2, 263, 264, 7, 63, 2, 2, 264, 94, 3, 2, 2, 2, 265, 266, 7, 96, 2, 2, 266, 267, 7, 63, 2, 2, 267, 96, 3, 2, 2, 2, 268, 269, 7, 62, 2, 2, 269, 270, 7, 62, 2, 2, 270, 271, 7, 63, 2, 2, 271, 98, 3, 2, 2, 2, 272, 273, 7, 64, 2, 2, 273, 274, 7, 64, 2, 2, 274, 275, 7, 63, 2, 2, 275, 100, 3, 2, 2, 2, 276, 277, 7, 45, 2, 2, 277, 278, 7, 63, 2, 2, 278, 102, 3, 2, 2, 2, 279, 280, 7, 47, 2, 2, 280, 281, 7, 63, 2, 2, 281, 104, 3, 2, 2, 2, 282, 283, 7, 44, 2, 2, 283, 284, 7, 63, 2, 2, 284, 106, 3, 2, 2, 2, 285, 286, 7, 49, 2, 2, 286, 287, 7, 63, 2, 2, 287, 108, 3, 2, 2, 2, 288, 289, 7, 39, 2, 2, 289, 290, 7, 63, 2, 2, 290, 110, 3, 2, 2, 2, 291, 293, 9, 2, 2, 2, 292, 291, 3, 2, 2, 2, 292, 293, 3, 2, 2, 2, 293, 295, 3, 2, 2, 2, 294, 296, 9, 3, 2, 2, 295, 294, 3, 2, 2, 2, 296, 297, 3, 2, 2, 2, 297, 295, 3, 2, 2, 2, 297, 298, 3, 2, 2, 2, 298, 112, 3, 2, 2, 2, 299, 301, 9, 2, 2, 2, 300, 299, 3, 2, 2, 2, 301, 304, 3, 2, 2, 2, 302, 300, 3, 2, 2, 2, 302, 303, 3, 2, 2, 2, 303, 306, 3, 2, 2, 2, 304, 302, 3, 2, 2, 2, 305, 307, 9, 3, 2, 2, 306, 305, 3, 2, 2, 2, 307, 308, 3, 2, 2, 2, 308, 306, 3, 2, 2, 2, 308, 309, 3, 2, 2, 2, 309, 310, 3, 2, 2, 2, 310, 312, 7, 48, 2, 2, 311, 313, 9, 3, 2, 2, 312, 311, 3, 2, 2, 2, 313, 314, 3, 2, 2, 2, 314, 312, 3, 2, 2, 2, 314, 315, 3, 2, 2, 2, 315, 114, 3, 2, 2, 2, 316, 320, 7, 36, 2, 2, 317, 319, 9, 4, 2, 2, 318, 317, 3, 2, 2, 2, 319, 322, 3, 2, 2, 2, 320, 318, 3, 2, 2, 2, 320, 321, 3, 2, 2, 2, 321, 323, 3, 2, 2, 2, 322, 320, 3, 2, 2, 2, 323, 324, 7, 36, 2, 2, 324, 116, 3, 2, 2, 2, 325, 326, 7, 118, 2, 2, 326, 327, 7, 116, 2, 2, 327, 328, 7, 119, 2, 2, 328, 335, 7, 103, 2, 2, 329, 330, 7, 104, 2, 2, 330, 331, 7, 99, 2, 2, 331, 332, 7, 110, 2, 2, 332, 333, 7, 117, 2, 2, 333, 335, 7, 103, 2, 2, 334, 325, 3, 2, 2, 2, 334, 329, 3, 2, 2, 2, 335, 118, 3, 2, 2, 2, 336, 338, 9, 5, 2, 2, 337, 336, 3, 2, 2, 2, 338, 339, 3, 2, 2, 2, 339, 337, 3, 2, 2, 2, 339, 340, 3, 2, 2, 2, 340, 120, 3, 2, 2, 2, 341, 343, 9, 6, 2, 2, 342, 341, 3, 2, 2, 2, 343, 344, 3, 2, 2, 2, 344, 342, 3, 2, 2, 2, 344, 345, 3, 2, 2, 2, 345, 346, 3, 2, 2, 2, 346, 347, 8, 61, 2, 2, 347, 122, 3, 2, 2, 2, 348, 350, 9, 7, 2, 2, 349, 348, 3, 2, 2, 2, 350, 351, 3, 2, 2, 2, 351, 349, 3, 2, 2, 2, 351, 352, 3, 2, 2, 2, 352, 124, 3, 2, 2, 2, 353, 355, 9, 3, 2, 2, 354, 353, 3, 2, 2, 2, 355, 356, 3, 2, 2, 2, 356, 354, 3, 2, 2, 2, 356, 357, 3, 2, 2, 2, 357, 126, 3, 2, 2, 2, 15, 2, 292, 297, 302, 308, 314, 320, 334, 337, 339, 344, 351, 356, 3, 8, 2, 2] \ No newline at end of file +[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 64, 355, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54, 4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 4, 58, 9, 58, 4, 59, 9, 59, 4, 60, 9, 60, 4, 61, 9, 61, 4, 62, 9, 62, 4, 63, 9, 63, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29, 3, 29, 3, 30, 3, 30, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 34, 3, 34, 3, 35, 3, 35, 3, 36, 3, 36, 3, 37, 3, 37, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 3, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 3, 45, 3, 45, 3, 45, 3, 46, 3, 46, 3, 46, 3, 47, 3, 47, 3, 47, 3, 48, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 3, 50, 3, 50, 3, 50, 3, 50, 3, 51, 3, 51, 3, 51, 3, 51, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 3, 54, 3, 55, 3, 55, 3, 55, 3, 56, 3, 56, 3, 56, 3, 57, 5, 57, 295, 10, 57, 3, 57, 6, 57, 298, 10, 57, 13, 57, 14, 57, 299, 3, 58, 7, 58, 303, 10, 58, 12, 58, 14, 58, 306, 11, 58, 3, 58, 6, 58, 309, 10, 58, 13, 58, 14, 58, 310, 3, 58, 3, 58, 6, 58, 315, 10, 58, 13, 58, 14, 58, 316, 3, 59, 3, 59, 7, 59, 321, 10, 59, 12, 59, 14, 59, 324, 11, 59, 3, 59, 3, 59, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 5, 60, 337, 10, 60, 3, 61, 6, 61, 340, 10, 61, 13, 61, 14, 61, 341, 3, 62, 6, 62, 345, 10, 62, 13, 62, 14, 62, 346, 3, 62, 3, 62, 3, 63, 6, 63, 352, 10, 63, 13, 63, 14, 63, 353, 2, 2, 64, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39, 21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57, 30, 59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75, 39, 77, 40, 79, 41, 81, 42, 83, 43, 85, 44, 87, 45, 89, 46, 91, 47, 93, 48, 95, 49, 97, 50, 99, 51, 101, 52, 103, 53, 105, 54, 107, 55, 109, 56, 111, 57, 113, 58, 115, 59, 117, 60, 119, 61, 121, 62, 123, 63, 125, 64, 3, 2, 8, 4, 2, 45, 45, 47, 47, 3, 2, 50, 59, 4, 2, 36, 36, 96, 96, 5, 2, 50, 59, 67, 92, 99, 124, 5, 2, 11, 12, 15, 15, 34, 34, 4, 2, 12, 12, 15, 15, 2, 364, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 51, 3, 2, 2, 2, 2, 53, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57, 3, 2, 2, 2, 2, 59, 3, 2, 2, 2, 2, 61, 3, 2, 2, 2, 2, 63, 3, 2, 2, 2, 2, 65, 3, 2, 2, 2, 2, 67, 3, 2, 2, 2, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2, 2, 73, 3, 2, 2, 2, 2, 75, 3, 2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2, 2, 2, 81, 3, 2, 2, 2, 2, 83, 3, 2, 2, 2, 2, 85, 3, 2, 2, 2, 2, 87, 3, 2, 2, 2, 2, 89, 3, 2, 2, 2, 2, 91, 3, 2, 2, 2, 2, 93, 3, 2, 2, 2, 2, 95, 3, 2, 2, 2, 2, 97, 3, 2, 2, 2, 2, 99, 3, 2, 2, 2, 2, 101, 3, 2, 2, 2, 2, 103, 3, 2, 2, 2, 2, 105, 3, 2, 2, 2, 2, 107, 3, 2, 2, 2, 2, 109, 3, 2, 2, 2, 2, 111, 3, 2, 2, 2, 2, 113, 3, 2, 2, 2, 2, 115, 3, 2, 2, 2, 2, 117, 3, 2, 2, 2, 2, 119, 3, 2, 2, 2, 2, 121, 3, 2, 2, 2, 2, 123, 3, 2, 2, 2, 2, 125, 3, 2, 2, 2, 3, 127, 3, 2, 2, 2, 5, 129, 3, 2, 2, 2, 7, 133, 3, 2, 2, 2, 9, 135, 3, 2, 2, 2, 11, 137, 3, 2, 2, 2, 13, 139, 3, 2, 2, 2, 15, 141, 3, 2, 2, 2, 17, 143, 3, 2, 2, 2, 19, 148, 3, 2, 2, 2, 21, 150, 3, 2, 2, 2, 23, 152, 3, 2, 2, 2, 25, 154, 3, 2, 2, 2, 27, 156, 3, 2, 2, 2, 29, 158, 3, 2, 2, 2, 31, 165, 3, 2, 2, 2, 33, 168, 3, 2, 2, 2, 35, 173, 3, 2, 2, 2, 37, 180, 3, 2, 2, 2, 39, 185, 3, 2, 2, 2, 41, 189, 3, 2, 2, 2, 43, 195, 3, 2, 2, 2, 45, 202, 3, 2, 2, 2, 47, 204, 3, 2, 2, 2, 49, 206, 3, 2, 2, 2, 51, 209, 3, 2, 2, 2, 53, 212, 3, 2, 2, 2, 55, 215, 3, 2, 2, 2, 57, 217, 3, 2, 2, 2, 59, 219, 3, 2, 2, 2, 61, 221, 3, 2, 2, 2, 63, 223, 3, 2, 2, 2, 65, 225, 3, 2, 2, 2, 67, 227, 3, 2, 2, 2, 69, 229, 3, 2, 2, 2, 71, 231, 3, 2, 2, 2, 73, 233, 3, 2, 2, 2, 75, 235, 3, 2, 2, 2, 77, 237, 3, 2, 2, 2, 79, 240, 3, 2, 2, 2, 81, 243, 3, 2, 2, 2, 83, 246, 3, 2, 2, 2, 85, 249, 3, 2, 2, 2, 87, 252, 3, 2, 2, 2, 89, 255, 3, 2, 2, 2, 91, 258, 3, 2, 2, 2, 93, 261, 3, 2, 2, 2, 95, 264, 3, 2, 2, 2, 97, 267, 3, 2, 2, 2, 99, 270, 3, 2, 2, 2, 101, 274, 3, 2, 2, 2, 103, 278, 3, 2, 2, 2, 105, 281, 3, 2, 2, 2, 107, 284, 3, 2, 2, 2, 109, 287, 3, 2, 2, 2, 111, 290, 3, 2, 2, 2, 113, 294, 3, 2, 2, 2, 115, 304, 3, 2, 2, 2, 117, 318, 3, 2, 2, 2, 119, 336, 3, 2, 2, 2, 121, 339, 3, 2, 2, 2, 123, 344, 3, 2, 2, 2, 125, 351, 3, 2, 2, 2, 127, 128, 7, 61, 2, 2, 128, 4, 3, 2, 2, 2, 129, 130, 7, 120, 2, 2, 130, 131, 7, 99, 2, 2, 131, 132, 7, 116, 2, 2, 132, 6, 3, 2, 2, 2, 133, 134, 7, 60, 2, 2, 134, 8, 3, 2, 2, 2, 135, 136, 7, 63, 2, 2, 136, 10, 3, 2, 2, 2, 137, 138, 7, 44, 2, 2, 138, 12, 3, 2, 2, 2, 139, 140, 7, 93, 2, 2, 140, 14, 3, 2, 2, 2, 141, 142, 7, 95, 2, 2, 142, 16, 3, 2, 2, 2, 143, 144, 7, 104, 2, 2, 144, 145, 7, 119, 2, 2, 145, 146, 7, 112, 2, 2, 146, 147, 7, 101, 2, 2, 147, 18, 3, 2, 2, 2, 148, 149, 7, 42, 2, 2, 149, 20, 3, 2, 2, 2, 150, 151, 7, 43, 2, 2, 151, 22, 3, 2, 2, 2, 152, 153, 7, 46, 2, 2, 153, 24, 3, 2, 2, 2, 154, 155, 7, 125, 2, 2, 155, 26, 3, 2, 2, 2, 156, 157, 7, 127, 2, 2, 157, 28, 3, 2, 2, 2, 158, 159, 7, 117, 2, 2, 159, 160, 7, 118, 2, 2, 160, 161, 7, 116, 2, 2, 161, 162, 7, 119, 2, 2, 162, 163, 7, 101, 2, 2, 163, 164, 7, 118, 2, 2, 164, 30, 3, 2, 2, 2, 165, 166, 7, 107, 2, 2, 166, 167, 7, 104, 2, 2, 167, 32, 3, 2, 2, 2, 168, 169, 7, 103, 2, 2, 169, 170, 7, 110, 2, 2, 170, 171, 7, 117, 2, 2, 171, 172, 7, 103, 2, 2, 172, 34, 3, 2, 2, 2, 173, 174, 7, 117, 2, 2, 174, 175, 7, 121, 2, 2, 175, 176, 7, 107, 2, 2, 176, 177, 7, 118, 2, 2, 177, 178, 7, 101, 2, 2, 178, 179, 7, 106, 2, 2, 179, 36, 3, 2, 2, 2, 180, 181, 7, 101, 2, 2, 181, 182, 7, 99, 2, 2, 182, 183, 7, 117, 2, 2, 183, 184, 7, 103, 2, 2, 184, 38, 3, 2, 2, 2, 185, 186, 7, 104, 2, 2, 186, 187, 7, 113, 2, 2, 187, 188, 7, 116, 2, 2, 188, 40, 3, 2, 2, 2, 189, 190, 7, 121, 2, 2, 190, 191, 7, 106, 2, 2, 191, 192, 7, 107, 2, 2, 192, 193, 7, 110, 2, 2, 193, 194, 7, 103, 2, 2, 194, 42, 3, 2, 2, 2, 195, 196, 7, 116, 2, 2, 196, 197, 7, 103, 2, 2, 197, 198, 7, 118, 2, 2, 198, 199, 7, 119, 2, 2, 199, 200, 7, 116, 2, 2, 200, 201, 7, 112, 2, 2, 201, 44, 3, 2, 2, 2, 202, 203, 7, 65, 2, 2, 203, 46, 3, 2, 2, 2, 204, 205, 7, 48, 2, 2, 205, 48, 3, 2, 2, 2, 206, 207, 7, 47, 2, 2, 207, 208, 7, 64, 2, 2, 208, 50, 3, 2, 2, 2, 209, 210, 7, 45, 2, 2, 210, 211, 7, 45, 2, 2, 211, 52, 3, 2, 2, 2, 212, 213, 7, 47, 2, 2, 213, 214, 7, 47, 2, 2, 214, 54, 3, 2, 2, 2, 215, 216, 7, 45, 2, 2, 216, 56, 3, 2, 2, 2, 217, 218, 7, 47, 2, 2, 218, 58, 3, 2, 2, 2, 219, 220, 7, 35, 2, 2, 220, 60, 3, 2, 2, 2, 221, 222, 7, 128, 2, 2, 222, 62, 3, 2, 2, 2, 223, 224, 7, 40, 2, 2, 224, 64, 3, 2, 2, 2, 225, 226, 7, 49, 2, 2, 226, 66, 3, 2, 2, 2, 227, 228, 7, 39, 2, 2, 228, 68, 3, 2, 2, 2, 229, 230, 7, 62, 2, 2, 230, 70, 3, 2, 2, 2, 231, 232, 7, 126, 2, 2, 232, 72, 3, 2, 2, 2, 233, 234, 7, 96, 2, 2, 234, 74, 3, 2, 2, 2, 235, 236, 7, 64, 2, 2, 236, 76, 3, 2, 2, 2, 237, 238, 7, 63, 2, 2, 238, 239, 7, 63, 2, 2, 239, 78, 3, 2, 2, 2, 240, 241, 7, 35, 2, 2, 241, 242, 7, 63, 2, 2, 242, 80, 3, 2, 2, 2, 243, 244, 7, 62, 2, 2, 244, 245, 7, 63, 2, 2, 245, 82, 3, 2, 2, 2, 246, 247, 7, 64, 2, 2, 247, 248, 7, 63, 2, 2, 248, 84, 3, 2, 2, 2, 249, 250, 7, 62, 2, 2, 250, 251, 7, 62, 2, 2, 251, 86, 3, 2, 2, 2, 252, 253, 7, 64, 2, 2, 253, 254, 7, 64, 2, 2, 254, 88, 3, 2, 2, 2, 255, 256, 7, 126, 2, 2, 256, 257, 7, 126, 2, 2, 257, 90, 3, 2, 2, 2, 258, 259, 7, 40, 2, 2, 259, 260, 7, 40, 2, 2, 260, 92, 3, 2, 2, 2, 261, 262, 7, 40, 2, 2, 262, 263, 7, 63, 2, 2, 263, 94, 3, 2, 2, 2, 264, 265, 7, 126, 2, 2, 265, 266, 7, 63, 2, 2, 266, 96, 3, 2, 2, 2, 267, 268, 7, 96, 2, 2, 268, 269, 7, 63, 2, 2, 269, 98, 3, 2, 2, 2, 270, 271, 7, 62, 2, 2, 271, 272, 7, 62, 2, 2, 272, 273, 7, 63, 2, 2, 273, 100, 3, 2, 2, 2, 274, 275, 7, 64, 2, 2, 275, 276, 7, 64, 2, 2, 276, 277, 7, 63, 2, 2, 277, 102, 3, 2, 2, 2, 278, 279, 7, 45, 2, 2, 279, 280, 7, 63, 2, 2, 280, 104, 3, 2, 2, 2, 281, 282, 7, 47, 2, 2, 282, 283, 7, 63, 2, 2, 283, 106, 3, 2, 2, 2, 284, 285, 7, 44, 2, 2, 285, 286, 7, 63, 2, 2, 286, 108, 3, 2, 2, 2, 287, 288, 7, 49, 2, 2, 288, 289, 7, 63, 2, 2, 289, 110, 3, 2, 2, 2, 290, 291, 7, 39, 2, 2, 291, 292, 7, 63, 2, 2, 292, 112, 3, 2, 2, 2, 293, 295, 9, 2, 2, 2, 294, 293, 3, 2, 2, 2, 294, 295, 3, 2, 2, 2, 295, 297, 3, 2, 2, 2, 296, 298, 9, 3, 2, 2, 297, 296, 3, 2, 2, 2, 298, 299, 3, 2, 2, 2, 299, 297, 3, 2, 2, 2, 299, 300, 3, 2, 2, 2, 300, 114, 3, 2, 2, 2, 301, 303, 9, 2, 2, 2, 302, 301, 3, 2, 2, 2, 303, 306, 3, 2, 2, 2, 304, 302, 3, 2, 2, 2, 304, 305, 3, 2, 2, 2, 305, 308, 3, 2, 2, 2, 306, 304, 3, 2, 2, 2, 307, 309, 9, 3, 2, 2, 308, 307, 3, 2, 2, 2, 309, 310, 3, 2, 2, 2, 310, 308, 3, 2, 2, 2, 310, 311, 3, 2, 2, 2, 311, 312, 3, 2, 2, 2, 312, 314, 7, 48, 2, 2, 313, 315, 9, 3, 2, 2, 314, 313, 3, 2, 2, 2, 315, 316, 3, 2, 2, 2, 316, 314, 3, 2, 2, 2, 316, 317, 3, 2, 2, 2, 317, 116, 3, 2, 2, 2, 318, 322, 7, 36, 2, 2, 319, 321, 9, 4, 2, 2, 320, 319, 3, 2, 2, 2, 321, 324, 3, 2, 2, 2, 322, 320, 3, 2, 2, 2, 322, 323, 3, 2, 2, 2, 323, 325, 3, 2, 2, 2, 324, 322, 3, 2, 2, 2, 325, 326, 7, 36, 2, 2, 326, 118, 3, 2, 2, 2, 327, 328, 7, 118, 2, 2, 328, 329, 7, 116, 2, 2, 329, 330, 7, 119, 2, 2, 330, 337, 7, 103, 2, 2, 331, 332, 7, 104, 2, 2, 332, 333, 7, 99, 2, 2, 333, 334, 7, 110, 2, 2, 334, 335, 7, 117, 2, 2, 335, 337, 7, 103, 2, 2, 336, 327, 3, 2, 2, 2, 336, 331, 3, 2, 2, 2, 337, 120, 3, 2, 2, 2, 338, 340, 9, 5, 2, 2, 339, 338, 3, 2, 2, 2, 340, 341, 3, 2, 2, 2, 341, 339, 3, 2, 2, 2, 341, 342, 3, 2, 2, 2, 342, 122, 3, 2, 2, 2, 343, 345, 9, 6, 2, 2, 344, 343, 3, 2, 2, 2, 345, 346, 3, 2, 2, 2, 346, 344, 3, 2, 2, 2, 346, 347, 3, 2, 2, 2, 347, 348, 3, 2, 2, 2, 348, 349, 8, 62, 2, 2, 349, 124, 3, 2, 2, 2, 350, 352, 9, 7, 2, 2, 351, 350, 3, 2, 2, 2, 352, 353, 3, 2, 2, 2, 353, 351, 3, 2, 2, 2, 353, 354, 3, 2, 2, 2, 354, 126, 3, 2, 2, 2, 14, 2, 294, 299, 304, 310, 316, 322, 336, 339, 341, 346, 353, 3, 8, 2, 2] \ No newline at end of file diff --git a/gen/TocLexer.tokens b/gen/TocLexer.tokens index 446ddcd..4580517 100644 --- a/gen/TocLexer.tokens +++ b/gen/TocLexer.tokens @@ -52,65 +52,66 @@ T__50=51 T__51=52 T__52=53 T__53=54 -INT_LIT=55 -DECIMAL_LIT=56 -STRING_LIT=57 -BOOL_LIT=58 -NAME=59 -WS=60 -NEWLINE=61 -NUMBER=62 -'var'=1 -':'=2 -'='=3 -'*'=4 -'['=5 -']'=6 -'func'=7 -'('=8 -')'=9 -','=10 -'{'=11 -'}'=12 -'struct'=13 -'if'=14 -'else'=15 -'switch'=16 -'case'=17 -'for'=18 -'while'=19 -'return'=20 -'?'=21 -'.'=22 -'->'=23 -'++'=24 -'--'=25 -'+'=26 -'-'=27 -'!'=28 -'~'=29 -'&'=30 -'/'=31 -'%'=32 -'<'=33 -'|'=34 -'^'=35 -'>'=36 -'=='=37 -'!='=38 -'<='=39 -'>='=40 -'<<'=41 -'>>'=42 -'||'=43 -'&&'=44 -'&='=45 -'|='=46 -'^='=47 -'<<='=48 -'>>='=49 -'+='=50 -'-='=51 -'*='=52 -'/='=53 -'%='=54 +T__54=55 +INT_LIT=56 +DECIMAL_LIT=57 +STRING_LIT=58 +BOOL_LIT=59 +NAME=60 +WS=61 +NEWLINE=62 +';'=1 +'var'=2 +':'=3 +'='=4 +'*'=5 +'['=6 +']'=7 +'func'=8 +'('=9 +')'=10 +','=11 +'{'=12 +'}'=13 +'struct'=14 +'if'=15 +'else'=16 +'switch'=17 +'case'=18 +'for'=19 +'while'=20 +'return'=21 +'?'=22 +'.'=23 +'->'=24 +'++'=25 +'--'=26 +'+'=27 +'-'=28 +'!'=29 +'~'=30 +'&'=31 +'/'=32 +'%'=33 +'<'=34 +'|'=35 +'^'=36 +'>'=37 +'=='=38 +'!='=39 +'<='=40 +'>='=41 +'<<'=42 +'>>'=43 +'||'=44 +'&&'=45 +'&='=46 +'|='=47 +'^='=48 +'<<='=49 +'>>='=50 +'+='=51 +'-='=52 +'*='=53 +'/='=54 +'%='=55 diff --git a/gen/TocParser.cpp b/gen/TocParser.cpp index 0088f72..5c5f85b 100644 --- a/gen/TocParser.cpp +++ b/gen/TocParser.cpp @@ -90,9 +90,9 @@ TocParser::ProgContext* TocParser::prog() { _errHandler->sync(this); _la = _input->LA(1); } while ((((_la & ~ 0x3fULL) == 0) && - ((1ULL << _la) & ((1ULL << TocParser::T__0) - | (1ULL << TocParser::T__6) - | (1ULL << TocParser::T__12))) != 0)); + ((1ULL << _la) & ((1ULL << TocParser::T__1) + | (1ULL << TocParser::T__7) + | (1ULL << TocParser::T__13))) != 0)); setState(103); match(TocParser::EOF); @@ -153,26 +153,28 @@ TocParser::DeclContext* TocParser::decl() { exitRule(); }); try { - setState(108); + setState(110); _errHandler->sync(this); switch (_input->LA(1)) { - case TocParser::T__0: { + case TocParser::T__1: { enterOuterAlt(_localctx, 1); setState(105); varDecl(); + setState(106); + match(TocParser::T__0); break; } - case TocParser::T__6: { + case TocParser::T__7: { enterOuterAlt(_localctx, 2); - setState(106); + setState(108); funcDecl(); break; } - case TocParser::T__12: { + case TocParser::T__13: { enterOuterAlt(_localctx, 3); - setState(107); + setState(109); structDecl(); break; } @@ -231,9 +233,9 @@ TocParser::VarDeclContext* TocParser::varDecl() { }); try { enterOuterAlt(_localctx, 1); - setState(110); - match(TocParser::T__0); - setState(111); + setState(112); + match(TocParser::T__1); + setState(113); var(); } @@ -295,21 +297,21 @@ TocParser::VarContext* TocParser::var() { }); try { enterOuterAlt(_localctx, 1); - setState(113); + setState(115); varName(); - setState(114); - match(TocParser::T__1); - setState(115); + setState(116); + match(TocParser::T__2); + setState(117); type(); - setState(119); + setState(121); _errHandler->sync(this); _la = _input->LA(1); - if (_la == TocParser::T__2) { - setState(117); - match(TocParser::T__2); - setState(118); + if (_la == TocParser::T__3) { + setState(119); + match(TocParser::T__3); + setState(120); expr(); } @@ -371,17 +373,17 @@ TocParser::VarInitContext* TocParser::varInit() { }); try { enterOuterAlt(_localctx, 1); - setState(121); + setState(123); varName(); - setState(122); - match(TocParser::T__1); - setState(123); + setState(124); + match(TocParser::T__2); + setState(125); type(); - setState(125); - match(TocParser::T__2); - setState(126); + setState(127); + match(TocParser::T__3); + setState(128); expr(); } @@ -432,6 +434,7 @@ void TocParser::TypeContext::exitRule(tree::ParseTreeListener *listener) { TocParser::TypeContext* TocParser::type() { TypeContext *_localctx = _tracker.createInstance(_ctx, getState()); enterRule(_localctx, 10, TocParser::RuleType); + size_t _la = 0; #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -441,21 +444,20 @@ TocParser::TypeContext* TocParser::type() { exitRule(); }); try { - size_t alt; enterOuterAlt(_localctx, 1); - setState(128); + setState(130); typeName(); - setState(132); + setState(134); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 3, _ctx); - while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { - if (alt == 1) { - setState(129); - typeModifier(); - } - setState(134); + _la = _input->LA(1); + while (_la == TocParser::T__4 + + || _la == TocParser::T__5) { + setState(131); + typeModifier(); + setState(136); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 3, _ctx); + _la = _input->LA(1); } } @@ -474,8 +476,8 @@ TocParser::TypeModifierContext::TypeModifierContext(ParserRuleContext *parent, s : ParserRuleContext(parent, invokingState) { } -tree::TerminalNode* TocParser::TypeModifierContext::NUMBER() { - return getToken(TocParser::NUMBER, 0); +tree::TerminalNode* TocParser::TypeModifierContext::INT_LIT() { + return getToken(TocParser::INT_LIT, 0); } @@ -508,30 +510,30 @@ TocParser::TypeModifierContext* TocParser::typeModifier() { exitRule(); }); try { - setState(141); + setState(143); _errHandler->sync(this); switch (_input->LA(1)) { - case TocParser::T__3: { + case TocParser::T__4: { enterOuterAlt(_localctx, 1); - setState(135); - match(TocParser::T__3); + setState(137); + match(TocParser::T__4); break; } - case TocParser::T__4: { + case TocParser::T__5: { enterOuterAlt(_localctx, 2); - setState(136); - match(TocParser::T__4); setState(138); + match(TocParser::T__5); + setState(140); _errHandler->sync(this); _la = _input->LA(1); - if (_la == TocParser::NUMBER) { - setState(137); - match(TocParser::NUMBER); + if (_la == TocParser::INT_LIT) { + setState(139); + match(TocParser::INT_LIT); } - setState(140); - match(TocParser::T__5); + setState(142); + match(TocParser::T__6); break; } @@ -589,9 +591,9 @@ TocParser::FuncDeclContext* TocParser::funcDecl() { }); try { enterOuterAlt(_localctx, 1); - setState(143); - match(TocParser::T__6); - setState(144); + setState(145); + match(TocParser::T__7); + setState(146); func(); } @@ -656,20 +658,20 @@ TocParser::FuncContext* TocParser::func() { }); try { enterOuterAlt(_localctx, 1); - setState(146); - funcName(); - setState(147); - match(TocParser::T__7); setState(148); - parameter(); + funcName(); setState(149); match(TocParser::T__8); - setState(150); - match(TocParser::T__1); + parameter(); setState(151); - type(); + match(TocParser::T__9); + + setState(152); + match(TocParser::T__2); setState(153); + type(); + setState(155); body(); } @@ -727,22 +729,22 @@ TocParser::ParameterContext* TocParser::parameter() { }); try { enterOuterAlt(_localctx, 1); - setState(163); + setState(165); _errHandler->sync(this); _la = _input->LA(1); if (_la == TocParser::NAME) { - setState(155); + setState(157); var(); - setState(160); + setState(162); _errHandler->sync(this); _la = _input->LA(1); - while (_la == TocParser::T__9) { - setState(156); - match(TocParser::T__9); - setState(157); + while (_la == TocParser::T__10) { + setState(158); + match(TocParser::T__10); + setState(159); var(); - setState(162); + setState(164); _errHandler->sync(this); _la = _input->LA(1); } @@ -803,40 +805,40 @@ TocParser::BodyContext* TocParser::body() { }); try { enterOuterAlt(_localctx, 1); - setState(165); - match(TocParser::T__10); - setState(169); + setState(167); + match(TocParser::T__11); + setState(171); _errHandler->sync(this); _la = _input->LA(1); while ((((_la & ~ 0x3fULL) == 0) && - ((1ULL << _la) & ((1ULL << TocParser::T__0) - | (1ULL << TocParser::T__3) - | (1ULL << TocParser::T__7) - | (1ULL << TocParser::T__13) - | (1ULL << TocParser::T__15) - | (1ULL << TocParser::T__17) + ((1ULL << _la) & ((1ULL << TocParser::T__1) + | (1ULL << TocParser::T__4) + | (1ULL << TocParser::T__8) + | (1ULL << TocParser::T__14) + | (1ULL << TocParser::T__16) | (1ULL << TocParser::T__18) | (1ULL << TocParser::T__19) - | (1ULL << TocParser::T__23) + | (1ULL << TocParser::T__20) | (1ULL << TocParser::T__24) | (1ULL << TocParser::T__25) | (1ULL << TocParser::T__26) | (1ULL << TocParser::T__27) | (1ULL << TocParser::T__28) | (1ULL << TocParser::T__29) + | (1ULL << TocParser::T__30) | (1ULL << TocParser::INT_LIT) | (1ULL << TocParser::DECIMAL_LIT) | (1ULL << TocParser::STRING_LIT) | (1ULL << TocParser::BOOL_LIT) | (1ULL << TocParser::NAME))) != 0)) { - setState(166); + setState(168); stmt(); - setState(171); + setState(173); _errHandler->sync(this); _la = _input->LA(1); } - setState(172); - match(TocParser::T__11); + setState(174); + match(TocParser::T__12); } catch (RecognitionException &e) { @@ -897,24 +899,24 @@ TocParser::StructDeclContext* TocParser::structDecl() { }); try { enterOuterAlt(_localctx, 1); - setState(174); - match(TocParser::T__12); - setState(175); - structName(); setState(176); - match(TocParser::T__10); - setState(180); + match(TocParser::T__13); + setState(177); + structName(); + setState(178); + match(TocParser::T__11); + setState(182); _errHandler->sync(this); _la = _input->LA(1); while (_la == TocParser::NAME) { - setState(177); + setState(179); structMember(); - setState(182); + setState(184); _errHandler->sync(this); _la = _input->LA(1); } - setState(183); - match(TocParser::T__11); + setState(185); + match(TocParser::T__12); } catch (RecognitionException &e) { @@ -969,19 +971,19 @@ TocParser::StructMemberContext* TocParser::structMember() { exitRule(); }); try { - setState(187); + setState(189); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 10, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(185); + setState(187); structVar(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(186); + setState(188); structMethod(); break; } @@ -1040,8 +1042,10 @@ TocParser::StructVarContext* TocParser::structVar() { }); try { enterOuterAlt(_localctx, 1); - setState(189); + setState(191); var(); + setState(192); + match(TocParser::T__0); } catch (RecognitionException &e) { @@ -1093,7 +1097,7 @@ TocParser::StructMethodContext* TocParser::structMethod() { }); try { enterOuterAlt(_localctx, 1); - setState(191); + setState(194); func(); } @@ -1173,62 +1177,70 @@ TocParser::StmtContext* TocParser::stmt() { exitRule(); }); try { - setState(201); + setState(212); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 11, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(193); + setState(196); varDecl(); + setState(197); + match(TocParser::T__0); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(194); + setState(199); ifStmt(); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(195); + setState(200); switchStmt(); break; } case 4: { enterOuterAlt(_localctx, 4); - setState(196); + setState(201); forStmt(); break; } case 5: { enterOuterAlt(_localctx, 5); - setState(197); + setState(202); whileStmt(); break; } case 6: { enterOuterAlt(_localctx, 6); - setState(198); + setState(203); assignStmt(); + setState(204); + match(TocParser::T__0); break; } case 7: { enterOuterAlt(_localctx, 7); - setState(199); + setState(206); returnStmt(); + setState(207); + match(TocParser::T__0); break; } case 8: { enterOuterAlt(_localctx, 8); - setState(200); + setState(209); expr(); + setState(210); + match(TocParser::T__0); break; } @@ -1304,30 +1316,30 @@ TocParser::IfStmtContext* TocParser::ifStmt() { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(203); - match(TocParser::T__13); - setState(204); + setState(214); + match(TocParser::T__14); + setState(215); expr(); - setState(205); + setState(216); body(); - setState(209); + setState(220); _errHandler->sync(this); alt = getInterpreter()->adaptivePredict(_input, 12, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { - setState(206); + setState(217); elseIfStmt(); } - setState(211); + setState(222); _errHandler->sync(this); alt = getInterpreter()->adaptivePredict(_input, 12, _ctx); } - setState(213); + setState(224); _errHandler->sync(this); _la = _input->LA(1); - if (_la == TocParser::T__14) { - setState(212); + if (_la == TocParser::T__15) { + setState(223); elseStmt(); } @@ -1385,13 +1397,13 @@ TocParser::ElseIfStmtContext* TocParser::elseIfStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(215); + setState(226); + match(TocParser::T__15); + setState(227); match(TocParser::T__14); - setState(216); - match(TocParser::T__13); - setState(217); + setState(228); expr(); - setState(218); + setState(229); body(); } @@ -1444,9 +1456,9 @@ TocParser::ElseStmtContext* TocParser::elseStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(220); - match(TocParser::T__14); - setState(221); + setState(231); + match(TocParser::T__15); + setState(232); body(); } @@ -1503,11 +1515,11 @@ TocParser::SwitchStmtContext* TocParser::switchStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(223); - match(TocParser::T__15); - setState(224); + setState(234); + match(TocParser::T__16); + setState(235); identifierExpr(); - setState(225); + setState(236); switchBody(); } @@ -1565,20 +1577,20 @@ TocParser::SwitchBodyContext* TocParser::switchBody() { }); try { enterOuterAlt(_localctx, 1); - setState(227); - match(TocParser::T__10); - setState(231); + setState(238); + match(TocParser::T__11); + setState(242); _errHandler->sync(this); _la = _input->LA(1); - while (_la == TocParser::T__16) { - setState(228); + while (_la == TocParser::T__17) { + setState(239); switchCase(); - setState(233); + setState(244); _errHandler->sync(this); _la = _input->LA(1); } - setState(234); - match(TocParser::T__11); + setState(245); + match(TocParser::T__12); } catch (RecognitionException &e) { @@ -1634,11 +1646,11 @@ TocParser::SwitchCaseContext* TocParser::switchCase() { }); try { enterOuterAlt(_localctx, 1); - setState(236); - match(TocParser::T__16); - setState(237); + setState(247); + match(TocParser::T__17); + setState(248); expr(); - setState(238); + setState(249); body(); } @@ -1707,19 +1719,19 @@ TocParser::ForStmtContext* TocParser::forStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(240); - match(TocParser::T__17); - setState(243); + setState(251); + match(TocParser::T__18); + setState(254); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 15, _ctx)) { case 1: { - setState(241); + setState(252); varInit(); break; } case 2: { - setState(242); + setState(253); assignStmt(); break; } @@ -1727,15 +1739,15 @@ TocParser::ForStmtContext* TocParser::forStmt() { default: break; } - setState(245); - match(TocParser::T__9); - setState(246); + setState(256); + match(TocParser::T__10); + setState(257); expr(); - setState(247); - match(TocParser::T__9); - setState(248); + setState(258); + match(TocParser::T__10); + setState(259); expr(); - setState(249); + setState(260); body(); } @@ -1792,11 +1804,11 @@ TocParser::WhileStmtContext* TocParser::whileStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(251); - match(TocParser::T__18); - setState(252); + setState(262); + match(TocParser::T__19); + setState(263); expr(); - setState(253); + setState(264); body(); } @@ -1853,11 +1865,11 @@ TocParser::AssignStmtContext* TocParser::assignStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(255); + setState(266); identifierExpr(); - setState(256); - match(TocParser::T__2); - setState(257); + setState(267); + match(TocParser::T__3); + setState(268); expr(); } @@ -1910,9 +1922,9 @@ TocParser::ReturnStmtContext* TocParser::returnStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(259); - match(TocParser::T__19); - setState(260); + setState(270); + match(TocParser::T__20); + setState(271); expr(); } @@ -1984,47 +1996,47 @@ TocParser::ExprContext* TocParser::expr() { exitRule(); }); try { - setState(268); + setState(279); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 16, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(262); + setState(273); funcExpr(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(263); + setState(274); litExpr(); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(264); + setState(275); identifierExpr(); break; } case 4: { enterOuterAlt(_localctx, 4); - setState(265); + setState(276); parenExpr(); break; } case 5: { enterOuterAlt(_localctx, 5); - setState(266); + setState(277); accessExpr(); break; } case 6: { enterOuterAlt(_localctx, 6); - setState(267); + setState(278); opExpr(); break; } @@ -2098,40 +2110,40 @@ TocParser::NonOpExprContext* TocParser::nonOpExpr() { exitRule(); }); try { - setState(275); + setState(286); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 17, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(270); + setState(281); funcExpr(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(271); + setState(282); litExpr(); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(272); + setState(283); identifierExpr(); break; } case 4: { enterOuterAlt(_localctx, 4); - setState(273); + setState(284); parenExpr(); break; } case 5: { enterOuterAlt(_localctx, 5); - setState(274); + setState(285); accessExpr(); break; } @@ -2197,26 +2209,26 @@ TocParser::NonAccessExprContext* TocParser::nonAccessExpr() { exitRule(); }); try { - setState(280); + setState(291); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 18, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(277); + setState(288); funcExpr(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(278); + setState(289); identifierExpr(); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(279); + setState(290); parenExpr(); break; } @@ -2284,46 +2296,46 @@ TocParser::FuncExprContext* TocParser::funcExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(282); + setState(293); funcName(); - setState(283); - match(TocParser::T__7); - setState(292); + setState(294); + match(TocParser::T__8); + setState(303); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && - ((1ULL << _la) & ((1ULL << TocParser::T__3) - | (1ULL << TocParser::T__7) - | (1ULL << TocParser::T__23) + ((1ULL << _la) & ((1ULL << TocParser::T__4) + | (1ULL << TocParser::T__8) | (1ULL << TocParser::T__24) | (1ULL << TocParser::T__25) | (1ULL << TocParser::T__26) | (1ULL << TocParser::T__27) | (1ULL << TocParser::T__28) | (1ULL << TocParser::T__29) + | (1ULL << TocParser::T__30) | (1ULL << TocParser::INT_LIT) | (1ULL << TocParser::DECIMAL_LIT) | (1ULL << TocParser::STRING_LIT) | (1ULL << TocParser::BOOL_LIT) | (1ULL << TocParser::NAME))) != 0)) { - setState(284); + setState(295); expr(); - setState(289); + setState(300); _errHandler->sync(this); _la = _input->LA(1); - while (_la == TocParser::T__9) { - setState(285); - match(TocParser::T__9); - setState(286); + while (_la == TocParser::T__10) { + setState(296); + match(TocParser::T__10); + setState(297); expr(); - setState(291); + setState(302); _errHandler->sync(this); _la = _input->LA(1); } } - setState(294); - match(TocParser::T__8); + setState(305); + match(TocParser::T__9); } catch (RecognitionException &e) { @@ -2386,33 +2398,33 @@ TocParser::OpExprContext* TocParser::opExpr() { exitRule(); }); try { - setState(300); + setState(311); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 21, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(296); + setState(307); binaryOp(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(297); + setState(308); prefixOp(); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(298); + setState(309); postfixOp(); break; } case 4: { enterOuterAlt(_localctx, 4); - setState(299); + setState(310); ternaryOp(); break; } @@ -2473,6 +2485,7 @@ void TocParser::BinaryOpContext::exitRule(tree::ParseTreeListener *listener) { TocParser::BinaryOpContext* TocParser::binaryOp() { BinaryOpContext *_localctx = _tracker.createInstance(_ctx, getState()); enterRule(_localctx, 62, TocParser::RuleBinaryOp); + size_t _la = 0; #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2482,27 +2495,52 @@ TocParser::BinaryOpContext* TocParser::binaryOp() { exitRule(); }); try { - size_t alt; enterOuterAlt(_localctx, 1); - setState(302); + setState(313); nonOpExpr(); - setState(303); + setState(314); binary_op(); - setState(304); + setState(315); nonOpExpr(); - setState(310); + setState(321); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 22, _ctx); - while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { - if (alt == 1) { - setState(305); - binary_op(); - setState(306); - nonOpExpr(); - } - setState(312); + _la = _input->LA(1); + while ((((_la & ~ 0x3fULL) == 0) && + ((1ULL << _la) & ((1ULL << TocParser::T__4) + | (1ULL << TocParser::T__26) + | (1ULL << TocParser::T__27) + | (1ULL << TocParser::T__30) + | (1ULL << TocParser::T__31) + | (1ULL << TocParser::T__32) + | (1ULL << TocParser::T__33) + | (1ULL << TocParser::T__34) + | (1ULL << TocParser::T__35) + | (1ULL << TocParser::T__36) + | (1ULL << TocParser::T__37) + | (1ULL << TocParser::T__38) + | (1ULL << TocParser::T__39) + | (1ULL << TocParser::T__40) + | (1ULL << TocParser::T__41) + | (1ULL << TocParser::T__42) + | (1ULL << TocParser::T__43) + | (1ULL << TocParser::T__44) + | (1ULL << TocParser::T__45) + | (1ULL << TocParser::T__46) + | (1ULL << TocParser::T__47) + | (1ULL << TocParser::T__48) + | (1ULL << TocParser::T__49) + | (1ULL << TocParser::T__50) + | (1ULL << TocParser::T__51) + | (1ULL << TocParser::T__52) + | (1ULL << TocParser::T__53) + | (1ULL << TocParser::T__54))) != 0)) { + setState(316); + binary_op(); + setState(317); + nonOpExpr(); + setState(323); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 22, _ctx); + _la = _input->LA(1); } } @@ -2559,9 +2597,9 @@ TocParser::PrefixOpContext* TocParser::prefixOp() { }); try { enterOuterAlt(_localctx, 1); - setState(313); + setState(324); prefix_op(); - setState(314); + setState(325); nonOpExpr(); } @@ -2618,9 +2656,9 @@ TocParser::PostfixOpContext* TocParser::postfixOp() { }); try { enterOuterAlt(_localctx, 1); - setState(316); + setState(327); nonOpExpr(); - setState(317); + setState(328); postfix_op(); } @@ -2681,15 +2719,15 @@ TocParser::TernaryOpContext* TocParser::ternaryOp() { }); try { enterOuterAlt(_localctx, 1); - setState(319); + setState(330); nonOpExpr(); - setState(320); - match(TocParser::T__20); - setState(321); + setState(331); + match(TocParser::T__21); + setState(332); expr(); - setState(322); - match(TocParser::T__1); - setState(323); + setState(333); + match(TocParser::T__2); + setState(334); expr(); } @@ -2742,7 +2780,7 @@ TocParser::IdentifierExprContext* TocParser::identifierExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(325); + setState(336); varName(); } @@ -2808,7 +2846,7 @@ TocParser::LitExprContext* TocParser::litExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(327); + setState(338); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & ((1ULL << TocParser::INT_LIT) @@ -2881,21 +2919,21 @@ TocParser::AccessExprContext* TocParser::accessExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(329); + setState(340); nonAccessExpr(); - setState(331); + setState(342); _errHandler->sync(this); _la = _input->LA(1); do { - setState(330); + setState(341); accessSubExpr(); - setState(333); + setState(344); _errHandler->sync(this); _la = _input->LA(1); } while ((((_la & ~ 0x3fULL) == 0) && - ((1ULL << _la) & ((1ULL << TocParser::T__4) - | (1ULL << TocParser::T__21) - | (1ULL << TocParser::T__22))) != 0)); + ((1ULL << _la) & ((1ULL << TocParser::T__5) + | (1ULL << TocParser::T__22) + | (1ULL << TocParser::T__23))) != 0)); } catch (RecognitionException &e) { @@ -2950,20 +2988,20 @@ TocParser::AccessSubExprContext* TocParser::accessSubExpr() { exitRule(); }); try { - setState(337); + setState(348); _errHandler->sync(this); switch (_input->LA(1)) { - case TocParser::T__21: - case TocParser::T__22: { + case TocParser::T__22: + case TocParser::T__23: { enterOuterAlt(_localctx, 1); - setState(335); + setState(346); accessMember(); break; } - case TocParser::T__4: { + case TocParser::T__5: { enterOuterAlt(_localctx, 2); - setState(336); + setState(347); accessBrackets(); break; } @@ -3023,18 +3061,18 @@ TocParser::AccessMemberContext* TocParser::accessMember() { }); try { enterOuterAlt(_localctx, 1); - setState(339); + setState(350); _la = _input->LA(1); - if (!(_la == TocParser::T__21 + if (!(_la == TocParser::T__22 - || _la == TocParser::T__22)) { + || _la == TocParser::T__23)) { _errHandler->recoverInline(this); } else { _errHandler->reportMatch(this); consume(); } - setState(340); + setState(351); identifierExpr(); } @@ -3087,12 +3125,12 @@ TocParser::AccessBracketsContext* TocParser::accessBrackets() { }); try { enterOuterAlt(_localctx, 1); - setState(342); - match(TocParser::T__4); - setState(343); - expr(); - setState(344); + setState(353); match(TocParser::T__5); + setState(354); + expr(); + setState(355); + match(TocParser::T__6); } catch (RecognitionException &e) { @@ -3144,12 +3182,12 @@ TocParser::ParenExprContext* TocParser::parenExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(346); - match(TocParser::T__7); - setState(347); - expr(); - setState(348); + setState(357); match(TocParser::T__8); + setState(358); + expr(); + setState(359); + match(TocParser::T__9); } catch (RecognitionException &e) { @@ -3201,7 +3239,7 @@ TocParser::FuncNameContext* TocParser::funcName() { }); try { enterOuterAlt(_localctx, 1); - setState(350); + setState(361); match(TocParser::NAME); } @@ -3254,7 +3292,7 @@ TocParser::VarNameContext* TocParser::varName() { }); try { enterOuterAlt(_localctx, 1); - setState(352); + setState(363); match(TocParser::NAME); } @@ -3307,7 +3345,7 @@ TocParser::TypeNameContext* TocParser::typeName() { }); try { enterOuterAlt(_localctx, 1); - setState(354); + setState(365); match(TocParser::NAME); } @@ -3360,7 +3398,7 @@ TocParser::StructNameContext* TocParser::structName() { }); try { enterOuterAlt(_localctx, 1); - setState(356); + setState(367); match(TocParser::NAME); } @@ -3410,11 +3448,11 @@ TocParser::Postfix_opContext* TocParser::postfix_op() { }); try { enterOuterAlt(_localctx, 1); - setState(358); + setState(369); _la = _input->LA(1); - if (!(_la == TocParser::T__23 + if (!(_la == TocParser::T__24 - || _la == TocParser::T__24)) { + || _la == TocParser::T__25)) { _errHandler->recoverInline(this); } else { @@ -3471,55 +3509,55 @@ TocParser::Prefix_opContext* TocParser::prefix_op() { exitRule(); }); try { - setState(367); + setState(378); _errHandler->sync(this); switch (_input->LA(1)) { - case TocParser::T__25: { - enterOuterAlt(_localctx, 1); - setState(360); - match(TocParser::T__25); - break; - } - case TocParser::T__26: { - enterOuterAlt(_localctx, 2); - setState(361); + enterOuterAlt(_localctx, 1); + setState(371); match(TocParser::T__26); break; } case TocParser::T__27: { - enterOuterAlt(_localctx, 3); - setState(362); + enterOuterAlt(_localctx, 2); + setState(372); match(TocParser::T__27); break; } case TocParser::T__28: { - enterOuterAlt(_localctx, 4); - setState(363); + enterOuterAlt(_localctx, 3); + setState(373); match(TocParser::T__28); break; } case TocParser::T__29: { - enterOuterAlt(_localctx, 5); - setState(364); + enterOuterAlt(_localctx, 4); + setState(374); match(TocParser::T__29); break; } - case TocParser::T__3: { + case TocParser::T__30: { + enterOuterAlt(_localctx, 5); + setState(375); + match(TocParser::T__30); + break; + } + + case TocParser::T__4: { enterOuterAlt(_localctx, 6); - setState(365); - match(TocParser::T__3); + setState(376); + match(TocParser::T__4); break; } - case TocParser::T__23: - case TocParser::T__24: { + case TocParser::T__24: + case TocParser::T__25: { enterOuterAlt(_localctx, 7); - setState(366); + setState(377); postfix_op(); break; } @@ -3575,13 +3613,12 @@ TocParser::Binary_opContext* TocParser::binary_op() { }); try { enterOuterAlt(_localctx, 1); - setState(369); + setState(380); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && - ((1ULL << _la) & ((1ULL << TocParser::T__3) - | (1ULL << TocParser::T__25) + ((1ULL << _la) & ((1ULL << TocParser::T__4) | (1ULL << TocParser::T__26) - | (1ULL << TocParser::T__29) + | (1ULL << TocParser::T__27) | (1ULL << TocParser::T__30) | (1ULL << TocParser::T__31) | (1ULL << TocParser::T__32) @@ -3605,7 +3642,8 @@ TocParser::Binary_opContext* TocParser::binary_op() { | (1ULL << TocParser::T__50) | (1ULL << TocParser::T__51) | (1ULL << TocParser::T__52) - | (1ULL << TocParser::T__53))) != 0))) { + | (1ULL << TocParser::T__53) + | (1ULL << TocParser::T__54))) != 0))) { _errHandler->recoverInline(this); } else { @@ -3643,21 +3681,21 @@ std::vector TocParser::_ruleNames = { }; std::vector TocParser::_literalNames = { - "", "'var'", "':'", "'='", "'*'", "'['", "']'", "'func'", "'('", "')'", - "','", "'{'", "'}'", "'struct'", "'if'", "'else'", "'switch'", "'case'", - "'for'", "'while'", "'return'", "'\u003F'", "'.'", "'->'", "'++'", "'--'", - "'+'", "'-'", "'!'", "'~'", "'&'", "'/'", "'%'", "'<'", "'|'", "'^'", - "'>'", "'=='", "'!='", "'<='", "'>='", "'<<'", "'>>'", "'||'", "'&&'", - "'&='", "'|='", "'^='", "'<<='", "'>>='", "'+='", "'-='", "'*='", "'/='", - "'%='" + "", "';'", "'var'", "':'", "'='", "'*'", "'['", "']'", "'func'", "'('", + "')'", "','", "'{'", "'}'", "'struct'", "'if'", "'else'", "'switch'", + "'case'", "'for'", "'while'", "'return'", "'\u003F'", "'.'", "'->'", "'++'", + "'--'", "'+'", "'-'", "'!'", "'~'", "'&'", "'/'", "'%'", "'<'", "'|'", + "'^'", "'>'", "'=='", "'!='", "'<='", "'>='", "'<<'", "'>>'", "'||'", + "'&&'", "'&='", "'|='", "'^='", "'<<='", "'>>='", "'+='", "'-='", "'*='", + "'/='", "'%='" }; std::vector TocParser::_symbolicNames = { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", - "", "INT_LIT", "DECIMAL_LIT", "STRING_LIT", "BOOL_LIT", "NAME", "WS", - "NEWLINE", "NUMBER" + "", "", "INT_LIT", "DECIMAL_LIT", "STRING_LIT", "BOOL_LIT", "NAME", "WS", + "NEWLINE" }; dfa::Vocabulary TocParser::_vocabulary(_literalNames, _symbolicNames); @@ -3680,7 +3718,7 @@ TocParser::Initializer::Initializer() { static const uint16_t serializedATNSegment0[] = { 0x3, 0x608b, 0xa72a, 0x8133, 0xb9ed, 0x417c, 0x3be7, 0x7786, 0x5964, - 0x3, 0x40, 0x176, 0x4, 0x2, 0x9, 0x2, 0x4, 0x3, 0x9, 0x3, 0x4, 0x4, + 0x3, 0x40, 0x181, 0x4, 0x2, 0x9, 0x2, 0x4, 0x3, 0x9, 0x3, 0x4, 0x4, 0x9, 0x4, 0x4, 0x5, 0x9, 0x5, 0x4, 0x6, 0x9, 0x6, 0x4, 0x7, 0x9, 0x7, 0x4, 0x8, 0x9, 0x8, 0x4, 0x9, 0x9, 0x9, 0x4, 0xa, 0x9, 0xa, 0x4, 0xb, 0x9, 0xb, 0x4, 0xc, 0x9, 0xc, 0x4, 0xd, 0x9, 0xd, 0x4, @@ -3697,244 +3735,251 @@ TocParser::Initializer::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10f, 0x5, 0x48, 0x25, 0x2, 0x10b, - 0x10f, 0x5, 0x54, 0x2b, 0x2, 0x10c, 0x10f, 0x5, 0x4c, 0x27, 0x2, - 0x10d, 0x10f, 0x5, 0x3e, 0x20, 0x2, 0x10e, 0x108, 0x3, 0x2, 0x2, - 0x2, 0x10e, 0x109, 0x3, 0x2, 0x2, 0x2, 0x10e, 0x10a, 0x3, 0x2, 0x2, - 0x2, 0x10e, 0x10b, 0x3, 0x2, 0x2, 0x2, 0x10e, 0x10c, 0x3, 0x2, 0x2, - 0x2, 0x10e, 0x10d, 0x3, 0x2, 0x2, 0x2, 0x10f, 0x37, 0x3, 0x2, 0x2, - 0x2, 0x110, 0x116, 0x5, 0x3c, 0x1f, 0x2, 0x111, 0x116, 0x5, 0x4a, - 0x26, 0x2, 0x112, 0x116, 0x5, 0x48, 0x25, 0x2, 0x113, 0x116, 0x5, - 0x54, 0x2b, 0x2, 0x114, 0x116, 0x5, 0x4c, 0x27, 0x2, 0x115, 0x110, - 0x3, 0x2, 0x2, 0x2, 0x115, 0x111, 0x3, 0x2, 0x2, 0x2, 0x115, 0x112, - 0x3, 0x2, 0x2, 0x2, 0x115, 0x113, 0x3, 0x2, 0x2, 0x2, 0x115, 0x114, - 0x3, 0x2, 0x2, 0x2, 0x116, 0x39, 0x3, 0x2, 0x2, 0x2, 0x117, 0x11b, - 0x5, 0x3c, 0x1f, 0x2, 0x118, 0x11b, 0x5, 0x48, 0x25, 0x2, 0x119, - 0x11b, 0x5, 0x54, 0x2b, 0x2, 0x11a, 0x117, 0x3, 0x2, 0x2, 0x2, 0x11a, - 0x118, 0x3, 0x2, 0x2, 0x2, 0x11a, 0x119, 0x3, 0x2, 0x2, 0x2, 0x11b, - 0x3b, 0x3, 0x2, 0x2, 0x2, 0x11c, 0x11d, 0x5, 0x56, 0x2c, 0x2, 0x11d, - 0x126, 0x7, 0xa, 0x2, 0x2, 0x11e, 0x123, 0x5, 0x36, 0x1c, 0x2, 0x11f, - 0x120, 0x7, 0xc, 0x2, 0x2, 0x120, 0x122, 0x5, 0x36, 0x1c, 0x2, 0x121, - 0x11f, 0x3, 0x2, 0x2, 0x2, 0x122, 0x125, 0x3, 0x2, 0x2, 0x2, 0x123, - 0x121, 0x3, 0x2, 0x2, 0x2, 0x123, 0x124, 0x3, 0x2, 0x2, 0x2, 0x124, - 0x127, 0x3, 0x2, 0x2, 0x2, 0x125, 0x123, 0x3, 0x2, 0x2, 0x2, 0x126, - 0x11e, 0x3, 0x2, 0x2, 0x2, 0x126, 0x127, 0x3, 0x2, 0x2, 0x2, 0x127, - 0x128, 0x3, 0x2, 0x2, 0x2, 0x128, 0x129, 0x7, 0xb, 0x2, 0x2, 0x129, - 0x3d, 0x3, 0x2, 0x2, 0x2, 0x12a, 0x12f, 0x5, 0x40, 0x21, 0x2, 0x12b, - 0x12f, 0x5, 0x42, 0x22, 0x2, 0x12c, 0x12f, 0x5, 0x44, 0x23, 0x2, - 0x12d, 0x12f, 0x5, 0x46, 0x24, 0x2, 0x12e, 0x12a, 0x3, 0x2, 0x2, - 0x2, 0x12e, 0x12b, 0x3, 0x2, 0x2, 0x2, 0x12e, 0x12c, 0x3, 0x2, 0x2, - 0x2, 0x12e, 0x12d, 0x3, 0x2, 0x2, 0x2, 0x12f, 0x3f, 0x3, 0x2, 0x2, - 0x2, 0x130, 0x131, 0x5, 0x38, 0x1d, 0x2, 0x131, 0x132, 0x5, 0x62, - 0x32, 0x2, 0x132, 0x138, 0x5, 0x38, 0x1d, 0x2, 0x133, 0x134, 0x5, - 0x62, 0x32, 0x2, 0x134, 0x135, 0x5, 0x38, 0x1d, 0x2, 0x135, 0x137, - 0x3, 0x2, 0x2, 0x2, 0x136, 0x133, 0x3, 0x2, 0x2, 0x2, 0x137, 0x13a, - 0x3, 0x2, 0x2, 0x2, 0x138, 0x136, 0x3, 0x2, 0x2, 0x2, 0x138, 0x139, - 0x3, 0x2, 0x2, 0x2, 0x139, 0x41, 0x3, 0x2, 0x2, 0x2, 0x13a, 0x138, - 0x3, 0x2, 0x2, 0x2, 0x13b, 0x13c, 0x5, 0x60, 0x31, 0x2, 0x13c, 0x13d, - 0x5, 0x38, 0x1d, 0x2, 0x13d, 0x43, 0x3, 0x2, 0x2, 0x2, 0x13e, 0x13f, - 0x5, 0x38, 0x1d, 0x2, 0x13f, 0x140, 0x5, 0x5e, 0x30, 0x2, 0x140, - 0x45, 0x3, 0x2, 0x2, 0x2, 0x141, 0x142, 0x5, 0x38, 0x1d, 0x2, 0x142, - 0x143, 0x7, 0x17, 0x2, 0x2, 0x143, 0x144, 0x5, 0x36, 0x1c, 0x2, 0x144, - 0x145, 0x7, 0x4, 0x2, 0x2, 0x145, 0x146, 0x5, 0x36, 0x1c, 0x2, 0x146, - 0x47, 0x3, 0x2, 0x2, 0x2, 0x147, 0x148, 0x5, 0x58, 0x2d, 0x2, 0x148, - 0x49, 0x3, 0x2, 0x2, 0x2, 0x149, 0x14a, 0x9, 0x2, 0x2, 0x2, 0x14a, - 0x4b, 0x3, 0x2, 0x2, 0x2, 0x14b, 0x14d, 0x5, 0x3a, 0x1e, 0x2, 0x14c, - 0x14e, 0x5, 0x4e, 0x28, 0x2, 0x14d, 0x14c, 0x3, 0x2, 0x2, 0x2, 0x14e, - 0x14f, 0x3, 0x2, 0x2, 0x2, 0x14f, 0x14d, 0x3, 0x2, 0x2, 0x2, 0x14f, - 0x150, 0x3, 0x2, 0x2, 0x2, 0x150, 0x4d, 0x3, 0x2, 0x2, 0x2, 0x151, - 0x154, 0x5, 0x50, 0x29, 0x2, 0x152, 0x154, 0x5, 0x52, 0x2a, 0x2, - 0x153, 0x151, 0x3, 0x2, 0x2, 0x2, 0x153, 0x152, 0x3, 0x2, 0x2, 0x2, - 0x154, 0x4f, 0x3, 0x2, 0x2, 0x2, 0x155, 0x156, 0x9, 0x3, 0x2, 0x2, - 0x156, 0x157, 0x5, 0x48, 0x25, 0x2, 0x157, 0x51, 0x3, 0x2, 0x2, 0x2, - 0x158, 0x159, 0x7, 0x7, 0x2, 0x2, 0x159, 0x15a, 0x5, 0x36, 0x1c, - 0x2, 0x15a, 0x15b, 0x7, 0x8, 0x2, 0x2, 0x15b, 0x53, 0x3, 0x2, 0x2, - 0x2, 0x15c, 0x15d, 0x7, 0xa, 0x2, 0x2, 0x15d, 0x15e, 0x5, 0x36, 0x1c, - 0x2, 0x15e, 0x15f, 0x7, 0xb, 0x2, 0x2, 0x15f, 0x55, 0x3, 0x2, 0x2, - 0x2, 0x160, 0x161, 0x7, 0x3d, 0x2, 0x2, 0x161, 0x57, 0x3, 0x2, 0x2, - 0x2, 0x162, 0x163, 0x7, 0x3d, 0x2, 0x2, 0x163, 0x59, 0x3, 0x2, 0x2, - 0x2, 0x164, 0x165, 0x7, 0x3d, 0x2, 0x2, 0x165, 0x5b, 0x3, 0x2, 0x2, - 0x2, 0x166, 0x167, 0x7, 0x3d, 0x2, 0x2, 0x167, 0x5d, 0x3, 0x2, 0x2, - 0x2, 0x168, 0x169, 0x9, 0x4, 0x2, 0x2, 0x169, 0x5f, 0x3, 0x2, 0x2, - 0x2, 0x16a, 0x172, 0x7, 0x1c, 0x2, 0x2, 0x16b, 0x172, 0x7, 0x1d, - 0x2, 0x2, 0x16c, 0x172, 0x7, 0x1e, 0x2, 0x2, 0x16d, 0x172, 0x7, 0x1f, - 0x2, 0x2, 0x16e, 0x172, 0x7, 0x20, 0x2, 0x2, 0x16f, 0x172, 0x7, 0x6, - 0x2, 0x2, 0x170, 0x172, 0x5, 0x5e, 0x30, 0x2, 0x171, 0x16a, 0x3, - 0x2, 0x2, 0x2, 0x171, 0x16b, 0x3, 0x2, 0x2, 0x2, 0x171, 0x16c, 0x3, - 0x2, 0x2, 0x2, 0x171, 0x16d, 0x3, 0x2, 0x2, 0x2, 0x171, 0x16e, 0x3, - 0x2, 0x2, 0x2, 0x171, 0x16f, 0x3, 0x2, 0x2, 0x2, 0x171, 0x170, 0x3, - 0x2, 0x2, 0x2, 0x172, 0x61, 0x3, 0x2, 0x2,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10f, 0x5, 0x36, 0x1c, 0x2, 0x10f, 0x33, 0x3, + 0x2, 0x2, 0x2, 0x110, 0x111, 0x7, 0x17, 0x2, 0x2, 0x111, 0x112, 0x5, + 0x36, 0x1c, 0x2, 0x112, 0x35, 0x3, 0x2, 0x2, 0x2, 0x113, 0x11a, 0x5, + 0x3c, 0x1f, 0x2, 0x114, 0x11a, 0x5, 0x4a, 0x26, 0x2, 0x115, 0x11a, + 0x5, 0x48, 0x25, 0x2, 0x116, 0x11a, 0x5, 0x54, 0x2b, 0x2, 0x117, + 0x11a, 0x5, 0x4c, 0x27, 0x2, 0x118, 0x11a, 0x5, 0x3e, 0x20, 0x2, + 0x119, 0x113, 0x3, 0x2, 0x2, 0x2, 0x119, 0x114, 0x3, 0x2, 0x2, 0x2, + 0x119, 0x115, 0x3, 0x2, 0x2, 0x2, 0x119, 0x116, 0x3, 0x2, 0x2, 0x2, + 0x119, 0x117, 0x3, 0x2, 0x2, 0x2, 0x119, 0x118, 0x3, 0x2, 0x2, 0x2, + 0x11a, 0x37, 0x3, 0x2, 0x2, 0x2, 0x11b, 0x121, 0x5, 0x3c, 0x1f, 0x2, + 0x11c, 0x121, 0x5, 0x4a, 0x26, 0x2, 0x11d, 0x121, 0x5, 0x48, 0x25, + 0x2, 0x11e, 0x121, 0x5, 0x54, 0x2b, 0x2, 0x11f, 0x121, 0x5, 0x4c, + 0x27, 0x2, 0x120, 0x11b, 0x3, 0x2, 0x2, 0x2, 0x120, 0x11c, 0x3, 0x2, + 0x2, 0x2, 0x120, 0x11d, 0x3, 0x2, 0x2, 0x2, 0x120, 0x11e, 0x3, 0x2, + 0x2, 0x2, 0x120, 0x11f, 0x3, 0x2, 0x2, 0x2, 0x121, 0x39, 0x3, 0x2, + 0x2, 0x2, 0x122, 0x126, 0x5, 0x3c, 0x1f, 0x2, 0x123, 0x126, 0x5, + 0x48, 0x25, 0x2, 0x124, 0x126, 0x5, 0x54, 0x2b, 0x2, 0x125, 0x122, + 0x3, 0x2, 0x2, 0x2, 0x125, 0x123, 0x3, 0x2, 0x2, 0x2, 0x125, 0x124, + 0x3, 0x2, 0x2, 0x2, 0x126, 0x3b, 0x3, 0x2, 0x2, 0x2, 0x127, 0x128, + 0x5, 0x56, 0x2c, 0x2, 0x128, 0x131, 0x7, 0xb, 0x2, 0x2, 0x129, 0x12e, + 0x5, 0x36, 0x1c, 0x2, 0x12a, 0x12b, 0x7, 0xd, 0x2, 0x2, 0x12b, 0x12d, + 0x5, 0x36, 0x1c, 0x2, 0x12c, 0x12a, 0x3, 0x2, 0x2, 0x2, 0x12d, 0x130, + 0x3, 0x2, 0x2, 0x2, 0x12e, 0x12c, 0x3, 0x2, 0x2, 0x2, 0x12e, 0x12f, + 0x3, 0x2, 0x2, 0x2, 0x12f, 0x132, 0x3, 0x2, 0x2, 0x2, 0x130, 0x12e, + 0x3, 0x2, 0x2, 0x2, 0x131, 0x129, 0x3, 0x2, 0x2, 0x2, 0x131, 0x132, + 0x3, 0x2, 0x2, 0x2, 0x132, 0x133, 0x3, 0x2, 0x2, 0x2, 0x133, 0x134, + 0x7, 0xc, 0x2, 0x2, 0x134, 0x3d, 0x3, 0x2, 0x2, 0x2, 0x135, 0x13a, + 0x5, 0x40, 0x21, 0x2, 0x136, 0x13a, 0x5, 0x42, 0x22, 0x2, 0x137, + 0x13a, 0x5, 0x44, 0x23, 0x2, 0x138, 0x13a, 0x5, 0x46, 0x24, 0x2, + 0x139, 0x135, 0x3, 0x2, 0x2, 0x2, 0x139, 0x136, 0x3, 0x2, 0x2, 0x2, + 0x139, 0x137, 0x3, 0x2, 0x2, 0x2, 0x139, 0x138, 0x3, 0x2, 0x2, 0x2, + 0x13a, 0x3f, 0x3, 0x2, 0x2, 0x2, 0x13b, 0x13c, 0x5, 0x38, 0x1d, 0x2, + 0x13c, 0x13d, 0x5, 0x62, 0x32, 0x2, 0x13d, 0x143, 0x5, 0x38, 0x1d, + 0x2, 0x13e, 0x13f, 0x5, 0x62, 0x32, 0x2, 0x13f, 0x140, 0x5, 0x38, + 0x1d, 0x2, 0x140, 0x142, 0x3, 0x2, 0x2, 0x2, 0x141, 0x13e, 0x3, 0x2, + 0x2, 0x2, 0x142, 0x145, 0x3, 0x2, 0x2, 0x2, 0x143, 0x141, 0x3, 0x2, + 0x2, 0x2, 0x143, 0x144, 0x3, 0x2, 0x2, 0x2, 0x144, 0x41, 0x3, 0x2, + 0x2, 0x2, 0x145, 0x143, 0x3, 0x2, 0x2, 0x2, 0x146, 0x147, 0x5, 0x60, + 0x31, 0x2, 0x147, 0x148, 0x5, 0x38, 0x1d, 0x2, 0x148, 0x43, 0x3, + 0x2, 0x2, 0x2, 0x149, 0x14a, 0x5, 0x38, 0x1d, 0x2, 0x14a, 0x14b, + 0x5, 0x5e, 0x30, 0x2, 0x14b, 0x45, 0x3, 0x2, 0x2, 0x2, 0x14c, 0x14d, + 0x5, 0x38, 0x1d, 0x2, 0x14d, 0x14e, 0x7, 0x18, 0x2, 0x2, 0x14e, 0x14f, + 0x5, 0x36, 0x1c, 0x2, 0x14f, 0x150, 0x7, 0x5, 0x2, 0x2, 0x150, 0x151, + 0x5, 0x36, 0x1c, 0x2, 0x151, 0x47, 0x3, 0x2, 0x2, 0x2, 0x152, 0x153, + 0x5, 0x58, 0x2d, 0x2, 0x153, 0x49, 0x3, 0x2, 0x2, 0x2, 0x154, 0x155, + 0x9, 0x2, 0x2, 0x2, 0x155, 0x4b, 0x3, 0x2, 0x2, 0x2, 0x156, 0x158, + 0x5, 0x3a, 0x1e, 0x2, 0x157, 0x159, 0x5, 0x4e, 0x28, 0x2, 0x158, + 0x157, 0x3, 0x2, 0x2, 0x2, 0x159, 0x15a, 0x3, 0x2, 0x2, 0x2, 0x15a, + 0x158, 0x3, 0x2, 0x2, 0x2, 0x15a, 0x15b, 0x3, 0x2, 0x2, 0x2, 0x15b, + 0x4d, 0x3, 0x2, 0x2, 0x2, 0x15c, 0x15f, 0x5, 0x50, 0x29, 0x2, 0x15d, + 0x15f, 0x5, 0x52, 0x2a, 0x2, 0x15e, 0x15c, 0x3, 0x2, 0x2, 0x2, 0x15e, + 0x15d, 0x3, 0x2, 0x2, 0x2, 0x15f, 0x4f, 0x3, 0x2, 0x2, 0x2, 0x160, + 0x161, 0x9, 0x3, 0x2, 0x2, 0x161, 0x162, 0x5, 0x48, 0x25, 0x2, 0x162, + 0x51, 0x3, 0x2, 0x2, 0x2, 0x163, 0x164, 0x7, 0x8, 0x2, 0x2, 0x164, + 0x165, 0x5, 0x36, 0x1c, 0x2, 0x165, 0x166, 0x7, 0x9, 0x2, 0x2, 0x166, + 0x53, 0x3, 0x2, 0x2, 0x2, 0x167, 0x168, 0x7, 0xb, 0x2, 0x2, 0x168, + 0x169, 0x5, 0x36, 0x1c, 0x2, 0x169, 0x16a, 0x7, 0xc, 0x2, 0x2, 0x16a, + 0x55, 0x3, 0x2, 0x2, 0x2, 0x16b, 0x16c, 0x7, 0x3e, 0x2, 0x2, 0x16c, + 0x57, 0x3, 0x2, 0x2, 0x2, 0x16d, 0x16e, 0x7, 0x3e, 0x2, 0x2, 0x16e, + 0x59, 0x3, 0x2, 0x2, 0x2, 0x16f, 0x170, 0x7, 0x3e, 0x2, 0x2, 0x170, + 0x5b, 0x3, 0x2, 0x2, 0x2, 0x171, 0x172, 0x7, 0x3e, 0x2, 0x2, 0x172, + 0x5d, 0x3, 0x2, 0x2, 0x2, 0x173, 0x174, 0x9, 0x4, 0x2, 0x2, 0x174, + 0x5f, 0x3, 0x2, 0x2, 0x2, 0x175, 0x17d, 0x7, 0x1d, 0x2, 0x2, 0x176, + 0x17d, 0x7, 0x1e, 0x2, 0x2, 0x177, 0x17d, 0x7, 0x1f, 0x2, 0x2, 0x178, + 0x17d, 0x7, 0x20, 0x2, 0x2, 0x179, 0x17d, 0x7, 0x21, 0x2, 0x2, 0x17a, + 0x17d, 0x7, 0x7, 0x2, 0x2, 0x17b, 0x17d, 0x5, 0x5e, 0x30, 0x2, 0x17c, + 0x175, 0x3, 0x2, 0x2, 0x2, 0x17c, 0x176, 0x3, 0x2, 0x2, 0x2, 0x17c, + 0x177, 0x3, 0x2, 0x2, 0x2, 0x17c, 0x178, 0x3, 0x2, 0x2, 0x2, 0x17c, + 0x179, 0x3, 0x2, 0x2, 0x2, 0x17c, 0x17a, 0x3, 0x2, 0x2, 0x2, 0x17c, + 0x17b, 0x3, 0x2, 0x2, 0x2, 0x17d, 0x61, 0x3, 0x2, 0x2, 0x2, 0x17e, + 0x17f, 0x9, 0x5, 0x2, 0x2, 0x17f, 0x63, 0x3, 0x2, 0x2, 0x2, 0x1c, + 0x67, 0x70, 0x7b, 0x88, 0x8e, 0x91, 0xa4, 0xa7, 0xad, 0xb8, 0xbf, + 0xd6, 0xde, 0xe2, 0xf4, 0x100, 0x119, 0x120, 0x125, 0x12e, 0x131, + 0x139, 0x143, 0x15a, 0x15e, 0x17c, }; _serializedATN.insert(_serializedATN.end(), serializedATNSegment0, diff --git a/gen/TocParser.h b/gen/TocParser.h index 0157c9c..f1584e7 100644 --- a/gen/TocParser.h +++ b/gen/TocParser.h @@ -20,8 +20,9 @@ public: T__32 = 33, T__33 = 34, T__34 = 35, T__35 = 36, T__36 = 37, T__37 = 38, T__38 = 39, T__39 = 40, T__40 = 41, T__41 = 42, T__42 = 43, T__43 = 44, T__44 = 45, T__45 = 46, T__46 = 47, T__47 = 48, T__48 = 49, T__49 = 50, - T__50 = 51, T__51 = 52, T__52 = 53, T__53 = 54, INT_LIT = 55, DECIMAL_LIT = 56, - STRING_LIT = 57, BOOL_LIT = 58, NAME = 59, WS = 60, NEWLINE = 61, NUMBER = 62 + T__50 = 51, T__51 = 52, T__52 = 53, T__53 = 54, T__54 = 55, INT_LIT = 56, + DECIMAL_LIT = 57, STRING_LIT = 58, BOOL_LIT = 59, NAME = 60, WS = 61, + NEWLINE = 62 }; enum { @@ -192,7 +193,7 @@ public: public: TypeModifierContext(antlr4::ParserRuleContext *parent, size_t invokingState); virtual size_t getRuleIndex() const override; - antlr4::tree::TerminalNode *NUMBER(); + antlr4::tree::TerminalNode *INT_LIT(); virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override; virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override; diff --git a/src/MyListener.h b/src/MyListener.h deleted file mode 100644 index 433fa7a..0000000 --- a/src/MyListener.h +++ /dev/null @@ -1,64 +0,0 @@ -#include "TocBaseListener.h" - -#include - -using namespace std; - -class MyListener : public TocBaseListener { - void enterVarDecl(TocParser::VarDeclContext * ctx) { - cout - << ctx->var()->type()->getText() - << " " - << ctx->var()->varName()->getText(); - - if (ctx->var()->expr() != nullptr) { - cout << " = "; - } - } - void exitVarDecl(TocParser::VarDeclContext * ctx) { - cout << ";" << endl; - } - - void enterFuncDecl(TocParser::FuncDeclContext * ctx) { - cout - << ctx->type()->getText() - << " " - << ctx->funcName()->getText() - << "("; - - if (ctx->parameter()->firstParameter() != nullptr) { - cout - << ctx->parameter()->firstParameter()->var()->type()->getText() - << " " - << ctx->parameter()->firstParameter()->var()->varName()->getText(); - } - - for (auto * p : ctx->parameter()->additionalParameter()) { - cout - << ", " - << p->var()->type()->getText() - << " " - << p->var()->varName()->getText(); - } - - cout - << ")"; - } - - void enterBody(TocParser::BodyContext * ctx) { - cout - << "{" << endl; - } - void exitBody(TocParser::BodyContext * ctx) { - cout - << "}" << endl; - } - - void enterIfCond(TocParser::IfCondContext * ctx) { - cout - << "if ("; - enterExpr(ctx->expr()); - cout - << ")"; - } -}; \ No newline at end of file diff --git a/src/check.h b/src/check.h new file mode 100644 index 0000000..9e6797f --- /dev/null +++ b/src/check.h @@ -0,0 +1,49 @@ +#pragma once + +#include "repr.h" + +bool checkStmt( + const Stmt & s, + std::vector structs, + std::vector funcs, + std::vector vars) +{ + // switch (s.type) { + // case StmtType::Assign: + // if (!checkVar(s._assign.)) + // } + return true; +} + +bool checkFunction( + const Function & f, + std::vector structs, + std::vector funcs, + std::vector vars) +{ + vars.insert(vars.end(), f.parameters.begin(), f.parameters.end()); + vars.insert(vars.end(), f.body.variables.begin(), f.body.variables.end()); + for (auto s : f.body.statements) { + if (!checkStmt(s, structs, funcs, vars)) + return false; + } + return true; +} + +bool checkProgram(const Program & p) +{ + for (auto f : p.functions) { + if (!checkFunction(f, p.structs, p.functions, p.variables)) + return false; + } + for (auto s : p.structs) { + std::vector vars = p.variables; + for (auto v : s.members) + vars.push_back(v); + for (auto f : s.methods) { + if (!checkFunction(f, p.structs, p.functions, vars)) + return false; + } + } + return true; +} \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 7d8d5c7..199f04d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,7 @@ #include "toc.h" #include "repr.h" #include "repr_get.h" +#include "check.h" using namespace antlr4; @@ -33,15 +34,12 @@ int main(int argc, const char * argv[]) { //std::cout << "Parse Tree: " << s << std::endl; Program prg = getProgram(prog); - std::cout << "Variables:\n"; - for (auto v : prg.variables) - std::cout << " " << v.name << endl; - std::cout << "Functions:\n"; - for (auto f : prg.functions) - std::cout << " " << f.name << endl; tocProgram(std::cout, prg); + if (!checkProgram(prg)) + std::cerr << "Error" << std::endl; + //std::ofstream ofs("output.c"); //tocProg(ofs, prg); //ofs.close(); diff --git a/src/repr.h b/src/repr.h index cc28746..e45464c 100644 --- a/src/repr.h +++ b/src/repr.h @@ -22,6 +22,7 @@ struct UnaryOperatorExpr; struct BinaryOperatorExpr; struct TernaryOperatorExpr; struct DotExpr; +struct ParenExpr; struct Expr; struct IfStmt; struct SwitchStmt; @@ -38,6 +39,7 @@ enum class TypeModifierType { struct TypeModifier { TypeModifierType type; + bool _staticArray; int _arraySize; }; @@ -155,6 +157,8 @@ struct DotExpr { struct Expr { ExprType type; + bool parenthesized; + FuncExpr _func; LitExpr _lit; IdentifierExpr _identifier; diff --git a/src/repr_get.h b/src/repr_get.h index b624e4c..70ae3b1 100644 --- a/src/repr_get.h +++ b/src/repr_get.h @@ -22,9 +22,13 @@ Type getType(TocParser::TypeContext * ctx) { Type result; result.name = ctx->typeName()->NAME()->toString(); for (auto m : ctx->typeModifier()) { + bool isPointer = m->getText() == "*"; + bool isStaticArray = m->INT_LIT() != nullptr; + result.modifiers.emplace_back( - m->toString() == "*" ? TypeModifierType::Pointer : TypeModifierType::Array, - m->toString() == "*" ? -1 : atoi(m->NUMBER()->toString().c_str()) + isPointer ? TypeModifierType::Pointer : TypeModifierType::Array, + isStaticArray, + isStaticArray ? atoi(m->INT_LIT()->toString().c_str()) : -1 ); } return result; @@ -129,7 +133,6 @@ BinaryOperatorExpr getBinaryOperatorExpr(TocParser::OpExprContext * ctx) { result.rexpr = std::make_unique(getExpr(ctx->binaryOp()->nonOpExpr(1))); std::string op = ctx->binaryOp()->binary_op(0)->getText(); - std::cout << op << std::endl; result.type = getBinaryOperatorType(op); @@ -144,6 +147,7 @@ TernaryOperatorExpr getTernaryOperatorExpr(TocParser::OpExprContext * ctx) { } Expr getExpr(TocParser::NonOpExprContext * ctx) { Expr result; + result.parenthesized = false; if (ctx->funcExpr() != nullptr) { result.type = ExprType::Func; result._func.functionName = ctx->funcExpr()->funcName()->NAME()->toString(); @@ -175,17 +179,31 @@ Expr getExpr(TocParser::NonOpExprContext * ctx) { } if (ctx->parenExpr() != nullptr) { result = getExpr(ctx->parenExpr()->expr()); + result.parenthesized = true; } if (ctx->accessExpr() != nullptr) { - // TODO: access chain - for (auto sub : ctx->accessExpr()->accessSubExpr()) { + auto firstSub = ctx->accessExpr()->accessSubExpr(0); + if (firstSub->accessMember() != nullptr) { + result.type = ExprType::Dot; + result._dot.expr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._dot.ident.name = firstSub->accessMember()->identifierExpr()->varName()->NAME()->toString(); + } + else { + result.type = ExprType::Brackets; + result._brackets.lexpr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._brackets.rexpr = std::make_unique(getExpr(firstSub->accessBrackets()->expr())); + } + for (int i = 1; i < ctx->accessExpr()->accessSubExpr().size(); i++) { + Expr tmp = result; + auto sub = ctx->accessExpr()->accessSubExpr(i); if (sub->accessMember() != nullptr) { result.type = ExprType::Dot; + result._dot.expr = std::make_unique(tmp); result._dot.ident.name = sub->accessMember()->identifierExpr()->varName()->NAME()->toString(); } else { result.type = ExprType::Brackets; - result._brackets.lexpr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._brackets.lexpr = std::make_unique(tmp); result._brackets.rexpr = std::make_unique(getExpr(sub->accessBrackets()->expr())); } } @@ -194,6 +212,7 @@ Expr getExpr(TocParser::NonOpExprContext * ctx) { } Expr getExpr(TocParser::NonAccessExprContext * ctx) { Expr result; + result.parenthesized = false; if (ctx->funcExpr() != nullptr) { result.type = ExprType::Func; result._func.functionName = ctx->funcExpr()->funcName()->NAME()->toString(); @@ -206,11 +225,13 @@ Expr getExpr(TocParser::NonAccessExprContext * ctx) { } if (ctx->parenExpr() != nullptr) { result = getExpr(ctx->parenExpr()->expr()); + result.parenthesized = true; } return result; } Expr getExpr(TocParser::ExprContext * ctx) { Expr result; + result.parenthesized = false; if (ctx->funcExpr() != nullptr) { result.type = ExprType::Func; result._func.functionName = ctx->funcExpr()->funcName()->NAME()->toString(); @@ -242,18 +263,31 @@ Expr getExpr(TocParser::ExprContext * ctx) { } if (ctx->parenExpr() != nullptr) { result = getExpr(ctx->parenExpr()->expr()); + result.parenthesized = true; } if (ctx->accessExpr() != nullptr) { - // TODO: access chain - for (auto sub : ctx->accessExpr()->accessSubExpr()) { + auto firstSub = ctx->accessExpr()->accessSubExpr(0); + if (firstSub->accessMember() != nullptr) { + result.type = ExprType::Dot; + result._dot.expr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._dot.ident.name = firstSub->accessMember()->identifierExpr()->varName()->NAME()->toString(); + } + else { + result.type = ExprType::Brackets; + result._brackets.lexpr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._brackets.rexpr = std::make_unique(getExpr(firstSub->accessBrackets()->expr())); + } + for (int i = 1; i < ctx->accessExpr()->accessSubExpr().size(); i++) { + Expr tmp = result; + auto sub = ctx->accessExpr()->accessSubExpr(i); if (sub->accessMember() != nullptr) { result.type = ExprType::Dot; - result._dot.expr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._dot.expr = std::make_unique(tmp); result._dot.ident.name = sub->accessMember()->identifierExpr()->varName()->NAME()->toString(); } else { result.type = ExprType::Brackets; - result._brackets.lexpr = std::make_unique(getExpr(ctx->accessExpr()->nonAccessExpr())); + result._brackets.lexpr = std::make_unique(tmp); result._brackets.rexpr = std::make_unique(getExpr(sub->accessBrackets()->expr())); } } diff --git a/src/toc.h b/src/toc.h index 6dd611d..0c55466 100644 --- a/src/toc.h +++ b/src/toc.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "repr.h" @@ -41,7 +42,27 @@ std::ostream & operator<< (std::ostream & out, const Type & t) { return out; } std::ostream & operator<< (std::ostream & out, const Variable & v) { - out << v.type << " " << v.name; + out << v.type << " "; + + std::stringstream sstr; + std::string s = v.name; + + for (auto m = v.type.modifiers.rbegin(); m != v.type.modifiers.rend(); m++) { + if (m->type == TypeModifierType::Pointer) { + sstr.str(std::string()); + sstr << "*(" << s << ")"; + s = sstr.str(); + } + else { + sstr.str(std::string()); + sstr << "(" << s << ")["; + if (m->_staticArray) + sstr << m->_arraySize; + sstr << "]"; + s = sstr.str(); + } + } + out << s; return out; } @@ -88,6 +109,9 @@ std::ostream & operator<< (std::ostream & out, const TernaryOperatorExpr & o) { return out; } std::ostream & operator<< (std::ostream & out, const Expr & e) { + if (e.parenthesized) + out << "("; + switch (e.type) { case ExprType::Func: out << e._func.functionName << "(" << e._func.arguments << ")"; break; @@ -110,6 +134,9 @@ std::ostream & operator<< (std::ostream & out, const Expr & e) { case ExprType::TernaryOperator: out << e._ternaryOperator; break; } + + if (e.parenthesized) + out << ")"; return out; } @@ -135,7 +162,7 @@ std::ostream & operator<< (std::ostream & out, const Stmt & s) { case StmtType::While: out << "while (" << s._while.condition << ")\n" << s._while.body; break; case StmtType::Assign: - out << s._assign.name << "=" << s._assign.expr << ";"; break; + out << s._assign.name << " = " << s._assign.expr << ";"; break; case StmtType::Return: out << "return " << s._return.expr << ";"; break; case StmtType::Expr: @@ -161,7 +188,10 @@ void tocStruct (std::ostream & out, const Struct & s, bool stub) { if (stub) { out << ";\n"; for (auto m : s.methods) { - out << m.returnType << " " << s.name << "_" << m.name << " (" << m.parameters << ");\n"; + m.parameters.insert(m.parameters.begin(), {"this", {s.name, {{TypeModifierType::Pointer, false, -1}}}}); + out << m.returnType << " " << + s.name << "_" << m.name << + " (" << m.parameters << ");\n"; } return; } @@ -177,6 +207,7 @@ void tocStruct (std::ostream & out, const Struct & s, bool stub) { out << "};\n"; for (auto m : s.methods) { + m.parameters.insert(m.parameters.begin(), {"this", {s.name, {{TypeModifierType::Pointer, false, -1}}}}); out << m.returnType << " " << s.name << "_" << m.name << " (" << m.parameters << ")\n" << m.body; } } @@ -184,265 +215,17 @@ void tocProgram (std::ostream & out, const Program & p) { for (auto s : p.structs) { tocStruct(out, s, true); } - for (auto s : p.structs) { - tocStruct(out, s, false); + for (auto f : p.functions) { + tocFunction(out, f, true); } for (auto v : p.variables) { out << v << ";\n"; } - - for (auto f : p.functions) { - tocFunction(out, f, true); + for (auto s : p.structs) { + tocStruct(out, s, false); } for (auto f : p.functions) { tocFunction(out, f, false); } } - - - - -// void toc(std::ostream & o, TocParser::ProgContext * ctx) { -// for (auto * decl : ctx->decl()) { -// /**/ if (decl->structDecl() != nullptr) toc_stub(o, decl->structDecl()); -// else if (decl->funcDecl() != nullptr) toc_stub(o, decl->funcDecl()->func()); -// } -// for (auto * decl : ctx->decl()) { -// if (decl->varDecl() != nullptr) { -// toc(o, decl->varDecl()); -// out << ";\n"; -// } -// else if (decl->structDecl() != nullptr) toc(o, decl->structDecl()); -// else if (decl->funcDecl() != nullptr) toc(o, decl->funcDecl()->func()); -// } -// } -// void toc(std::ostream & o, TocParser::VarDeclContext * ctx) { -// o -// << ctx->var()->type()->getText() -// << " " -// << ctx->var()->varName()->getText(); - -// if (ctx->var()->expr() != nullptr) { -// out << " = "; -// toc(o, ctx->var()->expr()); -// } -// } -// void toc(std::ostream & o, TocParser::FuncContext * ctx) { -// o -// << ctx->type()->getText() -// << " " -// << ctx->funcName()->getText() -// << "("; - -// if (ctx->parameter()->firstParameter() != nullptr) { -// o -// << ctx->parameter()->firstParameter()->var()->type()->getText() -// << " " -// << ctx->parameter()->firstParameter()->var()->varName()->getText(); - -// for (auto * par : ctx->parameter()->additionalParameter()) { -// o -// << ", " -// << par->var()->type()->getText() -// << " " -// << par->var()->varName()->getText(); -// } -// } - -// out << ")\n{\n"; - -// toc(o, ctx->body()); - -// out << "}\n"; -// } -// void toc(std::ostream & o, TocParser::StructDeclContext * ctx) { -// o -// << "typedef struct " -// << ctx->structName()->getText() -// << "\n{\n"; - -// for (auto * member : ctx->structMember()) { -// if (member->structVar() != nullptr) { -// o -// << member->structVar()->var()->type()->getText() -// << " " -// << member->structVar()->var()->varName()->getText() -// << ";\n"; -// } -// } -// out << "} " -// << ctx->structName()->getText() -// << ";\n"; -// for (auto * member : ctx->structMember()) { -// if (member->structMethod() != nullptr) { -// o -// << member->structMethod()->func()->type()->getText() -// << " " -// << ctx->structName()->getText() -// << "_" -// << member->structMethod()->func()->funcName()->getText() -// << "(" -// << ctx->structName()->getText() -// << " * this"; - -// if (member->structMethod()->func()->parameter()->firstParameter() != nullptr) { -// o -// << ", " -// << member->structMethod()->func()->parameter()->firstParameter()->var()->type()->getText() -// << " " -// << member->structMethod()->func()->parameter()->firstParameter()->var()->varName()->getText(); - -// for (auto * par : member->structMethod()->func()->parameter()->additionalParameter()) { -// o -// << ", " -// << par->var()->type()->getText() -// << " " -// << par->var()->varName()->getText(); -// } -// } - -// out << ")\n{\n"; - -// toc(o, member->structMethod()->func()->body()); - -// out << "}\n"; -// } -// } -// } -// void toc(std::ostream & o, TocParser::BodyContext * ctx) { -// for (auto * stmt : ctx->stmt()) { -// toc(o, stmt); -// out << "\n"; -// } -// } -// void toc(std::ostream & o, TocParser::StmtContext * ctx) { -// /**/ if (ctx->varDecl() != nullptr) toc(o, ctx->varDecl()); -// else if (ctx->conditional() != nullptr) toc(o, ctx->conditional()->ifCond()); -// else if (ctx->loop() != nullptr) toc(o, ctx->loop()->whileLoop()); -// else if (ctx->assignment() != nullptr) toc(o, ctx->assignment()); -// else if (ctx->returnStmt() != nullptr) toc(o, ctx->returnStmt()); -// else if (ctx->expr() != nullptr) toc(o, ctx->expr()); - -// if (ctx->conditional() == nullptr && ctx->loop() == nullptr) -// out << ";"; -// } -// void toc(std::ostream & o, TocParser::IfCondContext * ctx) { -// out << "if ("; -// toc(o, ctx->expr()); -// out << ")\n{\n"; -// toc(o, ctx->body()); -// out << "}\n"; -// } -// void toc(std::ostream & o, TocParser::WhileLoopContext * ctx) { -// out << "while ("; -// toc(o, ctx->expr()); -// out << ")\n{\n"; -// toc(o, ctx->body()); -// out << "}\n"; -// } -// void toc(std::ostream & o, TocParser::AssignmentContext * ctx) { -// toc(o, ctx->identifier()); -// out << " = "; -// toc(o, ctx->expr()); -// } -// void toc(std::ostream & o, TocParser::ReturnStmtContext * ctx) { -// out << "return "; -// toc(o, ctx->expr()); -// } -// void toc(std::ostream & o, TocParser::ExprContext * ctx) { -// /**/ if (ctx->funcCall() != nullptr) toc(o, ctx->funcCall()); -// else if (ctx->identifier() != nullptr) toc(o, ctx->identifier()); -// else if (ctx->literal() != nullptr) toc(o, ctx->literal()); -// else if (ctx->subscript() != nullptr) toc(o, ctx->subscript()); -// else if (ctx->memberAccess() != nullptr) toc(o, ctx->memberAccess()); -// else if (ctx->parenExpr() != nullptr) toc(o, ctx->parenExpr()); -// else if (ctx->operatorExpr() != nullptr) toc(o, ctx->operatorExpr()->binaryOperator()); -// } -// void toc(std::ostream & o, TocParser::NonOpExprContext * ctx) { -// /**/ if (ctx->funcCall() != nullptr) toc(o, ctx->funcCall()); -// else if (ctx->identifier() != nullptr) toc(o, ctx->identifier()); -// else if (ctx->literal() != nullptr) toc(o, ctx->literal()); -// else if (ctx->subscript() != nullptr) toc(o, ctx->subscript()); -// else if (ctx->memberAccess() != nullptr) toc(o, ctx->memberAccess()); -// else if (ctx->parenExpr() != nullptr) toc(o, ctx->parenExpr()); -// } -// void toc(std::ostream & o, TocParser::NonSubscriptExprContext * ctx) { -// /**/ if (ctx->funcCall() != nullptr) toc(o, ctx->funcCall()); -// else if (ctx->identifier() != nullptr) toc(o, ctx->identifier()); -// else if (ctx->memberAccess() != nullptr) toc(o, ctx->memberAccess()); -// else if (ctx->parenExpr() != nullptr) toc(o, ctx->parenExpr()); -// } -// void toc(std::ostream & o, TocParser::FuncCallContext * ctx) { -// o -// << ctx->funcName()->getText() -// << "("; -// for (int i = 0; i < ctx->expr().size(); i++) { -// if (i != 0) out << ", "; -// toc(o, ctx->expr(i)); -// } -// out << ")"; -// } -// void toc(std::ostream & o, TocParser::IdentifierContext * ctx) { -// out << ctx->getText(); -// } -// void toc(std::ostream & o, TocParser::LiteralContext * ctx) { -// if (ctx->INTLIT() != nullptr) out << ctx->INTLIT()->getText(); -// } -// void toc(std::ostream & o, TocParser::SubscriptContext * ctx) { -// toc(o, ctx->nonSubscriptExpr()); -// out << "["; -// toc(o, ctx->expr()); -// out << "]"; -// } -// void toc(std::ostream & o, TocParser::MemberAccessContext * ctx) { -// toc(o, ctx->identifier(0)); -// out << "."; -// toc(o, ctx->identifier(1)); -// } -// void toc(std::ostream & o, TocParser::ParenExprContext * ctx) { -// out << "("; -// toc(o, ctx->expr()); -// out << ")"; -// } -// void toc(std::ostream & o, TocParser::BinaryOperatorContext * ctx) { -// for (int i = 0; i < ctx->BINARY_OPERATOR().size(); i++) { -// toc(o, ctx->nonOpExpr(i)); -// o -// << " " -// << ctx->BINARY_OPERATOR(i)->getText() -// << " "; -// toc(o, ctx->nonOpExpr(i + 1)); -// } -// } - -// void toc_stub(std::ostream & o, TocParser::FuncContext * ctx) { -// o -// << ctx->type()->getText() -// << " " -// << ctx->funcName()->getText() -// << "("; - -// if (ctx->parameter()->firstParameter() != nullptr) { -// o -// << ctx->parameter()->firstParameter()->var()->type()->getText() -// << " " -// << ctx->parameter()->firstParameter()->var()->varName()->getText(); - -// for (auto * par : ctx->parameter()->additionalParameter()) { -// o -// << ", " -// << par->var()->type()->getText() -// << " " -// << par->var()->varName()->getText(); -// } -// } - -// out << ");\n"; -// } -// void toc_stub(std::ostream & o, TocParser::StructDeclContext * ctx) { -// o -// << "struct " -// << ctx->structName()->getText() -// << ";\n"; -// } diff --git a/test.toc b/test.toc index 80e19c1..6d48eec 100644 --- a/test.toc +++ b/test.toc @@ -1,38 +1,39 @@ -var abc: int -var def: int -var ghi: int +var abc: int; +var def: int; +var ghi: int; func f1 (a : int, b : int) : int { - var i1 : int - var s1 : S1 + var i1 : int; + var s1 : S1; if a != i1 { - var i2 : int = 987 - return i2 + var i2 : int = 987; + return i2; } - print(s1.i1) - print(s1.a1[0]) - return 133 + print(s1.i1); + print(s1.a1[0]); + return 133; } struct S1 { - i1 : int - i2 : int - a1 : intArray + i1 : int; + i2 : int; + a1 : int[10]; + a2 : int[10]*; m1() : void { while i1 < i2 { - i1 = m2(i1) + i1 = m2(i1); - i2 = (i1 + i2 * i2) + i2 = i1 + i2 * (i2 - 45) + 4; - print(12345) + print(12345); } } m2(i: int) : int { - var j : int = 0 + var j : int = 0; while j < 10 { - print(a1[j]) + print(a1[j]); } } } \ No newline at end of file diff --git a/todo.txt b/todo.txt index f48d2a3..1e89760 100644 --- a/todo.txt +++ b/todo.txt @@ -59,4 +59,7 @@ Zeitplan: Missing: - unions - const/static/extern -- operator precedence \ No newline at end of file +- operator precedence +- bitfields +- nested bodies {} +- multiple files \ No newline at end of file -- 2.50.1