From b59937d35187334516da3af0d30c985fd054c6a4 Mon Sep 17 00:00:00 2001 From: mcDandy Date: Mon, 19 Jan 2026 20:43:19 +0100 Subject: [PATCH] add append function --- README.md | 1 + more_math/Parser/.antlr/MathExpr.interp | 212 + more_math/Parser/.antlr/MathExpr.tokens | 173 + more_math/Parser/.antlr/MathExprLexer.interp | 293 ++ more_math/Parser/.antlr/MathExprLexer.java | 384 ++ more_math/Parser/.antlr/MathExprLexer.tokens | 173 + more_math/Parser/.antlr/MathExprParser.java | 3857 ++++++++++++++++++ more_math/Parser/MathExpr.g4 | 4 +- more_math/Parser/MathExpr.interp | 4 +- more_math/Parser/MathExpr.tokens | 90 +- more_math/Parser/MathExprLexer.interp | 5 +- more_math/Parser/MathExprLexer.py | 543 +-- more_math/Parser/MathExprLexer.tokens | 90 +- more_math/Parser/MathExprParser.py | 851 ++-- more_math/Parser/MathExprVisitor.py | 5 + more_math/Parser/UnifiedMathVisitor.py | 12 + 16 files changed, 5936 insertions(+), 761 deletions(-) create mode 100644 more_math/Parser/.antlr/MathExpr.interp create mode 100644 more_math/Parser/.antlr/MathExpr.tokens create mode 100644 more_math/Parser/.antlr/MathExprLexer.interp create mode 100644 more_math/Parser/.antlr/MathExprLexer.java create mode 100644 more_math/Parser/.antlr/MathExprLexer.tokens create mode 100644 more_math/Parser/.antlr/MathExprParser.java diff --git a/README.md b/README.md index 10692ae..15efca1 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ You can also get the node from comfy manager under the name of More math. - `flip(x, dims)`: Flips tensor along specified dimensions. `dims` can be scalar or list. - `cov(x, y)`: Compute covariance between x and y. - `sort(x)`: Sorts elements in ascending order along the last dimension. +- `append(a, b)`: Appends `b` to `a`. If inputs are lists, it concatenates them. If inputs are tensors, it concatenates them along dim 0. ### Advanced Tensor Operations (Tensor Only) diff --git a/more_math/Parser/.antlr/MathExpr.interp b/more_math/Parser/.antlr/MathExpr.interp new file mode 100644 index 0000000..00146a7 --- /dev/null +++ b/more_math/Parser/.antlr/MathExpr.interp @@ -0,0 +1,212 @@ +token literal names: +null +'sin' +'cos' +'tan' +'asin' +'acos' +'atan' +'atan2' +'sinh' +'cosh' +'tanh' +'asinh' +'acosh' +'atanh' +'abs' +'sqrt' +'ln' +'log' +'exp' +'smin' +'smax' +'tmin' +'tmax' +'tnorm' +'snorm' +'floor' +'ceil' +'round' +'gamma' +'pow' +'sigm' +'clamp' +'fft' +'ifft' +'angle' +'print' +null +'lerp' +'step' +'smoothstep' +'fract' +'relu' +'softplus' +'gelu' +'sign' +'map' +null +null +'swap' +null +null +'range' +'topk' +'botk' +'pinv' +'sum' +'mean' +'std' +'var' +null +null +'quantile' +'dot' +'moment' +'cossim' +'flip' +'cov' +'sort' +'append' +'+' +'-' +'*' +'/' +'%' +'^' +'>=' +'>' +'<=' +'<' +'==' +'!=' +'|' +'(' +')' +',' +';' +'->' +'[' +']' +null +null +null +null + +token symbolic names: +null +SIN +COS +TAN +ASIN +ACOS +ATAN +ATAN2 +SINH +COSH +TANH +ASINH +ACOSH +ATANH +ABS +SQRT +LN +LOG +EXP +SMIN +SMAX +TMIN +TMAX +TNORM +SNORM +FLOOR +CEIL +ROUND +GAMMA +POWE +SIGM +CLAMP +SFFT +SIFFT +ANGL +PRNT +PRINT_SHAPE +LERP +STEP +SMOOTHSTEP +FRACT +RELU +SOFTPLUS +GELU +SIGN +MAP +EZCONV +CONV +SWAP +PERM +RESHAPE +RANGE +TOPK +BOTK +PINV +SUM +MEAN +STD +VAR +QUARTILE +PERCENTILE +QUANTILE +DOT +MOMENT +COSSIM +FLIP +COV +SORT +APPEND +PLUS +MINUS +MULT +DIV +MOD +POW +GE +GT +LE +LT +EQ +NE +PIPE +LPAREN +RPAREN +COMMA +SEMICOLON +ARROW +LBRACKET +RBRACKET +CONSTANT +NUMBER +VARIABLE +WS + +rule names: +start +funcDef +paramList +expr +compExpr +addExpr +mulExpr +powExpr +unaryExpr +indexExpr +atom +exprList +func1 +func2 +func3 +func4 +funcN + + +atn: +[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 94, 649, 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, 3, 2, 7, 2, 38, 10, 2, 12, 2, 14, 2, 41, 11, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 5, 3, 49, 10, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 7, 4, 59, 10, 4, 12, 4, 14, 4, 62, 11, 4, 3, 5, 3, 5, 5, 5, 66, 10, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 7, 6, 89, 10, 6, 12, 6, 14, 6, 92, 11, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 7, 7, 103, 10, 7, 12, 7, 14, 7, 106, 11, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 7, 8, 120, 10, 8, 12, 8, 14, 8, 123, 11, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 5, 9, 130, 10, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 137, 10, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 7, 11, 147, 10, 11, 12, 11, 14, 11, 150, 11, 11, 3, 11, 3, 11, 7, 11, 154, 10, 11, 12, 11, 14, 11, 157, 11, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 7, 12, 179, 10, 12, 12, 12, 14, 12, 182, 11, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 189, 10, 12, 3, 12, 5, 12, 192, 10, 12, 3, 13, 3, 13, 3, 13, 7, 13, 197, 10, 13, 12, 13, 14, 13, 200, 11, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 5, 14, 402, 10, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 5, 15, 516, 10, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 5, 16, 563, 10, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 7, 18, 581, 10, 18, 12, 18, 14, 18, 584, 11, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 7, 18, 593, 10, 18, 12, 18, 14, 18, 596, 11, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 6, 18, 605, 10, 18, 13, 18, 14, 18, 606, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 6, 18, 616, 10, 18, 13, 18, 14, 18, 617, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 6, 18, 627, 10, 18, 13, 18, 14, 18, 628, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 5, 18, 647, 10, 18, 3, 18, 2, 6, 10, 12, 14, 20, 19, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 2, 2, 2, 734, 2, 39, 3, 2, 2, 2, 4, 45, 3, 2, 2, 2, 6, 55, 3, 2, 2, 2, 8, 65, 3, 2, 2, 2, 10, 67, 3, 2, 2, 2, 12, 93, 3, 2, 2, 2, 14, 107, 3, 2, 2, 2, 16, 129, 3, 2, 2, 2, 18, 136, 3, 2, 2, 2, 20, 138, 3, 2, 2, 2, 22, 191, 3, 2, 2, 2, 24, 193, 3, 2, 2, 2, 26, 401, 3, 2, 2, 2, 28, 515, 3, 2, 2, 2, 30, 562, 3, 2, 2, 2, 32, 564, 3, 2, 2, 2, 34, 646, 3, 2, 2, 2, 36, 38, 5, 4, 3, 2, 37, 36, 3, 2, 2, 2, 38, 41, 3, 2, 2, 2, 39, 37, 3, 2, 2, 2, 39, 40, 3, 2, 2, 2, 40, 42, 3, 2, 2, 2, 41, 39, 3, 2, 2, 2, 42, 43, 5, 8, 5, 2, 43, 44, 7, 2, 2, 3, 44, 3, 3, 2, 2, 2, 45, 46, 7, 93, 2, 2, 46, 48, 7, 84, 2, 2, 47, 49, 5, 6, 4, 2, 48, 47, 3, 2, 2, 2, 48, 49, 3, 2, 2, 2, 49, 50, 3, 2, 2, 2, 50, 51, 7, 85, 2, 2, 51, 52, 7, 88, 2, 2, 52, 53, 5, 8, 5, 2, 53, 54, 7, 87, 2, 2, 54, 5, 3, 2, 2, 2, 55, 60, 7, 93, 2, 2, 56, 57, 7, 86, 2, 2, 57, 59, 7, 93, 2, 2, 58, 56, 3, 2, 2, 2, 59, 62, 3, 2, 2, 2, 60, 58, 3, 2, 2, 2, 60, 61, 3, 2, 2, 2, 61, 7, 3, 2, 2, 2, 62, 60, 3, 2, 2, 2, 63, 66, 5, 22, 12, 2, 64, 66, 5, 10, 6, 2, 65, 63, 3, 2, 2, 2, 65, 64, 3, 2, 2, 2, 66, 9, 3, 2, 2, 2, 67, 68, 8, 6, 1, 2, 68, 69, 5, 12, 7, 2, 69, 90, 3, 2, 2, 2, 70, 71, 12, 9, 2, 2, 71, 72, 7, 78, 2, 2, 72, 89, 5, 12, 7, 2, 73, 74, 12, 8, 2, 2, 74, 75, 7, 77, 2, 2, 75, 89, 5, 12, 7, 2, 76, 77, 12, 7, 2, 2, 77, 78, 7, 80, 2, 2, 78, 89, 5, 12, 7, 2, 79, 80, 12, 6, 2, 2, 80, 81, 7, 79, 2, 2, 81, 89, 5, 12, 7, 2, 82, 83, 12, 5, 2, 2, 83, 84, 7, 81, 2, 2, 84, 89, 5, 12, 7, 2, 85, 86, 12, 4, 2, 2, 86, 87, 7, 82, 2, 2, 87, 89, 5, 12, 7, 2, 88, 70, 3, 2, 2, 2, 88, 73, 3, 2, 2, 2, 88, 76, 3, 2, 2, 2, 88, 79, 3, 2, 2, 2, 88, 82, 3, 2, 2, 2, 88, 85, 3, 2, 2, 2, 89, 92, 3, 2, 2, 2, 90, 88, 3, 2, 2, 2, 90, 91, 3, 2, 2, 2, 91, 11, 3, 2, 2, 2, 92, 90, 3, 2, 2, 2, 93, 94, 8, 7, 1, 2, 94, 95, 5, 14, 8, 2, 95, 104, 3, 2, 2, 2, 96, 97, 12, 5, 2, 2, 97, 98, 7, 71, 2, 2, 98, 103, 5, 14, 8, 2, 99, 100, 12, 4, 2, 2, 100, 101, 7, 72, 2, 2, 101, 103, 5, 14, 8, 2, 102, 96, 3, 2, 2, 2, 102, 99, 3, 2, 2, 2, 103, 106, 3, 2, 2, 2, 104, 102, 3, 2, 2, 2, 104, 105, 3, 2, 2, 2, 105, 13, 3, 2, 2, 2, 106, 104, 3, 2, 2, 2, 107, 108, 8, 8, 1, 2, 108, 109, 5, 16, 9, 2, 109, 121, 3, 2, 2, 2, 110, 111, 12, 6, 2, 2, 111, 112, 7, 73, 2, 2, 112, 120, 5, 16, 9, 2, 113, 114, 12, 5, 2, 2, 114, 115, 7, 74, 2, 2, 115, 120, 5, 16, 9, 2, 116, 117, 12, 4, 2, 2, 117, 118, 7, 75, 2, 2, 118, 120, 5, 16, 9, 2, 119, 110, 3, 2, 2, 2, 119, 113, 3, 2, 2, 2, 119, 116, 3, 2, 2, 2, 120, 123, 3, 2, 2, 2, 121, 119, 3, 2, 2, 2, 121, 122, 3, 2, 2, 2, 122, 15, 3, 2, 2, 2, 123, 121, 3, 2, 2, 2, 124, 125, 5, 18, 10, 2, 125, 126, 7, 76, 2, 2, 126, 127, 5, 16, 9, 2, 127, 130, 3, 2, 2, 2, 128, 130, 5, 18, 10, 2, 129, 124, 3, 2, 2, 2, 129, 128, 3, 2, 2, 2, 130, 17, 3, 2, 2, 2, 131, 132, 7, 71, 2, 2, 132, 137, 5, 18, 10, 2, 133, 134, 7, 72, 2, 2, 134, 137, 5, 18, 10, 2, 135, 137, 5, 20, 11, 2, 136, 131, 3, 2, 2, 2, 136, 133, 3, 2, 2, 2, 136, 135, 3, 2, 2, 2, 137, 19, 3, 2, 2, 2, 138, 139, 8, 11, 1, 2, 139, 140, 5, 22, 12, 2, 140, 155, 3, 2, 2, 2, 141, 142, 12, 4, 2, 2, 142, 143, 7, 89, 2, 2, 143, 148, 5, 8, 5, 2, 144, 145, 7, 86, 2, 2, 145, 147, 5, 8, 5, 2, 146, 144, 3, 2, 2, 2, 147, 150, 3, 2, 2, 2, 148, 146, 3, 2, 2, 2, 148, 149, 3, 2, 2, 2, 149, 151, 3, 2, 2, 2, 150, 148, 3, 2, 2, 2, 151, 152, 7, 90, 2, 2, 152, 154, 3, 2, 2, 2, 153, 141, 3, 2, 2, 2, 154, 157, 3, 2, 2, 2, 155, 153, 3, 2, 2, 2, 155, 156, 3, 2, 2, 2, 156, 21, 3, 2, 2, 2, 157, 155, 3, 2, 2, 2, 158, 192, 5, 26, 14, 2, 159, 192, 5, 28, 15, 2, 160, 192, 5, 30, 16, 2, 161, 192, 5, 32, 17, 2, 162, 192, 5, 34, 18, 2, 163, 192, 7, 93, 2, 2, 164, 192, 7, 92, 2, 2, 165, 192, 7, 91, 2, 2, 166, 167, 7, 84, 2, 2, 167, 168, 5, 8, 5, 2, 168, 169, 7, 85, 2, 2, 169, 192, 3, 2, 2, 2, 170, 171, 7, 83, 2, 2, 171, 172, 5, 8, 5, 2, 172, 173, 7, 83, 2, 2, 173, 192, 3, 2, 2, 2, 174, 175, 7, 89, 2, 2, 175, 180, 5, 8, 5, 2, 176, 177, 7, 86, 2, 2, 177, 179, 5, 8, 5, 2, 178, 176, 3, 2, 2, 2, 179, 182, 3, 2, 2, 2, 180, 178, 3, 2, 2, 2, 180, 181, 3, 2, 2, 2, 181, 183, 3, 2, 2, 2, 182, 180, 3, 2, 2, 2, 183, 184, 7, 90, 2, 2, 184, 192, 3, 2, 2, 2, 185, 186, 7, 93, 2, 2, 186, 188, 7, 84, 2, 2, 187, 189, 5, 24, 13, 2, 188, 187, 3, 2, 2, 2, 188, 189, 3, 2, 2, 2, 189, 190, 3, 2, 2, 2, 190, 192, 7, 85, 2, 2, 191, 158, 3, 2, 2, 2, 191, 159, 3, 2, 2, 2, 191, 160, 3, 2, 2, 2, 191, 161, 3, 2, 2, 2, 191, 162, 3, 2, 2, 2, 191, 163, 3, 2, 2, 2, 191, 164, 3, 2, 2, 2, 191, 165, 3, 2, 2, 2, 191, 166, 3, 2, 2, 2, 191, 170, 3, 2, 2, 2, 191, 174, 3, 2, 2, 2, 191, 185, 3, 2, 2, 2, 192, 23, 3, 2, 2, 2, 193, 198, 5, 8, 5, 2, 194, 195, 7, 86, 2, 2, 195, 197, 5, 8, 5, 2, 196, 194, 3, 2, 2, 2, 197, 200, 3, 2, 2, 2, 198, 196, 3, 2, 2, 2, 198, 199, 3, 2, 2, 2, 199, 25, 3, 2, 2, 2, 200, 198, 3, 2, 2, 2, 201, 202, 7, 3, 2, 2, 202, 203, 7, 84, 2, 2, 203, 204, 5, 8, 5, 2, 204, 205, 7, 85, 2, 2, 205, 402, 3, 2, 2, 2, 206, 207, 7, 4, 2, 2, 207, 208, 7, 84, 2, 2, 208, 209, 5, 8, 5, 2, 209, 210, 7, 85, 2, 2, 210, 402, 3, 2, 2, 2, 211, 212, 7, 5, 2, 2, 212, 213, 7, 84, 2, 2, 213, 214, 5, 8, 5, 2, 214, 215, 7, 85, 2, 2, 215, 402, 3, 2, 2, 2, 216, 217, 7, 6, 2, 2, 217, 218, 7, 84, 2, 2, 218, 219, 5, 8, 5, 2, 219, 220, 7, 85, 2, 2, 220, 402, 3, 2, 2, 2, 221, 222, 7, 7, 2, 2, 222, 223, 7, 84, 2, 2, 223, 224, 5, 8, 5, 2, 224, 225, 7, 85, 2, 2, 225, 402, 3, 2, 2, 2, 226, 227, 7, 8, 2, 2, 227, 228, 7, 84, 2, 2, 228, 229, 5, 8, 5, 2, 229, 230, 7, 85, 2, 2, 230, 402, 3, 2, 2, 2, 231, 232, 7, 10, 2, 2, 232, 233, 7, 84, 2, 2, 233, 234, 5, 8, 5, 2, 234, 235, 7, 85, 2, 2, 235, 402, 3, 2, 2, 2, 236, 237, 7, 11, 2, 2, 237, 238, 7, 84, 2, 2, 238, 239, 5, 8, 5, 2, 239, 240, 7, 85, 2, 2, 240, 402, 3, 2, 2, 2, 241, 242, 7, 12, 2, 2, 242, 243, 7, 84, 2, 2, 243, 244, 5, 8, 5, 2, 244, 245, 7, 85, 2, 2, 245, 402, 3, 2, 2, 2, 246, 247, 7, 13, 2, 2, 247, 248, 7, 84, 2, 2, 248, 249, 5, 8, 5, 2, 249, 250, 7, 85, 2, 2, 250, 402, 3, 2, 2, 2, 251, 252, 7, 14, 2, 2, 252, 253, 7, 84, 2, 2, 253, 254, 5, 8, 5, 2, 254, 255, 7, 85, 2, 2, 255, 402, 3, 2, 2, 2, 256, 257, 7, 15, 2, 2, 257, 258, 7, 84, 2, 2, 258, 259, 5, 8, 5, 2, 259, 260, 7, 85, 2, 2, 260, 402, 3, 2, 2, 2, 261, 262, 7, 16, 2, 2, 262, 263, 7, 84, 2, 2, 263, 264, 5, 8, 5, 2, 264, 265, 7, 85, 2, 2, 265, 402, 3, 2, 2, 2, 266, 267, 7, 17, 2, 2, 267, 268, 7, 84, 2, 2, 268, 269, 5, 8, 5, 2, 269, 270, 7, 85, 2, 2, 270, 402, 3, 2, 2, 2, 271, 272, 7, 18, 2, 2, 272, 273, 7, 84, 2, 2, 273, 274, 5, 8, 5, 2, 274, 275, 7, 85, 2, 2, 275, 402, 3, 2, 2, 2, 276, 277, 7, 19, 2, 2, 277, 278, 7, 84, 2, 2, 278, 279, 5, 8, 5, 2, 279, 280, 7, 85, 2, 2, 280, 402, 3, 2, 2, 2, 281, 282, 7, 20, 2, 2, 282, 283, 7, 84, 2, 2, 283, 284, 5, 8, 5, 2, 284, 285, 7, 85, 2, 2, 285, 402, 3, 2, 2, 2, 286, 287, 7, 25, 2, 2, 287, 288, 7, 84, 2, 2, 288, 289, 5, 8, 5, 2, 289, 290, 7, 85, 2, 2, 290, 402, 3, 2, 2, 2, 291, 292, 7, 26, 2, 2, 292, 293, 7, 84, 2, 2, 293, 294, 5, 8, 5, 2, 294, 295, 7, 85, 2, 2, 295, 402, 3, 2, 2, 2, 296, 297, 7, 27, 2, 2, 297, 298, 7, 84, 2, 2, 298, 299, 5, 8, 5, 2, 299, 300, 7, 85, 2, 2, 300, 402, 3, 2, 2, 2, 301, 302, 7, 28, 2, 2, 302, 303, 7, 84, 2, 2, 303, 304, 5, 8, 5, 2, 304, 305, 7, 85, 2, 2, 305, 402, 3, 2, 2, 2, 306, 307, 7, 29, 2, 2, 307, 308, 7, 84, 2, 2, 308, 309, 5, 8, 5, 2, 309, 310, 7, 85, 2, 2, 310, 402, 3, 2, 2, 2, 311, 312, 7, 30, 2, 2, 312, 313, 7, 84, 2, 2, 313, 314, 5, 8, 5, 2, 314, 315, 7, 85, 2, 2, 315, 402, 3, 2, 2, 2, 316, 317, 7, 32, 2, 2, 317, 318, 7, 84, 2, 2, 318, 319, 5, 8, 5, 2, 319, 320, 7, 85, 2, 2, 320, 402, 3, 2, 2, 2, 321, 322, 7, 34, 2, 2, 322, 323, 7, 84, 2, 2, 323, 324, 5, 8, 5, 2, 324, 325, 7, 85, 2, 2, 325, 402, 3, 2, 2, 2, 326, 327, 7, 35, 2, 2, 327, 328, 7, 84, 2, 2, 328, 329, 5, 8, 5, 2, 329, 330, 7, 85, 2, 2, 330, 402, 3, 2, 2, 2, 331, 332, 7, 36, 2, 2, 332, 333, 7, 84, 2, 2, 333, 334, 5, 8, 5, 2, 334, 335, 7, 85, 2, 2, 335, 402, 3, 2, 2, 2, 336, 337, 7, 37, 2, 2, 337, 338, 7, 84, 2, 2, 338, 339, 5, 8, 5, 2, 339, 340, 7, 85, 2, 2, 340, 402, 3, 2, 2, 2, 341, 342, 7, 42, 2, 2, 342, 343, 7, 84, 2, 2, 343, 344, 5, 8, 5, 2, 344, 345, 7, 85, 2, 2, 345, 402, 3, 2, 2, 2, 346, 347, 7, 43, 2, 2, 347, 348, 7, 84, 2, 2, 348, 349, 5, 8, 5, 2, 349, 350, 7, 85, 2, 2, 350, 402, 3, 2, 2, 2, 351, 352, 7, 44, 2, 2, 352, 353, 7, 84, 2, 2, 353, 354, 5, 8, 5, 2, 354, 355, 7, 85, 2, 2, 355, 402, 3, 2, 2, 2, 356, 357, 7, 45, 2, 2, 357, 358, 7, 84, 2, 2, 358, 359, 5, 8, 5, 2, 359, 360, 7, 85, 2, 2, 360, 402, 3, 2, 2, 2, 361, 362, 7, 46, 2, 2, 362, 363, 7, 84, 2, 2, 363, 364, 5, 8, 5, 2, 364, 365, 7, 85, 2, 2, 365, 402, 3, 2, 2, 2, 366, 367, 7, 38, 2, 2, 367, 368, 7, 84, 2, 2, 368, 369, 5, 8, 5, 2, 369, 370, 7, 85, 2, 2, 370, 402, 3, 2, 2, 2, 371, 372, 7, 56, 2, 2, 372, 373, 7, 84, 2, 2, 373, 374, 5, 8, 5, 2, 374, 375, 7, 85, 2, 2, 375, 402, 3, 2, 2, 2, 376, 377, 7, 57, 2, 2, 377, 378, 7, 84, 2, 2, 378, 379, 5, 8, 5, 2, 379, 380, 7, 85, 2, 2, 380, 402, 3, 2, 2, 2, 381, 382, 7, 58, 2, 2, 382, 383, 7, 84, 2, 2, 383, 384, 5, 8, 5, 2, 384, 385, 7, 85, 2, 2, 385, 402, 3, 2, 2, 2, 386, 387, 7, 59, 2, 2, 387, 388, 7, 84, 2, 2, 388, 389, 5, 8, 5, 2, 389, 390, 7, 85, 2, 2, 390, 402, 3, 2, 2, 2, 391, 392, 7, 60, 2, 2, 392, 393, 7, 84, 2, 2, 393, 394, 5, 8, 5, 2, 394, 395, 7, 85, 2, 2, 395, 402, 3, 2, 2, 2, 396, 397, 7, 69, 2, 2, 397, 398, 7, 84, 2, 2, 398, 399, 5, 8, 5, 2, 399, 400, 7, 85, 2, 2, 400, 402, 3, 2, 2, 2, 401, 201, 3, 2, 2, 2, 401, 206, 3, 2, 2, 2, 401, 211, 3, 2, 2, 2, 401, 216, 3, 2, 2, 2, 401, 221, 3, 2, 2, 2, 401, 226, 3, 2, 2, 2, 401, 231, 3, 2, 2, 2, 401, 236, 3, 2, 2, 2, 401, 241, 3, 2, 2, 2, 401, 246, 3, 2, 2, 2, 401, 251, 3, 2, 2, 2, 401, 256, 3, 2, 2, 2, 401, 261, 3, 2, 2, 2, 401, 266, 3, 2, 2, 2, 401, 271, 3, 2, 2, 2, 401, 276, 3, 2, 2, 2, 401, 281, 3, 2, 2, 2, 401, 286, 3, 2, 2, 2, 401, 291, 3, 2, 2, 2, 401, 296, 3, 2, 2, 2, 401, 301, 3, 2, 2, 2, 401, 306, 3, 2, 2, 2, 401, 311, 3, 2, 2, 2, 401, 316, 3, 2, 2, 2, 401, 321, 3, 2, 2, 2, 401, 326, 3, 2, 2, 2, 401, 331, 3, 2, 2, 2, 401, 336, 3, 2, 2, 2, 401, 341, 3, 2, 2, 2, 401, 346, 3, 2, 2, 2, 401, 351, 3, 2, 2, 2, 401, 356, 3, 2, 2, 2, 401, 361, 3, 2, 2, 2, 401, 366, 3, 2, 2, 2, 401, 371, 3, 2, 2, 2, 401, 376, 3, 2, 2, 2, 401, 381, 3, 2, 2, 2, 401, 386, 3, 2, 2, 2, 401, 391, 3, 2, 2, 2, 401, 396, 3, 2, 2, 2, 402, 27, 3, 2, 2, 2, 403, 404, 7, 31, 2, 2, 404, 405, 7, 84, 2, 2, 405, 406, 5, 8, 5, 2, 406, 407, 7, 86, 2, 2, 407, 408, 5, 8, 5, 2, 408, 409, 7, 85, 2, 2, 409, 516, 3, 2, 2, 2, 410, 411, 7, 9, 2, 2, 411, 412, 7, 84, 2, 2, 412, 413, 5, 8, 5, 2, 413, 414, 7, 86, 2, 2, 414, 415, 5, 8, 5, 2, 415, 416, 7, 85, 2, 2, 416, 516, 3, 2, 2, 2, 417, 418, 7, 23, 2, 2, 418, 419, 7, 84, 2, 2, 419, 420, 5, 8, 5, 2, 420, 421, 7, 86, 2, 2, 421, 422, 5, 8, 5, 2, 422, 423, 7, 85, 2, 2, 423, 516, 3, 2, 2, 2, 424, 425, 7, 24, 2, 2, 425, 426, 7, 84, 2, 2, 426, 427, 5, 8, 5, 2, 427, 428, 7, 86, 2, 2, 428, 429, 5, 8, 5, 2, 429, 430, 7, 85, 2, 2, 430, 516, 3, 2, 2, 2, 431, 432, 7, 40, 2, 2, 432, 433, 7, 84, 2, 2, 433, 434, 5, 8, 5, 2, 434, 435, 7, 86, 2, 2, 435, 436, 5, 8, 5, 2, 436, 437, 7, 85, 2, 2, 437, 516, 3, 2, 2, 2, 438, 439, 7, 54, 2, 2, 439, 440, 7, 84, 2, 2, 440, 441, 5, 8, 5, 2, 441, 442, 7, 86, 2, 2, 442, 443, 5, 8, 5, 2, 443, 444, 7, 85, 2, 2, 444, 516, 3, 2, 2, 2, 445, 446, 7, 55, 2, 2, 446, 447, 7, 84, 2, 2, 447, 448, 5, 8, 5, 2, 448, 449, 7, 86, 2, 2, 449, 450, 5, 8, 5, 2, 450, 451, 7, 85, 2, 2, 451, 516, 3, 2, 2, 2, 452, 453, 7, 61, 2, 2, 453, 454, 7, 84, 2, 2, 454, 455, 5, 8, 5, 2, 455, 456, 7, 86, 2, 2, 456, 457, 5, 8, 5, 2, 457, 458, 7, 85, 2, 2, 458, 516, 3, 2, 2, 2, 459, 460, 7, 62, 2, 2, 460, 461, 7, 84, 2, 2, 461, 462, 5, 8, 5, 2, 462, 463, 7, 86, 2, 2, 463, 464, 5, 8, 5, 2, 464, 465, 7, 85, 2, 2, 465, 516, 3, 2, 2, 2, 466, 467, 7, 63, 2, 2, 467, 468, 7, 84, 2, 2, 468, 469, 5, 8, 5, 2, 469, 470, 7, 86, 2, 2, 470, 471, 5, 8, 5, 2, 471, 472, 7, 85, 2, 2, 472, 516, 3, 2, 2, 2, 473, 474, 7, 63, 2, 2, 474, 475, 7, 84, 2, 2, 475, 476, 5, 8, 5, 2, 476, 477, 7, 86, 2, 2, 477, 478, 5, 8, 5, 2, 478, 479, 7, 85, 2, 2, 479, 516, 3, 2, 2, 2, 480, 481, 7, 64, 2, 2, 481, 482, 7, 84, 2, 2, 482, 483, 5, 8, 5, 2, 483, 484, 7, 86, 2, 2, 484, 485, 5, 8, 5, 2, 485, 486, 7, 85, 2, 2, 486, 516, 3, 2, 2, 2, 487, 488, 7, 66, 2, 2, 488, 489, 7, 84, 2, 2, 489, 490, 5, 8, 5, 2, 490, 491, 7, 86, 2, 2, 491, 492, 5, 8, 5, 2, 492, 493, 7, 85, 2, 2, 493, 516, 3, 2, 2, 2, 494, 495, 7, 67, 2, 2, 495, 496, 7, 84, 2, 2, 496, 497, 5, 8, 5, 2, 497, 498, 7, 86, 2, 2, 498, 499, 5, 8, 5, 2, 499, 500, 7, 85, 2, 2, 500, 516, 3, 2, 2, 2, 501, 502, 7, 68, 2, 2, 502, 503, 7, 84, 2, 2, 503, 504, 5, 8, 5, 2, 504, 505, 7, 86, 2, 2, 505, 506, 5, 8, 5, 2, 506, 507, 7, 85, 2, 2, 507, 516, 3, 2, 2, 2, 508, 509, 7, 70, 2, 2, 509, 510, 7, 84, 2, 2, 510, 511, 5, 8, 5, 2, 511, 512, 7, 86, 2, 2, 512, 513, 5, 8, 5, 2, 513, 514, 7, 85, 2, 2, 514, 516, 3, 2, 2, 2, 515, 403, 3, 2, 2, 2, 515, 410, 3, 2, 2, 2, 515, 417, 3, 2, 2, 2, 515, 424, 3, 2, 2, 2, 515, 431, 3, 2, 2, 2, 515, 438, 3, 2, 2, 2, 515, 445, 3, 2, 2, 2, 515, 452, 3, 2, 2, 2, 515, 459, 3, 2, 2, 2, 515, 466, 3, 2, 2, 2, 515, 473, 3, 2, 2, 2, 515, 480, 3, 2, 2, 2, 515, 487, 3, 2, 2, 2, 515, 494, 3, 2, 2, 2, 515, 501, 3, 2, 2, 2, 515, 508, 3, 2, 2, 2, 516, 29, 3, 2, 2, 2, 517, 518, 7, 33, 2, 2, 518, 519, 7, 84, 2, 2, 519, 520, 5, 8, 5, 2, 520, 521, 7, 86, 2, 2, 521, 522, 5, 8, 5, 2, 522, 523, 7, 86, 2, 2, 523, 524, 5, 8, 5, 2, 524, 525, 7, 85, 2, 2, 525, 563, 3, 2, 2, 2, 526, 527, 7, 39, 2, 2, 527, 528, 7, 84, 2, 2, 528, 529, 5, 8, 5, 2, 529, 530, 7, 86, 2, 2, 530, 531, 5, 8, 5, 2, 531, 532, 7, 86, 2, 2, 532, 533, 5, 8, 5, 2, 533, 534, 7, 85, 2, 2, 534, 563, 3, 2, 2, 2, 535, 536, 7, 41, 2, 2, 536, 537, 7, 84, 2, 2, 537, 538, 5, 8, 5, 2, 538, 539, 7, 86, 2, 2, 539, 540, 5, 8, 5, 2, 540, 541, 7, 86, 2, 2, 541, 542, 5, 8, 5, 2, 542, 543, 7, 85, 2, 2, 543, 563, 3, 2, 2, 2, 544, 545, 7, 53, 2, 2, 545, 546, 7, 84, 2, 2, 546, 547, 5, 8, 5, 2, 547, 548, 7, 86, 2, 2, 548, 549, 5, 8, 5, 2, 549, 550, 7, 86, 2, 2, 550, 551, 5, 8, 5, 2, 551, 552, 7, 85, 2, 2, 552, 563, 3, 2, 2, 2, 553, 554, 7, 65, 2, 2, 554, 555, 7, 84, 2, 2, 555, 556, 5, 8, 5, 2, 556, 557, 7, 86, 2, 2, 557, 558, 5, 8, 5, 2, 558, 559, 7, 86, 2, 2, 559, 560, 5, 8, 5, 2, 560, 561, 7, 85, 2, 2, 561, 563, 3, 2, 2, 2, 562, 517, 3, 2, 2, 2, 562, 526, 3, 2, 2, 2, 562, 535, 3, 2, 2, 2, 562, 544, 3, 2, 2, 2, 562, 553, 3, 2, 2, 2, 563, 31, 3, 2, 2, 2, 564, 565, 7, 50, 2, 2, 565, 566, 7, 84, 2, 2, 566, 567, 5, 8, 5, 2, 567, 568, 7, 86, 2, 2, 568, 569, 5, 8, 5, 2, 569, 570, 7, 86, 2, 2, 570, 571, 5, 8, 5, 2, 571, 572, 7, 86, 2, 2, 572, 573, 5, 8, 5, 2, 573, 574, 7, 85, 2, 2, 574, 33, 3, 2, 2, 2, 575, 576, 7, 21, 2, 2, 576, 577, 7, 84, 2, 2, 577, 582, 5, 8, 5, 2, 578, 579, 7, 86, 2, 2, 579, 581, 5, 8, 5, 2, 580, 578, 3, 2, 2, 2, 581, 584, 3, 2, 2, 2, 582, 580, 3, 2, 2, 2, 582, 583, 3, 2, 2, 2, 583, 585, 3, 2, 2, 2, 584, 582, 3, 2, 2, 2, 585, 586, 7, 85, 2, 2, 586, 647, 3, 2, 2, 2, 587, 588, 7, 22, 2, 2, 588, 589, 7, 84, 2, 2, 589, 594, 5, 8, 5, 2, 590, 591, 7, 86, 2, 2, 591, 593, 5, 8, 5, 2, 592, 590, 3, 2, 2, 2, 593, 596, 3, 2, 2, 2, 594, 592, 3, 2, 2, 2, 594, 595, 3, 2, 2, 2, 595, 597, 3, 2, 2, 2, 596, 594, 3, 2, 2, 2, 597, 598, 7, 85, 2, 2, 598, 647, 3, 2, 2, 2, 599, 600, 7, 47, 2, 2, 600, 601, 7, 84, 2, 2, 601, 604, 5, 8, 5, 2, 602, 603, 7, 86, 2, 2, 603, 605, 5, 8, 5, 2, 604, 602, 3, 2, 2, 2, 605, 606, 3, 2, 2, 2, 606, 604, 3, 2, 2, 2, 606, 607, 3, 2, 2, 2, 607, 608, 3, 2, 2, 2, 608, 609, 7, 85, 2, 2, 609, 647, 3, 2, 2, 2, 610, 611, 7, 48, 2, 2, 611, 612, 7, 84, 2, 2, 612, 615, 5, 8, 5, 2, 613, 614, 7, 86, 2, 2, 614, 616, 5, 8, 5, 2, 615, 613, 3, 2, 2, 2, 616, 617, 3, 2, 2, 2, 617, 615, 3, 2, 2, 2, 617, 618, 3, 2, 2, 2, 618, 619, 3, 2, 2, 2, 619, 620, 7, 85, 2, 2, 620, 647, 3, 2, 2, 2, 621, 622, 7, 49, 2, 2, 622, 623, 7, 84, 2, 2, 623, 626, 5, 8, 5, 2, 624, 625, 7, 86, 2, 2, 625, 627, 5, 8, 5, 2, 626, 624, 3, 2, 2, 2, 627, 628, 3, 2, 2, 2, 628, 626, 3, 2, 2, 2, 628, 629, 3, 2, 2, 2, 629, 630, 3, 2, 2, 2, 630, 631, 7, 85, 2, 2, 631, 647, 3, 2, 2, 2, 632, 633, 7, 51, 2, 2, 633, 634, 7, 84, 2, 2, 634, 635, 5, 8, 5, 2, 635, 636, 7, 86, 2, 2, 636, 637, 5, 8, 5, 2, 637, 638, 7, 85, 2, 2, 638, 647, 3, 2, 2, 2, 639, 640, 7, 52, 2, 2, 640, 641, 7, 84, 2, 2, 641, 642, 5, 8, 5, 2, 642, 643, 7, 86, 2, 2, 643, 644, 5, 8, 5, 2, 644, 645, 7, 85, 2, 2, 645, 647, 3, 2, 2, 2, 646, 575, 3, 2, 2, 2, 646, 587, 3, 2, 2, 2, 646, 599, 3, 2, 2, 2, 646, 610, 3, 2, 2, 2, 646, 621, 3, 2, 2, 2, 646, 632, 3, 2, 2, 2, 646, 639, 3, 2, 2, 2, 647, 35, 3, 2, 2, 2, 29, 39, 48, 60, 65, 88, 90, 102, 104, 119, 121, 129, 136, 148, 155, 180, 188, 191, 198, 401, 515, 562, 582, 594, 606, 617, 628, 646] \ No newline at end of file diff --git a/more_math/Parser/.antlr/MathExpr.tokens b/more_math/Parser/.antlr/MathExpr.tokens new file mode 100644 index 0000000..b1cf5bf --- /dev/null +++ b/more_math/Parser/.antlr/MathExpr.tokens @@ -0,0 +1,173 @@ +SIN=1 +COS=2 +TAN=3 +ASIN=4 +ACOS=5 +ATAN=6 +ATAN2=7 +SINH=8 +COSH=9 +TANH=10 +ASINH=11 +ACOSH=12 +ATANH=13 +ABS=14 +SQRT=15 +LN=16 +LOG=17 +EXP=18 +SMIN=19 +SMAX=20 +TMIN=21 +TMAX=22 +TNORM=23 +SNORM=24 +FLOOR=25 +CEIL=26 +ROUND=27 +GAMMA=28 +POWE=29 +SIGM=30 +CLAMP=31 +SFFT=32 +SIFFT=33 +ANGL=34 +PRNT=35 +PRINT_SHAPE=36 +LERP=37 +STEP=38 +SMOOTHSTEP=39 +FRACT=40 +RELU=41 +SOFTPLUS=42 +GELU=43 +SIGN=44 +MAP=45 +EZCONV=46 +CONV=47 +SWAP=48 +PERM=49 +RESHAPE=50 +RANGE=51 +TOPK=52 +BOTK=53 +PINV=54 +SUM=55 +MEAN=56 +STD=57 +VAR=58 +QUARTILE=59 +PERCENTILE=60 +QUANTILE=61 +DOT=62 +MOMENT=63 +COSSIM=64 +FLIP=65 +COV=66 +SORT=67 +APPEND=68 +PLUS=69 +MINUS=70 +MULT=71 +DIV=72 +MOD=73 +POW=74 +GE=75 +GT=76 +LE=77 +LT=78 +EQ=79 +NE=80 +PIPE=81 +LPAREN=82 +RPAREN=83 +COMMA=84 +SEMICOLON=85 +ARROW=86 +LBRACKET=87 +RBRACKET=88 +CONSTANT=89 +NUMBER=90 +VARIABLE=91 +WS=92 +'sin'=1 +'cos'=2 +'tan'=3 +'asin'=4 +'acos'=5 +'atan'=6 +'atan2'=7 +'sinh'=8 +'cosh'=9 +'tanh'=10 +'asinh'=11 +'acosh'=12 +'atanh'=13 +'abs'=14 +'sqrt'=15 +'ln'=16 +'log'=17 +'exp'=18 +'smin'=19 +'smax'=20 +'tmin'=21 +'tmax'=22 +'tnorm'=23 +'snorm'=24 +'floor'=25 +'ceil'=26 +'round'=27 +'gamma'=28 +'pow'=29 +'sigm'=30 +'clamp'=31 +'fft'=32 +'ifft'=33 +'angle'=34 +'print'=35 +'lerp'=37 +'step'=38 +'smoothstep'=39 +'fract'=40 +'relu'=41 +'softplus'=42 +'gelu'=43 +'sign'=44 +'map'=45 +'swap'=48 +'range'=51 +'topk'=52 +'botk'=53 +'pinv'=54 +'sum'=55 +'mean'=56 +'std'=57 +'var'=58 +'quantile'=61 +'dot'=62 +'moment'=63 +'cossim'=64 +'flip'=65 +'cov'=66 +'sort'=67 +'append'=68 +'+'=69 +'-'=70 +'*'=71 +'/'=72 +'%'=73 +'^'=74 +'>='=75 +'>'=76 +'<='=77 +'<'=78 +'=='=79 +'!='=80 +'|'=81 +'('=82 +')'=83 +','=84 +';'=85 +'->'=86 +'['=87 +']'=88 diff --git a/more_math/Parser/.antlr/MathExprLexer.interp b/more_math/Parser/.antlr/MathExprLexer.interp new file mode 100644 index 0000000..36c38c6 --- /dev/null +++ b/more_math/Parser/.antlr/MathExprLexer.interp @@ -0,0 +1,293 @@ +token literal names: +null +'sin' +'cos' +'tan' +'asin' +'acos' +'atan' +'atan2' +'sinh' +'cosh' +'tanh' +'asinh' +'acosh' +'atanh' +'abs' +'sqrt' +'ln' +'log' +'exp' +'smin' +'smax' +'tmin' +'tmax' +'tnorm' +'snorm' +'floor' +'ceil' +'round' +'gamma' +'pow' +'sigm' +'clamp' +'fft' +'ifft' +'angle' +'print' +null +'lerp' +'step' +'smoothstep' +'fract' +'relu' +'softplus' +'gelu' +'sign' +'map' +null +null +'swap' +null +null +'range' +'topk' +'botk' +'pinv' +'sum' +'mean' +'std' +'var' +null +null +'quantile' +'dot' +'moment' +'cossim' +'flip' +'cov' +'sort' +'append' +'+' +'-' +'*' +'/' +'%' +'^' +'>=' +'>' +'<=' +'<' +'==' +'!=' +'|' +'(' +')' +',' +';' +'->' +'[' +']' +null +null +null +null + +token symbolic names: +null +SIN +COS +TAN +ASIN +ACOS +ATAN +ATAN2 +SINH +COSH +TANH +ASINH +ACOSH +ATANH +ABS +SQRT +LN +LOG +EXP +SMIN +SMAX +TMIN +TMAX +TNORM +SNORM +FLOOR +CEIL +ROUND +GAMMA +POWE +SIGM +CLAMP +SFFT +SIFFT +ANGL +PRNT +PRINT_SHAPE +LERP +STEP +SMOOTHSTEP +FRACT +RELU +SOFTPLUS +GELU +SIGN +MAP +EZCONV +CONV +SWAP +PERM +RESHAPE +RANGE +TOPK +BOTK +PINV +SUM +MEAN +STD +VAR +QUARTILE +PERCENTILE +QUANTILE +DOT +MOMENT +COSSIM +FLIP +COV +SORT +APPEND +PLUS +MINUS +MULT +DIV +MOD +POW +GE +GT +LE +LT +EQ +NE +PIPE +LPAREN +RPAREN +COMMA +SEMICOLON +ARROW +LBRACKET +RBRACKET +CONSTANT +NUMBER +VARIABLE +WS + +rule names: +SIN +COS +TAN +ASIN +ACOS +ATAN +ATAN2 +SINH +COSH +TANH +ASINH +ACOSH +ATANH +ABS +SQRT +LN +LOG +EXP +SMIN +SMAX +TMIN +TMAX +TNORM +SNORM +FLOOR +CEIL +ROUND +GAMMA +POWE +SIGM +CLAMP +SFFT +SIFFT +ANGL +PRNT +PRINT_SHAPE +LERP +STEP +SMOOTHSTEP +FRACT +RELU +SOFTPLUS +GELU +SIGN +MAP +EZCONV +CONV +SWAP +PERM +RESHAPE +RANGE +TOPK +BOTK +PINV +SUM +MEAN +STD +VAR +QUARTILE +PERCENTILE +QUANTILE +DOT +MOMENT +COSSIM +FLIP +COV +SORT +APPEND +PLUS +MINUS +MULT +DIV +MOD +POW +GE +GT +LE +LT +EQ +NE +PIPE +LPAREN +RPAREN +COMMA +SEMICOLON +ARROW +LBRACKET +RBRACKET +CONSTANT +NUMBER +VARIABLE +WS + +channel names: +DEFAULT_TOKEN_CHANNEL +HIDDEN + +mode names: +DEFAULT_MODE + +atn: +[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 94, 704, 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, 4, 64, 9, 64, 4, 65, 9, 65, 4, 66, 9, 66, 4, 67, 9, 67, 4, 68, 9, 68, 4, 69, 9, 69, 4, 70, 9, 70, 4, 71, 9, 71, 4, 72, 9, 72, 4, 73, 9, 73, 4, 74, 9, 74, 4, 75, 9, 75, 4, 76, 9, 76, 4, 77, 9, 77, 4, 78, 9, 78, 4, 79, 9, 79, 4, 80, 9, 80, 4, 81, 9, 81, 4, 82, 9, 82, 4, 83, 9, 83, 4, 84, 9, 84, 4, 85, 9, 85, 4, 86, 9, 86, 4, 87, 9, 87, 4, 88, 9, 88, 4, 89, 9, 89, 4, 90, 9, 90, 4, 91, 9, 91, 4, 92, 9, 92, 4, 93, 9, 93, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 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, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 30, 3, 30, 3, 30, 3, 30, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 33, 3, 33, 3, 33, 3, 33, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 5, 37, 380, 10, 37, 3, 38, 3, 38, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 41, 3, 41, 3, 41, 3, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 3, 44, 3, 44, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 46, 3, 46, 3, 46, 3, 46, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 5, 47, 456, 10, 47, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 5, 48, 473, 10, 48, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 5, 50, 491, 10, 50, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 5, 51, 504, 10, 51, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 3, 54, 3, 54, 3, 54, 3, 55, 3, 55, 3, 55, 3, 55, 3, 55, 3, 56, 3, 56, 3, 56, 3, 56, 3, 57, 3, 57, 3, 57, 3, 57, 3, 57, 3, 58, 3, 58, 3, 58, 3, 58, 3, 59, 3, 59, 3, 59, 3, 59, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 5, 60, 559, 10, 60, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 5, 61, 576, 10, 61, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 63, 3, 63, 3, 63, 3, 63, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 3, 67, 3, 67, 3, 67, 3, 67, 3, 68, 3, 68, 3, 68, 3, 68, 3, 68, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 70, 3, 70, 3, 71, 3, 71, 3, 72, 3, 72, 3, 73, 3, 73, 3, 74, 3, 74, 3, 75, 3, 75, 3, 76, 3, 76, 3, 76, 3, 77, 3, 77, 3, 78, 3, 78, 3, 78, 3, 79, 3, 79, 3, 80, 3, 80, 3, 80, 3, 81, 3, 81, 3, 81, 3, 82, 3, 82, 3, 83, 3, 83, 3, 84, 3, 84, 3, 85, 3, 85, 3, 86, 3, 86, 3, 87, 3, 87, 3, 87, 3, 88, 3, 88, 3, 89, 3, 89, 3, 90, 3, 90, 3, 90, 3, 90, 3, 90, 5, 90, 676, 10, 90, 3, 91, 6, 91, 679, 10, 91, 13, 91, 14, 91, 680, 3, 91, 3, 91, 6, 91, 685, 10, 91, 13, 91, 14, 91, 686, 5, 91, 689, 10, 91, 3, 92, 3, 92, 7, 92, 693, 10, 92, 12, 92, 14, 92, 696, 11, 92, 3, 93, 6, 93, 699, 10, 93, 13, 93, 14, 93, 700, 3, 93, 3, 93, 2, 2, 94, 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, 127, 65, 129, 66, 131, 67, 133, 68, 135, 69, 137, 70, 139, 71, 141, 72, 143, 73, 145, 74, 147, 75, 149, 76, 151, 77, 153, 78, 155, 79, 157, 80, 159, 81, 161, 82, 163, 83, 165, 84, 167, 85, 169, 86, 171, 87, 173, 88, 175, 89, 177, 90, 179, 91, 181, 92, 183, 93, 185, 94, 3, 2, 7, 4, 2, 71, 71, 103, 103, 3, 2, 50, 59, 5, 2, 67, 92, 97, 97, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 5, 2, 11, 12, 15, 15, 34, 34, 2, 717, 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, 2, 127, 3, 2, 2, 2, 2, 129, 3, 2, 2, 2, 2, 131, 3, 2, 2, 2, 2, 133, 3, 2, 2, 2, 2, 135, 3, 2, 2, 2, 2, 137, 3, 2, 2, 2, 2, 139, 3, 2, 2, 2, 2, 141, 3, 2, 2, 2, 2, 143, 3, 2, 2, 2, 2, 145, 3, 2, 2, 2, 2, 147, 3, 2, 2, 2, 2, 149, 3, 2, 2, 2, 2, 151, 3, 2, 2, 2, 2, 153, 3, 2, 2, 2, 2, 155, 3, 2, 2, 2, 2, 157, 3, 2, 2, 2, 2, 159, 3, 2, 2, 2, 2, 161, 3, 2, 2, 2, 2, 163, 3, 2, 2, 2, 2, 165, 3, 2, 2, 2, 2, 167, 3, 2, 2, 2, 2, 169, 3, 2, 2, 2, 2, 171, 3, 2, 2, 2, 2, 173, 3, 2, 2, 2, 2, 175, 3, 2, 2, 2, 2, 177, 3, 2, 2, 2, 2, 179, 3, 2, 2, 2, 2, 181, 3, 2, 2, 2, 2, 183, 3, 2, 2, 2, 2, 185, 3, 2, 2, 2, 3, 187, 3, 2, 2, 2, 5, 191, 3, 2, 2, 2, 7, 195, 3, 2, 2, 2, 9, 199, 3, 2, 2, 2, 11, 204, 3, 2, 2, 2, 13, 209, 3, 2, 2, 2, 15, 214, 3, 2, 2, 2, 17, 220, 3, 2, 2, 2, 19, 225, 3, 2, 2, 2, 21, 230, 3, 2, 2, 2, 23, 235, 3, 2, 2, 2, 25, 241, 3, 2, 2, 2, 27, 247, 3, 2, 2, 2, 29, 253, 3, 2, 2, 2, 31, 257, 3, 2, 2, 2, 33, 262, 3, 2, 2, 2, 35, 265, 3, 2, 2, 2, 37, 269, 3, 2, 2, 2, 39, 273, 3, 2, 2, 2, 41, 278, 3, 2, 2, 2, 43, 283, 3, 2, 2, 2, 45, 288, 3, 2, 2, 2, 47, 293, 3, 2, 2, 2, 49, 299, 3, 2, 2, 2, 51, 305, 3, 2, 2, 2, 53, 311, 3, 2, 2, 2, 55, 316, 3, 2, 2, 2, 57, 322, 3, 2, 2, 2, 59, 328, 3, 2, 2, 2, 61, 332, 3, 2, 2, 2, 63, 337, 3, 2, 2, 2, 65, 343, 3, 2, 2, 2, 67, 347, 3, 2, 2, 2, 69, 352, 3, 2, 2, 2, 71, 358, 3, 2, 2, 2, 73, 379, 3, 2, 2, 2, 75, 381, 3, 2, 2, 2, 77, 386, 3, 2, 2, 2, 79, 391, 3, 2, 2, 2, 81, 402, 3, 2, 2, 2, 83, 408, 3, 2, 2, 2, 85, 413, 3, 2, 2, 2, 87, 422, 3, 2, 2, 2, 89, 427, 3, 2, 2, 2, 91, 432, 3, 2, 2, 2, 93, 455, 3, 2, 2, 2, 95, 472, 3, 2, 2, 2, 97, 474, 3, 2, 2, 2, 99, 490, 3, 2, 2, 2, 101, 503, 3, 2, 2, 2, 103, 505, 3, 2, 2, 2, 105, 511, 3, 2, 2, 2, 107, 516, 3, 2, 2, 2, 109, 521, 3, 2, 2, 2, 111, 526, 3, 2, 2, 2, 113, 530, 3, 2, 2, 2, 115, 535, 3, 2, 2, 2, 117, 539, 3, 2, 2, 2, 119, 558, 3, 2, 2, 2, 121, 575, 3, 2, 2, 2, 123, 577, 3, 2, 2, 2, 125, 586, 3, 2, 2, 2, 127, 590, 3, 2, 2, 2, 129, 597, 3, 2, 2, 2, 131, 604, 3, 2, 2, 2, 133, 609, 3, 2, 2, 2, 135, 613, 3, 2, 2, 2, 137, 618, 3, 2, 2, 2, 139, 625, 3, 2, 2, 2, 141, 627, 3, 2, 2, 2, 143, 629, 3, 2, 2, 2, 145, 631, 3, 2, 2, 2, 147, 633, 3, 2, 2, 2, 149, 635, 3, 2, 2, 2, 151, 637, 3, 2, 2, 2, 153, 640, 3, 2, 2, 2, 155, 642, 3, 2, 2, 2, 157, 645, 3, 2, 2, 2, 159, 647, 3, 2, 2, 2, 161, 650, 3, 2, 2, 2, 163, 653, 3, 2, 2, 2, 165, 655, 3, 2, 2, 2, 167, 657, 3, 2, 2, 2, 169, 659, 3, 2, 2, 2, 171, 661, 3, 2, 2, 2, 173, 663, 3, 2, 2, 2, 175, 666, 3, 2, 2, 2, 177, 668, 3, 2, 2, 2, 179, 675, 3, 2, 2, 2, 181, 678, 3, 2, 2, 2, 183, 690, 3, 2, 2, 2, 185, 698, 3, 2, 2, 2, 187, 188, 7, 117, 2, 2, 188, 189, 7, 107, 2, 2, 189, 190, 7, 112, 2, 2, 190, 4, 3, 2, 2, 2, 191, 192, 7, 101, 2, 2, 192, 193, 7, 113, 2, 2, 193, 194, 7, 117, 2, 2, 194, 6, 3, 2, 2, 2, 195, 196, 7, 118, 2, 2, 196, 197, 7, 99, 2, 2, 197, 198, 7, 112, 2, 2, 198, 8, 3, 2, 2, 2, 199, 200, 7, 99, 2, 2, 200, 201, 7, 117, 2, 2, 201, 202, 7, 107, 2, 2, 202, 203, 7, 112, 2, 2, 203, 10, 3, 2, 2, 2, 204, 205, 7, 99, 2, 2, 205, 206, 7, 101, 2, 2, 206, 207, 7, 113, 2, 2, 207, 208, 7, 117, 2, 2, 208, 12, 3, 2, 2, 2, 209, 210, 7, 99, 2, 2, 210, 211, 7, 118, 2, 2, 211, 212, 7, 99, 2, 2, 212, 213, 7, 112, 2, 2, 213, 14, 3, 2, 2, 2, 214, 215, 7, 99, 2, 2, 215, 216, 7, 118, 2, 2, 216, 217, 7, 99, 2, 2, 217, 218, 7, 112, 2, 2, 218, 219, 7, 52, 2, 2, 219, 16, 3, 2, 2, 2, 220, 221, 7, 117, 2, 2, 221, 222, 7, 107, 2, 2, 222, 223, 7, 112, 2, 2, 223, 224, 7, 106, 2, 2, 224, 18, 3, 2, 2, 2, 225, 226, 7, 101, 2, 2, 226, 227, 7, 113, 2, 2, 227, 228, 7, 117, 2, 2, 228, 229, 7, 106, 2, 2, 229, 20, 3, 2, 2, 2, 230, 231, 7, 118, 2, 2, 231, 232, 7, 99, 2, 2, 232, 233, 7, 112, 2, 2, 233, 234, 7, 106, 2, 2, 234, 22, 3, 2, 2, 2, 235, 236, 7, 99, 2, 2, 236, 237, 7, 117, 2, 2, 237, 238, 7, 107, 2, 2, 238, 239, 7, 112, 2, 2, 239, 240, 7, 106, 2, 2, 240, 24, 3, 2, 2, 2, 241, 242, 7, 99, 2, 2, 242, 243, 7, 101, 2, 2, 243, 244, 7, 113, 2, 2, 244, 245, 7, 117, 2, 2, 245, 246, 7, 106, 2, 2, 246, 26, 3, 2, 2, 2, 247, 248, 7, 99, 2, 2, 248, 249, 7, 118, 2, 2, 249, 250, 7, 99, 2, 2, 250, 251, 7, 112, 2, 2, 251, 252, 7, 106, 2, 2, 252, 28, 3, 2, 2, 2, 253, 254, 7, 99, 2, 2, 254, 255, 7, 100, 2, 2, 255, 256, 7, 117, 2, 2, 256, 30, 3, 2, 2, 2, 257, 258, 7, 117, 2, 2, 258, 259, 7, 115, 2, 2, 259, 260, 7, 116, 2, 2, 260, 261, 7, 118, 2, 2, 261, 32, 3, 2, 2, 2, 262, 263, 7, 110, 2, 2, 263, 264, 7, 112, 2, 2, 264, 34, 3, 2, 2, 2, 265, 266, 7, 110, 2, 2, 266, 267, 7, 113, 2, 2, 267, 268, 7, 105, 2, 2, 268, 36, 3, 2, 2, 2, 269, 270, 7, 103, 2, 2, 270, 271, 7, 122, 2, 2, 271, 272, 7, 114, 2, 2, 272, 38, 3, 2, 2, 2, 273, 274, 7, 117, 2, 2, 274, 275, 7, 111, 2, 2, 275, 276, 7, 107, 2, 2, 276, 277, 7, 112, 2, 2, 277, 40, 3, 2, 2, 2, 278, 279, 7, 117, 2, 2, 279, 280, 7, 111, 2, 2, 280, 281, 7, 99, 2, 2, 281, 282, 7, 122, 2, 2, 282, 42, 3, 2, 2, 2, 283, 284, 7, 118, 2, 2, 284, 285, 7, 111, 2, 2, 285, 286, 7, 107, 2, 2, 286, 287, 7, 112, 2, 2, 287, 44, 3, 2, 2, 2, 288, 289, 7, 118, 2, 2, 289, 290, 7, 111, 2, 2, 290, 291, 7, 99, 2, 2, 291, 292, 7, 122, 2, 2, 292, 46, 3, 2, 2, 2, 293, 294, 7, 118, 2, 2, 294, 295, 7, 112, 2, 2, 295, 296, 7, 113, 2, 2, 296, 297, 7, 116, 2, 2, 297, 298, 7, 111, 2, 2, 298, 48, 3, 2, 2, 2, 299, 300, 7, 117, 2, 2, 300, 301, 7, 112, 2, 2, 301, 302, 7, 113, 2, 2, 302, 303, 7, 116, 2, 2, 303, 304, 7, 111, 2, 2, 304, 50, 3, 2, 2, 2, 305, 306, 7, 104, 2, 2, 306, 307, 7, 110, 2, 2, 307, 308, 7, 113, 2, 2, 308, 309, 7, 113, 2, 2, 309, 310, 7, 116, 2, 2, 310, 52, 3, 2, 2, 2, 311, 312, 7, 101, 2, 2, 312, 313, 7, 103, 2, 2, 313, 314, 7, 107, 2, 2, 314, 315, 7, 110, 2, 2, 315, 54, 3, 2, 2, 2, 316, 317, 7, 116, 2, 2, 317, 318, 7, 113, 2, 2, 318, 319, 7, 119, 2, 2, 319, 320, 7, 112, 2, 2, 320, 321, 7, 102, 2, 2, 321, 56, 3, 2, 2, 2, 322, 323, 7, 105, 2, 2, 323, 324, 7, 99, 2, 2, 324, 325, 7, 111, 2, 2, 325, 326, 7, 111, 2, 2, 326, 327, 7, 99, 2, 2, 327, 58, 3, 2, 2, 2, 328, 329, 7, 114, 2, 2, 329, 330, 7, 113, 2, 2, 330, 331, 7, 121, 2, 2, 331, 60, 3, 2, 2, 2, 332, 333, 7, 117, 2, 2, 333, 334, 7, 107, 2, 2, 334, 335, 7, 105, 2, 2, 335, 336, 7, 111, 2, 2, 336, 62, 3, 2, 2, 2, 337, 338, 7, 101, 2, 2, 338, 339, 7, 110, 2, 2, 339, 340, 7, 99, 2, 2, 340, 341, 7, 111, 2, 2, 341, 342, 7, 114, 2, 2, 342, 64, 3, 2, 2, 2, 343, 344, 7, 104, 2, 2, 344, 345, 7, 104, 2, 2, 345, 346, 7, 118, 2, 2, 346, 66, 3, 2, 2, 2, 347, 348, 7, 107, 2, 2, 348, 349, 7, 104, 2, 2, 349, 350, 7, 104, 2, 2, 350, 351, 7, 118, 2, 2, 351, 68, 3, 2, 2, 2, 352, 353, 7, 99, 2, 2, 353, 354, 7, 112, 2, 2, 354, 355, 7, 105, 2, 2, 355, 356, 7, 110, 2, 2, 356, 357, 7, 103, 2, 2, 357, 70, 3, 2, 2, 2, 358, 359, 7, 114, 2, 2, 359, 360, 7, 116, 2, 2, 360, 361, 7, 107, 2, 2, 361, 362, 7, 112, 2, 2, 362, 363, 7, 118, 2, 2, 363, 72, 3, 2, 2, 2, 364, 365, 7, 114, 2, 2, 365, 366, 7, 116, 2, 2, 366, 367, 7, 107, 2, 2, 367, 368, 7, 112, 2, 2, 368, 369, 7, 118, 2, 2, 369, 370, 7, 97, 2, 2, 370, 371, 7, 117, 2, 2, 371, 372, 7, 106, 2, 2, 372, 373, 7, 99, 2, 2, 373, 374, 7, 114, 2, 2, 374, 380, 7, 103, 2, 2, 375, 376, 7, 114, 2, 2, 376, 377, 7, 117, 2, 2, 377, 378, 7, 106, 2, 2, 378, 380, 7, 114, 2, 2, 379, 364, 3, 2, 2, 2, 379, 375, 3, 2, 2, 2, 380, 74, 3, 2, 2, 2, 381, 382, 7, 110, 2, 2, 382, 383, 7, 103, 2, 2, 383, 384, 7, 116, 2, 2, 384, 385, 7, 114, 2, 2, 385, 76, 3, 2, 2, 2, 386, 387, 7, 117, 2, 2, 387, 388, 7, 118, 2, 2, 388, 389, 7, 103, 2, 2, 389, 390, 7, 114, 2, 2, 390, 78, 3, 2, 2, 2, 391, 392, 7, 117, 2, 2, 392, 393, 7, 111, 2, 2, 393, 394, 7, 113, 2, 2, 394, 395, 7, 113, 2, 2, 395, 396, 7, 118, 2, 2, 396, 397, 7, 106, 2, 2, 397, 398, 7, 117, 2, 2, 398, 399, 7, 118, 2, 2, 399, 400, 7, 103, 2, 2, 400, 401, 7, 114, 2, 2, 401, 80, 3, 2, 2, 2, 402, 403, 7, 104, 2, 2, 403, 404, 7, 116, 2, 2, 404, 405, 7, 99, 2, 2, 405, 406, 7, 101, 2, 2, 406, 407, 7, 118, 2, 2, 407, 82, 3, 2, 2, 2, 408, 409, 7, 116, 2, 2, 409, 410, 7, 103, 2, 2, 410, 411, 7, 110, 2, 2, 411, 412, 7, 119, 2, 2, 412, 84, 3, 2, 2, 2, 413, 414, 7, 117, 2, 2, 414, 415, 7, 113, 2, 2, 415, 416, 7, 104, 2, 2, 416, 417, 7, 118, 2, 2, 417, 418, 7, 114, 2, 2, 418, 419, 7, 110, 2, 2, 419, 420, 7, 119, 2, 2, 420, 421, 7, 117, 2, 2, 421, 86, 3, 2, 2, 2, 422, 423, 7, 105, 2, 2, 423, 424, 7, 103, 2, 2, 424, 425, 7, 110, 2, 2, 425, 426, 7, 119, 2, 2, 426, 88, 3, 2, 2, 2, 427, 428, 7, 117, 2, 2, 428, 429, 7, 107, 2, 2, 429, 430, 7, 105, 2, 2, 430, 431, 7, 112, 2, 2, 431, 90, 3, 2, 2, 2, 432, 433, 7, 111, 2, 2, 433, 434, 7, 99, 2, 2, 434, 435, 7, 114, 2, 2, 435, 92, 3, 2, 2, 2, 436, 437, 7, 103, 2, 2, 437, 438, 7, 124, 2, 2, 438, 439, 7, 101, 2, 2, 439, 440, 7, 113, 2, 2, 440, 441, 7, 112, 2, 2, 441, 442, 7, 120, 2, 2, 442, 443, 7, 113, 2, 2, 443, 444, 7, 110, 2, 2, 444, 445, 7, 119, 2, 2, 445, 446, 7, 118, 2, 2, 446, 447, 7, 107, 2, 2, 447, 448, 7, 113, 2, 2, 448, 456, 7, 112, 2, 2, 449, 450, 7, 103, 2, 2, 450, 451, 7, 124, 2, 2, 451, 452, 7, 101, 2, 2, 452, 453, 7, 113, 2, 2, 453, 454, 7, 112, 2, 2, 454, 456, 7, 120, 2, 2, 455, 436, 3, 2, 2, 2, 455, 449, 3, 2, 2, 2, 456, 94, 3, 2, 2, 2, 457, 458, 7, 101, 2, 2, 458, 459, 7, 113, 2, 2, 459, 460, 7, 112, 2, 2, 460, 461, 7, 120, 2, 2, 461, 462, 7, 113, 2, 2, 462, 463, 7, 110, 2, 2, 463, 464, 7, 119, 2, 2, 464, 465, 7, 118, 2, 2, 465, 466, 7, 107, 2, 2, 466, 467, 7, 113, 2, 2, 467, 473, 7, 112, 2, 2, 468, 469, 7, 101, 2, 2, 469, 470, 7, 113, 2, 2, 470, 471, 7, 112, 2, 2, 471, 473, 7, 120, 2, 2, 472, 457, 3, 2, 2, 2, 472, 468, 3, 2, 2, 2, 473, 96, 3, 2, 2, 2, 474, 475, 7, 117, 2, 2, 475, 476, 7, 121, 2, 2, 476, 477, 7, 99, 2, 2, 477, 478, 7, 114, 2, 2, 478, 98, 3, 2, 2, 2, 479, 480, 7, 114, 2, 2, 480, 481, 7, 103, 2, 2, 481, 482, 7, 116, 2, 2, 482, 483, 7, 111, 2, 2, 483, 484, 7, 119, 2, 2, 484, 485, 7, 118, 2, 2, 485, 491, 7, 103, 2, 2, 486, 487, 7, 114, 2, 2, 487, 488, 7, 103, 2, 2, 488, 489, 7, 116, 2, 2, 489, 491, 7, 111, 2, 2, 490, 479, 3, 2, 2, 2, 490, 486, 3, 2, 2, 2, 491, 100, 3, 2, 2, 2, 492, 493, 7, 116, 2, 2, 493, 494, 7, 103, 2, 2, 494, 495, 7, 117, 2, 2, 495, 496, 7, 106, 2, 2, 496, 497, 7, 99, 2, 2, 497, 498, 7, 114, 2, 2, 498, 504, 7, 103, 2, 2, 499, 500, 7, 116, 2, 2, 500, 501, 7, 117, 2, 2, 501, 502, 7, 106, 2, 2, 502, 504, 7, 114, 2, 2, 503, 492, 3, 2, 2, 2, 503, 499, 3, 2, 2, 2, 504, 102, 3, 2, 2, 2, 505, 506, 7, 116, 2, 2, 506, 507, 7, 99, 2, 2, 507, 508, 7, 112, 2, 2, 508, 509, 7, 105, 2, 2, 509, 510, 7, 103, 2, 2, 510, 104, 3, 2, 2, 2, 511, 512, 7, 118, 2, 2, 512, 513, 7, 113, 2, 2, 513, 514, 7, 114, 2, 2, 514, 515, 7, 109, 2, 2, 515, 106, 3, 2, 2, 2, 516, 517, 7, 100, 2, 2, 517, 518, 7, 113, 2, 2, 518, 519, 7, 118, 2, 2, 519, 520, 7, 109, 2, 2, 520, 108, 3, 2, 2, 2, 521, 522, 7, 114, 2, 2, 522, 523, 7, 107, 2, 2, 523, 524, 7, 112, 2, 2, 524, 525, 7, 120, 2, 2, 525, 110, 3, 2, 2, 2, 526, 527, 7, 117, 2, 2, 527, 528, 7, 119, 2, 2, 528, 529, 7, 111, 2, 2, 529, 112, 3, 2, 2, 2, 530, 531, 7, 111, 2, 2, 531, 532, 7, 103, 2, 2, 532, 533, 7, 99, 2, 2, 533, 534, 7, 112, 2, 2, 534, 114, 3, 2, 2, 2, 535, 536, 7, 117, 2, 2, 536, 537, 7, 118, 2, 2, 537, 538, 7, 102, 2, 2, 538, 116, 3, 2, 2, 2, 539, 540, 7, 120, 2, 2, 540, 541, 7, 99, 2, 2, 541, 542, 7, 116, 2, 2, 542, 118, 3, 2, 2, 2, 543, 544, 7, 115, 2, 2, 544, 545, 7, 119, 2, 2, 545, 546, 7, 99, 2, 2, 546, 547, 7, 116, 2, 2, 547, 548, 7, 118, 2, 2, 548, 549, 7, 107, 2, 2, 549, 550, 7, 110, 2, 2, 550, 559, 7, 103, 2, 2, 551, 552, 7, 115, 2, 2, 552, 553, 7, 119, 2, 2, 553, 554, 7, 99, 2, 2, 554, 555, 7, 116, 2, 2, 555, 556, 7, 118, 2, 2, 556, 557, 7, 107, 2, 2, 557, 559, 7, 110, 2, 2, 558, 543, 3, 2, 2, 2, 558, 551, 3, 2, 2, 2, 559, 120, 3, 2, 2, 2, 560, 561, 7, 114, 2, 2, 561, 562, 7, 103, 2, 2, 562, 563, 7, 116, 2, 2, 563, 564, 7, 101, 2, 2, 564, 565, 7, 103, 2, 2, 565, 566, 7, 112, 2, 2, 566, 567, 7, 118, 2, 2, 567, 568, 7, 107, 2, 2, 568, 569, 7, 110, 2, 2, 569, 576, 7, 103, 2, 2, 570, 571, 7, 114, 2, 2, 571, 572, 7, 116, 2, 2, 572, 573, 7, 101, 2, 2, 573, 574, 7, 112, 2, 2, 574, 576, 7, 118, 2, 2, 575, 560, 3, 2, 2, 2, 575, 570, 3, 2, 2, 2, 576, 122, 3, 2, 2, 2, 577, 578, 7, 115, 2, 2, 578, 579, 7, 119, 2, 2, 579, 580, 7, 99, 2, 2, 580, 581, 7, 112, 2, 2, 581, 582, 7, 118, 2, 2, 582, 583, 7, 107, 2, 2, 583, 584, 7, 110, 2, 2, 584, 585, 7, 103, 2, 2, 585, 124, 3, 2, 2, 2, 586, 587, 7, 102, 2, 2, 587, 588, 7, 113, 2, 2, 588, 589, 7, 118, 2, 2, 589, 126, 3, 2, 2, 2, 590, 591, 7, 111, 2, 2, 591, 592, 7, 113, 2, 2, 592, 593, 7, 111, 2, 2, 593, 594, 7, 103, 2, 2, 594, 595, 7, 112, 2, 2, 595, 596, 7, 118, 2, 2, 596, 128, 3, 2, 2, 2, 597, 598, 7, 101, 2, 2, 598, 599, 7, 113, 2, 2, 599, 600, 7, 117, 2, 2, 600, 601, 7, 117, 2, 2, 601, 602, 7, 107, 2, 2, 602, 603, 7, 111, 2, 2, 603, 130, 3, 2, 2, 2, 604, 605, 7, 104, 2, 2, 605, 606, 7, 110, 2, 2, 606, 607, 7, 107, 2, 2, 607, 608, 7, 114, 2, 2, 608, 132, 3, 2, 2, 2, 609, 610, 7, 101, 2, 2, 610, 611, 7, 113, 2, 2, 611, 612, 7, 120, 2, 2, 612, 134, 3, 2, 2, 2, 613, 614, 7, 117, 2, 2, 614, 615, 7, 113, 2, 2, 615, 616, 7, 116, 2, 2, 616, 617, 7, 118, 2, 2, 617, 136, 3, 2, 2, 2, 618, 619, 7, 99, 2, 2, 619, 620, 7, 114, 2, 2, 620, 621, 7, 114, 2, 2, 621, 622, 7, 103, 2, 2, 622, 623, 7, 112, 2, 2, 623, 624, 7, 102, 2, 2, 624, 138, 3, 2, 2, 2, 625, 626, 7, 45, 2, 2, 626, 140, 3, 2, 2, 2, 627, 628, 7, 47, 2, 2, 628, 142, 3, 2, 2, 2, 629, 630, 7, 44, 2, 2, 630, 144, 3, 2, 2, 2, 631, 632, 7, 49, 2, 2, 632, 146, 3, 2, 2, 2, 633, 634, 7, 39, 2, 2, 634, 148, 3, 2, 2, 2, 635, 636, 7, 96, 2, 2, 636, 150, 3, 2, 2, 2, 637, 638, 7, 64, 2, 2, 638, 639, 7, 63, 2, 2, 639, 152, 3, 2, 2, 2, 640, 641, 7, 64, 2, 2, 641, 154, 3, 2, 2, 2, 642, 643, 7, 62, 2, 2, 643, 644, 7, 63, 2, 2, 644, 156, 3, 2, 2, 2, 645, 646, 7, 62, 2, 2, 646, 158, 3, 2, 2, 2, 647, 648, 7, 63, 2, 2, 648, 649, 7, 63, 2, 2, 649, 160, 3, 2, 2, 2, 650, 651, 7, 35, 2, 2, 651, 652, 7, 63, 2, 2, 652, 162, 3, 2, 2, 2, 653, 654, 7, 126, 2, 2, 654, 164, 3, 2, 2, 2, 655, 656, 7, 42, 2, 2, 656, 166, 3, 2, 2, 2, 657, 658, 7, 43, 2, 2, 658, 168, 3, 2, 2, 2, 659, 660, 7, 46, 2, 2, 660, 170, 3, 2, 2, 2, 661, 662, 7, 61, 2, 2, 662, 172, 3, 2, 2, 2, 663, 664, 7, 47, 2, 2, 664, 665, 7, 64, 2, 2, 665, 174, 3, 2, 2, 2, 666, 667, 7, 93, 2, 2, 667, 176, 3, 2, 2, 2, 668, 669, 7, 95, 2, 2, 669, 178, 3, 2, 2, 2, 670, 671, 7, 114, 2, 2, 671, 676, 7, 107, 2, 2, 672, 673, 7, 82, 2, 2, 673, 676, 7, 75, 2, 2, 674, 676, 9, 2, 2, 2, 675, 670, 3, 2, 2, 2, 675, 672, 3, 2, 2, 2, 675, 674, 3, 2, 2, 2, 676, 180, 3, 2, 2, 2, 677, 679, 9, 3, 2, 2, 678, 677, 3, 2, 2, 2, 679, 680, 3, 2, 2, 2, 680, 678, 3, 2, 2, 2, 680, 681, 3, 2, 2, 2, 681, 688, 3, 2, 2, 2, 682, 684, 7, 48, 2, 2, 683, 685, 9, 3, 2, 2, 684, 683, 3, 2, 2, 2, 685, 686, 3, 2, 2, 2, 686, 684, 3, 2, 2, 2, 686, 687, 3, 2, 2, 2, 687, 689, 3, 2, 2, 2, 688, 682, 3, 2, 2, 2, 688, 689, 3, 2, 2, 2, 689, 182, 3, 2, 2, 2, 690, 694, 9, 4, 2, 2, 691, 693, 9, 5, 2, 2, 692, 691, 3, 2, 2, 2, 693, 696, 3, 2, 2, 2, 694, 692, 3, 2, 2, 2, 694, 695, 3, 2, 2, 2, 695, 184, 3, 2, 2, 2, 696, 694, 3, 2, 2, 2, 697, 699, 9, 6, 2, 2, 698, 697, 3, 2, 2, 2, 699, 700, 3, 2, 2, 2, 700, 698, 3, 2, 2, 2, 700, 701, 3, 2, 2, 2, 701, 702, 3, 2, 2, 2, 702, 703, 8, 93, 2, 2, 703, 186, 3, 2, 2, 2, 16, 2, 379, 455, 472, 490, 503, 558, 575, 675, 680, 686, 688, 694, 700, 3, 8, 2, 2] \ No newline at end of file diff --git a/more_math/Parser/.antlr/MathExprLexer.java b/more_math/Parser/.antlr/MathExprLexer.java new file mode 100644 index 0000000..5206862 --- /dev/null +++ b/more_math/Parser/.antlr/MathExprLexer.java @@ -0,0 +1,384 @@ +// Generated from d:\stability\Data\Packages\ComfyUI\custom_nodes\more_math\more_math\Parser\MathExpr.g4 by ANTLR 4.9.2 +import org.antlr.v4.runtime.Lexer; +import org.antlr.v4.runtime.CharStream; +import org.antlr.v4.runtime.Token; +import org.antlr.v4.runtime.TokenStream; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.atn.*; +import org.antlr.v4.runtime.dfa.DFA; +import org.antlr.v4.runtime.misc.*; + +@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) +public class MathExprLexer extends Lexer { + static { RuntimeMetaData.checkVersion("4.9.2", RuntimeMetaData.VERSION); } + + protected static final DFA[] _decisionToDFA; + protected static final PredictionContextCache _sharedContextCache = + new PredictionContextCache(); + public static final int + SIN=1, COS=2, TAN=3, ASIN=4, ACOS=5, ATAN=6, ATAN2=7, SINH=8, COSH=9, + TANH=10, ASINH=11, ACOSH=12, ATANH=13, ABS=14, SQRT=15, LN=16, LOG=17, + EXP=18, SMIN=19, SMAX=20, TMIN=21, TMAX=22, TNORM=23, SNORM=24, FLOOR=25, + CEIL=26, ROUND=27, GAMMA=28, POWE=29, SIGM=30, CLAMP=31, SFFT=32, SIFFT=33, + ANGL=34, PRNT=35, PRINT_SHAPE=36, LERP=37, STEP=38, SMOOTHSTEP=39, FRACT=40, + RELU=41, SOFTPLUS=42, GELU=43, SIGN=44, MAP=45, EZCONV=46, CONV=47, SWAP=48, + PERM=49, RESHAPE=50, RANGE=51, TOPK=52, BOTK=53, PINV=54, SUM=55, MEAN=56, + STD=57, VAR=58, QUARTILE=59, PERCENTILE=60, QUANTILE=61, DOT=62, MOMENT=63, + COSSIM=64, FLIP=65, COV=66, SORT=67, APPEND=68, PLUS=69, MINUS=70, MULT=71, + DIV=72, MOD=73, POW=74, GE=75, GT=76, LE=77, LT=78, EQ=79, NE=80, PIPE=81, + LPAREN=82, RPAREN=83, COMMA=84, SEMICOLON=85, ARROW=86, LBRACKET=87, RBRACKET=88, + CONSTANT=89, NUMBER=90, VARIABLE=91, WS=92; + public static String[] channelNames = { + "DEFAULT_TOKEN_CHANNEL", "HIDDEN" + }; + + public static String[] modeNames = { + "DEFAULT_MODE" + }; + + private static String[] makeRuleNames() { + return new String[] { + "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", "COSH", + "TANH", "ASINH", "ACOSH", "ATANH", "ABS", "SQRT", "LN", "LOG", "EXP", + "SMIN", "SMAX", "TMIN", "TMAX", "TNORM", "SNORM", "FLOOR", "CEIL", "ROUND", + "GAMMA", "POWE", "SIGM", "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE", + "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", "GELU", "SIGN", + "MAP", "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", + "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", + "QUANTILE", "DOT", "MOMENT", "COSSIM", "FLIP", "COV", "SORT", "APPEND", + "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", "LT", + "EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", "SEMICOLON", "ARROW", + "LBRACKET", "RBRACKET", "CONSTANT", "NUMBER", "VARIABLE", "WS" + }; + } + public static final String[] ruleNames = makeRuleNames(); + + private static String[] makeLiteralNames() { + return new String[] { + null, "'sin'", "'cos'", "'tan'", "'asin'", "'acos'", "'atan'", "'atan2'", + "'sinh'", "'cosh'", "'tanh'", "'asinh'", "'acosh'", "'atanh'", "'abs'", + "'sqrt'", "'ln'", "'log'", "'exp'", "'smin'", "'smax'", "'tmin'", "'tmax'", + "'tnorm'", "'snorm'", "'floor'", "'ceil'", "'round'", "'gamma'", "'pow'", + "'sigm'", "'clamp'", "'fft'", "'ifft'", "'angle'", "'print'", null, "'lerp'", + "'step'", "'smoothstep'", "'fract'", "'relu'", "'softplus'", "'gelu'", + "'sign'", "'map'", null, null, "'swap'", null, null, "'range'", "'topk'", + "'botk'", "'pinv'", "'sum'", "'mean'", "'std'", "'var'", null, null, + "'quantile'", "'dot'", "'moment'", "'cossim'", "'flip'", "'cov'", "'sort'", + "'append'", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "'>='", "'>'", + "'<='", "'<'", "'=='", "'!='", "'|'", "'('", "')'", "','", "';'", "'->'", + "'['", "']'" + }; + } + private static final String[] _LITERAL_NAMES = makeLiteralNames(); + private static String[] makeSymbolicNames() { + return new String[] { + null, "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", "COSH", + "TANH", "ASINH", "ACOSH", "ATANH", "ABS", "SQRT", "LN", "LOG", "EXP", + "SMIN", "SMAX", "TMIN", "TMAX", "TNORM", "SNORM", "FLOOR", "CEIL", "ROUND", + "GAMMA", "POWE", "SIGM", "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE", + "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", "GELU", "SIGN", + "MAP", "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", + "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", + "QUANTILE", "DOT", "MOMENT", "COSSIM", "FLIP", "COV", "SORT", "APPEND", + "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", "LT", + "EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", "SEMICOLON", "ARROW", + "LBRACKET", "RBRACKET", "CONSTANT", "NUMBER", "VARIABLE", "WS" + }; + } + private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames(); + public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); + + /** + * @deprecated Use {@link #VOCABULARY} instead. + */ + @Deprecated + public static final String[] tokenNames; + static { + tokenNames = new String[_SYMBOLIC_NAMES.length]; + for (int i = 0; i < tokenNames.length; i++) { + tokenNames[i] = VOCABULARY.getLiteralName(i); + if (tokenNames[i] == null) { + tokenNames[i] = VOCABULARY.getSymbolicName(i); + } + + if (tokenNames[i] == null) { + tokenNames[i] = ""; + } + } + } + + @Override + @Deprecated + public String[] getTokenNames() { + return tokenNames; + } + + @Override + + public Vocabulary getVocabulary() { + return VOCABULARY; + } + + + public MathExprLexer(CharStream input) { + super(input); + _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); + } + + @Override + public String getGrammarFileName() { return "MathExpr.g4"; } + + @Override + public String[] getRuleNames() { return ruleNames; } + + @Override + public String getSerializedATN() { return _serializedATN; } + + @Override + public String[] getChannelNames() { return channelNames; } + + @Override + public String[] getModeNames() { return modeNames; } + + @Override + public ATN getATN() { return _ATN; } + + public static final String _serializedATN = + "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2^\u02c0\b\1\4\2\t"+ + "\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+ + "\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+ + "\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+ + "\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+ + "\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+ + ",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+ + "\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\4<\t<\4=\t="+ + "\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I"+ + "\tI\4J\tJ\4K\tK\4L\tL\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT"+ + "\4U\tU\4V\tV\4W\tW\4X\tX\4Y\tY\4Z\tZ\4[\t[\4\\\t\\\4]\t]\3\2\3\2\3\2\3"+ + "\2\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3\4\3\5\3\5\3\5\3\5\3\5\3\6\3\6\3\6\3\6"+ + "\3\6\3\7\3\7\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3"+ + "\n\3\n\3\n\3\n\3\n\3\13\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\f\3\f\3"+ + "\r\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3"+ + "\17\3\20\3\20\3\20\3\20\3\20\3\21\3\21\3\21\3\22\3\22\3\22\3\22\3\23\3"+ + "\23\3\23\3\23\3\24\3\24\3\24\3\24\3\24\3\25\3\25\3\25\3\25\3\25\3\26\3"+ + "\26\3\26\3\26\3\26\3\27\3\27\3\27\3\27\3\27\3\30\3\30\3\30\3\30\3\30\3"+ + "\30\3\31\3\31\3\31\3\31\3\31\3\31\3\32\3\32\3\32\3\32\3\32\3\32\3\33\3"+ + "\33\3\33\3\33\3\33\3\34\3\34\3\34\3\34\3\34\3\34\3\35\3\35\3\35\3\35\3"+ + "\35\3\35\3\36\3\36\3\36\3\36\3\37\3\37\3\37\3\37\3\37\3 \3 \3 \3 \3 \3"+ + " \3!\3!\3!\3!\3\"\3\"\3\"\3\"\3\"\3#\3#\3#\3#\3#\3#\3$\3$\3$\3$\3$\3$"+ + "\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\3%\5%\u017c\n%\3&\3&\3&\3&"+ + "\3&\3\'\3\'\3\'\3\'\3\'\3(\3(\3(\3(\3(\3(\3(\3(\3(\3(\3(\3)\3)\3)\3)\3"+ + ")\3)\3*\3*\3*\3*\3*\3+\3+\3+\3+\3+\3+\3+\3+\3+\3,\3,\3,\3,\3,\3-\3-\3"+ + "-\3-\3-\3.\3.\3.\3.\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3"+ + "/\3/\3/\5/\u01c8\n/\3\60\3\60\3\60\3\60\3\60\3\60\3\60\3\60\3\60\3\60"+ + "\3\60\3\60\3\60\3\60\3\60\5\60\u01d9\n\60\3\61\3\61\3\61\3\61\3\61\3\62"+ + "\3\62\3\62\3\62\3\62\3\62\3\62\3\62\3\62\3\62\3\62\5\62\u01eb\n\62\3\63"+ + "\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\5\63\u01f8\n\63\3\64"+ + "\3\64\3\64\3\64\3\64\3\64\3\65\3\65\3\65\3\65\3\65\3\66\3\66\3\66\3\66"+ + "\3\66\3\67\3\67\3\67\3\67\3\67\38\38\38\38\39\39\39\39\39\3:\3:\3:\3:"+ + "\3;\3;\3;\3;\3<\3<\3<\3<\3<\3<\3<\3<\3<\3<\3<\3<\3<\3<\3<\5<\u022f\n<"+ + "\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\5=\u0240\n=\3>\3>\3>\3>"+ + "\3>\3>\3>\3>\3>\3?\3?\3?\3?\3@\3@\3@\3@\3@\3@\3@\3A\3A\3A\3A\3A\3A\3A"+ + "\3B\3B\3B\3B\3B\3C\3C\3C\3C\3D\3D\3D\3D\3D\3E\3E\3E\3E\3E\3E\3E\3F\3F"+ + "\3G\3G\3H\3H\3I\3I\3J\3J\3K\3K\3L\3L\3L\3M\3M\3N\3N\3N\3O\3O\3P\3P\3P"+ + "\3Q\3Q\3Q\3R\3R\3S\3S\3T\3T\3U\3U\3V\3V\3W\3W\3W\3X\3X\3Y\3Y\3Z\3Z\3Z"+ + "\3Z\3Z\5Z\u02a4\nZ\3[\6[\u02a7\n[\r[\16[\u02a8\3[\3[\6[\u02ad\n[\r[\16"+ + "[\u02ae\5[\u02b1\n[\3\\\3\\\7\\\u02b5\n\\\f\\\16\\\u02b8\13\\\3]\6]\u02bb"+ + "\n]\r]\16]\u02bc\3]\3]\2\2^\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25"+ + "\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25)\26+\27-\30/\31\61\32"+ + "\63\33\65\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]\60_\61a"+ + "\62c\63e\64g\65i\66k\67m8o9q:s;u{?}@\177A\u0081B\u0083C\u0085D\u0087"+ + "E\u0089F\u008bG\u008dH\u008fI\u0091J\u0093K\u0095L\u0097M\u0099N\u009b"+ + "O\u009dP\u009fQ\u00a1R\u00a3S\u00a5T\u00a7U\u00a9V\u00abW\u00adX\u00af"+ + "Y\u00b1Z\u00b3[\u00b5\\\u00b7]\u00b9^\3\2\7\4\2GGgg\3\2\62;\5\2C\\aac"+ + "|\6\2\62;C\\aac|\5\2\13\f\17\17\"\"\2\u02cd\2\3\3\2\2\2\2\5\3\2\2\2\2"+ + "\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\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\31\3\2\2\2\2\33\3\2\2\2"+ + "\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2\'\3\2\2"+ + "\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\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\29\3\2\2\2\2;\3\2\2\2\2=\3\2\2\2\2?\3\2\2"+ + "\2\2A\3\2\2\2\2C\3\2\2\2\2E\3\2\2\2\2G\3\2\2\2\2I\3\2\2\2\2K\3\2\2\2\2"+ + "M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U\3\2\2\2\2W\3\2\2\2\2Y\3"+ + "\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2\2\2\2a\3\2\2\2\2c\3\2\2\2\2e\3\2\2"+ + "\2\2g\3\2\2\2\2i\3\2\2\2\2k\3\2\2\2\2m\3\2\2\2\2o\3\2\2\2\2q\3\2\2\2\2"+ + "s\3\2\2\2\2u\3\2\2\2\2w\3\2\2\2\2y\3\2\2\2\2{\3\2\2\2\2}\3\2\2\2\2\177"+ + "\3\2\2\2\2\u0081\3\2\2\2\2\u0083\3\2\2\2\2\u0085\3\2\2\2\2\u0087\3\2\2"+ + "\2\2\u0089\3\2\2\2\2\u008b\3\2\2\2\2\u008d\3\2\2\2\2\u008f\3\2\2\2\2\u0091"+ + "\3\2\2\2\2\u0093\3\2\2\2\2\u0095\3\2\2\2\2\u0097\3\2\2\2\2\u0099\3\2\2"+ + "\2\2\u009b\3\2\2\2\2\u009d\3\2\2\2\2\u009f\3\2\2\2\2\u00a1\3\2\2\2\2\u00a3"+ + "\3\2\2\2\2\u00a5\3\2\2\2\2\u00a7\3\2\2\2\2\u00a9\3\2\2\2\2\u00ab\3\2\2"+ + "\2\2\u00ad\3\2\2\2\2\u00af\3\2\2\2\2\u00b1\3\2\2\2\2\u00b3\3\2\2\2\2\u00b5"+ + "\3\2\2\2\2\u00b7\3\2\2\2\2\u00b9\3\2\2\2\3\u00bb\3\2\2\2\5\u00bf\3\2\2"+ + "\2\7\u00c3\3\2\2\2\t\u00c7\3\2\2\2\13\u00cc\3\2\2\2\r\u00d1\3\2\2\2\17"+ + "\u00d6\3\2\2\2\21\u00dc\3\2\2\2\23\u00e1\3\2\2\2\25\u00e6\3\2\2\2\27\u00eb"+ + "\3\2\2\2\31\u00f1\3\2\2\2\33\u00f7\3\2\2\2\35\u00fd\3\2\2\2\37\u0101\3"+ + "\2\2\2!\u0106\3\2\2\2#\u0109\3\2\2\2%\u010d\3\2\2\2\'\u0111\3\2\2\2)\u0116"+ + "\3\2\2\2+\u011b\3\2\2\2-\u0120\3\2\2\2/\u0125\3\2\2\2\61\u012b\3\2\2\2"+ + "\63\u0131\3\2\2\2\65\u0137\3\2\2\2\67\u013c\3\2\2\29\u0142\3\2\2\2;\u0148"+ + "\3\2\2\2=\u014c\3\2\2\2?\u0151\3\2\2\2A\u0157\3\2\2\2C\u015b\3\2\2\2E"+ + "\u0160\3\2\2\2G\u0166\3\2\2\2I\u017b\3\2\2\2K\u017d\3\2\2\2M\u0182\3\2"+ + "\2\2O\u0187\3\2\2\2Q\u0192\3\2\2\2S\u0198\3\2\2\2U\u019d\3\2\2\2W\u01a6"+ + "\3\2\2\2Y\u01ab\3\2\2\2[\u01b0\3\2\2\2]\u01c7\3\2\2\2_\u01d8\3\2\2\2a"+ + "\u01da\3\2\2\2c\u01ea\3\2\2\2e\u01f7\3\2\2\2g\u01f9\3\2\2\2i\u01ff\3\2"+ + "\2\2k\u0204\3\2\2\2m\u0209\3\2\2\2o\u020e\3\2\2\2q\u0212\3\2\2\2s\u0217"+ + "\3\2\2\2u\u021b\3\2\2\2w\u022e\3\2\2\2y\u023f\3\2\2\2{\u0241\3\2\2\2}"+ + "\u024a\3\2\2\2\177\u024e\3\2\2\2\u0081\u0255\3\2\2\2\u0083\u025c\3\2\2"+ + "\2\u0085\u0261\3\2\2\2\u0087\u0265\3\2\2\2\u0089\u026a\3\2\2\2\u008b\u0271"+ + "\3\2\2\2\u008d\u0273\3\2\2\2\u008f\u0275\3\2\2\2\u0091\u0277\3\2\2\2\u0093"+ + "\u0279\3\2\2\2\u0095\u027b\3\2\2\2\u0097\u027d\3\2\2\2\u0099\u0280\3\2"+ + "\2\2\u009b\u0282\3\2\2\2\u009d\u0285\3\2\2\2\u009f\u0287\3\2\2\2\u00a1"+ + "\u028a\3\2\2\2\u00a3\u028d\3\2\2\2\u00a5\u028f\3\2\2\2\u00a7\u0291\3\2"+ + "\2\2\u00a9\u0293\3\2\2\2\u00ab\u0295\3\2\2\2\u00ad\u0297\3\2\2\2\u00af"+ + "\u029a\3\2\2\2\u00b1\u029c\3\2\2\2\u00b3\u02a3\3\2\2\2\u00b5\u02a6\3\2"+ + "\2\2\u00b7\u02b2\3\2\2\2\u00b9\u02ba\3\2\2\2\u00bb\u00bc\7u\2\2\u00bc"+ + "\u00bd\7k\2\2\u00bd\u00be\7p\2\2\u00be\4\3\2\2\2\u00bf\u00c0\7e\2\2\u00c0"+ + "\u00c1\7q\2\2\u00c1\u00c2\7u\2\2\u00c2\6\3\2\2\2\u00c3\u00c4\7v\2\2\u00c4"+ + "\u00c5\7c\2\2\u00c5\u00c6\7p\2\2\u00c6\b\3\2\2\2\u00c7\u00c8\7c\2\2\u00c8"+ + "\u00c9\7u\2\2\u00c9\u00ca\7k\2\2\u00ca\u00cb\7p\2\2\u00cb\n\3\2\2\2\u00cc"+ + "\u00cd\7c\2\2\u00cd\u00ce\7e\2\2\u00ce\u00cf\7q\2\2\u00cf\u00d0\7u\2\2"+ + "\u00d0\f\3\2\2\2\u00d1\u00d2\7c\2\2\u00d2\u00d3\7v\2\2\u00d3\u00d4\7c"+ + "\2\2\u00d4\u00d5\7p\2\2\u00d5\16\3\2\2\2\u00d6\u00d7\7c\2\2\u00d7\u00d8"+ + "\7v\2\2\u00d8\u00d9\7c\2\2\u00d9\u00da\7p\2\2\u00da\u00db\7\64\2\2\u00db"+ + "\20\3\2\2\2\u00dc\u00dd\7u\2\2\u00dd\u00de\7k\2\2\u00de\u00df\7p\2\2\u00df"+ + "\u00e0\7j\2\2\u00e0\22\3\2\2\2\u00e1\u00e2\7e\2\2\u00e2\u00e3\7q\2\2\u00e3"+ + "\u00e4\7u\2\2\u00e4\u00e5\7j\2\2\u00e5\24\3\2\2\2\u00e6\u00e7\7v\2\2\u00e7"+ + "\u00e8\7c\2\2\u00e8\u00e9\7p\2\2\u00e9\u00ea\7j\2\2\u00ea\26\3\2\2\2\u00eb"+ + "\u00ec\7c\2\2\u00ec\u00ed\7u\2\2\u00ed\u00ee\7k\2\2\u00ee\u00ef\7p\2\2"+ + "\u00ef\u00f0\7j\2\2\u00f0\30\3\2\2\2\u00f1\u00f2\7c\2\2\u00f2\u00f3\7"+ + "e\2\2\u00f3\u00f4\7q\2\2\u00f4\u00f5\7u\2\2\u00f5\u00f6\7j\2\2\u00f6\32"+ + "\3\2\2\2\u00f7\u00f8\7c\2\2\u00f8\u00f9\7v\2\2\u00f9\u00fa\7c\2\2\u00fa"+ + "\u00fb\7p\2\2\u00fb\u00fc\7j\2\2\u00fc\34\3\2\2\2\u00fd\u00fe\7c\2\2\u00fe"+ + "\u00ff\7d\2\2\u00ff\u0100\7u\2\2\u0100\36\3\2\2\2\u0101\u0102\7u\2\2\u0102"+ + "\u0103\7s\2\2\u0103\u0104\7t\2\2\u0104\u0105\7v\2\2\u0105 \3\2\2\2\u0106"+ + "\u0107\7n\2\2\u0107\u0108\7p\2\2\u0108\"\3\2\2\2\u0109\u010a\7n\2\2\u010a"+ + "\u010b\7q\2\2\u010b\u010c\7i\2\2\u010c$\3\2\2\2\u010d\u010e\7g\2\2\u010e"+ + "\u010f\7z\2\2\u010f\u0110\7r\2\2\u0110&\3\2\2\2\u0111\u0112\7u\2\2\u0112"+ + "\u0113\7o\2\2\u0113\u0114\7k\2\2\u0114\u0115\7p\2\2\u0115(\3\2\2\2\u0116"+ + "\u0117\7u\2\2\u0117\u0118\7o\2\2\u0118\u0119\7c\2\2\u0119\u011a\7z\2\2"+ + "\u011a*\3\2\2\2\u011b\u011c\7v\2\2\u011c\u011d\7o\2\2\u011d\u011e\7k\2"+ + "\2\u011e\u011f\7p\2\2\u011f,\3\2\2\2\u0120\u0121\7v\2\2\u0121\u0122\7"+ + "o\2\2\u0122\u0123\7c\2\2\u0123\u0124\7z\2\2\u0124.\3\2\2\2\u0125\u0126"+ + "\7v\2\2\u0126\u0127\7p\2\2\u0127\u0128\7q\2\2\u0128\u0129\7t\2\2\u0129"+ + "\u012a\7o\2\2\u012a\60\3\2\2\2\u012b\u012c\7u\2\2\u012c\u012d\7p\2\2\u012d"+ + "\u012e\7q\2\2\u012e\u012f\7t\2\2\u012f\u0130\7o\2\2\u0130\62\3\2\2\2\u0131"+ + "\u0132\7h\2\2\u0132\u0133\7n\2\2\u0133\u0134\7q\2\2\u0134\u0135\7q\2\2"+ + "\u0135\u0136\7t\2\2\u0136\64\3\2\2\2\u0137\u0138\7e\2\2\u0138\u0139\7"+ + "g\2\2\u0139\u013a\7k\2\2\u013a\u013b\7n\2\2\u013b\66\3\2\2\2\u013c\u013d"+ + "\7t\2\2\u013d\u013e\7q\2\2\u013e\u013f\7w\2\2\u013f\u0140\7p\2\2\u0140"+ + "\u0141\7f\2\2\u01418\3\2\2\2\u0142\u0143\7i\2\2\u0143\u0144\7c\2\2\u0144"+ + "\u0145\7o\2\2\u0145\u0146\7o\2\2\u0146\u0147\7c\2\2\u0147:\3\2\2\2\u0148"+ + "\u0149\7r\2\2\u0149\u014a\7q\2\2\u014a\u014b\7y\2\2\u014b<\3\2\2\2\u014c"+ + "\u014d\7u\2\2\u014d\u014e\7k\2\2\u014e\u014f\7i\2\2\u014f\u0150\7o\2\2"+ + "\u0150>\3\2\2\2\u0151\u0152\7e\2\2\u0152\u0153\7n\2\2\u0153\u0154\7c\2"+ + "\2\u0154\u0155\7o\2\2\u0155\u0156\7r\2\2\u0156@\3\2\2\2\u0157\u0158\7"+ + "h\2\2\u0158\u0159\7h\2\2\u0159\u015a\7v\2\2\u015aB\3\2\2\2\u015b\u015c"+ + "\7k\2\2\u015c\u015d\7h\2\2\u015d\u015e\7h\2\2\u015e\u015f\7v\2\2\u015f"+ + "D\3\2\2\2\u0160\u0161\7c\2\2\u0161\u0162\7p\2\2\u0162\u0163\7i\2\2\u0163"+ + "\u0164\7n\2\2\u0164\u0165\7g\2\2\u0165F\3\2\2\2\u0166\u0167\7r\2\2\u0167"+ + "\u0168\7t\2\2\u0168\u0169\7k\2\2\u0169\u016a\7p\2\2\u016a\u016b\7v\2\2"+ + "\u016bH\3\2\2\2\u016c\u016d\7r\2\2\u016d\u016e\7t\2\2\u016e\u016f\7k\2"+ + "\2\u016f\u0170\7p\2\2\u0170\u0171\7v\2\2\u0171\u0172\7a\2\2\u0172\u0173"+ + "\7u\2\2\u0173\u0174\7j\2\2\u0174\u0175\7c\2\2\u0175\u0176\7r\2\2\u0176"+ + "\u017c\7g\2\2\u0177\u0178\7r\2\2\u0178\u0179\7u\2\2\u0179\u017a\7j\2\2"+ + "\u017a\u017c\7r\2\2\u017b\u016c\3\2\2\2\u017b\u0177\3\2\2\2\u017cJ\3\2"+ + "\2\2\u017d\u017e\7n\2\2\u017e\u017f\7g\2\2\u017f\u0180\7t\2\2\u0180\u0181"+ + "\7r\2\2\u0181L\3\2\2\2\u0182\u0183\7u\2\2\u0183\u0184\7v\2\2\u0184\u0185"+ + "\7g\2\2\u0185\u0186\7r\2\2\u0186N\3\2\2\2\u0187\u0188\7u\2\2\u0188\u0189"+ + "\7o\2\2\u0189\u018a\7q\2\2\u018a\u018b\7q\2\2\u018b\u018c\7v\2\2\u018c"+ + "\u018d\7j\2\2\u018d\u018e\7u\2\2\u018e\u018f\7v\2\2\u018f\u0190\7g\2\2"+ + "\u0190\u0191\7r\2\2\u0191P\3\2\2\2\u0192\u0193\7h\2\2\u0193\u0194\7t\2"+ + "\2\u0194\u0195\7c\2\2\u0195\u0196\7e\2\2\u0196\u0197\7v\2\2\u0197R\3\2"+ + "\2\2\u0198\u0199\7t\2\2\u0199\u019a\7g\2\2\u019a\u019b\7n\2\2\u019b\u019c"+ + "\7w\2\2\u019cT\3\2\2\2\u019d\u019e\7u\2\2\u019e\u019f\7q\2\2\u019f\u01a0"+ + "\7h\2\2\u01a0\u01a1\7v\2\2\u01a1\u01a2\7r\2\2\u01a2\u01a3\7n\2\2\u01a3"+ + "\u01a4\7w\2\2\u01a4\u01a5\7u\2\2\u01a5V\3\2\2\2\u01a6\u01a7\7i\2\2\u01a7"+ + "\u01a8\7g\2\2\u01a8\u01a9\7n\2\2\u01a9\u01aa\7w\2\2\u01aaX\3\2\2\2\u01ab"+ + "\u01ac\7u\2\2\u01ac\u01ad\7k\2\2\u01ad\u01ae\7i\2\2\u01ae\u01af\7p\2\2"+ + "\u01afZ\3\2\2\2\u01b0\u01b1\7o\2\2\u01b1\u01b2\7c\2\2\u01b2\u01b3\7r\2"+ + "\2\u01b3\\\3\2\2\2\u01b4\u01b5\7g\2\2\u01b5\u01b6\7|\2\2\u01b6\u01b7\7"+ + "e\2\2\u01b7\u01b8\7q\2\2\u01b8\u01b9\7p\2\2\u01b9\u01ba\7x\2\2\u01ba\u01bb"+ + "\7q\2\2\u01bb\u01bc\7n\2\2\u01bc\u01bd\7w\2\2\u01bd\u01be\7v\2\2\u01be"+ + "\u01bf\7k\2\2\u01bf\u01c0\7q\2\2\u01c0\u01c8\7p\2\2\u01c1\u01c2\7g\2\2"+ + "\u01c2\u01c3\7|\2\2\u01c3\u01c4\7e\2\2\u01c4\u01c5\7q\2\2\u01c5\u01c6"+ + "\7p\2\2\u01c6\u01c8\7x\2\2\u01c7\u01b4\3\2\2\2\u01c7\u01c1\3\2\2\2\u01c8"+ + "^\3\2\2\2\u01c9\u01ca\7e\2\2\u01ca\u01cb\7q\2\2\u01cb\u01cc\7p\2\2\u01cc"+ + "\u01cd\7x\2\2\u01cd\u01ce\7q\2\2\u01ce\u01cf\7n\2\2\u01cf\u01d0\7w\2\2"+ + "\u01d0\u01d1\7v\2\2\u01d1\u01d2\7k\2\2\u01d2\u01d3\7q\2\2\u01d3\u01d9"+ + "\7p\2\2\u01d4\u01d5\7e\2\2\u01d5\u01d6\7q\2\2\u01d6\u01d7\7p\2\2\u01d7"+ + "\u01d9\7x\2\2\u01d8\u01c9\3\2\2\2\u01d8\u01d4\3\2\2\2\u01d9`\3\2\2\2\u01da"+ + "\u01db\7u\2\2\u01db\u01dc\7y\2\2\u01dc\u01dd\7c\2\2\u01dd\u01de\7r\2\2"+ + "\u01deb\3\2\2\2\u01df\u01e0\7r\2\2\u01e0\u01e1\7g\2\2\u01e1\u01e2\7t\2"+ + "\2\u01e2\u01e3\7o\2\2\u01e3\u01e4\7w\2\2\u01e4\u01e5\7v\2\2\u01e5\u01eb"+ + "\7g\2\2\u01e6\u01e7\7r\2\2\u01e7\u01e8\7g\2\2\u01e8\u01e9\7t\2\2\u01e9"+ + "\u01eb\7o\2\2\u01ea\u01df\3\2\2\2\u01ea\u01e6\3\2\2\2\u01ebd\3\2\2\2\u01ec"+ + "\u01ed\7t\2\2\u01ed\u01ee\7g\2\2\u01ee\u01ef\7u\2\2\u01ef\u01f0\7j\2\2"+ + "\u01f0\u01f1\7c\2\2\u01f1\u01f2\7r\2\2\u01f2\u01f8\7g\2\2\u01f3\u01f4"+ + "\7t\2\2\u01f4\u01f5\7u\2\2\u01f5\u01f6\7j\2\2\u01f6\u01f8\7r\2\2\u01f7"+ + "\u01ec\3\2\2\2\u01f7\u01f3\3\2\2\2\u01f8f\3\2\2\2\u01f9\u01fa\7t\2\2\u01fa"+ + "\u01fb\7c\2\2\u01fb\u01fc\7p\2\2\u01fc\u01fd\7i\2\2\u01fd\u01fe\7g\2\2"+ + "\u01feh\3\2\2\2\u01ff\u0200\7v\2\2\u0200\u0201\7q\2\2\u0201\u0202\7r\2"+ + "\2\u0202\u0203\7m\2\2\u0203j\3\2\2\2\u0204\u0205\7d\2\2\u0205\u0206\7"+ + "q\2\2\u0206\u0207\7v\2\2\u0207\u0208\7m\2\2\u0208l\3\2\2\2\u0209\u020a"+ + "\7r\2\2\u020a\u020b\7k\2\2\u020b\u020c\7p\2\2\u020c\u020d\7x\2\2\u020d"+ + "n\3\2\2\2\u020e\u020f\7u\2\2\u020f\u0210\7w\2\2\u0210\u0211\7o\2\2\u0211"+ + "p\3\2\2\2\u0212\u0213\7o\2\2\u0213\u0214\7g\2\2\u0214\u0215\7c\2\2\u0215"+ + "\u0216\7p\2\2\u0216r\3\2\2\2\u0217\u0218\7u\2\2\u0218\u0219\7v\2\2\u0219"+ + "\u021a\7f\2\2\u021at\3\2\2\2\u021b\u021c\7x\2\2\u021c\u021d\7c\2\2\u021d"+ + "\u021e\7t\2\2\u021ev\3\2\2\2\u021f\u0220\7s\2\2\u0220\u0221\7w\2\2\u0221"+ + "\u0222\7c\2\2\u0222\u0223\7t\2\2\u0223\u0224\7v\2\2\u0224\u0225\7k\2\2"+ + "\u0225\u0226\7n\2\2\u0226\u022f\7g\2\2\u0227\u0228\7s\2\2\u0228\u0229"+ + "\7w\2\2\u0229\u022a\7c\2\2\u022a\u022b\7t\2\2\u022b\u022c\7v\2\2\u022c"+ + "\u022d\7k\2\2\u022d\u022f\7n\2\2\u022e\u021f\3\2\2\2\u022e\u0227\3\2\2"+ + "\2\u022fx\3\2\2\2\u0230\u0231\7r\2\2\u0231\u0232\7g\2\2\u0232\u0233\7"+ + "t\2\2\u0233\u0234\7e\2\2\u0234\u0235\7g\2\2\u0235\u0236\7p\2\2\u0236\u0237"+ + "\7v\2\2\u0237\u0238\7k\2\2\u0238\u0239\7n\2\2\u0239\u0240\7g\2\2\u023a"+ + "\u023b\7r\2\2\u023b\u023c\7t\2\2\u023c\u023d\7e\2\2\u023d\u023e\7p\2\2"+ + "\u023e\u0240\7v\2\2\u023f\u0230\3\2\2\2\u023f\u023a\3\2\2\2\u0240z\3\2"+ + "\2\2\u0241\u0242\7s\2\2\u0242\u0243\7w\2\2\u0243\u0244\7c\2\2\u0244\u0245"+ + "\7p\2\2\u0245\u0246\7v\2\2\u0246\u0247\7k\2\2\u0247\u0248\7n\2\2\u0248"+ + "\u0249\7g\2\2\u0249|\3\2\2\2\u024a\u024b\7f\2\2\u024b\u024c\7q\2\2\u024c"+ + "\u024d\7v\2\2\u024d~\3\2\2\2\u024e\u024f\7o\2\2\u024f\u0250\7q\2\2\u0250"+ + "\u0251\7o\2\2\u0251\u0252\7g\2\2\u0252\u0253\7p\2\2\u0253\u0254\7v\2\2"+ + "\u0254\u0080\3\2\2\2\u0255\u0256\7e\2\2\u0256\u0257\7q\2\2\u0257\u0258"+ + "\7u\2\2\u0258\u0259\7u\2\2\u0259\u025a\7k\2\2\u025a\u025b\7o\2\2\u025b"+ + "\u0082\3\2\2\2\u025c\u025d\7h\2\2\u025d\u025e\7n\2\2\u025e\u025f\7k\2"+ + "\2\u025f\u0260\7r\2\2\u0260\u0084\3\2\2\2\u0261\u0262\7e\2\2\u0262\u0263"+ + "\7q\2\2\u0263\u0264\7x\2\2\u0264\u0086\3\2\2\2\u0265\u0266\7u\2\2\u0266"+ + "\u0267\7q\2\2\u0267\u0268\7t\2\2\u0268\u0269\7v\2\2\u0269\u0088\3\2\2"+ + "\2\u026a\u026b\7c\2\2\u026b\u026c\7r\2\2\u026c\u026d\7r\2\2\u026d\u026e"+ + "\7g\2\2\u026e\u026f\7p\2\2\u026f\u0270\7f\2\2\u0270\u008a\3\2\2\2\u0271"+ + "\u0272\7-\2\2\u0272\u008c\3\2\2\2\u0273\u0274\7/\2\2\u0274\u008e\3\2\2"+ + "\2\u0275\u0276\7,\2\2\u0276\u0090\3\2\2\2\u0277\u0278\7\61\2\2\u0278\u0092"+ + "\3\2\2\2\u0279\u027a\7\'\2\2\u027a\u0094\3\2\2\2\u027b\u027c\7`\2\2\u027c"+ + "\u0096\3\2\2\2\u027d\u027e\7@\2\2\u027e\u027f\7?\2\2\u027f\u0098\3\2\2"+ + "\2\u0280\u0281\7@\2\2\u0281\u009a\3\2\2\2\u0282\u0283\7>\2\2\u0283\u0284"+ + "\7?\2\2\u0284\u009c\3\2\2\2\u0285\u0286\7>\2\2\u0286\u009e\3\2\2\2\u0287"+ + "\u0288\7?\2\2\u0288\u0289\7?\2\2\u0289\u00a0\3\2\2\2\u028a\u028b\7#\2"+ + "\2\u028b\u028c\7?\2\2\u028c\u00a2\3\2\2\2\u028d\u028e\7~\2\2\u028e\u00a4"+ + "\3\2\2\2\u028f\u0290\7*\2\2\u0290\u00a6\3\2\2\2\u0291\u0292\7+\2\2\u0292"+ + "\u00a8\3\2\2\2\u0293\u0294\7.\2\2\u0294\u00aa\3\2\2\2\u0295\u0296\7=\2"+ + "\2\u0296\u00ac\3\2\2\2\u0297\u0298\7/\2\2\u0298\u0299\7@\2\2\u0299\u00ae"+ + "\3\2\2\2\u029a\u029b\7]\2\2\u029b\u00b0\3\2\2\2\u029c\u029d\7_\2\2\u029d"+ + "\u00b2\3\2\2\2\u029e\u029f\7r\2\2\u029f\u02a4\7k\2\2\u02a0\u02a1\7R\2"+ + "\2\u02a1\u02a4\7K\2\2\u02a2\u02a4\t\2\2\2\u02a3\u029e\3\2\2\2\u02a3\u02a0"+ + "\3\2\2\2\u02a3\u02a2\3\2\2\2\u02a4\u00b4\3\2\2\2\u02a5\u02a7\t\3\2\2\u02a6"+ + "\u02a5\3\2\2\2\u02a7\u02a8\3\2\2\2\u02a8\u02a6\3\2\2\2\u02a8\u02a9\3\2"+ + "\2\2\u02a9\u02b0\3\2\2\2\u02aa\u02ac\7\60\2\2\u02ab\u02ad\t\3\2\2\u02ac"+ + "\u02ab\3\2\2\2\u02ad\u02ae\3\2\2\2\u02ae\u02ac\3\2\2\2\u02ae\u02af\3\2"+ + "\2\2\u02af\u02b1\3\2\2\2\u02b0\u02aa\3\2\2\2\u02b0\u02b1\3\2\2\2\u02b1"+ + "\u00b6\3\2\2\2\u02b2\u02b6\t\4\2\2\u02b3\u02b5\t\5\2\2\u02b4\u02b3\3\2"+ + "\2\2\u02b5\u02b8\3\2\2\2\u02b6\u02b4\3\2\2\2\u02b6\u02b7\3\2\2\2\u02b7"+ + "\u00b8\3\2\2\2\u02b8\u02b6\3\2\2\2\u02b9\u02bb\t\6\2\2\u02ba\u02b9\3\2"+ + "\2\2\u02bb\u02bc\3\2\2\2\u02bc\u02ba\3\2\2\2\u02bc\u02bd\3\2\2\2\u02bd"+ + "\u02be\3\2\2\2\u02be\u02bf\b]\2\2\u02bf\u00ba\3\2\2\2\20\2\u017b\u01c7"+ + "\u01d8\u01ea\u01f7\u022e\u023f\u02a3\u02a8\u02ae\u02b0\u02b6\u02bc\3\b"+ + "\2\2"; + public static final ATN _ATN = + new ATNDeserializer().deserialize(_serializedATN.toCharArray()); + static { + _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()]; + for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) { + _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i); + } + } +} \ No newline at end of file diff --git a/more_math/Parser/.antlr/MathExprLexer.tokens b/more_math/Parser/.antlr/MathExprLexer.tokens new file mode 100644 index 0000000..b1cf5bf --- /dev/null +++ b/more_math/Parser/.antlr/MathExprLexer.tokens @@ -0,0 +1,173 @@ +SIN=1 +COS=2 +TAN=3 +ASIN=4 +ACOS=5 +ATAN=6 +ATAN2=7 +SINH=8 +COSH=9 +TANH=10 +ASINH=11 +ACOSH=12 +ATANH=13 +ABS=14 +SQRT=15 +LN=16 +LOG=17 +EXP=18 +SMIN=19 +SMAX=20 +TMIN=21 +TMAX=22 +TNORM=23 +SNORM=24 +FLOOR=25 +CEIL=26 +ROUND=27 +GAMMA=28 +POWE=29 +SIGM=30 +CLAMP=31 +SFFT=32 +SIFFT=33 +ANGL=34 +PRNT=35 +PRINT_SHAPE=36 +LERP=37 +STEP=38 +SMOOTHSTEP=39 +FRACT=40 +RELU=41 +SOFTPLUS=42 +GELU=43 +SIGN=44 +MAP=45 +EZCONV=46 +CONV=47 +SWAP=48 +PERM=49 +RESHAPE=50 +RANGE=51 +TOPK=52 +BOTK=53 +PINV=54 +SUM=55 +MEAN=56 +STD=57 +VAR=58 +QUARTILE=59 +PERCENTILE=60 +QUANTILE=61 +DOT=62 +MOMENT=63 +COSSIM=64 +FLIP=65 +COV=66 +SORT=67 +APPEND=68 +PLUS=69 +MINUS=70 +MULT=71 +DIV=72 +MOD=73 +POW=74 +GE=75 +GT=76 +LE=77 +LT=78 +EQ=79 +NE=80 +PIPE=81 +LPAREN=82 +RPAREN=83 +COMMA=84 +SEMICOLON=85 +ARROW=86 +LBRACKET=87 +RBRACKET=88 +CONSTANT=89 +NUMBER=90 +VARIABLE=91 +WS=92 +'sin'=1 +'cos'=2 +'tan'=3 +'asin'=4 +'acos'=5 +'atan'=6 +'atan2'=7 +'sinh'=8 +'cosh'=9 +'tanh'=10 +'asinh'=11 +'acosh'=12 +'atanh'=13 +'abs'=14 +'sqrt'=15 +'ln'=16 +'log'=17 +'exp'=18 +'smin'=19 +'smax'=20 +'tmin'=21 +'tmax'=22 +'tnorm'=23 +'snorm'=24 +'floor'=25 +'ceil'=26 +'round'=27 +'gamma'=28 +'pow'=29 +'sigm'=30 +'clamp'=31 +'fft'=32 +'ifft'=33 +'angle'=34 +'print'=35 +'lerp'=37 +'step'=38 +'smoothstep'=39 +'fract'=40 +'relu'=41 +'softplus'=42 +'gelu'=43 +'sign'=44 +'map'=45 +'swap'=48 +'range'=51 +'topk'=52 +'botk'=53 +'pinv'=54 +'sum'=55 +'mean'=56 +'std'=57 +'var'=58 +'quantile'=61 +'dot'=62 +'moment'=63 +'cossim'=64 +'flip'=65 +'cov'=66 +'sort'=67 +'append'=68 +'+'=69 +'-'=70 +'*'=71 +'/'=72 +'%'=73 +'^'=74 +'>='=75 +'>'=76 +'<='=77 +'<'=78 +'=='=79 +'!='=80 +'|'=81 +'('=82 +')'=83 +','=84 +';'=85 +'->'=86 +'['=87 +']'=88 diff --git a/more_math/Parser/.antlr/MathExprParser.java b/more_math/Parser/.antlr/MathExprParser.java new file mode 100644 index 0000000..a27f0da --- /dev/null +++ b/more_math/Parser/.antlr/MathExprParser.java @@ -0,0 +1,3857 @@ +// Generated from d:\stability\Data\Packages\ComfyUI\custom_nodes\more_math\more_math\Parser\MathExpr.g4 by ANTLR 4.9.2 +import org.antlr.v4.runtime.atn.*; +import org.antlr.v4.runtime.dfa.DFA; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.misc.*; +import org.antlr.v4.runtime.tree.*; +import java.util.List; +import java.util.Iterator; +import java.util.ArrayList; + +@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) +public class MathExprParser extends Parser { + static { RuntimeMetaData.checkVersion("4.9.2", RuntimeMetaData.VERSION); } + + protected static final DFA[] _decisionToDFA; + protected static final PredictionContextCache _sharedContextCache = + new PredictionContextCache(); + public static final int + SIN=1, COS=2, TAN=3, ASIN=4, ACOS=5, ATAN=6, ATAN2=7, SINH=8, COSH=9, + TANH=10, ASINH=11, ACOSH=12, ATANH=13, ABS=14, SQRT=15, LN=16, LOG=17, + EXP=18, SMIN=19, SMAX=20, TMIN=21, TMAX=22, TNORM=23, SNORM=24, FLOOR=25, + CEIL=26, ROUND=27, GAMMA=28, POWE=29, SIGM=30, CLAMP=31, SFFT=32, SIFFT=33, + ANGL=34, PRNT=35, PRINT_SHAPE=36, LERP=37, STEP=38, SMOOTHSTEP=39, FRACT=40, + RELU=41, SOFTPLUS=42, GELU=43, SIGN=44, MAP=45, EZCONV=46, CONV=47, SWAP=48, + PERM=49, RESHAPE=50, RANGE=51, TOPK=52, BOTK=53, PINV=54, SUM=55, MEAN=56, + STD=57, VAR=58, QUARTILE=59, PERCENTILE=60, QUANTILE=61, DOT=62, MOMENT=63, + COSSIM=64, FLIP=65, COV=66, SORT=67, APPEND=68, PLUS=69, MINUS=70, MULT=71, + DIV=72, MOD=73, POW=74, GE=75, GT=76, LE=77, LT=78, EQ=79, NE=80, PIPE=81, + LPAREN=82, RPAREN=83, COMMA=84, SEMICOLON=85, ARROW=86, LBRACKET=87, RBRACKET=88, + CONSTANT=89, NUMBER=90, VARIABLE=91, WS=92; + public static final int + RULE_start = 0, RULE_funcDef = 1, RULE_paramList = 2, RULE_expr = 3, RULE_compExpr = 4, + RULE_addExpr = 5, RULE_mulExpr = 6, RULE_powExpr = 7, RULE_unaryExpr = 8, + RULE_indexExpr = 9, RULE_atom = 10, RULE_exprList = 11, RULE_func1 = 12, + RULE_func2 = 13, RULE_func3 = 14, RULE_func4 = 15, RULE_funcN = 16; + private static String[] makeRuleNames() { + return new String[] { + "start", "funcDef", "paramList", "expr", "compExpr", "addExpr", "mulExpr", + "powExpr", "unaryExpr", "indexExpr", "atom", "exprList", "func1", "func2", + "func3", "func4", "funcN" + }; + } + public static final String[] ruleNames = makeRuleNames(); + + private static String[] makeLiteralNames() { + return new String[] { + null, "'sin'", "'cos'", "'tan'", "'asin'", "'acos'", "'atan'", "'atan2'", + "'sinh'", "'cosh'", "'tanh'", "'asinh'", "'acosh'", "'atanh'", "'abs'", + "'sqrt'", "'ln'", "'log'", "'exp'", "'smin'", "'smax'", "'tmin'", "'tmax'", + "'tnorm'", "'snorm'", "'floor'", "'ceil'", "'round'", "'gamma'", "'pow'", + "'sigm'", "'clamp'", "'fft'", "'ifft'", "'angle'", "'print'", null, "'lerp'", + "'step'", "'smoothstep'", "'fract'", "'relu'", "'softplus'", "'gelu'", + "'sign'", "'map'", null, null, "'swap'", null, null, "'range'", "'topk'", + "'botk'", "'pinv'", "'sum'", "'mean'", "'std'", "'var'", null, null, + "'quantile'", "'dot'", "'moment'", "'cossim'", "'flip'", "'cov'", "'sort'", + "'append'", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "'>='", "'>'", + "'<='", "'<'", "'=='", "'!='", "'|'", "'('", "')'", "','", "';'", "'->'", + "'['", "']'" + }; + } + private static final String[] _LITERAL_NAMES = makeLiteralNames(); + private static String[] makeSymbolicNames() { + return new String[] { + null, "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", "COSH", + "TANH", "ASINH", "ACOSH", "ATANH", "ABS", "SQRT", "LN", "LOG", "EXP", + "SMIN", "SMAX", "TMIN", "TMAX", "TNORM", "SNORM", "FLOOR", "CEIL", "ROUND", + "GAMMA", "POWE", "SIGM", "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE", + "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", "GELU", "SIGN", + "MAP", "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", + "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", + "QUANTILE", "DOT", "MOMENT", "COSSIM", "FLIP", "COV", "SORT", "APPEND", + "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", "LT", + "EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", "SEMICOLON", "ARROW", + "LBRACKET", "RBRACKET", "CONSTANT", "NUMBER", "VARIABLE", "WS" + }; + } + private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames(); + public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); + + /** + * @deprecated Use {@link #VOCABULARY} instead. + */ + @Deprecated + public static final String[] tokenNames; + static { + tokenNames = new String[_SYMBOLIC_NAMES.length]; + for (int i = 0; i < tokenNames.length; i++) { + tokenNames[i] = VOCABULARY.getLiteralName(i); + if (tokenNames[i] == null) { + tokenNames[i] = VOCABULARY.getSymbolicName(i); + } + + if (tokenNames[i] == null) { + tokenNames[i] = ""; + } + } + } + + @Override + @Deprecated + public String[] getTokenNames() { + return tokenNames; + } + + @Override + + public Vocabulary getVocabulary() { + return VOCABULARY; + } + + @Override + public String getGrammarFileName() { return "MathExpr.g4"; } + + @Override + public String[] getRuleNames() { return ruleNames; } + + @Override + public String getSerializedATN() { return _serializedATN; } + + @Override + public ATN getATN() { return _ATN; } + + public MathExprParser(TokenStream input) { + super(input); + _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); + } + + public static class StartContext extends ParserRuleContext { + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode EOF() { return getToken(MathExprParser.EOF, 0); } + public List funcDef() { + return getRuleContexts(FuncDefContext.class); + } + public FuncDefContext funcDef(int i) { + return getRuleContext(FuncDefContext.class,i); + } + public StartContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_start; } + } + + public final StartContext start() throws RecognitionException { + StartContext _localctx = new StartContext(_ctx, getState()); + enterRule(_localctx, 0, RULE_start); + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(37); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,0,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(34); + funcDef(); + } + } + } + setState(39); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,0,_ctx); + } + setState(40); + expr(); + setState(41); + match(EOF); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class FuncDefContext extends ParserRuleContext { + public FuncDefContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_funcDef; } + + public FuncDefContext() { } + public void copyFrom(FuncDefContext ctx) { + super.copyFrom(ctx); + } + } + public static class FunctionDefContext extends FuncDefContext { + public TerminalNode VARIABLE() { return getToken(MathExprParser.VARIABLE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TerminalNode ARROW() { return getToken(MathExprParser.ARROW, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode SEMICOLON() { return getToken(MathExprParser.SEMICOLON, 0); } + public ParamListContext paramList() { + return getRuleContext(ParamListContext.class,0); + } + public FunctionDefContext(FuncDefContext ctx) { copyFrom(ctx); } + } + + public final FuncDefContext funcDef() throws RecognitionException { + FuncDefContext _localctx = new FuncDefContext(_ctx, getState()); + enterRule(_localctx, 2, RULE_funcDef); + int _la; + try { + _localctx = new FunctionDefContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(43); + match(VARIABLE); + setState(44); + match(LPAREN); + setState(46); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la==VARIABLE) { + { + setState(45); + paramList(); + } + } + + setState(48); + match(RPAREN); + setState(49); + match(ARROW); + setState(50); + expr(); + setState(51); + match(SEMICOLON); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ParamListContext extends ParserRuleContext { + public List VARIABLE() { return getTokens(MathExprParser.VARIABLE); } + public TerminalNode VARIABLE(int i) { + return getToken(MathExprParser.VARIABLE, i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public ParamListContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_paramList; } + } + + public final ParamListContext paramList() throws RecognitionException { + ParamListContext _localctx = new ParamListContext(_ctx, getState()); + enterRule(_localctx, 4, RULE_paramList); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(53); + match(VARIABLE); + setState(58); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(54); + match(COMMA); + setState(55); + match(VARIABLE); + } + } + setState(60); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ExprContext extends ParserRuleContext { + public AtomContext atom() { + return getRuleContext(AtomContext.class,0); + } + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public ExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_expr; } + } + + public final ExprContext expr() throws RecognitionException { + ExprContext _localctx = new ExprContext(_ctx, getState()); + enterRule(_localctx, 6, RULE_expr); + try { + setState(63); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(61); + atom(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(62); + compExpr(0); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class CompExprContext extends ParserRuleContext { + public CompExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_compExpr; } + + public CompExprContext() { } + public void copyFrom(CompExprContext ctx) { + super.copyFrom(ctx); + } + } + public static class LtExpContext extends CompExprContext { + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public TerminalNode LT() { return getToken(MathExprParser.LT, 0); } + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public LtExpContext(CompExprContext ctx) { copyFrom(ctx); } + } + public static class EqExpContext extends CompExprContext { + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public TerminalNode EQ() { return getToken(MathExprParser.EQ, 0); } + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public EqExpContext(CompExprContext ctx) { copyFrom(ctx); } + } + public static class ToAddContext extends CompExprContext { + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public ToAddContext(CompExprContext ctx) { copyFrom(ctx); } + } + public static class GeExpContext extends CompExprContext { + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public TerminalNode GE() { return getToken(MathExprParser.GE, 0); } + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public GeExpContext(CompExprContext ctx) { copyFrom(ctx); } + } + public static class LeExpContext extends CompExprContext { + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public TerminalNode LE() { return getToken(MathExprParser.LE, 0); } + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public LeExpContext(CompExprContext ctx) { copyFrom(ctx); } + } + public static class NeExpContext extends CompExprContext { + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public TerminalNode NE() { return getToken(MathExprParser.NE, 0); } + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public NeExpContext(CompExprContext ctx) { copyFrom(ctx); } + } + public static class GtExpContext extends CompExprContext { + public CompExprContext compExpr() { + return getRuleContext(CompExprContext.class,0); + } + public TerminalNode GT() { return getToken(MathExprParser.GT, 0); } + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public GtExpContext(CompExprContext ctx) { copyFrom(ctx); } + } + + public final CompExprContext compExpr() throws RecognitionException { + return compExpr(0); + } + + private CompExprContext compExpr(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + CompExprContext _localctx = new CompExprContext(_ctx, _parentState); + CompExprContext _prevctx = _localctx; + int _startState = 8; + enterRecursionRule(_localctx, 8, RULE_compExpr, _p); + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + { + _localctx = new ToAddContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(66); + addExpr(0); + } + _ctx.stop = _input.LT(-1); + setState(88); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,5,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; + { + setState(86); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,4,_ctx) ) { + case 1: + { + _localctx = new GtExpContext(new CompExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_compExpr); + setState(68); + if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)"); + setState(69); + match(GT); + setState(70); + addExpr(0); + } + break; + case 2: + { + _localctx = new GeExpContext(new CompExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_compExpr); + setState(71); + if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)"); + setState(72); + match(GE); + setState(73); + addExpr(0); + } + break; + case 3: + { + _localctx = new LtExpContext(new CompExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_compExpr); + setState(74); + if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); + setState(75); + match(LT); + setState(76); + addExpr(0); + } + break; + case 4: + { + _localctx = new LeExpContext(new CompExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_compExpr); + setState(77); + if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); + setState(78); + match(LE); + setState(79); + addExpr(0); + } + break; + case 5: + { + _localctx = new EqExpContext(new CompExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_compExpr); + setState(80); + if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); + setState(81); + match(EQ); + setState(82); + addExpr(0); + } + break; + case 6: + { + _localctx = new NeExpContext(new CompExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_compExpr); + setState(83); + if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); + setState(84); + match(NE); + setState(85); + addExpr(0); + } + break; + } + } + } + setState(90); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,5,_ctx); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + unrollRecursionContexts(_parentctx); + } + return _localctx; + } + + public static class AddExprContext extends ParserRuleContext { + public AddExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_addExpr; } + + public AddExprContext() { } + public void copyFrom(AddExprContext ctx) { + super.copyFrom(ctx); + } + } + public static class AddExpContext extends AddExprContext { + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public TerminalNode PLUS() { return getToken(MathExprParser.PLUS, 0); } + public MulExprContext mulExpr() { + return getRuleContext(MulExprContext.class,0); + } + public AddExpContext(AddExprContext ctx) { copyFrom(ctx); } + } + public static class ToMulContext extends AddExprContext { + public MulExprContext mulExpr() { + return getRuleContext(MulExprContext.class,0); + } + public ToMulContext(AddExprContext ctx) { copyFrom(ctx); } + } + public static class SubExpContext extends AddExprContext { + public AddExprContext addExpr() { + return getRuleContext(AddExprContext.class,0); + } + public TerminalNode MINUS() { return getToken(MathExprParser.MINUS, 0); } + public MulExprContext mulExpr() { + return getRuleContext(MulExprContext.class,0); + } + public SubExpContext(AddExprContext ctx) { copyFrom(ctx); } + } + + public final AddExprContext addExpr() throws RecognitionException { + return addExpr(0); + } + + private AddExprContext addExpr(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + AddExprContext _localctx = new AddExprContext(_ctx, _parentState); + AddExprContext _prevctx = _localctx; + int _startState = 10; + enterRecursionRule(_localctx, 10, RULE_addExpr, _p); + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + { + _localctx = new ToMulContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(92); + mulExpr(0); + } + _ctx.stop = _input.LT(-1); + setState(102); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,7,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; + { + setState(100); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) { + case 1: + { + _localctx = new AddExpContext(new AddExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_addExpr); + setState(94); + if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); + setState(95); + match(PLUS); + setState(96); + mulExpr(0); + } + break; + case 2: + { + _localctx = new SubExpContext(new AddExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_addExpr); + setState(97); + if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); + setState(98); + match(MINUS); + setState(99); + mulExpr(0); + } + break; + } + } + } + setState(104); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,7,_ctx); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + unrollRecursionContexts(_parentctx); + } + return _localctx; + } + + public static class MulExprContext extends ParserRuleContext { + public MulExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mulExpr; } + + public MulExprContext() { } + public void copyFrom(MulExprContext ctx) { + super.copyFrom(ctx); + } + } + public static class MulExpContext extends MulExprContext { + public MulExprContext mulExpr() { + return getRuleContext(MulExprContext.class,0); + } + public TerminalNode MULT() { return getToken(MathExprParser.MULT, 0); } + public PowExprContext powExpr() { + return getRuleContext(PowExprContext.class,0); + } + public MulExpContext(MulExprContext ctx) { copyFrom(ctx); } + } + public static class ModExpContext extends MulExprContext { + public MulExprContext mulExpr() { + return getRuleContext(MulExprContext.class,0); + } + public TerminalNode MOD() { return getToken(MathExprParser.MOD, 0); } + public PowExprContext powExpr() { + return getRuleContext(PowExprContext.class,0); + } + public ModExpContext(MulExprContext ctx) { copyFrom(ctx); } + } + public static class DivExpContext extends MulExprContext { + public MulExprContext mulExpr() { + return getRuleContext(MulExprContext.class,0); + } + public TerminalNode DIV() { return getToken(MathExprParser.DIV, 0); } + public PowExprContext powExpr() { + return getRuleContext(PowExprContext.class,0); + } + public DivExpContext(MulExprContext ctx) { copyFrom(ctx); } + } + public static class ToPowContext extends MulExprContext { + public PowExprContext powExpr() { + return getRuleContext(PowExprContext.class,0); + } + public ToPowContext(MulExprContext ctx) { copyFrom(ctx); } + } + + public final MulExprContext mulExpr() throws RecognitionException { + return mulExpr(0); + } + + private MulExprContext mulExpr(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + MulExprContext _localctx = new MulExprContext(_ctx, _parentState); + MulExprContext _prevctx = _localctx; + int _startState = 12; + enterRecursionRule(_localctx, 12, RULE_mulExpr, _p); + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + { + _localctx = new ToPowContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(106); + powExpr(); + } + _ctx.stop = _input.LT(-1); + setState(119); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,9,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; + { + setState(117); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,8,_ctx) ) { + case 1: + { + _localctx = new MulExpContext(new MulExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_mulExpr); + setState(108); + if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); + setState(109); + match(MULT); + setState(110); + powExpr(); + } + break; + case 2: + { + _localctx = new DivExpContext(new MulExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_mulExpr); + setState(111); + if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); + setState(112); + match(DIV); + setState(113); + powExpr(); + } + break; + case 3: + { + _localctx = new ModExpContext(new MulExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_mulExpr); + setState(114); + if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); + setState(115); + match(MOD); + setState(116); + powExpr(); + } + break; + } + } + } + setState(121); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,9,_ctx); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + unrollRecursionContexts(_parentctx); + } + return _localctx; + } + + public static class PowExprContext extends ParserRuleContext { + public PowExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_powExpr; } + + public PowExprContext() { } + public void copyFrom(PowExprContext ctx) { + super.copyFrom(ctx); + } + } + public static class PowExpContext extends PowExprContext { + public UnaryExprContext unaryExpr() { + return getRuleContext(UnaryExprContext.class,0); + } + public TerminalNode POW() { return getToken(MathExprParser.POW, 0); } + public PowExprContext powExpr() { + return getRuleContext(PowExprContext.class,0); + } + public PowExpContext(PowExprContext ctx) { copyFrom(ctx); } + } + public static class ToUnaryContext extends PowExprContext { + public UnaryExprContext unaryExpr() { + return getRuleContext(UnaryExprContext.class,0); + } + public ToUnaryContext(PowExprContext ctx) { copyFrom(ctx); } + } + + public final PowExprContext powExpr() throws RecognitionException { + PowExprContext _localctx = new PowExprContext(_ctx, getState()); + enterRule(_localctx, 14, RULE_powExpr); + try { + setState(127); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) { + case 1: + _localctx = new PowExpContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(122); + unaryExpr(); + setState(123); + match(POW); + setState(124); + powExpr(); + } + break; + case 2: + _localctx = new ToUnaryContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(126); + unaryExpr(); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UnaryExprContext extends ParserRuleContext { + public UnaryExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_unaryExpr; } + + public UnaryExprContext() { } + public void copyFrom(UnaryExprContext ctx) { + super.copyFrom(ctx); + } + } + public static class UnaryPlusContext extends UnaryExprContext { + public TerminalNode PLUS() { return getToken(MathExprParser.PLUS, 0); } + public UnaryExprContext unaryExpr() { + return getRuleContext(UnaryExprContext.class,0); + } + public UnaryPlusContext(UnaryExprContext ctx) { copyFrom(ctx); } + } + public static class UnaryMinusContext extends UnaryExprContext { + public TerminalNode MINUS() { return getToken(MathExprParser.MINUS, 0); } + public UnaryExprContext unaryExpr() { + return getRuleContext(UnaryExprContext.class,0); + } + public UnaryMinusContext(UnaryExprContext ctx) { copyFrom(ctx); } + } + public static class ToIndexContext extends UnaryExprContext { + public IndexExprContext indexExpr() { + return getRuleContext(IndexExprContext.class,0); + } + public ToIndexContext(UnaryExprContext ctx) { copyFrom(ctx); } + } + + public final UnaryExprContext unaryExpr() throws RecognitionException { + UnaryExprContext _localctx = new UnaryExprContext(_ctx, getState()); + enterRule(_localctx, 16, RULE_unaryExpr); + try { + setState(134); + _errHandler.sync(this); + switch (_input.LA(1)) { + case PLUS: + _localctx = new UnaryPlusContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(129); + match(PLUS); + setState(130); + unaryExpr(); + } + break; + case MINUS: + _localctx = new UnaryMinusContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(131); + match(MINUS); + setState(132); + unaryExpr(); + } + break; + case SIN: + case COS: + case TAN: + case ASIN: + case ACOS: + case ATAN: + case ATAN2: + case SINH: + case COSH: + case TANH: + case ASINH: + case ACOSH: + case ATANH: + case ABS: + case SQRT: + case LN: + case LOG: + case EXP: + case SMIN: + case SMAX: + case TMIN: + case TMAX: + case TNORM: + case SNORM: + case FLOOR: + case CEIL: + case ROUND: + case GAMMA: + case POWE: + case SIGM: + case CLAMP: + case SFFT: + case SIFFT: + case ANGL: + case PRNT: + case PRINT_SHAPE: + case LERP: + case STEP: + case SMOOTHSTEP: + case FRACT: + case RELU: + case SOFTPLUS: + case GELU: + case SIGN: + case MAP: + case EZCONV: + case CONV: + case SWAP: + case PERM: + case RESHAPE: + case RANGE: + case TOPK: + case BOTK: + case PINV: + case SUM: + case MEAN: + case STD: + case VAR: + case QUARTILE: + case PERCENTILE: + case QUANTILE: + case DOT: + case MOMENT: + case COSSIM: + case FLIP: + case COV: + case SORT: + case APPEND: + case PIPE: + case LPAREN: + case LBRACKET: + case CONSTANT: + case NUMBER: + case VARIABLE: + _localctx = new ToIndexContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(133); + indexExpr(0); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class IndexExprContext extends ParserRuleContext { + public IndexExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_indexExpr; } + + public IndexExprContext() { } + public void copyFrom(IndexExprContext ctx) { + super.copyFrom(ctx); + } + } + public static class IndexExpContext extends IndexExprContext { + public IndexExprContext indexExpr() { + return getRuleContext(IndexExprContext.class,0); + } + public TerminalNode LBRACKET() { return getToken(MathExprParser.LBRACKET, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RBRACKET() { return getToken(MathExprParser.RBRACKET, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public IndexExpContext(IndexExprContext ctx) { copyFrom(ctx); } + } + public static class ToAtomContext extends IndexExprContext { + public AtomContext atom() { + return getRuleContext(AtomContext.class,0); + } + public ToAtomContext(IndexExprContext ctx) { copyFrom(ctx); } + } + + public final IndexExprContext indexExpr() throws RecognitionException { + return indexExpr(0); + } + + private IndexExprContext indexExpr(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + IndexExprContext _localctx = new IndexExprContext(_ctx, _parentState); + IndexExprContext _prevctx = _localctx; + int _startState = 18; + enterRecursionRule(_localctx, 18, RULE_indexExpr, _p); + int _la; + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + { + _localctx = new ToAtomContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(137); + atom(); + } + _ctx.stop = _input.LT(-1); + setState(153); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,13,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; + { + { + _localctx = new IndexExpContext(new IndexExprContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_indexExpr); + setState(139); + if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); + setState(140); + match(LBRACKET); + setState(141); + expr(); + setState(146); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(142); + match(COMMA); + setState(143); + expr(); + } + } + setState(148); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(149); + match(RBRACKET); + } + } + } + setState(155); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,13,_ctx); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + unrollRecursionContexts(_parentctx); + } + return _localctx; + } + + public static class AtomContext extends ParserRuleContext { + public AtomContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_atom; } + + public AtomContext() { } + public void copyFrom(AtomContext ctx) { + super.copyFrom(ctx); + } + } + public static class Func4ExpContext extends AtomContext { + public Func4Context func4() { + return getRuleContext(Func4Context.class,0); + } + public Func4ExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class Func2ExpContext extends AtomContext { + public Func2Context func2() { + return getRuleContext(Func2Context.class,0); + } + public Func2ExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class VariableExpContext extends AtomContext { + public TerminalNode VARIABLE() { return getToken(MathExprParser.VARIABLE, 0); } + public VariableExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class CallExpContext extends AtomContext { + public TerminalNode VARIABLE() { return getToken(MathExprParser.VARIABLE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public ExprListContext exprList() { + return getRuleContext(ExprListContext.class,0); + } + public CallExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class Func3ExpContext extends AtomContext { + public Func3Context func3() { + return getRuleContext(Func3Context.class,0); + } + public Func3ExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class ParenExpContext extends AtomContext { + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public ParenExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class ConstantExpContext extends AtomContext { + public TerminalNode CONSTANT() { return getToken(MathExprParser.CONSTANT, 0); } + public ConstantExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class Func1ExpContext extends AtomContext { + public Func1Context func1() { + return getRuleContext(Func1Context.class,0); + } + public Func1ExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class FuncNExpContext extends AtomContext { + public FuncNContext funcN() { + return getRuleContext(FuncNContext.class,0); + } + public FuncNExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class NumberExpContext extends AtomContext { + public TerminalNode NUMBER() { return getToken(MathExprParser.NUMBER, 0); } + public NumberExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class AbsExpContext extends AtomContext { + public List PIPE() { return getTokens(MathExprParser.PIPE); } + public TerminalNode PIPE(int i) { + return getToken(MathExprParser.PIPE, i); + } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public AbsExpContext(AtomContext ctx) { copyFrom(ctx); } + } + public static class ListExpContext extends AtomContext { + public TerminalNode LBRACKET() { return getToken(MathExprParser.LBRACKET, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RBRACKET() { return getToken(MathExprParser.RBRACKET, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public ListExpContext(AtomContext ctx) { copyFrom(ctx); } + } + + public final AtomContext atom() throws RecognitionException { + AtomContext _localctx = new AtomContext(_ctx, getState()); + enterRule(_localctx, 20, RULE_atom); + int _la; + try { + setState(189); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) { + case 1: + _localctx = new Func1ExpContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(156); + func1(); + } + break; + case 2: + _localctx = new Func2ExpContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(157); + func2(); + } + break; + case 3: + _localctx = new Func3ExpContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(158); + func3(); + } + break; + case 4: + _localctx = new Func4ExpContext(_localctx); + enterOuterAlt(_localctx, 4); + { + setState(159); + func4(); + } + break; + case 5: + _localctx = new FuncNExpContext(_localctx); + enterOuterAlt(_localctx, 5); + { + setState(160); + funcN(); + } + break; + case 6: + _localctx = new VariableExpContext(_localctx); + enterOuterAlt(_localctx, 6); + { + setState(161); + match(VARIABLE); + } + break; + case 7: + _localctx = new NumberExpContext(_localctx); + enterOuterAlt(_localctx, 7); + { + setState(162); + match(NUMBER); + } + break; + case 8: + _localctx = new ConstantExpContext(_localctx); + enterOuterAlt(_localctx, 8); + { + setState(163); + match(CONSTANT); + } + break; + case 9: + _localctx = new ParenExpContext(_localctx); + enterOuterAlt(_localctx, 9); + { + setState(164); + match(LPAREN); + setState(165); + expr(); + setState(166); + match(RPAREN); + } + break; + case 10: + _localctx = new AbsExpContext(_localctx); + enterOuterAlt(_localctx, 10); + { + setState(168); + match(PIPE); + setState(169); + expr(); + setState(170); + match(PIPE); + } + break; + case 11: + _localctx = new ListExpContext(_localctx); + enterOuterAlt(_localctx, 11); + { + setState(172); + match(LBRACKET); + setState(173); + expr(); + setState(178); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(174); + match(COMMA); + setState(175); + expr(); + } + } + setState(180); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(181); + match(RBRACKET); + } + break; + case 12: + _localctx = new CallExpContext(_localctx); + enterOuterAlt(_localctx, 12); + { + setState(183); + match(VARIABLE); + setState(184); + match(LPAREN); + setState(186); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SIN) | (1L << COS) | (1L << TAN) | (1L << ASIN) | (1L << ACOS) | (1L << ATAN) | (1L << ATAN2) | (1L << SINH) | (1L << COSH) | (1L << TANH) | (1L << ASINH) | (1L << ACOSH) | (1L << ATANH) | (1L << ABS) | (1L << SQRT) | (1L << LN) | (1L << LOG) | (1L << EXP) | (1L << SMIN) | (1L << SMAX) | (1L << TMIN) | (1L << TMAX) | (1L << TNORM) | (1L << SNORM) | (1L << FLOOR) | (1L << CEIL) | (1L << ROUND) | (1L << GAMMA) | (1L << POWE) | (1L << SIGM) | (1L << CLAMP) | (1L << SFFT) | (1L << SIFFT) | (1L << ANGL) | (1L << PRNT) | (1L << PRINT_SHAPE) | (1L << LERP) | (1L << STEP) | (1L << SMOOTHSTEP) | (1L << FRACT) | (1L << RELU) | (1L << SOFTPLUS) | (1L << GELU) | (1L << SIGN) | (1L << MAP) | (1L << EZCONV) | (1L << CONV) | (1L << SWAP) | (1L << PERM) | (1L << RESHAPE) | (1L << RANGE) | (1L << TOPK) | (1L << BOTK) | (1L << PINV) | (1L << SUM) | (1L << MEAN) | (1L << STD) | (1L << VAR) | (1L << QUARTILE) | (1L << PERCENTILE) | (1L << QUANTILE) | (1L << DOT) | (1L << MOMENT))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (COSSIM - 64)) | (1L << (FLIP - 64)) | (1L << (COV - 64)) | (1L << (SORT - 64)) | (1L << (APPEND - 64)) | (1L << (PLUS - 64)) | (1L << (MINUS - 64)) | (1L << (PIPE - 64)) | (1L << (LPAREN - 64)) | (1L << (LBRACKET - 64)) | (1L << (CONSTANT - 64)) | (1L << (NUMBER - 64)) | (1L << (VARIABLE - 64)))) != 0)) { + { + setState(185); + exprList(); + } + } + + setState(188); + match(RPAREN); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ExprListContext extends ParserRuleContext { + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public ExprListContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_exprList; } + } + + public final ExprListContext exprList() throws RecognitionException { + ExprListContext _localctx = new ExprListContext(_ctx, getState()); + enterRule(_localctx, 22, RULE_exprList); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(191); + expr(); + setState(196); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(192); + match(COMMA); + setState(193); + expr(); + } + } + setState(198); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Func1Context extends ParserRuleContext { + public Func1Context(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_func1; } + + public Func1Context() { } + public void copyFrom(Func1Context ctx) { + super.copyFrom(ctx); + } + } + public static class SoftplusFuncContext extends Func1Context { + public TerminalNode SOFTPLUS() { return getToken(MathExprParser.SOFTPLUS, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SoftplusFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SortFuncContext extends Func1Context { + public TerminalNode SORT() { return getToken(MathExprParser.SORT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SortFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class TanhFuncContext extends Func1Context { + public TerminalNode TANH() { return getToken(MathExprParser.TANH, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TanhFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AcoshFuncContext extends Func1Context { + public TerminalNode ACOSH() { return getToken(MathExprParser.ACOSH, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AcoshFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SqrtFuncContext extends Func1Context { + public TerminalNode SQRT() { return getToken(MathExprParser.SQRT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SqrtFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class FloorFuncContext extends Func1Context { + public TerminalNode FLOOR() { return getToken(MathExprParser.FLOOR, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public FloorFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class RoundFuncContext extends Func1Context { + public TerminalNode ROUND() { return getToken(MathExprParser.ROUND, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public RoundFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class MeanFuncContext extends Func1Context { + public TerminalNode MEAN() { return getToken(MathExprParser.MEAN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public MeanFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class CeilFuncContext extends Func1Context { + public TerminalNode CEIL() { return getToken(MathExprParser.CEIL, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public CeilFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class GeluFuncContext extends Func1Context { + public TerminalNode GELU() { return getToken(MathExprParser.GELU, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public GeluFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class PrintFuncContext extends Func1Context { + public TerminalNode PRNT() { return getToken(MathExprParser.PRNT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public PrintFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AbsFuncContext extends Func1Context { + public TerminalNode ABS() { return getToken(MathExprParser.ABS, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AbsFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AtanFuncContext extends Func1Context { + public TerminalNode ATAN() { return getToken(MathExprParser.ATAN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AtanFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class ReluFuncContext extends Func1Context { + public TerminalNode RELU() { return getToken(MathExprParser.RELU, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public ReluFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SinhFuncContext extends Func1Context { + public TerminalNode SINH() { return getToken(MathExprParser.SINH, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SinhFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SigmoidFuncContext extends Func1Context { + public TerminalNode SIGM() { return getToken(MathExprParser.SIGM, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SigmoidFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class LogFuncContext extends Func1Context { + public TerminalNode LOG() { return getToken(MathExprParser.LOG, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public LogFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class LnFuncContext extends Func1Context { + public TerminalNode LN() { return getToken(MathExprParser.LN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public LnFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class TNormFuncContext extends Func1Context { + public TerminalNode TNORM() { return getToken(MathExprParser.TNORM, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TNormFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SNormFuncContext extends Func1Context { + public TerminalNode SNORM() { return getToken(MathExprParser.SNORM, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SNormFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SinFuncContext extends Func1Context { + public TerminalNode SIN() { return getToken(MathExprParser.SIN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SinFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class StdFuncContext extends Func1Context { + public TerminalNode STD() { return getToken(MathExprParser.STD, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public StdFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AcosFuncContext extends Func1Context { + public TerminalNode ACOS() { return getToken(MathExprParser.ACOS, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AcosFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class CoshFuncContext extends Func1Context { + public TerminalNode COSH() { return getToken(MathExprParser.COSH, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public CoshFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AnglFuncContext extends Func1Context { + public TerminalNode ANGL() { return getToken(MathExprParser.ANGL, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AnglFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SumFuncContext extends Func1Context { + public TerminalNode SUM() { return getToken(MathExprParser.SUM, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SumFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SignFuncContext extends Func1Context { + public TerminalNode SIGN() { return getToken(MathExprParser.SIGN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SignFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class TanFuncContext extends Func1Context { + public TerminalNode TAN() { return getToken(MathExprParser.TAN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TanFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class PinvFuncContext extends Func1Context { + public TerminalNode PINV() { return getToken(MathExprParser.PINV, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public PinvFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SifftFuncContext extends Func1Context { + public TerminalNode SIFFT() { return getToken(MathExprParser.SIFFT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SifftFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class FractFuncContext extends Func1Context { + public TerminalNode FRACT() { return getToken(MathExprParser.FRACT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public FractFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class GammaFuncContext extends Func1Context { + public TerminalNode GAMMA() { return getToken(MathExprParser.GAMMA, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public GammaFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class CosFuncContext extends Func1Context { + public TerminalNode COS() { return getToken(MathExprParser.COS, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public CosFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class VarFuncContext extends Func1Context { + public TerminalNode VAR() { return getToken(MathExprParser.VAR, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public VarFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AsinFuncContext extends Func1Context { + public TerminalNode ASIN() { return getToken(MathExprParser.ASIN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AsinFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AsinhFuncContext extends Func1Context { + public TerminalNode ASINH() { return getToken(MathExprParser.ASINH, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AsinhFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class SfftFuncContext extends Func1Context { + public TerminalNode SFFT() { return getToken(MathExprParser.SFFT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SfftFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class AtanhFuncContext extends Func1Context { + public TerminalNode ATANH() { return getToken(MathExprParser.ATANH, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AtanhFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class ExpFuncContext extends Func1Context { + public TerminalNode EXP() { return getToken(MathExprParser.EXP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public ExpFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + public static class PrintShapeFuncContext extends Func1Context { + public TerminalNode PRINT_SHAPE() { return getToken(MathExprParser.PRINT_SHAPE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public ExprContext expr() { + return getRuleContext(ExprContext.class,0); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public PrintShapeFuncContext(Func1Context ctx) { copyFrom(ctx); } + } + + public final Func1Context func1() throws RecognitionException { + Func1Context _localctx = new Func1Context(_ctx, getState()); + enterRule(_localctx, 24, RULE_func1); + try { + setState(399); + _errHandler.sync(this); + switch (_input.LA(1)) { + case SIN: + _localctx = new SinFuncContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(199); + match(SIN); + setState(200); + match(LPAREN); + setState(201); + expr(); + setState(202); + match(RPAREN); + } + break; + case COS: + _localctx = new CosFuncContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(204); + match(COS); + setState(205); + match(LPAREN); + setState(206); + expr(); + setState(207); + match(RPAREN); + } + break; + case TAN: + _localctx = new TanFuncContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(209); + match(TAN); + setState(210); + match(LPAREN); + setState(211); + expr(); + setState(212); + match(RPAREN); + } + break; + case ASIN: + _localctx = new AsinFuncContext(_localctx); + enterOuterAlt(_localctx, 4); + { + setState(214); + match(ASIN); + setState(215); + match(LPAREN); + setState(216); + expr(); + setState(217); + match(RPAREN); + } + break; + case ACOS: + _localctx = new AcosFuncContext(_localctx); + enterOuterAlt(_localctx, 5); + { + setState(219); + match(ACOS); + setState(220); + match(LPAREN); + setState(221); + expr(); + setState(222); + match(RPAREN); + } + break; + case ATAN: + _localctx = new AtanFuncContext(_localctx); + enterOuterAlt(_localctx, 6); + { + setState(224); + match(ATAN); + setState(225); + match(LPAREN); + setState(226); + expr(); + setState(227); + match(RPAREN); + } + break; + case SINH: + _localctx = new SinhFuncContext(_localctx); + enterOuterAlt(_localctx, 7); + { + setState(229); + match(SINH); + setState(230); + match(LPAREN); + setState(231); + expr(); + setState(232); + match(RPAREN); + } + break; + case COSH: + _localctx = new CoshFuncContext(_localctx); + enterOuterAlt(_localctx, 8); + { + setState(234); + match(COSH); + setState(235); + match(LPAREN); + setState(236); + expr(); + setState(237); + match(RPAREN); + } + break; + case TANH: + _localctx = new TanhFuncContext(_localctx); + enterOuterAlt(_localctx, 9); + { + setState(239); + match(TANH); + setState(240); + match(LPAREN); + setState(241); + expr(); + setState(242); + match(RPAREN); + } + break; + case ASINH: + _localctx = new AsinhFuncContext(_localctx); + enterOuterAlt(_localctx, 10); + { + setState(244); + match(ASINH); + setState(245); + match(LPAREN); + setState(246); + expr(); + setState(247); + match(RPAREN); + } + break; + case ACOSH: + _localctx = new AcoshFuncContext(_localctx); + enterOuterAlt(_localctx, 11); + { + setState(249); + match(ACOSH); + setState(250); + match(LPAREN); + setState(251); + expr(); + setState(252); + match(RPAREN); + } + break; + case ATANH: + _localctx = new AtanhFuncContext(_localctx); + enterOuterAlt(_localctx, 12); + { + setState(254); + match(ATANH); + setState(255); + match(LPAREN); + setState(256); + expr(); + setState(257); + match(RPAREN); + } + break; + case ABS: + _localctx = new AbsFuncContext(_localctx); + enterOuterAlt(_localctx, 13); + { + setState(259); + match(ABS); + setState(260); + match(LPAREN); + setState(261); + expr(); + setState(262); + match(RPAREN); + } + break; + case SQRT: + _localctx = new SqrtFuncContext(_localctx); + enterOuterAlt(_localctx, 14); + { + setState(264); + match(SQRT); + setState(265); + match(LPAREN); + setState(266); + expr(); + setState(267); + match(RPAREN); + } + break; + case LN: + _localctx = new LnFuncContext(_localctx); + enterOuterAlt(_localctx, 15); + { + setState(269); + match(LN); + setState(270); + match(LPAREN); + setState(271); + expr(); + setState(272); + match(RPAREN); + } + break; + case LOG: + _localctx = new LogFuncContext(_localctx); + enterOuterAlt(_localctx, 16); + { + setState(274); + match(LOG); + setState(275); + match(LPAREN); + setState(276); + expr(); + setState(277); + match(RPAREN); + } + break; + case EXP: + _localctx = new ExpFuncContext(_localctx); + enterOuterAlt(_localctx, 17); + { + setState(279); + match(EXP); + setState(280); + match(LPAREN); + setState(281); + expr(); + setState(282); + match(RPAREN); + } + break; + case TNORM: + _localctx = new TNormFuncContext(_localctx); + enterOuterAlt(_localctx, 18); + { + setState(284); + match(TNORM); + setState(285); + match(LPAREN); + setState(286); + expr(); + setState(287); + match(RPAREN); + } + break; + case SNORM: + _localctx = new SNormFuncContext(_localctx); + enterOuterAlt(_localctx, 19); + { + setState(289); + match(SNORM); + setState(290); + match(LPAREN); + setState(291); + expr(); + setState(292); + match(RPAREN); + } + break; + case FLOOR: + _localctx = new FloorFuncContext(_localctx); + enterOuterAlt(_localctx, 20); + { + setState(294); + match(FLOOR); + setState(295); + match(LPAREN); + setState(296); + expr(); + setState(297); + match(RPAREN); + } + break; + case CEIL: + _localctx = new CeilFuncContext(_localctx); + enterOuterAlt(_localctx, 21); + { + setState(299); + match(CEIL); + setState(300); + match(LPAREN); + setState(301); + expr(); + setState(302); + match(RPAREN); + } + break; + case ROUND: + _localctx = new RoundFuncContext(_localctx); + enterOuterAlt(_localctx, 22); + { + setState(304); + match(ROUND); + setState(305); + match(LPAREN); + setState(306); + expr(); + setState(307); + match(RPAREN); + } + break; + case GAMMA: + _localctx = new GammaFuncContext(_localctx); + enterOuterAlt(_localctx, 23); + { + setState(309); + match(GAMMA); + setState(310); + match(LPAREN); + setState(311); + expr(); + setState(312); + match(RPAREN); + } + break; + case SIGM: + _localctx = new SigmoidFuncContext(_localctx); + enterOuterAlt(_localctx, 24); + { + setState(314); + match(SIGM); + setState(315); + match(LPAREN); + setState(316); + expr(); + setState(317); + match(RPAREN); + } + break; + case SFFT: + _localctx = new SfftFuncContext(_localctx); + enterOuterAlt(_localctx, 25); + { + setState(319); + match(SFFT); + setState(320); + match(LPAREN); + setState(321); + expr(); + setState(322); + match(RPAREN); + } + break; + case SIFFT: + _localctx = new SifftFuncContext(_localctx); + enterOuterAlt(_localctx, 26); + { + setState(324); + match(SIFFT); + setState(325); + match(LPAREN); + setState(326); + expr(); + setState(327); + match(RPAREN); + } + break; + case ANGL: + _localctx = new AnglFuncContext(_localctx); + enterOuterAlt(_localctx, 27); + { + setState(329); + match(ANGL); + setState(330); + match(LPAREN); + setState(331); + expr(); + setState(332); + match(RPAREN); + } + break; + case PRNT: + _localctx = new PrintFuncContext(_localctx); + enterOuterAlt(_localctx, 28); + { + setState(334); + match(PRNT); + setState(335); + match(LPAREN); + setState(336); + expr(); + setState(337); + match(RPAREN); + } + break; + case FRACT: + _localctx = new FractFuncContext(_localctx); + enterOuterAlt(_localctx, 29); + { + setState(339); + match(FRACT); + setState(340); + match(LPAREN); + setState(341); + expr(); + setState(342); + match(RPAREN); + } + break; + case RELU: + _localctx = new ReluFuncContext(_localctx); + enterOuterAlt(_localctx, 30); + { + setState(344); + match(RELU); + setState(345); + match(LPAREN); + setState(346); + expr(); + setState(347); + match(RPAREN); + } + break; + case SOFTPLUS: + _localctx = new SoftplusFuncContext(_localctx); + enterOuterAlt(_localctx, 31); + { + setState(349); + match(SOFTPLUS); + setState(350); + match(LPAREN); + setState(351); + expr(); + setState(352); + match(RPAREN); + } + break; + case GELU: + _localctx = new GeluFuncContext(_localctx); + enterOuterAlt(_localctx, 32); + { + setState(354); + match(GELU); + setState(355); + match(LPAREN); + setState(356); + expr(); + setState(357); + match(RPAREN); + } + break; + case SIGN: + _localctx = new SignFuncContext(_localctx); + enterOuterAlt(_localctx, 33); + { + setState(359); + match(SIGN); + setState(360); + match(LPAREN); + setState(361); + expr(); + setState(362); + match(RPAREN); + } + break; + case PRINT_SHAPE: + _localctx = new PrintShapeFuncContext(_localctx); + enterOuterAlt(_localctx, 34); + { + setState(364); + match(PRINT_SHAPE); + setState(365); + match(LPAREN); + setState(366); + expr(); + setState(367); + match(RPAREN); + } + break; + case PINV: + _localctx = new PinvFuncContext(_localctx); + enterOuterAlt(_localctx, 35); + { + setState(369); + match(PINV); + setState(370); + match(LPAREN); + setState(371); + expr(); + setState(372); + match(RPAREN); + } + break; + case SUM: + _localctx = new SumFuncContext(_localctx); + enterOuterAlt(_localctx, 36); + { + setState(374); + match(SUM); + setState(375); + match(LPAREN); + setState(376); + expr(); + setState(377); + match(RPAREN); + } + break; + case MEAN: + _localctx = new MeanFuncContext(_localctx); + enterOuterAlt(_localctx, 37); + { + setState(379); + match(MEAN); + setState(380); + match(LPAREN); + setState(381); + expr(); + setState(382); + match(RPAREN); + } + break; + case STD: + _localctx = new StdFuncContext(_localctx); + enterOuterAlt(_localctx, 38); + { + setState(384); + match(STD); + setState(385); + match(LPAREN); + setState(386); + expr(); + setState(387); + match(RPAREN); + } + break; + case VAR: + _localctx = new VarFuncContext(_localctx); + enterOuterAlt(_localctx, 39); + { + setState(389); + match(VAR); + setState(390); + match(LPAREN); + setState(391); + expr(); + setState(392); + match(RPAREN); + } + break; + case SORT: + _localctx = new SortFuncContext(_localctx); + enterOuterAlt(_localctx, 40); + { + setState(394); + match(SORT); + setState(395); + match(LPAREN); + setState(396); + expr(); + setState(397); + match(RPAREN); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Func2Context extends ParserRuleContext { + public Func2Context(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_func2; } + + public Func2Context() { } + public void copyFrom(Func2Context ctx) { + super.copyFrom(ctx); + } + } + public static class TopkFuncContext extends Func2Context { + public TerminalNode TOPK() { return getToken(MathExprParser.TOPK, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TopkFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class PercentileFuncContext extends Func2Context { + public TerminalNode PERCENTILE() { return getToken(MathExprParser.PERCENTILE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public PercentileFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class CovFuncContext extends Func2Context { + public TerminalNode COV() { return getToken(MathExprParser.COV, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public CovFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class StepFuncContext extends Func2Context { + public TerminalNode STEP() { return getToken(MathExprParser.STEP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public StepFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class Atan2FuncContext extends Func2Context { + public TerminalNode ATAN2() { return getToken(MathExprParser.ATAN2, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public Atan2FuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class QuantileFuncContext extends Func2Context { + public TerminalNode QUANTILE() { return getToken(MathExprParser.QUANTILE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public QuantileFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class BotkFuncContext extends Func2Context { + public TerminalNode BOTK() { return getToken(MathExprParser.BOTK, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public BotkFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class TMaxFuncContext extends Func2Context { + public TerminalNode TMAX() { return getToken(MathExprParser.TMAX, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TMaxFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class CossimFuncContext extends Func2Context { + public TerminalNode COSSIM() { return getToken(MathExprParser.COSSIM, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public CossimFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class PowFuncContext extends Func2Context { + public TerminalNode POWE() { return getToken(MathExprParser.POWE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public PowFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class DotFuncContext extends Func2Context { + public TerminalNode DOT() { return getToken(MathExprParser.DOT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public DotFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class AppendFuncContext extends Func2Context { + public TerminalNode APPEND() { return getToken(MathExprParser.APPEND, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public AppendFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class FlipFuncContext extends Func2Context { + public TerminalNode FLIP() { return getToken(MathExprParser.FLIP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public FlipFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class QuartileFuncContext extends Func2Context { + public TerminalNode QUARTILE() { return getToken(MathExprParser.QUARTILE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public QuartileFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + public static class TMinFuncContext extends Func2Context { + public TerminalNode TMIN() { return getToken(MathExprParser.TMIN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public TMinFuncContext(Func2Context ctx) { copyFrom(ctx); } + } + + public final Func2Context func2() throws RecognitionException { + Func2Context _localctx = new Func2Context(_ctx, getState()); + enterRule(_localctx, 26, RULE_func2); + try { + setState(513); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) { + case 1: + _localctx = new PowFuncContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(401); + match(POWE); + setState(402); + match(LPAREN); + setState(403); + expr(); + setState(404); + match(COMMA); + setState(405); + expr(); + setState(406); + match(RPAREN); + } + break; + case 2: + _localctx = new Atan2FuncContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(408); + match(ATAN2); + setState(409); + match(LPAREN); + setState(410); + expr(); + setState(411); + match(COMMA); + setState(412); + expr(); + setState(413); + match(RPAREN); + } + break; + case 3: + _localctx = new TMinFuncContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(415); + match(TMIN); + setState(416); + match(LPAREN); + setState(417); + expr(); + setState(418); + match(COMMA); + setState(419); + expr(); + setState(420); + match(RPAREN); + } + break; + case 4: + _localctx = new TMaxFuncContext(_localctx); + enterOuterAlt(_localctx, 4); + { + setState(422); + match(TMAX); + setState(423); + match(LPAREN); + setState(424); + expr(); + setState(425); + match(COMMA); + setState(426); + expr(); + setState(427); + match(RPAREN); + } + break; + case 5: + _localctx = new StepFuncContext(_localctx); + enterOuterAlt(_localctx, 5); + { + setState(429); + match(STEP); + setState(430); + match(LPAREN); + setState(431); + expr(); + setState(432); + match(COMMA); + setState(433); + expr(); + setState(434); + match(RPAREN); + } + break; + case 6: + _localctx = new TopkFuncContext(_localctx); + enterOuterAlt(_localctx, 6); + { + setState(436); + match(TOPK); + setState(437); + match(LPAREN); + setState(438); + expr(); + setState(439); + match(COMMA); + setState(440); + expr(); + setState(441); + match(RPAREN); + } + break; + case 7: + _localctx = new BotkFuncContext(_localctx); + enterOuterAlt(_localctx, 7); + { + setState(443); + match(BOTK); + setState(444); + match(LPAREN); + setState(445); + expr(); + setState(446); + match(COMMA); + setState(447); + expr(); + setState(448); + match(RPAREN); + } + break; + case 8: + _localctx = new QuartileFuncContext(_localctx); + enterOuterAlt(_localctx, 8); + { + setState(450); + match(QUARTILE); + setState(451); + match(LPAREN); + setState(452); + expr(); + setState(453); + match(COMMA); + setState(454); + expr(); + setState(455); + match(RPAREN); + } + break; + case 9: + _localctx = new PercentileFuncContext(_localctx); + enterOuterAlt(_localctx, 9); + { + setState(457); + match(PERCENTILE); + setState(458); + match(LPAREN); + setState(459); + expr(); + setState(460); + match(COMMA); + setState(461); + expr(); + setState(462); + match(RPAREN); + } + break; + case 10: + _localctx = new QuantileFuncContext(_localctx); + enterOuterAlt(_localctx, 10); + { + setState(464); + match(QUANTILE); + setState(465); + match(LPAREN); + setState(466); + expr(); + setState(467); + match(COMMA); + setState(468); + expr(); + setState(469); + match(RPAREN); + } + break; + case 11: + _localctx = new QuantileFuncContext(_localctx); + enterOuterAlt(_localctx, 11); + { + setState(471); + match(QUANTILE); + setState(472); + match(LPAREN); + setState(473); + expr(); + setState(474); + match(COMMA); + setState(475); + expr(); + setState(476); + match(RPAREN); + } + break; + case 12: + _localctx = new DotFuncContext(_localctx); + enterOuterAlt(_localctx, 12); + { + setState(478); + match(DOT); + setState(479); + match(LPAREN); + setState(480); + expr(); + setState(481); + match(COMMA); + setState(482); + expr(); + setState(483); + match(RPAREN); + } + break; + case 13: + _localctx = new CossimFuncContext(_localctx); + enterOuterAlt(_localctx, 13); + { + setState(485); + match(COSSIM); + setState(486); + match(LPAREN); + setState(487); + expr(); + setState(488); + match(COMMA); + setState(489); + expr(); + setState(490); + match(RPAREN); + } + break; + case 14: + _localctx = new FlipFuncContext(_localctx); + enterOuterAlt(_localctx, 14); + { + setState(492); + match(FLIP); + setState(493); + match(LPAREN); + setState(494); + expr(); + setState(495); + match(COMMA); + setState(496); + expr(); + setState(497); + match(RPAREN); + } + break; + case 15: + _localctx = new CovFuncContext(_localctx); + enterOuterAlt(_localctx, 15); + { + setState(499); + match(COV); + setState(500); + match(LPAREN); + setState(501); + expr(); + setState(502); + match(COMMA); + setState(503); + expr(); + setState(504); + match(RPAREN); + } + break; + case 16: + _localctx = new AppendFuncContext(_localctx); + enterOuterAlt(_localctx, 16); + { + setState(506); + match(APPEND); + setState(507); + match(LPAREN); + setState(508); + expr(); + setState(509); + match(COMMA); + setState(510); + expr(); + setState(511); + match(RPAREN); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Func3Context extends ParserRuleContext { + public Func3Context(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_func3; } + + public Func3Context() { } + public void copyFrom(Func3Context ctx) { + super.copyFrom(ctx); + } + } + public static class MomentFuncContext extends Func3Context { + public TerminalNode MOMENT() { return getToken(MathExprParser.MOMENT, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public MomentFuncContext(Func3Context ctx) { copyFrom(ctx); } + } + public static class LerpFuncContext extends Func3Context { + public TerminalNode LERP() { return getToken(MathExprParser.LERP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public LerpFuncContext(Func3Context ctx) { copyFrom(ctx); } + } + public static class SmoothstepFuncContext extends Func3Context { + public TerminalNode SMOOTHSTEP() { return getToken(MathExprParser.SMOOTHSTEP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SmoothstepFuncContext(Func3Context ctx) { copyFrom(ctx); } + } + public static class RangeFuncContext extends Func3Context { + public TerminalNode RANGE() { return getToken(MathExprParser.RANGE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public RangeFuncContext(Func3Context ctx) { copyFrom(ctx); } + } + public static class ClampFuncContext extends Func3Context { + public TerminalNode CLAMP() { return getToken(MathExprParser.CLAMP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public ClampFuncContext(Func3Context ctx) { copyFrom(ctx); } + } + + public final Func3Context func3() throws RecognitionException { + Func3Context _localctx = new Func3Context(_ctx, getState()); + enterRule(_localctx, 28, RULE_func3); + try { + setState(560); + _errHandler.sync(this); + switch (_input.LA(1)) { + case CLAMP: + _localctx = new ClampFuncContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(515); + match(CLAMP); + setState(516); + match(LPAREN); + setState(517); + expr(); + setState(518); + match(COMMA); + setState(519); + expr(); + setState(520); + match(COMMA); + setState(521); + expr(); + setState(522); + match(RPAREN); + } + break; + case LERP: + _localctx = new LerpFuncContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(524); + match(LERP); + setState(525); + match(LPAREN); + setState(526); + expr(); + setState(527); + match(COMMA); + setState(528); + expr(); + setState(529); + match(COMMA); + setState(530); + expr(); + setState(531); + match(RPAREN); + } + break; + case SMOOTHSTEP: + _localctx = new SmoothstepFuncContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(533); + match(SMOOTHSTEP); + setState(534); + match(LPAREN); + setState(535); + expr(); + setState(536); + match(COMMA); + setState(537); + expr(); + setState(538); + match(COMMA); + setState(539); + expr(); + setState(540); + match(RPAREN); + } + break; + case RANGE: + _localctx = new RangeFuncContext(_localctx); + enterOuterAlt(_localctx, 4); + { + setState(542); + match(RANGE); + setState(543); + match(LPAREN); + setState(544); + expr(); + setState(545); + match(COMMA); + setState(546); + expr(); + setState(547); + match(COMMA); + setState(548); + expr(); + setState(549); + match(RPAREN); + } + break; + case MOMENT: + _localctx = new MomentFuncContext(_localctx); + enterOuterAlt(_localctx, 5); + { + setState(551); + match(MOMENT); + setState(552); + match(LPAREN); + setState(553); + expr(); + setState(554); + match(COMMA); + setState(555); + expr(); + setState(556); + match(COMMA); + setState(557); + expr(); + setState(558); + match(RPAREN); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Func4Context extends ParserRuleContext { + public Func4Context(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_func4; } + + public Func4Context() { } + public void copyFrom(Func4Context ctx) { + super.copyFrom(ctx); + } + } + public static class SwapFuncContext extends Func4Context { + public TerminalNode SWAP() { return getToken(MathExprParser.SWAP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public SwapFuncContext(Func4Context ctx) { copyFrom(ctx); } + } + + public final Func4Context func4() throws RecognitionException { + Func4Context _localctx = new Func4Context(_ctx, getState()); + enterRule(_localctx, 30, RULE_func4); + try { + _localctx = new SwapFuncContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(562); + match(SWAP); + setState(563); + match(LPAREN); + setState(564); + expr(); + setState(565); + match(COMMA); + setState(566); + expr(); + setState(567); + match(COMMA); + setState(568); + expr(); + setState(569); + match(COMMA); + setState(570); + expr(); + setState(571); + match(RPAREN); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class FuncNContext extends ParserRuleContext { + public FuncNContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_funcN; } + + public FuncNContext() { } + public void copyFrom(FuncNContext ctx) { + super.copyFrom(ctx); + } + } + public static class SMaxFuncContext extends FuncNContext { + public TerminalNode SMAX() { return getToken(MathExprParser.SMAX, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public SMaxFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + public static class MapFuncContext extends FuncNContext { + public TerminalNode MAP() { return getToken(MathExprParser.MAP, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public MapFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + public static class EzConvFuncContext extends FuncNContext { + public TerminalNode EZCONV() { return getToken(MathExprParser.EZCONV, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public EzConvFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + public static class PermuteFuncContext extends FuncNContext { + public TerminalNode PERM() { return getToken(MathExprParser.PERM, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public PermuteFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + public static class ReshapeFuncContext extends FuncNContext { + public TerminalNode RESHAPE() { return getToken(MathExprParser.RESHAPE, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode COMMA() { return getToken(MathExprParser.COMMA, 0); } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public ReshapeFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + public static class SMinFuncContext extends FuncNContext { + public TerminalNode SMIN() { return getToken(MathExprParser.SMIN, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public SMinFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + public static class ConvFuncContext extends FuncNContext { + public TerminalNode CONV() { return getToken(MathExprParser.CONV, 0); } + public TerminalNode LPAREN() { return getToken(MathExprParser.LPAREN, 0); } + public List expr() { + return getRuleContexts(ExprContext.class); + } + public ExprContext expr(int i) { + return getRuleContext(ExprContext.class,i); + } + public TerminalNode RPAREN() { return getToken(MathExprParser.RPAREN, 0); } + public List COMMA() { return getTokens(MathExprParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(MathExprParser.COMMA, i); + } + public ConvFuncContext(FuncNContext ctx) { copyFrom(ctx); } + } + + public final FuncNContext funcN() throws RecognitionException { + FuncNContext _localctx = new FuncNContext(_ctx, getState()); + enterRule(_localctx, 32, RULE_funcN); + int _la; + try { + setState(644); + _errHandler.sync(this); + switch (_input.LA(1)) { + case SMIN: + _localctx = new SMinFuncContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(573); + match(SMIN); + setState(574); + match(LPAREN); + setState(575); + expr(); + setState(580); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(576); + match(COMMA); + setState(577); + expr(); + } + } + setState(582); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(583); + match(RPAREN); + } + break; + case SMAX: + _localctx = new SMaxFuncContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(585); + match(SMAX); + setState(586); + match(LPAREN); + setState(587); + expr(); + setState(592); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(588); + match(COMMA); + setState(589); + expr(); + } + } + setState(594); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(595); + match(RPAREN); + } + break; + case MAP: + _localctx = new MapFuncContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(597); + match(MAP); + setState(598); + match(LPAREN); + setState(599); + expr(); + setState(602); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(600); + match(COMMA); + setState(601); + expr(); + } + } + setState(604); + _errHandler.sync(this); + _la = _input.LA(1); + } while ( _la==COMMA ); + setState(606); + match(RPAREN); + } + break; + case EZCONV: + _localctx = new EzConvFuncContext(_localctx); + enterOuterAlt(_localctx, 4); + { + setState(608); + match(EZCONV); + setState(609); + match(LPAREN); + setState(610); + expr(); + setState(613); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(611); + match(COMMA); + setState(612); + expr(); + } + } + setState(615); + _errHandler.sync(this); + _la = _input.LA(1); + } while ( _la==COMMA ); + setState(617); + match(RPAREN); + } + break; + case CONV: + _localctx = new ConvFuncContext(_localctx); + enterOuterAlt(_localctx, 5); + { + setState(619); + match(CONV); + setState(620); + match(LPAREN); + setState(621); + expr(); + setState(624); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(622); + match(COMMA); + setState(623); + expr(); + } + } + setState(626); + _errHandler.sync(this); + _la = _input.LA(1); + } while ( _la==COMMA ); + setState(628); + match(RPAREN); + } + break; + case PERM: + _localctx = new PermuteFuncContext(_localctx); + enterOuterAlt(_localctx, 6); + { + setState(630); + match(PERM); + setState(631); + match(LPAREN); + setState(632); + expr(); + setState(633); + match(COMMA); + setState(634); + expr(); + setState(635); + match(RPAREN); + } + break; + case RESHAPE: + _localctx = new ReshapeFuncContext(_localctx); + enterOuterAlt(_localctx, 7); + { + setState(637); + match(RESHAPE); + setState(638); + match(LPAREN); + setState(639); + expr(); + setState(640); + match(COMMA); + setState(641); + expr(); + setState(642); + match(RPAREN); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) { + switch (ruleIndex) { + case 4: + return compExpr_sempred((CompExprContext)_localctx, predIndex); + case 5: + return addExpr_sempred((AddExprContext)_localctx, predIndex); + case 6: + return mulExpr_sempred((MulExprContext)_localctx, predIndex); + case 9: + return indexExpr_sempred((IndexExprContext)_localctx, predIndex); + } + return true; + } + private boolean compExpr_sempred(CompExprContext _localctx, int predIndex) { + switch (predIndex) { + case 0: + return precpred(_ctx, 7); + case 1: + return precpred(_ctx, 6); + case 2: + return precpred(_ctx, 5); + case 3: + return precpred(_ctx, 4); + case 4: + return precpred(_ctx, 3); + case 5: + return precpred(_ctx, 2); + } + return true; + } + private boolean addExpr_sempred(AddExprContext _localctx, int predIndex) { + switch (predIndex) { + case 6: + return precpred(_ctx, 3); + case 7: + return precpred(_ctx, 2); + } + return true; + } + private boolean mulExpr_sempred(MulExprContext _localctx, int predIndex) { + switch (predIndex) { + case 8: + return precpred(_ctx, 4); + case 9: + return precpred(_ctx, 3); + case 10: + return precpred(_ctx, 2); + } + return true; + } + private boolean indexExpr_sempred(IndexExprContext _localctx, int predIndex) { + switch (predIndex) { + case 11: + return precpred(_ctx, 2); + } + return true; + } + + public static final String _serializedATN = + "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3^\u0289\4\2\t\2\4"+ + "\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t"+ + "\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+ + "\3\2\7\2&\n\2\f\2\16\2)\13\2\3\2\3\2\3\2\3\3\3\3\3\3\5\3\61\n\3\3\3\3"+ + "\3\3\3\3\3\3\3\3\4\3\4\3\4\7\4;\n\4\f\4\16\4>\13\4\3\5\3\5\5\5B\n\5\3"+ + "\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6"+ + "\3\6\3\6\3\6\7\6Y\n\6\f\6\16\6\\\13\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7"+ + "\3\7\7\7g\n\7\f\7\16\7j\13\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3"+ + "\b\3\b\7\bx\n\b\f\b\16\b{\13\b\3\t\3\t\3\t\3\t\3\t\5\t\u0082\n\t\3\n\3"+ + "\n\3\n\3\n\3\n\5\n\u0089\n\n\3\13\3\13\3\13\3\13\3\13\3\13\3\13\3\13\7"+ + "\13\u0093\n\13\f\13\16\13\u0096\13\13\3\13\3\13\7\13\u009a\n\13\f\13\16"+ + "\13\u009d\13\13\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3"+ + "\f\3\f\3\f\3\f\3\f\3\f\3\f\7\f\u00b3\n\f\f\f\16\f\u00b6\13\f\3\f\3\f\3"+ + "\f\3\f\3\f\5\f\u00bd\n\f\3\f\5\f\u00c0\n\f\3\r\3\r\3\r\7\r\u00c5\n\r\f"+ + "\r\16\r\u00c8\13\r\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3"+ + "\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\5\16\u0192\n\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\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\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\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\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\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\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\u0204\n\17"+ + "\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20"+ + "\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20"+ + "\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20"+ + "\3\20\3\20\3\20\5\20\u0233\n\20\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21"+ + "\3\21\3\21\3\21\3\22\3\22\3\22\3\22\3\22\7\22\u0245\n\22\f\22\16\22\u0248"+ + "\13\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\7\22\u0251\n\22\f\22\16\22\u0254"+ + "\13\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\6\22\u025d\n\22\r\22\16\22\u025e"+ + "\3\22\3\22\3\22\3\22\3\22\3\22\3\22\6\22\u0268\n\22\r\22\16\22\u0269\3"+ + "\22\3\22\3\22\3\22\3\22\3\22\3\22\6\22\u0273\n\22\r\22\16\22\u0274\3\22"+ + "\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22"+ + "\3\22\5\22\u0287\n\22\3\22\2\6\n\f\16\24\23\2\4\6\b\n\f\16\20\22\24\26"+ + "\30\32\34\36 \"\2\2\2\u02de\2\'\3\2\2\2\4-\3\2\2\2\6\67\3\2\2\2\bA\3\2"+ + "\2\2\nC\3\2\2\2\f]\3\2\2\2\16k\3\2\2\2\20\u0081\3\2\2\2\22\u0088\3\2\2"+ + "\2\24\u008a\3\2\2\2\26\u00bf\3\2\2\2\30\u00c1\3\2\2\2\32\u0191\3\2\2\2"+ + "\34\u0203\3\2\2\2\36\u0232\3\2\2\2 \u0234\3\2\2\2\"\u0286\3\2\2\2$&\5"+ + "\4\3\2%$\3\2\2\2&)\3\2\2\2\'%\3\2\2\2\'(\3\2\2\2(*\3\2\2\2)\'\3\2\2\2"+ + "*+\5\b\5\2+,\7\2\2\3,\3\3\2\2\2-.\7]\2\2.\60\7T\2\2/\61\5\6\4\2\60/\3"+ + "\2\2\2\60\61\3\2\2\2\61\62\3\2\2\2\62\63\7U\2\2\63\64\7X\2\2\64\65\5\b"+ + "\5\2\65\66\7W\2\2\66\5\3\2\2\2\67<\7]\2\289\7V\2\29;\7]\2\2:8\3\2\2\2"+ + ";>\3\2\2\2<:\3\2\2\2<=\3\2\2\2=\7\3\2\2\2><\3\2\2\2?B\5\26\f\2@B\5\n\6"+ + "\2A?\3\2\2\2A@\3\2\2\2B\t\3\2\2\2CD\b\6\1\2DE\5\f\7\2EZ\3\2\2\2FG\f\t"+ + "\2\2GH\7N\2\2HY\5\f\7\2IJ\f\b\2\2JK\7M\2\2KY\5\f\7\2LM\f\7\2\2MN\7P\2"+ + "\2NY\5\f\7\2OP\f\6\2\2PQ\7O\2\2QY\5\f\7\2RS\f\5\2\2ST\7Q\2\2TY\5\f\7\2"+ + "UV\f\4\2\2VW\7R\2\2WY\5\f\7\2XF\3\2\2\2XI\3\2\2\2XL\3\2\2\2XO\3\2\2\2"+ + "XR\3\2\2\2XU\3\2\2\2Y\\\3\2\2\2ZX\3\2\2\2Z[\3\2\2\2[\13\3\2\2\2\\Z\3\2"+ + "\2\2]^\b\7\1\2^_\5\16\b\2_h\3\2\2\2`a\f\5\2\2ab\7G\2\2bg\5\16\b\2cd\f"+ + "\4\2\2de\7H\2\2eg\5\16\b\2f`\3\2\2\2fc\3\2\2\2gj\3\2\2\2hf\3\2\2\2hi\3"+ + "\2\2\2i\r\3\2\2\2jh\3\2\2\2kl\b\b\1\2lm\5\20\t\2my\3\2\2\2no\f\6\2\2o"+ + "p\7I\2\2px\5\20\t\2qr\f\5\2\2rs\7J\2\2sx\5\20\t\2tu\f\4\2\2uv\7K\2\2v"+ + "x\5\20\t\2wn\3\2\2\2wq\3\2\2\2wt\3\2\2\2x{\3\2\2\2yw\3\2\2\2yz\3\2\2\2"+ + "z\17\3\2\2\2{y\3\2\2\2|}\5\22\n\2}~\7L\2\2~\177\5\20\t\2\177\u0082\3\2"+ + "\2\2\u0080\u0082\5\22\n\2\u0081|\3\2\2\2\u0081\u0080\3\2\2\2\u0082\21"+ + "\3\2\2\2\u0083\u0084\7G\2\2\u0084\u0089\5\22\n\2\u0085\u0086\7H\2\2\u0086"+ + "\u0089\5\22\n\2\u0087\u0089\5\24\13\2\u0088\u0083\3\2\2\2\u0088\u0085"+ + "\3\2\2\2\u0088\u0087\3\2\2\2\u0089\23\3\2\2\2\u008a\u008b\b\13\1\2\u008b"+ + "\u008c\5\26\f\2\u008c\u009b\3\2\2\2\u008d\u008e\f\4\2\2\u008e\u008f\7"+ + "Y\2\2\u008f\u0094\5\b\5\2\u0090\u0091\7V\2\2\u0091\u0093\5\b\5\2\u0092"+ + "\u0090\3\2\2\2\u0093\u0096\3\2\2\2\u0094\u0092\3\2\2\2\u0094\u0095\3\2"+ + "\2\2\u0095\u0097\3\2\2\2\u0096\u0094\3\2\2\2\u0097\u0098\7Z\2\2\u0098"+ + "\u009a\3\2\2\2\u0099\u008d\3\2\2\2\u009a\u009d\3\2\2\2\u009b\u0099\3\2"+ + "\2\2\u009b\u009c\3\2\2\2\u009c\25\3\2\2\2\u009d\u009b\3\2\2\2\u009e\u00c0"+ + "\5\32\16\2\u009f\u00c0\5\34\17\2\u00a0\u00c0\5\36\20\2\u00a1\u00c0\5 "+ + "\21\2\u00a2\u00c0\5\"\22\2\u00a3\u00c0\7]\2\2\u00a4\u00c0\7\\\2\2\u00a5"+ + "\u00c0\7[\2\2\u00a6\u00a7\7T\2\2\u00a7\u00a8\5\b\5\2\u00a8\u00a9\7U\2"+ + "\2\u00a9\u00c0\3\2\2\2\u00aa\u00ab\7S\2\2\u00ab\u00ac\5\b\5\2\u00ac\u00ad"+ + "\7S\2\2\u00ad\u00c0\3\2\2\2\u00ae\u00af\7Y\2\2\u00af\u00b4\5\b\5\2\u00b0"+ + "\u00b1\7V\2\2\u00b1\u00b3\5\b\5\2\u00b2\u00b0\3\2\2\2\u00b3\u00b6\3\2"+ + "\2\2\u00b4\u00b2\3\2\2\2\u00b4\u00b5\3\2\2\2\u00b5\u00b7\3\2\2\2\u00b6"+ + "\u00b4\3\2\2\2\u00b7\u00b8\7Z\2\2\u00b8\u00c0\3\2\2\2\u00b9\u00ba\7]\2"+ + "\2\u00ba\u00bc\7T\2\2\u00bb\u00bd\5\30\r\2\u00bc\u00bb\3\2\2\2\u00bc\u00bd"+ + "\3\2\2\2\u00bd\u00be\3\2\2\2\u00be\u00c0\7U\2\2\u00bf\u009e\3\2\2\2\u00bf"+ + "\u009f\3\2\2\2\u00bf\u00a0\3\2\2\2\u00bf\u00a1\3\2\2\2\u00bf\u00a2\3\2"+ + "\2\2\u00bf\u00a3\3\2\2\2\u00bf\u00a4\3\2\2\2\u00bf\u00a5\3\2\2\2\u00bf"+ + "\u00a6\3\2\2\2\u00bf\u00aa\3\2\2\2\u00bf\u00ae\3\2\2\2\u00bf\u00b9\3\2"+ + "\2\2\u00c0\27\3\2\2\2\u00c1\u00c6\5\b\5\2\u00c2\u00c3\7V\2\2\u00c3\u00c5"+ + "\5\b\5\2\u00c4\u00c2\3\2\2\2\u00c5\u00c8\3\2\2\2\u00c6\u00c4\3\2\2\2\u00c6"+ + "\u00c7\3\2\2\2\u00c7\31\3\2\2\2\u00c8\u00c6\3\2\2\2\u00c9\u00ca\7\3\2"+ + "\2\u00ca\u00cb\7T\2\2\u00cb\u00cc\5\b\5\2\u00cc\u00cd\7U\2\2\u00cd\u0192"+ + "\3\2\2\2\u00ce\u00cf\7\4\2\2\u00cf\u00d0\7T\2\2\u00d0\u00d1\5\b\5\2\u00d1"+ + "\u00d2\7U\2\2\u00d2\u0192\3\2\2\2\u00d3\u00d4\7\5\2\2\u00d4\u00d5\7T\2"+ + "\2\u00d5\u00d6\5\b\5\2\u00d6\u00d7\7U\2\2\u00d7\u0192\3\2\2\2\u00d8\u00d9"+ + "\7\6\2\2\u00d9\u00da\7T\2\2\u00da\u00db\5\b\5\2\u00db\u00dc\7U\2\2\u00dc"+ + "\u0192\3\2\2\2\u00dd\u00de\7\7\2\2\u00de\u00df\7T\2\2\u00df\u00e0\5\b"+ + "\5\2\u00e0\u00e1\7U\2\2\u00e1\u0192\3\2\2\2\u00e2\u00e3\7\b\2\2\u00e3"+ + "\u00e4\7T\2\2\u00e4\u00e5\5\b\5\2\u00e5\u00e6\7U\2\2\u00e6\u0192\3\2\2"+ + "\2\u00e7\u00e8\7\n\2\2\u00e8\u00e9\7T\2\2\u00e9\u00ea\5\b\5\2\u00ea\u00eb"+ + "\7U\2\2\u00eb\u0192\3\2\2\2\u00ec\u00ed\7\13\2\2\u00ed\u00ee\7T\2\2\u00ee"+ + "\u00ef\5\b\5\2\u00ef\u00f0\7U\2\2\u00f0\u0192\3\2\2\2\u00f1\u00f2\7\f"+ + "\2\2\u00f2\u00f3\7T\2\2\u00f3\u00f4\5\b\5\2\u00f4\u00f5\7U\2\2\u00f5\u0192"+ + "\3\2\2\2\u00f6\u00f7\7\r\2\2\u00f7\u00f8\7T\2\2\u00f8\u00f9\5\b\5\2\u00f9"+ + "\u00fa\7U\2\2\u00fa\u0192\3\2\2\2\u00fb\u00fc\7\16\2\2\u00fc\u00fd\7T"+ + "\2\2\u00fd\u00fe\5\b\5\2\u00fe\u00ff\7U\2\2\u00ff\u0192\3\2\2\2\u0100"+ + "\u0101\7\17\2\2\u0101\u0102\7T\2\2\u0102\u0103\5\b\5\2\u0103\u0104\7U"+ + "\2\2\u0104\u0192\3\2\2\2\u0105\u0106\7\20\2\2\u0106\u0107\7T\2\2\u0107"+ + "\u0108\5\b\5\2\u0108\u0109\7U\2\2\u0109\u0192\3\2\2\2\u010a\u010b\7\21"+ + "\2\2\u010b\u010c\7T\2\2\u010c\u010d\5\b\5\2\u010d\u010e\7U\2\2\u010e\u0192"+ + "\3\2\2\2\u010f\u0110\7\22\2\2\u0110\u0111\7T\2\2\u0111\u0112\5\b\5\2\u0112"+ + "\u0113\7U\2\2\u0113\u0192\3\2\2\2\u0114\u0115\7\23\2\2\u0115\u0116\7T"+ + "\2\2\u0116\u0117\5\b\5\2\u0117\u0118\7U\2\2\u0118\u0192\3\2\2\2\u0119"+ + "\u011a\7\24\2\2\u011a\u011b\7T\2\2\u011b\u011c\5\b\5\2\u011c\u011d\7U"+ + "\2\2\u011d\u0192\3\2\2\2\u011e\u011f\7\31\2\2\u011f\u0120\7T\2\2\u0120"+ + "\u0121\5\b\5\2\u0121\u0122\7U\2\2\u0122\u0192\3\2\2\2\u0123\u0124\7\32"+ + "\2\2\u0124\u0125\7T\2\2\u0125\u0126\5\b\5\2\u0126\u0127\7U\2\2\u0127\u0192"+ + "\3\2\2\2\u0128\u0129\7\33\2\2\u0129\u012a\7T\2\2\u012a\u012b\5\b\5\2\u012b"+ + "\u012c\7U\2\2\u012c\u0192\3\2\2\2\u012d\u012e\7\34\2\2\u012e\u012f\7T"+ + "\2\2\u012f\u0130\5\b\5\2\u0130\u0131\7U\2\2\u0131\u0192\3\2\2\2\u0132"+ + "\u0133\7\35\2\2\u0133\u0134\7T\2\2\u0134\u0135\5\b\5\2\u0135\u0136\7U"+ + "\2\2\u0136\u0192\3\2\2\2\u0137\u0138\7\36\2\2\u0138\u0139\7T\2\2\u0139"+ + "\u013a\5\b\5\2\u013a\u013b\7U\2\2\u013b\u0192\3\2\2\2\u013c\u013d\7 \2"+ + "\2\u013d\u013e\7T\2\2\u013e\u013f\5\b\5\2\u013f\u0140\7U\2\2\u0140\u0192"+ + "\3\2\2\2\u0141\u0142\7\"\2\2\u0142\u0143\7T\2\2\u0143\u0144\5\b\5\2\u0144"+ + "\u0145\7U\2\2\u0145\u0192\3\2\2\2\u0146\u0147\7#\2\2\u0147\u0148\7T\2"+ + "\2\u0148\u0149\5\b\5\2\u0149\u014a\7U\2\2\u014a\u0192\3\2\2\2\u014b\u014c"+ + "\7$\2\2\u014c\u014d\7T\2\2\u014d\u014e\5\b\5\2\u014e\u014f\7U\2\2\u014f"+ + "\u0192\3\2\2\2\u0150\u0151\7%\2\2\u0151\u0152\7T\2\2\u0152\u0153\5\b\5"+ + "\2\u0153\u0154\7U\2\2\u0154\u0192\3\2\2\2\u0155\u0156\7*\2\2\u0156\u0157"+ + "\7T\2\2\u0157\u0158\5\b\5\2\u0158\u0159\7U\2\2\u0159\u0192\3\2\2\2\u015a"+ + "\u015b\7+\2\2\u015b\u015c\7T\2\2\u015c\u015d\5\b\5\2\u015d\u015e\7U\2"+ + "\2\u015e\u0192\3\2\2\2\u015f\u0160\7,\2\2\u0160\u0161\7T\2\2\u0161\u0162"+ + "\5\b\5\2\u0162\u0163\7U\2\2\u0163\u0192\3\2\2\2\u0164\u0165\7-\2\2\u0165"+ + "\u0166\7T\2\2\u0166\u0167\5\b\5\2\u0167\u0168\7U\2\2\u0168\u0192\3\2\2"+ + "\2\u0169\u016a\7.\2\2\u016a\u016b\7T\2\2\u016b\u016c\5\b\5\2\u016c\u016d"+ + "\7U\2\2\u016d\u0192\3\2\2\2\u016e\u016f\7&\2\2\u016f\u0170\7T\2\2\u0170"+ + "\u0171\5\b\5\2\u0171\u0172\7U\2\2\u0172\u0192\3\2\2\2\u0173\u0174\78\2"+ + "\2\u0174\u0175\7T\2\2\u0175\u0176\5\b\5\2\u0176\u0177\7U\2\2\u0177\u0192"+ + "\3\2\2\2\u0178\u0179\79\2\2\u0179\u017a\7T\2\2\u017a\u017b\5\b\5\2\u017b"+ + "\u017c\7U\2\2\u017c\u0192\3\2\2\2\u017d\u017e\7:\2\2\u017e\u017f\7T\2"+ + "\2\u017f\u0180\5\b\5\2\u0180\u0181\7U\2\2\u0181\u0192\3\2\2\2\u0182\u0183"+ + "\7;\2\2\u0183\u0184\7T\2\2\u0184\u0185\5\b\5\2\u0185\u0186\7U\2\2\u0186"+ + "\u0192\3\2\2\2\u0187\u0188\7<\2\2\u0188\u0189\7T\2\2\u0189\u018a\5\b\5"+ + "\2\u018a\u018b\7U\2\2\u018b\u0192\3\2\2\2\u018c\u018d\7E\2\2\u018d\u018e"+ + "\7T\2\2\u018e\u018f\5\b\5\2\u018f\u0190\7U\2\2\u0190\u0192\3\2\2\2\u0191"+ + "\u00c9\3\2\2\2\u0191\u00ce\3\2\2\2\u0191\u00d3\3\2\2\2\u0191\u00d8\3\2"+ + "\2\2\u0191\u00dd\3\2\2\2\u0191\u00e2\3\2\2\2\u0191\u00e7\3\2\2\2\u0191"+ + "\u00ec\3\2\2\2\u0191\u00f1\3\2\2\2\u0191\u00f6\3\2\2\2\u0191\u00fb\3\2"+ + "\2\2\u0191\u0100\3\2\2\2\u0191\u0105\3\2\2\2\u0191\u010a\3\2\2\2\u0191"+ + "\u010f\3\2\2\2\u0191\u0114\3\2\2\2\u0191\u0119\3\2\2\2\u0191\u011e\3\2"+ + "\2\2\u0191\u0123\3\2\2\2\u0191\u0128\3\2\2\2\u0191\u012d\3\2\2\2\u0191"+ + "\u0132\3\2\2\2\u0191\u0137\3\2\2\2\u0191\u013c\3\2\2\2\u0191\u0141\3\2"+ + "\2\2\u0191\u0146\3\2\2\2\u0191\u014b\3\2\2\2\u0191\u0150\3\2\2\2\u0191"+ + "\u0155\3\2\2\2\u0191\u015a\3\2\2\2\u0191\u015f\3\2\2\2\u0191\u0164\3\2"+ + "\2\2\u0191\u0169\3\2\2\2\u0191\u016e\3\2\2\2\u0191\u0173\3\2\2\2\u0191"+ + "\u0178\3\2\2\2\u0191\u017d\3\2\2\2\u0191\u0182\3\2\2\2\u0191\u0187\3\2"+ + "\2\2\u0191\u018c\3\2\2\2\u0192\33\3\2\2\2\u0193\u0194\7\37\2\2\u0194\u0195"+ + "\7T\2\2\u0195\u0196\5\b\5\2\u0196\u0197\7V\2\2\u0197\u0198\5\b\5\2\u0198"+ + "\u0199\7U\2\2\u0199\u0204\3\2\2\2\u019a\u019b\7\t\2\2\u019b\u019c\7T\2"+ + "\2\u019c\u019d\5\b\5\2\u019d\u019e\7V\2\2\u019e\u019f\5\b\5\2\u019f\u01a0"+ + "\7U\2\2\u01a0\u0204\3\2\2\2\u01a1\u01a2\7\27\2\2\u01a2\u01a3\7T\2\2\u01a3"+ + "\u01a4\5\b\5\2\u01a4\u01a5\7V\2\2\u01a5\u01a6\5\b\5\2\u01a6\u01a7\7U\2"+ + "\2\u01a7\u0204\3\2\2\2\u01a8\u01a9\7\30\2\2\u01a9\u01aa\7T\2\2\u01aa\u01ab"+ + "\5\b\5\2\u01ab\u01ac\7V\2\2\u01ac\u01ad\5\b\5\2\u01ad\u01ae\7U\2\2\u01ae"+ + "\u0204\3\2\2\2\u01af\u01b0\7(\2\2\u01b0\u01b1\7T\2\2\u01b1\u01b2\5\b\5"+ + "\2\u01b2\u01b3\7V\2\2\u01b3\u01b4\5\b\5\2\u01b4\u01b5\7U\2\2\u01b5\u0204"+ + "\3\2\2\2\u01b6\u01b7\7\66\2\2\u01b7\u01b8\7T\2\2\u01b8\u01b9\5\b\5\2\u01b9"+ + "\u01ba\7V\2\2\u01ba\u01bb\5\b\5\2\u01bb\u01bc\7U\2\2\u01bc\u0204\3\2\2"+ + "\2\u01bd\u01be\7\67\2\2\u01be\u01bf\7T\2\2\u01bf\u01c0\5\b\5\2\u01c0\u01c1"+ + "\7V\2\2\u01c1\u01c2\5\b\5\2\u01c2\u01c3\7U\2\2\u01c3\u0204\3\2\2\2\u01c4"+ + "\u01c5\7=\2\2\u01c5\u01c6\7T\2\2\u01c6\u01c7\5\b\5\2\u01c7\u01c8\7V\2"+ + "\2\u01c8\u01c9\5\b\5\2\u01c9\u01ca\7U\2\2\u01ca\u0204\3\2\2\2\u01cb\u01cc"+ + "\7>\2\2\u01cc\u01cd\7T\2\2\u01cd\u01ce\5\b\5\2\u01ce\u01cf\7V\2\2\u01cf"+ + "\u01d0\5\b\5\2\u01d0\u01d1\7U\2\2\u01d1\u0204\3\2\2\2\u01d2\u01d3\7?\2"+ + "\2\u01d3\u01d4\7T\2\2\u01d4\u01d5\5\b\5\2\u01d5\u01d6\7V\2\2\u01d6\u01d7"+ + "\5\b\5\2\u01d7\u01d8\7U\2\2\u01d8\u0204\3\2\2\2\u01d9\u01da\7?\2\2\u01da"+ + "\u01db\7T\2\2\u01db\u01dc\5\b\5\2\u01dc\u01dd\7V\2\2\u01dd\u01de\5\b\5"+ + "\2\u01de\u01df\7U\2\2\u01df\u0204\3\2\2\2\u01e0\u01e1\7@\2\2\u01e1\u01e2"+ + "\7T\2\2\u01e2\u01e3\5\b\5\2\u01e3\u01e4\7V\2\2\u01e4\u01e5\5\b\5\2\u01e5"+ + "\u01e6\7U\2\2\u01e6\u0204\3\2\2\2\u01e7\u01e8\7B\2\2\u01e8\u01e9\7T\2"+ + "\2\u01e9\u01ea\5\b\5\2\u01ea\u01eb\7V\2\2\u01eb\u01ec\5\b\5\2\u01ec\u01ed"+ + "\7U\2\2\u01ed\u0204\3\2\2\2\u01ee\u01ef\7C\2\2\u01ef\u01f0\7T\2\2\u01f0"+ + "\u01f1\5\b\5\2\u01f1\u01f2\7V\2\2\u01f2\u01f3\5\b\5\2\u01f3\u01f4\7U\2"+ + "\2\u01f4\u0204\3\2\2\2\u01f5\u01f6\7D\2\2\u01f6\u01f7\7T\2\2\u01f7\u01f8"+ + "\5\b\5\2\u01f8\u01f9\7V\2\2\u01f9\u01fa\5\b\5\2\u01fa\u01fb\7U\2\2\u01fb"+ + "\u0204\3\2\2\2\u01fc\u01fd\7F\2\2\u01fd\u01fe\7T\2\2\u01fe\u01ff\5\b\5"+ + "\2\u01ff\u0200\7V\2\2\u0200\u0201\5\b\5\2\u0201\u0202\7U\2\2\u0202\u0204"+ + "\3\2\2\2\u0203\u0193\3\2\2\2\u0203\u019a\3\2\2\2\u0203\u01a1\3\2\2\2\u0203"+ + "\u01a8\3\2\2\2\u0203\u01af\3\2\2\2\u0203\u01b6\3\2\2\2\u0203\u01bd\3\2"+ + "\2\2\u0203\u01c4\3\2\2\2\u0203\u01cb\3\2\2\2\u0203\u01d2\3\2\2\2\u0203"+ + "\u01d9\3\2\2\2\u0203\u01e0\3\2\2\2\u0203\u01e7\3\2\2\2\u0203\u01ee\3\2"+ + "\2\2\u0203\u01f5\3\2\2\2\u0203\u01fc\3\2\2\2\u0204\35\3\2\2\2\u0205\u0206"+ + "\7!\2\2\u0206\u0207\7T\2\2\u0207\u0208\5\b\5\2\u0208\u0209\7V\2\2\u0209"+ + "\u020a\5\b\5\2\u020a\u020b\7V\2\2\u020b\u020c\5\b\5\2\u020c\u020d\7U\2"+ + "\2\u020d\u0233\3\2\2\2\u020e\u020f\7\'\2\2\u020f\u0210\7T\2\2\u0210\u0211"+ + "\5\b\5\2\u0211\u0212\7V\2\2\u0212\u0213\5\b\5\2\u0213\u0214\7V\2\2\u0214"+ + "\u0215\5\b\5\2\u0215\u0216\7U\2\2\u0216\u0233\3\2\2\2\u0217\u0218\7)\2"+ + "\2\u0218\u0219\7T\2\2\u0219\u021a\5\b\5\2\u021a\u021b\7V\2\2\u021b\u021c"+ + "\5\b\5\2\u021c\u021d\7V\2\2\u021d\u021e\5\b\5\2\u021e\u021f\7U\2\2\u021f"+ + "\u0233\3\2\2\2\u0220\u0221\7\65\2\2\u0221\u0222\7T\2\2\u0222\u0223\5\b"+ + "\5\2\u0223\u0224\7V\2\2\u0224\u0225\5\b\5\2\u0225\u0226\7V\2\2\u0226\u0227"+ + "\5\b\5\2\u0227\u0228\7U\2\2\u0228\u0233\3\2\2\2\u0229\u022a\7A\2\2\u022a"+ + "\u022b\7T\2\2\u022b\u022c\5\b\5\2\u022c\u022d\7V\2\2\u022d\u022e\5\b\5"+ + "\2\u022e\u022f\7V\2\2\u022f\u0230\5\b\5\2\u0230\u0231\7U\2\2\u0231\u0233"+ + "\3\2\2\2\u0232\u0205\3\2\2\2\u0232\u020e\3\2\2\2\u0232\u0217\3\2\2\2\u0232"+ + "\u0220\3\2\2\2\u0232\u0229\3\2\2\2\u0233\37\3\2\2\2\u0234\u0235\7\62\2"+ + "\2\u0235\u0236\7T\2\2\u0236\u0237\5\b\5\2\u0237\u0238\7V\2\2\u0238\u0239"+ + "\5\b\5\2\u0239\u023a\7V\2\2\u023a\u023b\5\b\5\2\u023b\u023c\7V\2\2\u023c"+ + "\u023d\5\b\5\2\u023d\u023e\7U\2\2\u023e!\3\2\2\2\u023f\u0240\7\25\2\2"+ + "\u0240\u0241\7T\2\2\u0241\u0246\5\b\5\2\u0242\u0243\7V\2\2\u0243\u0245"+ + "\5\b\5\2\u0244\u0242\3\2\2\2\u0245\u0248\3\2\2\2\u0246\u0244\3\2\2\2\u0246"+ + "\u0247\3\2\2\2\u0247\u0249\3\2\2\2\u0248\u0246\3\2\2\2\u0249\u024a\7U"+ + "\2\2\u024a\u0287\3\2\2\2\u024b\u024c\7\26\2\2\u024c\u024d\7T\2\2\u024d"+ + "\u0252\5\b\5\2\u024e\u024f\7V\2\2\u024f\u0251\5\b\5\2\u0250\u024e\3\2"+ + "\2\2\u0251\u0254\3\2\2\2\u0252\u0250\3\2\2\2\u0252\u0253\3\2\2\2\u0253"+ + "\u0255\3\2\2\2\u0254\u0252\3\2\2\2\u0255\u0256\7U\2\2\u0256\u0287\3\2"+ + "\2\2\u0257\u0258\7/\2\2\u0258\u0259\7T\2\2\u0259\u025c\5\b\5\2\u025a\u025b"+ + "\7V\2\2\u025b\u025d\5\b\5\2\u025c\u025a\3\2\2\2\u025d\u025e\3\2\2\2\u025e"+ + "\u025c\3\2\2\2\u025e\u025f\3\2\2\2\u025f\u0260\3\2\2\2\u0260\u0261\7U"+ + "\2\2\u0261\u0287\3\2\2\2\u0262\u0263\7\60\2\2\u0263\u0264\7T\2\2\u0264"+ + "\u0267\5\b\5\2\u0265\u0266\7V\2\2\u0266\u0268\5\b\5\2\u0267\u0265\3\2"+ + "\2\2\u0268\u0269\3\2\2\2\u0269\u0267\3\2\2\2\u0269\u026a\3\2\2\2\u026a"+ + "\u026b\3\2\2\2\u026b\u026c\7U\2\2\u026c\u0287\3\2\2\2\u026d\u026e\7\61"+ + "\2\2\u026e\u026f\7T\2\2\u026f\u0272\5\b\5\2\u0270\u0271\7V\2\2\u0271\u0273"+ + "\5\b\5\2\u0272\u0270\3\2\2\2\u0273\u0274\3\2\2\2\u0274\u0272\3\2\2\2\u0274"+ + "\u0275\3\2\2\2\u0275\u0276\3\2\2\2\u0276\u0277\7U\2\2\u0277\u0287\3\2"+ + "\2\2\u0278\u0279\7\63\2\2\u0279\u027a\7T\2\2\u027a\u027b\5\b\5\2\u027b"+ + "\u027c\7V\2\2\u027c\u027d\5\b\5\2\u027d\u027e\7U\2\2\u027e\u0287\3\2\2"+ + "\2\u027f\u0280\7\64\2\2\u0280\u0281\7T\2\2\u0281\u0282\5\b\5\2\u0282\u0283"+ + "\7V\2\2\u0283\u0284\5\b\5\2\u0284\u0285\7U\2\2\u0285\u0287\3\2\2\2\u0286"+ + "\u023f\3\2\2\2\u0286\u024b\3\2\2\2\u0286\u0257\3\2\2\2\u0286\u0262\3\2"+ + "\2\2\u0286\u026d\3\2\2\2\u0286\u0278\3\2\2\2\u0286\u027f\3\2\2\2\u0287"+ + "#\3\2\2\2\35\'\60='=74 -'>'=75 -'<='=76 -'<'=77 -'=='=78 -'!='=79 -'|'=80 -'('=81 -')'=82 -','=83 -';'=84 -'->'=85 -'['=86 -']'=87 +'append'=68 +'+'=69 +'-'=70 +'*'=71 +'/'=72 +'%'=73 +'^'=74 +'>='=75 +'>'=76 +'<='=77 +'<'=78 +'=='=79 +'!='=80 +'|'=81 +'('=82 +')'=83 +','=84 +';'=85 +'->'=86 +'['=87 +']'=88 diff --git a/more_math/Parser/MathExprLexer.interp b/more_math/Parser/MathExprLexer.interp index a9b1dae..b69840d 100644 --- a/more_math/Parser/MathExprLexer.interp +++ b/more_math/Parser/MathExprLexer.interp @@ -67,6 +67,7 @@ null 'flip' 'cov' 'sort' +'append' '+' '-' '*' @@ -161,6 +162,7 @@ COSSIM FLIP COV SORT +APPEND PLUS MINUS MULT @@ -254,6 +256,7 @@ COSSIM FLIP COV SORT +APPEND PLUS MINUS MULT @@ -287,4 +290,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 91, 693, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 376, 8, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 452, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 469, 8, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 487, 8, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 500, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 555, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 572, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 80, 1, 80, 1, 81, 1, 81, 1, 82, 1, 82, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 3, 87, 665, 8, 87, 1, 88, 4, 88, 668, 8, 88, 11, 88, 12, 88, 669, 1, 88, 1, 88, 4, 88, 674, 8, 88, 11, 88, 12, 88, 675, 3, 88, 678, 8, 88, 1, 89, 1, 89, 5, 89, 682, 8, 89, 10, 89, 12, 89, 685, 9, 89, 1, 90, 4, 90, 688, 8, 90, 11, 90, 12, 90, 689, 1, 90, 1, 90, 0, 0, 91, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 1, 0, 5, 2, 0, 69, 69, 101, 101, 1, 0, 48, 57, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 706, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 1, 183, 1, 0, 0, 0, 3, 187, 1, 0, 0, 0, 5, 191, 1, 0, 0, 0, 7, 195, 1, 0, 0, 0, 9, 200, 1, 0, 0, 0, 11, 205, 1, 0, 0, 0, 13, 210, 1, 0, 0, 0, 15, 216, 1, 0, 0, 0, 17, 221, 1, 0, 0, 0, 19, 226, 1, 0, 0, 0, 21, 231, 1, 0, 0, 0, 23, 237, 1, 0, 0, 0, 25, 243, 1, 0, 0, 0, 27, 249, 1, 0, 0, 0, 29, 253, 1, 0, 0, 0, 31, 258, 1, 0, 0, 0, 33, 261, 1, 0, 0, 0, 35, 265, 1, 0, 0, 0, 37, 269, 1, 0, 0, 0, 39, 274, 1, 0, 0, 0, 41, 279, 1, 0, 0, 0, 43, 284, 1, 0, 0, 0, 45, 289, 1, 0, 0, 0, 47, 295, 1, 0, 0, 0, 49, 301, 1, 0, 0, 0, 51, 307, 1, 0, 0, 0, 53, 312, 1, 0, 0, 0, 55, 318, 1, 0, 0, 0, 57, 324, 1, 0, 0, 0, 59, 328, 1, 0, 0, 0, 61, 333, 1, 0, 0, 0, 63, 339, 1, 0, 0, 0, 65, 343, 1, 0, 0, 0, 67, 348, 1, 0, 0, 0, 69, 354, 1, 0, 0, 0, 71, 375, 1, 0, 0, 0, 73, 377, 1, 0, 0, 0, 75, 382, 1, 0, 0, 0, 77, 387, 1, 0, 0, 0, 79, 398, 1, 0, 0, 0, 81, 404, 1, 0, 0, 0, 83, 409, 1, 0, 0, 0, 85, 418, 1, 0, 0, 0, 87, 423, 1, 0, 0, 0, 89, 428, 1, 0, 0, 0, 91, 451, 1, 0, 0, 0, 93, 468, 1, 0, 0, 0, 95, 470, 1, 0, 0, 0, 97, 486, 1, 0, 0, 0, 99, 499, 1, 0, 0, 0, 101, 501, 1, 0, 0, 0, 103, 507, 1, 0, 0, 0, 105, 512, 1, 0, 0, 0, 107, 517, 1, 0, 0, 0, 109, 522, 1, 0, 0, 0, 111, 526, 1, 0, 0, 0, 113, 531, 1, 0, 0, 0, 115, 535, 1, 0, 0, 0, 117, 554, 1, 0, 0, 0, 119, 571, 1, 0, 0, 0, 121, 573, 1, 0, 0, 0, 123, 582, 1, 0, 0, 0, 125, 586, 1, 0, 0, 0, 127, 593, 1, 0, 0, 0, 129, 600, 1, 0, 0, 0, 131, 605, 1, 0, 0, 0, 133, 609, 1, 0, 0, 0, 135, 614, 1, 0, 0, 0, 137, 616, 1, 0, 0, 0, 139, 618, 1, 0, 0, 0, 141, 620, 1, 0, 0, 0, 143, 622, 1, 0, 0, 0, 145, 624, 1, 0, 0, 0, 147, 626, 1, 0, 0, 0, 149, 629, 1, 0, 0, 0, 151, 631, 1, 0, 0, 0, 153, 634, 1, 0, 0, 0, 155, 636, 1, 0, 0, 0, 157, 639, 1, 0, 0, 0, 159, 642, 1, 0, 0, 0, 161, 644, 1, 0, 0, 0, 163, 646, 1, 0, 0, 0, 165, 648, 1, 0, 0, 0, 167, 650, 1, 0, 0, 0, 169, 652, 1, 0, 0, 0, 171, 655, 1, 0, 0, 0, 173, 657, 1, 0, 0, 0, 175, 664, 1, 0, 0, 0, 177, 667, 1, 0, 0, 0, 179, 679, 1, 0, 0, 0, 181, 687, 1, 0, 0, 0, 183, 184, 5, 115, 0, 0, 184, 185, 5, 105, 0, 0, 185, 186, 5, 110, 0, 0, 186, 2, 1, 0, 0, 0, 187, 188, 5, 99, 0, 0, 188, 189, 5, 111, 0, 0, 189, 190, 5, 115, 0, 0, 190, 4, 1, 0, 0, 0, 191, 192, 5, 116, 0, 0, 192, 193, 5, 97, 0, 0, 193, 194, 5, 110, 0, 0, 194, 6, 1, 0, 0, 0, 195, 196, 5, 97, 0, 0, 196, 197, 5, 115, 0, 0, 197, 198, 5, 105, 0, 0, 198, 199, 5, 110, 0, 0, 199, 8, 1, 0, 0, 0, 200, 201, 5, 97, 0, 0, 201, 202, 5, 99, 0, 0, 202, 203, 5, 111, 0, 0, 203, 204, 5, 115, 0, 0, 204, 10, 1, 0, 0, 0, 205, 206, 5, 97, 0, 0, 206, 207, 5, 116, 0, 0, 207, 208, 5, 97, 0, 0, 208, 209, 5, 110, 0, 0, 209, 12, 1, 0, 0, 0, 210, 211, 5, 97, 0, 0, 211, 212, 5, 116, 0, 0, 212, 213, 5, 97, 0, 0, 213, 214, 5, 110, 0, 0, 214, 215, 5, 50, 0, 0, 215, 14, 1, 0, 0, 0, 216, 217, 5, 115, 0, 0, 217, 218, 5, 105, 0, 0, 218, 219, 5, 110, 0, 0, 219, 220, 5, 104, 0, 0, 220, 16, 1, 0, 0, 0, 221, 222, 5, 99, 0, 0, 222, 223, 5, 111, 0, 0, 223, 224, 5, 115, 0, 0, 224, 225, 5, 104, 0, 0, 225, 18, 1, 0, 0, 0, 226, 227, 5, 116, 0, 0, 227, 228, 5, 97, 0, 0, 228, 229, 5, 110, 0, 0, 229, 230, 5, 104, 0, 0, 230, 20, 1, 0, 0, 0, 231, 232, 5, 97, 0, 0, 232, 233, 5, 115, 0, 0, 233, 234, 5, 105, 0, 0, 234, 235, 5, 110, 0, 0, 235, 236, 5, 104, 0, 0, 236, 22, 1, 0, 0, 0, 237, 238, 5, 97, 0, 0, 238, 239, 5, 99, 0, 0, 239, 240, 5, 111, 0, 0, 240, 241, 5, 115, 0, 0, 241, 242, 5, 104, 0, 0, 242, 24, 1, 0, 0, 0, 243, 244, 5, 97, 0, 0, 244, 245, 5, 116, 0, 0, 245, 246, 5, 97, 0, 0, 246, 247, 5, 110, 0, 0, 247, 248, 5, 104, 0, 0, 248, 26, 1, 0, 0, 0, 249, 250, 5, 97, 0, 0, 250, 251, 5, 98, 0, 0, 251, 252, 5, 115, 0, 0, 252, 28, 1, 0, 0, 0, 253, 254, 5, 115, 0, 0, 254, 255, 5, 113, 0, 0, 255, 256, 5, 114, 0, 0, 256, 257, 5, 116, 0, 0, 257, 30, 1, 0, 0, 0, 258, 259, 5, 108, 0, 0, 259, 260, 5, 110, 0, 0, 260, 32, 1, 0, 0, 0, 261, 262, 5, 108, 0, 0, 262, 263, 5, 111, 0, 0, 263, 264, 5, 103, 0, 0, 264, 34, 1, 0, 0, 0, 265, 266, 5, 101, 0, 0, 266, 267, 5, 120, 0, 0, 267, 268, 5, 112, 0, 0, 268, 36, 1, 0, 0, 0, 269, 270, 5, 115, 0, 0, 270, 271, 5, 109, 0, 0, 271, 272, 5, 105, 0, 0, 272, 273, 5, 110, 0, 0, 273, 38, 1, 0, 0, 0, 274, 275, 5, 115, 0, 0, 275, 276, 5, 109, 0, 0, 276, 277, 5, 97, 0, 0, 277, 278, 5, 120, 0, 0, 278, 40, 1, 0, 0, 0, 279, 280, 5, 116, 0, 0, 280, 281, 5, 109, 0, 0, 281, 282, 5, 105, 0, 0, 282, 283, 5, 110, 0, 0, 283, 42, 1, 0, 0, 0, 284, 285, 5, 116, 0, 0, 285, 286, 5, 109, 0, 0, 286, 287, 5, 97, 0, 0, 287, 288, 5, 120, 0, 0, 288, 44, 1, 0, 0, 0, 289, 290, 5, 116, 0, 0, 290, 291, 5, 110, 0, 0, 291, 292, 5, 111, 0, 0, 292, 293, 5, 114, 0, 0, 293, 294, 5, 109, 0, 0, 294, 46, 1, 0, 0, 0, 295, 296, 5, 115, 0, 0, 296, 297, 5, 110, 0, 0, 297, 298, 5, 111, 0, 0, 298, 299, 5, 114, 0, 0, 299, 300, 5, 109, 0, 0, 300, 48, 1, 0, 0, 0, 301, 302, 5, 102, 0, 0, 302, 303, 5, 108, 0, 0, 303, 304, 5, 111, 0, 0, 304, 305, 5, 111, 0, 0, 305, 306, 5, 114, 0, 0, 306, 50, 1, 0, 0, 0, 307, 308, 5, 99, 0, 0, 308, 309, 5, 101, 0, 0, 309, 310, 5, 105, 0, 0, 310, 311, 5, 108, 0, 0, 311, 52, 1, 0, 0, 0, 312, 313, 5, 114, 0, 0, 313, 314, 5, 111, 0, 0, 314, 315, 5, 117, 0, 0, 315, 316, 5, 110, 0, 0, 316, 317, 5, 100, 0, 0, 317, 54, 1, 0, 0, 0, 318, 319, 5, 103, 0, 0, 319, 320, 5, 97, 0, 0, 320, 321, 5, 109, 0, 0, 321, 322, 5, 109, 0, 0, 322, 323, 5, 97, 0, 0, 323, 56, 1, 0, 0, 0, 324, 325, 5, 112, 0, 0, 325, 326, 5, 111, 0, 0, 326, 327, 5, 119, 0, 0, 327, 58, 1, 0, 0, 0, 328, 329, 5, 115, 0, 0, 329, 330, 5, 105, 0, 0, 330, 331, 5, 103, 0, 0, 331, 332, 5, 109, 0, 0, 332, 60, 1, 0, 0, 0, 333, 334, 5, 99, 0, 0, 334, 335, 5, 108, 0, 0, 335, 336, 5, 97, 0, 0, 336, 337, 5, 109, 0, 0, 337, 338, 5, 112, 0, 0, 338, 62, 1, 0, 0, 0, 339, 340, 5, 102, 0, 0, 340, 341, 5, 102, 0, 0, 341, 342, 5, 116, 0, 0, 342, 64, 1, 0, 0, 0, 343, 344, 5, 105, 0, 0, 344, 345, 5, 102, 0, 0, 345, 346, 5, 102, 0, 0, 346, 347, 5, 116, 0, 0, 347, 66, 1, 0, 0, 0, 348, 349, 5, 97, 0, 0, 349, 350, 5, 110, 0, 0, 350, 351, 5, 103, 0, 0, 351, 352, 5, 108, 0, 0, 352, 353, 5, 101, 0, 0, 353, 68, 1, 0, 0, 0, 354, 355, 5, 112, 0, 0, 355, 356, 5, 114, 0, 0, 356, 357, 5, 105, 0, 0, 357, 358, 5, 110, 0, 0, 358, 359, 5, 116, 0, 0, 359, 70, 1, 0, 0, 0, 360, 361, 5, 112, 0, 0, 361, 362, 5, 114, 0, 0, 362, 363, 5, 105, 0, 0, 363, 364, 5, 110, 0, 0, 364, 365, 5, 116, 0, 0, 365, 366, 5, 95, 0, 0, 366, 367, 5, 115, 0, 0, 367, 368, 5, 104, 0, 0, 368, 369, 5, 97, 0, 0, 369, 370, 5, 112, 0, 0, 370, 376, 5, 101, 0, 0, 371, 372, 5, 112, 0, 0, 372, 373, 5, 115, 0, 0, 373, 374, 5, 104, 0, 0, 374, 376, 5, 112, 0, 0, 375, 360, 1, 0, 0, 0, 375, 371, 1, 0, 0, 0, 376, 72, 1, 0, 0, 0, 377, 378, 5, 108, 0, 0, 378, 379, 5, 101, 0, 0, 379, 380, 5, 114, 0, 0, 380, 381, 5, 112, 0, 0, 381, 74, 1, 0, 0, 0, 382, 383, 5, 115, 0, 0, 383, 384, 5, 116, 0, 0, 384, 385, 5, 101, 0, 0, 385, 386, 5, 112, 0, 0, 386, 76, 1, 0, 0, 0, 387, 388, 5, 115, 0, 0, 388, 389, 5, 109, 0, 0, 389, 390, 5, 111, 0, 0, 390, 391, 5, 111, 0, 0, 391, 392, 5, 116, 0, 0, 392, 393, 5, 104, 0, 0, 393, 394, 5, 115, 0, 0, 394, 395, 5, 116, 0, 0, 395, 396, 5, 101, 0, 0, 396, 397, 5, 112, 0, 0, 397, 78, 1, 0, 0, 0, 398, 399, 5, 102, 0, 0, 399, 400, 5, 114, 0, 0, 400, 401, 5, 97, 0, 0, 401, 402, 5, 99, 0, 0, 402, 403, 5, 116, 0, 0, 403, 80, 1, 0, 0, 0, 404, 405, 5, 114, 0, 0, 405, 406, 5, 101, 0, 0, 406, 407, 5, 108, 0, 0, 407, 408, 5, 117, 0, 0, 408, 82, 1, 0, 0, 0, 409, 410, 5, 115, 0, 0, 410, 411, 5, 111, 0, 0, 411, 412, 5, 102, 0, 0, 412, 413, 5, 116, 0, 0, 413, 414, 5, 112, 0, 0, 414, 415, 5, 108, 0, 0, 415, 416, 5, 117, 0, 0, 416, 417, 5, 115, 0, 0, 417, 84, 1, 0, 0, 0, 418, 419, 5, 103, 0, 0, 419, 420, 5, 101, 0, 0, 420, 421, 5, 108, 0, 0, 421, 422, 5, 117, 0, 0, 422, 86, 1, 0, 0, 0, 423, 424, 5, 115, 0, 0, 424, 425, 5, 105, 0, 0, 425, 426, 5, 103, 0, 0, 426, 427, 5, 110, 0, 0, 427, 88, 1, 0, 0, 0, 428, 429, 5, 109, 0, 0, 429, 430, 5, 97, 0, 0, 430, 431, 5, 112, 0, 0, 431, 90, 1, 0, 0, 0, 432, 433, 5, 101, 0, 0, 433, 434, 5, 122, 0, 0, 434, 435, 5, 99, 0, 0, 435, 436, 5, 111, 0, 0, 436, 437, 5, 110, 0, 0, 437, 438, 5, 118, 0, 0, 438, 439, 5, 111, 0, 0, 439, 440, 5, 108, 0, 0, 440, 441, 5, 117, 0, 0, 441, 442, 5, 116, 0, 0, 442, 443, 5, 105, 0, 0, 443, 444, 5, 111, 0, 0, 444, 452, 5, 110, 0, 0, 445, 446, 5, 101, 0, 0, 446, 447, 5, 122, 0, 0, 447, 448, 5, 99, 0, 0, 448, 449, 5, 111, 0, 0, 449, 450, 5, 110, 0, 0, 450, 452, 5, 118, 0, 0, 451, 432, 1, 0, 0, 0, 451, 445, 1, 0, 0, 0, 452, 92, 1, 0, 0, 0, 453, 454, 5, 99, 0, 0, 454, 455, 5, 111, 0, 0, 455, 456, 5, 110, 0, 0, 456, 457, 5, 118, 0, 0, 457, 458, 5, 111, 0, 0, 458, 459, 5, 108, 0, 0, 459, 460, 5, 117, 0, 0, 460, 461, 5, 116, 0, 0, 461, 462, 5, 105, 0, 0, 462, 463, 5, 111, 0, 0, 463, 469, 5, 110, 0, 0, 464, 465, 5, 99, 0, 0, 465, 466, 5, 111, 0, 0, 466, 467, 5, 110, 0, 0, 467, 469, 5, 118, 0, 0, 468, 453, 1, 0, 0, 0, 468, 464, 1, 0, 0, 0, 469, 94, 1, 0, 0, 0, 470, 471, 5, 115, 0, 0, 471, 472, 5, 119, 0, 0, 472, 473, 5, 97, 0, 0, 473, 474, 5, 112, 0, 0, 474, 96, 1, 0, 0, 0, 475, 476, 5, 112, 0, 0, 476, 477, 5, 101, 0, 0, 477, 478, 5, 114, 0, 0, 478, 479, 5, 109, 0, 0, 479, 480, 5, 117, 0, 0, 480, 481, 5, 116, 0, 0, 481, 487, 5, 101, 0, 0, 482, 483, 5, 112, 0, 0, 483, 484, 5, 101, 0, 0, 484, 485, 5, 114, 0, 0, 485, 487, 5, 109, 0, 0, 486, 475, 1, 0, 0, 0, 486, 482, 1, 0, 0, 0, 487, 98, 1, 0, 0, 0, 488, 489, 5, 114, 0, 0, 489, 490, 5, 101, 0, 0, 490, 491, 5, 115, 0, 0, 491, 492, 5, 104, 0, 0, 492, 493, 5, 97, 0, 0, 493, 494, 5, 112, 0, 0, 494, 500, 5, 101, 0, 0, 495, 496, 5, 114, 0, 0, 496, 497, 5, 115, 0, 0, 497, 498, 5, 104, 0, 0, 498, 500, 5, 112, 0, 0, 499, 488, 1, 0, 0, 0, 499, 495, 1, 0, 0, 0, 500, 100, 1, 0, 0, 0, 501, 502, 5, 114, 0, 0, 502, 503, 5, 97, 0, 0, 503, 504, 5, 110, 0, 0, 504, 505, 5, 103, 0, 0, 505, 506, 5, 101, 0, 0, 506, 102, 1, 0, 0, 0, 507, 508, 5, 116, 0, 0, 508, 509, 5, 111, 0, 0, 509, 510, 5, 112, 0, 0, 510, 511, 5, 107, 0, 0, 511, 104, 1, 0, 0, 0, 512, 513, 5, 98, 0, 0, 513, 514, 5, 111, 0, 0, 514, 515, 5, 116, 0, 0, 515, 516, 5, 107, 0, 0, 516, 106, 1, 0, 0, 0, 517, 518, 5, 112, 0, 0, 518, 519, 5, 105, 0, 0, 519, 520, 5, 110, 0, 0, 520, 521, 5, 118, 0, 0, 521, 108, 1, 0, 0, 0, 522, 523, 5, 115, 0, 0, 523, 524, 5, 117, 0, 0, 524, 525, 5, 109, 0, 0, 525, 110, 1, 0, 0, 0, 526, 527, 5, 109, 0, 0, 527, 528, 5, 101, 0, 0, 528, 529, 5, 97, 0, 0, 529, 530, 5, 110, 0, 0, 530, 112, 1, 0, 0, 0, 531, 532, 5, 115, 0, 0, 532, 533, 5, 116, 0, 0, 533, 534, 5, 100, 0, 0, 534, 114, 1, 0, 0, 0, 535, 536, 5, 118, 0, 0, 536, 537, 5, 97, 0, 0, 537, 538, 5, 114, 0, 0, 538, 116, 1, 0, 0, 0, 539, 540, 5, 113, 0, 0, 540, 541, 5, 117, 0, 0, 541, 542, 5, 97, 0, 0, 542, 543, 5, 114, 0, 0, 543, 544, 5, 116, 0, 0, 544, 545, 5, 105, 0, 0, 545, 546, 5, 108, 0, 0, 546, 555, 5, 101, 0, 0, 547, 548, 5, 113, 0, 0, 548, 549, 5, 117, 0, 0, 549, 550, 5, 97, 0, 0, 550, 551, 5, 114, 0, 0, 551, 552, 5, 116, 0, 0, 552, 553, 5, 105, 0, 0, 553, 555, 5, 108, 0, 0, 554, 539, 1, 0, 0, 0, 554, 547, 1, 0, 0, 0, 555, 118, 1, 0, 0, 0, 556, 557, 5, 112, 0, 0, 557, 558, 5, 101, 0, 0, 558, 559, 5, 114, 0, 0, 559, 560, 5, 99, 0, 0, 560, 561, 5, 101, 0, 0, 561, 562, 5, 110, 0, 0, 562, 563, 5, 116, 0, 0, 563, 564, 5, 105, 0, 0, 564, 565, 5, 108, 0, 0, 565, 572, 5, 101, 0, 0, 566, 567, 5, 112, 0, 0, 567, 568, 5, 114, 0, 0, 568, 569, 5, 99, 0, 0, 569, 570, 5, 110, 0, 0, 570, 572, 5, 116, 0, 0, 571, 556, 1, 0, 0, 0, 571, 566, 1, 0, 0, 0, 572, 120, 1, 0, 0, 0, 573, 574, 5, 113, 0, 0, 574, 575, 5, 117, 0, 0, 575, 576, 5, 97, 0, 0, 576, 577, 5, 110, 0, 0, 577, 578, 5, 116, 0, 0, 578, 579, 5, 105, 0, 0, 579, 580, 5, 108, 0, 0, 580, 581, 5, 101, 0, 0, 581, 122, 1, 0, 0, 0, 582, 583, 5, 100, 0, 0, 583, 584, 5, 111, 0, 0, 584, 585, 5, 116, 0, 0, 585, 124, 1, 0, 0, 0, 586, 587, 5, 109, 0, 0, 587, 588, 5, 111, 0, 0, 588, 589, 5, 109, 0, 0, 589, 590, 5, 101, 0, 0, 590, 591, 5, 110, 0, 0, 591, 592, 5, 116, 0, 0, 592, 126, 1, 0, 0, 0, 593, 594, 5, 99, 0, 0, 594, 595, 5, 111, 0, 0, 595, 596, 5, 115, 0, 0, 596, 597, 5, 115, 0, 0, 597, 598, 5, 105, 0, 0, 598, 599, 5, 109, 0, 0, 599, 128, 1, 0, 0, 0, 600, 601, 5, 102, 0, 0, 601, 602, 5, 108, 0, 0, 602, 603, 5, 105, 0, 0, 603, 604, 5, 112, 0, 0, 604, 130, 1, 0, 0, 0, 605, 606, 5, 99, 0, 0, 606, 607, 5, 111, 0, 0, 607, 608, 5, 118, 0, 0, 608, 132, 1, 0, 0, 0, 609, 610, 5, 115, 0, 0, 610, 611, 5, 111, 0, 0, 611, 612, 5, 114, 0, 0, 612, 613, 5, 116, 0, 0, 613, 134, 1, 0, 0, 0, 614, 615, 5, 43, 0, 0, 615, 136, 1, 0, 0, 0, 616, 617, 5, 45, 0, 0, 617, 138, 1, 0, 0, 0, 618, 619, 5, 42, 0, 0, 619, 140, 1, 0, 0, 0, 620, 621, 5, 47, 0, 0, 621, 142, 1, 0, 0, 0, 622, 623, 5, 37, 0, 0, 623, 144, 1, 0, 0, 0, 624, 625, 5, 94, 0, 0, 625, 146, 1, 0, 0, 0, 626, 627, 5, 62, 0, 0, 627, 628, 5, 61, 0, 0, 628, 148, 1, 0, 0, 0, 629, 630, 5, 62, 0, 0, 630, 150, 1, 0, 0, 0, 631, 632, 5, 60, 0, 0, 632, 633, 5, 61, 0, 0, 633, 152, 1, 0, 0, 0, 634, 635, 5, 60, 0, 0, 635, 154, 1, 0, 0, 0, 636, 637, 5, 61, 0, 0, 637, 638, 5, 61, 0, 0, 638, 156, 1, 0, 0, 0, 639, 640, 5, 33, 0, 0, 640, 641, 5, 61, 0, 0, 641, 158, 1, 0, 0, 0, 642, 643, 5, 124, 0, 0, 643, 160, 1, 0, 0, 0, 644, 645, 5, 40, 0, 0, 645, 162, 1, 0, 0, 0, 646, 647, 5, 41, 0, 0, 647, 164, 1, 0, 0, 0, 648, 649, 5, 44, 0, 0, 649, 166, 1, 0, 0, 0, 650, 651, 5, 59, 0, 0, 651, 168, 1, 0, 0, 0, 652, 653, 5, 45, 0, 0, 653, 654, 5, 62, 0, 0, 654, 170, 1, 0, 0, 0, 655, 656, 5, 91, 0, 0, 656, 172, 1, 0, 0, 0, 657, 658, 5, 93, 0, 0, 658, 174, 1, 0, 0, 0, 659, 660, 5, 112, 0, 0, 660, 665, 5, 105, 0, 0, 661, 662, 5, 80, 0, 0, 662, 665, 5, 73, 0, 0, 663, 665, 7, 0, 0, 0, 664, 659, 1, 0, 0, 0, 664, 661, 1, 0, 0, 0, 664, 663, 1, 0, 0, 0, 665, 176, 1, 0, 0, 0, 666, 668, 7, 1, 0, 0, 667, 666, 1, 0, 0, 0, 668, 669, 1, 0, 0, 0, 669, 667, 1, 0, 0, 0, 669, 670, 1, 0, 0, 0, 670, 677, 1, 0, 0, 0, 671, 673, 5, 46, 0, 0, 672, 674, 7, 1, 0, 0, 673, 672, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 673, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 678, 1, 0, 0, 0, 677, 671, 1, 0, 0, 0, 677, 678, 1, 0, 0, 0, 678, 178, 1, 0, 0, 0, 679, 683, 7, 2, 0, 0, 680, 682, 7, 3, 0, 0, 681, 680, 1, 0, 0, 0, 682, 685, 1, 0, 0, 0, 683, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 180, 1, 0, 0, 0, 685, 683, 1, 0, 0, 0, 686, 688, 7, 4, 0, 0, 687, 686, 1, 0, 0, 0, 688, 689, 1, 0, 0, 0, 689, 687, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 692, 6, 90, 0, 0, 692, 182, 1, 0, 0, 0, 14, 0, 375, 451, 468, 486, 499, 554, 571, 664, 669, 675, 677, 683, 689, 1, 6, 0, 0] \ No newline at end of file +[4, 0, 92, 702, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 378, 8, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 454, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 471, 8, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 489, 8, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 502, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 557, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 574, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 81, 1, 81, 1, 82, 1, 82, 1, 83, 1, 83, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 3, 88, 674, 8, 88, 1, 89, 4, 89, 677, 8, 89, 11, 89, 12, 89, 678, 1, 89, 1, 89, 4, 89, 683, 8, 89, 11, 89, 12, 89, 684, 3, 89, 687, 8, 89, 1, 90, 1, 90, 5, 90, 691, 8, 90, 10, 90, 12, 90, 694, 9, 90, 1, 91, 4, 91, 697, 8, 91, 11, 91, 12, 91, 698, 1, 91, 1, 91, 0, 0, 92, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 183, 92, 1, 0, 5, 2, 0, 69, 69, 101, 101, 1, 0, 48, 57, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 715, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 0, 183, 1, 0, 0, 0, 1, 185, 1, 0, 0, 0, 3, 189, 1, 0, 0, 0, 5, 193, 1, 0, 0, 0, 7, 197, 1, 0, 0, 0, 9, 202, 1, 0, 0, 0, 11, 207, 1, 0, 0, 0, 13, 212, 1, 0, 0, 0, 15, 218, 1, 0, 0, 0, 17, 223, 1, 0, 0, 0, 19, 228, 1, 0, 0, 0, 21, 233, 1, 0, 0, 0, 23, 239, 1, 0, 0, 0, 25, 245, 1, 0, 0, 0, 27, 251, 1, 0, 0, 0, 29, 255, 1, 0, 0, 0, 31, 260, 1, 0, 0, 0, 33, 263, 1, 0, 0, 0, 35, 267, 1, 0, 0, 0, 37, 271, 1, 0, 0, 0, 39, 276, 1, 0, 0, 0, 41, 281, 1, 0, 0, 0, 43, 286, 1, 0, 0, 0, 45, 291, 1, 0, 0, 0, 47, 297, 1, 0, 0, 0, 49, 303, 1, 0, 0, 0, 51, 309, 1, 0, 0, 0, 53, 314, 1, 0, 0, 0, 55, 320, 1, 0, 0, 0, 57, 326, 1, 0, 0, 0, 59, 330, 1, 0, 0, 0, 61, 335, 1, 0, 0, 0, 63, 341, 1, 0, 0, 0, 65, 345, 1, 0, 0, 0, 67, 350, 1, 0, 0, 0, 69, 356, 1, 0, 0, 0, 71, 377, 1, 0, 0, 0, 73, 379, 1, 0, 0, 0, 75, 384, 1, 0, 0, 0, 77, 389, 1, 0, 0, 0, 79, 400, 1, 0, 0, 0, 81, 406, 1, 0, 0, 0, 83, 411, 1, 0, 0, 0, 85, 420, 1, 0, 0, 0, 87, 425, 1, 0, 0, 0, 89, 430, 1, 0, 0, 0, 91, 453, 1, 0, 0, 0, 93, 470, 1, 0, 0, 0, 95, 472, 1, 0, 0, 0, 97, 488, 1, 0, 0, 0, 99, 501, 1, 0, 0, 0, 101, 503, 1, 0, 0, 0, 103, 509, 1, 0, 0, 0, 105, 514, 1, 0, 0, 0, 107, 519, 1, 0, 0, 0, 109, 524, 1, 0, 0, 0, 111, 528, 1, 0, 0, 0, 113, 533, 1, 0, 0, 0, 115, 537, 1, 0, 0, 0, 117, 556, 1, 0, 0, 0, 119, 573, 1, 0, 0, 0, 121, 575, 1, 0, 0, 0, 123, 584, 1, 0, 0, 0, 125, 588, 1, 0, 0, 0, 127, 595, 1, 0, 0, 0, 129, 602, 1, 0, 0, 0, 131, 607, 1, 0, 0, 0, 133, 611, 1, 0, 0, 0, 135, 616, 1, 0, 0, 0, 137, 623, 1, 0, 0, 0, 139, 625, 1, 0, 0, 0, 141, 627, 1, 0, 0, 0, 143, 629, 1, 0, 0, 0, 145, 631, 1, 0, 0, 0, 147, 633, 1, 0, 0, 0, 149, 635, 1, 0, 0, 0, 151, 638, 1, 0, 0, 0, 153, 640, 1, 0, 0, 0, 155, 643, 1, 0, 0, 0, 157, 645, 1, 0, 0, 0, 159, 648, 1, 0, 0, 0, 161, 651, 1, 0, 0, 0, 163, 653, 1, 0, 0, 0, 165, 655, 1, 0, 0, 0, 167, 657, 1, 0, 0, 0, 169, 659, 1, 0, 0, 0, 171, 661, 1, 0, 0, 0, 173, 664, 1, 0, 0, 0, 175, 666, 1, 0, 0, 0, 177, 673, 1, 0, 0, 0, 179, 676, 1, 0, 0, 0, 181, 688, 1, 0, 0, 0, 183, 696, 1, 0, 0, 0, 185, 186, 5, 115, 0, 0, 186, 187, 5, 105, 0, 0, 187, 188, 5, 110, 0, 0, 188, 2, 1, 0, 0, 0, 189, 190, 5, 99, 0, 0, 190, 191, 5, 111, 0, 0, 191, 192, 5, 115, 0, 0, 192, 4, 1, 0, 0, 0, 193, 194, 5, 116, 0, 0, 194, 195, 5, 97, 0, 0, 195, 196, 5, 110, 0, 0, 196, 6, 1, 0, 0, 0, 197, 198, 5, 97, 0, 0, 198, 199, 5, 115, 0, 0, 199, 200, 5, 105, 0, 0, 200, 201, 5, 110, 0, 0, 201, 8, 1, 0, 0, 0, 202, 203, 5, 97, 0, 0, 203, 204, 5, 99, 0, 0, 204, 205, 5, 111, 0, 0, 205, 206, 5, 115, 0, 0, 206, 10, 1, 0, 0, 0, 207, 208, 5, 97, 0, 0, 208, 209, 5, 116, 0, 0, 209, 210, 5, 97, 0, 0, 210, 211, 5, 110, 0, 0, 211, 12, 1, 0, 0, 0, 212, 213, 5, 97, 0, 0, 213, 214, 5, 116, 0, 0, 214, 215, 5, 97, 0, 0, 215, 216, 5, 110, 0, 0, 216, 217, 5, 50, 0, 0, 217, 14, 1, 0, 0, 0, 218, 219, 5, 115, 0, 0, 219, 220, 5, 105, 0, 0, 220, 221, 5, 110, 0, 0, 221, 222, 5, 104, 0, 0, 222, 16, 1, 0, 0, 0, 223, 224, 5, 99, 0, 0, 224, 225, 5, 111, 0, 0, 225, 226, 5, 115, 0, 0, 226, 227, 5, 104, 0, 0, 227, 18, 1, 0, 0, 0, 228, 229, 5, 116, 0, 0, 229, 230, 5, 97, 0, 0, 230, 231, 5, 110, 0, 0, 231, 232, 5, 104, 0, 0, 232, 20, 1, 0, 0, 0, 233, 234, 5, 97, 0, 0, 234, 235, 5, 115, 0, 0, 235, 236, 5, 105, 0, 0, 236, 237, 5, 110, 0, 0, 237, 238, 5, 104, 0, 0, 238, 22, 1, 0, 0, 0, 239, 240, 5, 97, 0, 0, 240, 241, 5, 99, 0, 0, 241, 242, 5, 111, 0, 0, 242, 243, 5, 115, 0, 0, 243, 244, 5, 104, 0, 0, 244, 24, 1, 0, 0, 0, 245, 246, 5, 97, 0, 0, 246, 247, 5, 116, 0, 0, 247, 248, 5, 97, 0, 0, 248, 249, 5, 110, 0, 0, 249, 250, 5, 104, 0, 0, 250, 26, 1, 0, 0, 0, 251, 252, 5, 97, 0, 0, 252, 253, 5, 98, 0, 0, 253, 254, 5, 115, 0, 0, 254, 28, 1, 0, 0, 0, 255, 256, 5, 115, 0, 0, 256, 257, 5, 113, 0, 0, 257, 258, 5, 114, 0, 0, 258, 259, 5, 116, 0, 0, 259, 30, 1, 0, 0, 0, 260, 261, 5, 108, 0, 0, 261, 262, 5, 110, 0, 0, 262, 32, 1, 0, 0, 0, 263, 264, 5, 108, 0, 0, 264, 265, 5, 111, 0, 0, 265, 266, 5, 103, 0, 0, 266, 34, 1, 0, 0, 0, 267, 268, 5, 101, 0, 0, 268, 269, 5, 120, 0, 0, 269, 270, 5, 112, 0, 0, 270, 36, 1, 0, 0, 0, 271, 272, 5, 115, 0, 0, 272, 273, 5, 109, 0, 0, 273, 274, 5, 105, 0, 0, 274, 275, 5, 110, 0, 0, 275, 38, 1, 0, 0, 0, 276, 277, 5, 115, 0, 0, 277, 278, 5, 109, 0, 0, 278, 279, 5, 97, 0, 0, 279, 280, 5, 120, 0, 0, 280, 40, 1, 0, 0, 0, 281, 282, 5, 116, 0, 0, 282, 283, 5, 109, 0, 0, 283, 284, 5, 105, 0, 0, 284, 285, 5, 110, 0, 0, 285, 42, 1, 0, 0, 0, 286, 287, 5, 116, 0, 0, 287, 288, 5, 109, 0, 0, 288, 289, 5, 97, 0, 0, 289, 290, 5, 120, 0, 0, 290, 44, 1, 0, 0, 0, 291, 292, 5, 116, 0, 0, 292, 293, 5, 110, 0, 0, 293, 294, 5, 111, 0, 0, 294, 295, 5, 114, 0, 0, 295, 296, 5, 109, 0, 0, 296, 46, 1, 0, 0, 0, 297, 298, 5, 115, 0, 0, 298, 299, 5, 110, 0, 0, 299, 300, 5, 111, 0, 0, 300, 301, 5, 114, 0, 0, 301, 302, 5, 109, 0, 0, 302, 48, 1, 0, 0, 0, 303, 304, 5, 102, 0, 0, 304, 305, 5, 108, 0, 0, 305, 306, 5, 111, 0, 0, 306, 307, 5, 111, 0, 0, 307, 308, 5, 114, 0, 0, 308, 50, 1, 0, 0, 0, 309, 310, 5, 99, 0, 0, 310, 311, 5, 101, 0, 0, 311, 312, 5, 105, 0, 0, 312, 313, 5, 108, 0, 0, 313, 52, 1, 0, 0, 0, 314, 315, 5, 114, 0, 0, 315, 316, 5, 111, 0, 0, 316, 317, 5, 117, 0, 0, 317, 318, 5, 110, 0, 0, 318, 319, 5, 100, 0, 0, 319, 54, 1, 0, 0, 0, 320, 321, 5, 103, 0, 0, 321, 322, 5, 97, 0, 0, 322, 323, 5, 109, 0, 0, 323, 324, 5, 109, 0, 0, 324, 325, 5, 97, 0, 0, 325, 56, 1, 0, 0, 0, 326, 327, 5, 112, 0, 0, 327, 328, 5, 111, 0, 0, 328, 329, 5, 119, 0, 0, 329, 58, 1, 0, 0, 0, 330, 331, 5, 115, 0, 0, 331, 332, 5, 105, 0, 0, 332, 333, 5, 103, 0, 0, 333, 334, 5, 109, 0, 0, 334, 60, 1, 0, 0, 0, 335, 336, 5, 99, 0, 0, 336, 337, 5, 108, 0, 0, 337, 338, 5, 97, 0, 0, 338, 339, 5, 109, 0, 0, 339, 340, 5, 112, 0, 0, 340, 62, 1, 0, 0, 0, 341, 342, 5, 102, 0, 0, 342, 343, 5, 102, 0, 0, 343, 344, 5, 116, 0, 0, 344, 64, 1, 0, 0, 0, 345, 346, 5, 105, 0, 0, 346, 347, 5, 102, 0, 0, 347, 348, 5, 102, 0, 0, 348, 349, 5, 116, 0, 0, 349, 66, 1, 0, 0, 0, 350, 351, 5, 97, 0, 0, 351, 352, 5, 110, 0, 0, 352, 353, 5, 103, 0, 0, 353, 354, 5, 108, 0, 0, 354, 355, 5, 101, 0, 0, 355, 68, 1, 0, 0, 0, 356, 357, 5, 112, 0, 0, 357, 358, 5, 114, 0, 0, 358, 359, 5, 105, 0, 0, 359, 360, 5, 110, 0, 0, 360, 361, 5, 116, 0, 0, 361, 70, 1, 0, 0, 0, 362, 363, 5, 112, 0, 0, 363, 364, 5, 114, 0, 0, 364, 365, 5, 105, 0, 0, 365, 366, 5, 110, 0, 0, 366, 367, 5, 116, 0, 0, 367, 368, 5, 95, 0, 0, 368, 369, 5, 115, 0, 0, 369, 370, 5, 104, 0, 0, 370, 371, 5, 97, 0, 0, 371, 372, 5, 112, 0, 0, 372, 378, 5, 101, 0, 0, 373, 374, 5, 112, 0, 0, 374, 375, 5, 115, 0, 0, 375, 376, 5, 104, 0, 0, 376, 378, 5, 112, 0, 0, 377, 362, 1, 0, 0, 0, 377, 373, 1, 0, 0, 0, 378, 72, 1, 0, 0, 0, 379, 380, 5, 108, 0, 0, 380, 381, 5, 101, 0, 0, 381, 382, 5, 114, 0, 0, 382, 383, 5, 112, 0, 0, 383, 74, 1, 0, 0, 0, 384, 385, 5, 115, 0, 0, 385, 386, 5, 116, 0, 0, 386, 387, 5, 101, 0, 0, 387, 388, 5, 112, 0, 0, 388, 76, 1, 0, 0, 0, 389, 390, 5, 115, 0, 0, 390, 391, 5, 109, 0, 0, 391, 392, 5, 111, 0, 0, 392, 393, 5, 111, 0, 0, 393, 394, 5, 116, 0, 0, 394, 395, 5, 104, 0, 0, 395, 396, 5, 115, 0, 0, 396, 397, 5, 116, 0, 0, 397, 398, 5, 101, 0, 0, 398, 399, 5, 112, 0, 0, 399, 78, 1, 0, 0, 0, 400, 401, 5, 102, 0, 0, 401, 402, 5, 114, 0, 0, 402, 403, 5, 97, 0, 0, 403, 404, 5, 99, 0, 0, 404, 405, 5, 116, 0, 0, 405, 80, 1, 0, 0, 0, 406, 407, 5, 114, 0, 0, 407, 408, 5, 101, 0, 0, 408, 409, 5, 108, 0, 0, 409, 410, 5, 117, 0, 0, 410, 82, 1, 0, 0, 0, 411, 412, 5, 115, 0, 0, 412, 413, 5, 111, 0, 0, 413, 414, 5, 102, 0, 0, 414, 415, 5, 116, 0, 0, 415, 416, 5, 112, 0, 0, 416, 417, 5, 108, 0, 0, 417, 418, 5, 117, 0, 0, 418, 419, 5, 115, 0, 0, 419, 84, 1, 0, 0, 0, 420, 421, 5, 103, 0, 0, 421, 422, 5, 101, 0, 0, 422, 423, 5, 108, 0, 0, 423, 424, 5, 117, 0, 0, 424, 86, 1, 0, 0, 0, 425, 426, 5, 115, 0, 0, 426, 427, 5, 105, 0, 0, 427, 428, 5, 103, 0, 0, 428, 429, 5, 110, 0, 0, 429, 88, 1, 0, 0, 0, 430, 431, 5, 109, 0, 0, 431, 432, 5, 97, 0, 0, 432, 433, 5, 112, 0, 0, 433, 90, 1, 0, 0, 0, 434, 435, 5, 101, 0, 0, 435, 436, 5, 122, 0, 0, 436, 437, 5, 99, 0, 0, 437, 438, 5, 111, 0, 0, 438, 439, 5, 110, 0, 0, 439, 440, 5, 118, 0, 0, 440, 441, 5, 111, 0, 0, 441, 442, 5, 108, 0, 0, 442, 443, 5, 117, 0, 0, 443, 444, 5, 116, 0, 0, 444, 445, 5, 105, 0, 0, 445, 446, 5, 111, 0, 0, 446, 454, 5, 110, 0, 0, 447, 448, 5, 101, 0, 0, 448, 449, 5, 122, 0, 0, 449, 450, 5, 99, 0, 0, 450, 451, 5, 111, 0, 0, 451, 452, 5, 110, 0, 0, 452, 454, 5, 118, 0, 0, 453, 434, 1, 0, 0, 0, 453, 447, 1, 0, 0, 0, 454, 92, 1, 0, 0, 0, 455, 456, 5, 99, 0, 0, 456, 457, 5, 111, 0, 0, 457, 458, 5, 110, 0, 0, 458, 459, 5, 118, 0, 0, 459, 460, 5, 111, 0, 0, 460, 461, 5, 108, 0, 0, 461, 462, 5, 117, 0, 0, 462, 463, 5, 116, 0, 0, 463, 464, 5, 105, 0, 0, 464, 465, 5, 111, 0, 0, 465, 471, 5, 110, 0, 0, 466, 467, 5, 99, 0, 0, 467, 468, 5, 111, 0, 0, 468, 469, 5, 110, 0, 0, 469, 471, 5, 118, 0, 0, 470, 455, 1, 0, 0, 0, 470, 466, 1, 0, 0, 0, 471, 94, 1, 0, 0, 0, 472, 473, 5, 115, 0, 0, 473, 474, 5, 119, 0, 0, 474, 475, 5, 97, 0, 0, 475, 476, 5, 112, 0, 0, 476, 96, 1, 0, 0, 0, 477, 478, 5, 112, 0, 0, 478, 479, 5, 101, 0, 0, 479, 480, 5, 114, 0, 0, 480, 481, 5, 109, 0, 0, 481, 482, 5, 117, 0, 0, 482, 483, 5, 116, 0, 0, 483, 489, 5, 101, 0, 0, 484, 485, 5, 112, 0, 0, 485, 486, 5, 101, 0, 0, 486, 487, 5, 114, 0, 0, 487, 489, 5, 109, 0, 0, 488, 477, 1, 0, 0, 0, 488, 484, 1, 0, 0, 0, 489, 98, 1, 0, 0, 0, 490, 491, 5, 114, 0, 0, 491, 492, 5, 101, 0, 0, 492, 493, 5, 115, 0, 0, 493, 494, 5, 104, 0, 0, 494, 495, 5, 97, 0, 0, 495, 496, 5, 112, 0, 0, 496, 502, 5, 101, 0, 0, 497, 498, 5, 114, 0, 0, 498, 499, 5, 115, 0, 0, 499, 500, 5, 104, 0, 0, 500, 502, 5, 112, 0, 0, 501, 490, 1, 0, 0, 0, 501, 497, 1, 0, 0, 0, 502, 100, 1, 0, 0, 0, 503, 504, 5, 114, 0, 0, 504, 505, 5, 97, 0, 0, 505, 506, 5, 110, 0, 0, 506, 507, 5, 103, 0, 0, 507, 508, 5, 101, 0, 0, 508, 102, 1, 0, 0, 0, 509, 510, 5, 116, 0, 0, 510, 511, 5, 111, 0, 0, 511, 512, 5, 112, 0, 0, 512, 513, 5, 107, 0, 0, 513, 104, 1, 0, 0, 0, 514, 515, 5, 98, 0, 0, 515, 516, 5, 111, 0, 0, 516, 517, 5, 116, 0, 0, 517, 518, 5, 107, 0, 0, 518, 106, 1, 0, 0, 0, 519, 520, 5, 112, 0, 0, 520, 521, 5, 105, 0, 0, 521, 522, 5, 110, 0, 0, 522, 523, 5, 118, 0, 0, 523, 108, 1, 0, 0, 0, 524, 525, 5, 115, 0, 0, 525, 526, 5, 117, 0, 0, 526, 527, 5, 109, 0, 0, 527, 110, 1, 0, 0, 0, 528, 529, 5, 109, 0, 0, 529, 530, 5, 101, 0, 0, 530, 531, 5, 97, 0, 0, 531, 532, 5, 110, 0, 0, 532, 112, 1, 0, 0, 0, 533, 534, 5, 115, 0, 0, 534, 535, 5, 116, 0, 0, 535, 536, 5, 100, 0, 0, 536, 114, 1, 0, 0, 0, 537, 538, 5, 118, 0, 0, 538, 539, 5, 97, 0, 0, 539, 540, 5, 114, 0, 0, 540, 116, 1, 0, 0, 0, 541, 542, 5, 113, 0, 0, 542, 543, 5, 117, 0, 0, 543, 544, 5, 97, 0, 0, 544, 545, 5, 114, 0, 0, 545, 546, 5, 116, 0, 0, 546, 547, 5, 105, 0, 0, 547, 548, 5, 108, 0, 0, 548, 557, 5, 101, 0, 0, 549, 550, 5, 113, 0, 0, 550, 551, 5, 117, 0, 0, 551, 552, 5, 97, 0, 0, 552, 553, 5, 114, 0, 0, 553, 554, 5, 116, 0, 0, 554, 555, 5, 105, 0, 0, 555, 557, 5, 108, 0, 0, 556, 541, 1, 0, 0, 0, 556, 549, 1, 0, 0, 0, 557, 118, 1, 0, 0, 0, 558, 559, 5, 112, 0, 0, 559, 560, 5, 101, 0, 0, 560, 561, 5, 114, 0, 0, 561, 562, 5, 99, 0, 0, 562, 563, 5, 101, 0, 0, 563, 564, 5, 110, 0, 0, 564, 565, 5, 116, 0, 0, 565, 566, 5, 105, 0, 0, 566, 567, 5, 108, 0, 0, 567, 574, 5, 101, 0, 0, 568, 569, 5, 112, 0, 0, 569, 570, 5, 114, 0, 0, 570, 571, 5, 99, 0, 0, 571, 572, 5, 110, 0, 0, 572, 574, 5, 116, 0, 0, 573, 558, 1, 0, 0, 0, 573, 568, 1, 0, 0, 0, 574, 120, 1, 0, 0, 0, 575, 576, 5, 113, 0, 0, 576, 577, 5, 117, 0, 0, 577, 578, 5, 97, 0, 0, 578, 579, 5, 110, 0, 0, 579, 580, 5, 116, 0, 0, 580, 581, 5, 105, 0, 0, 581, 582, 5, 108, 0, 0, 582, 583, 5, 101, 0, 0, 583, 122, 1, 0, 0, 0, 584, 585, 5, 100, 0, 0, 585, 586, 5, 111, 0, 0, 586, 587, 5, 116, 0, 0, 587, 124, 1, 0, 0, 0, 588, 589, 5, 109, 0, 0, 589, 590, 5, 111, 0, 0, 590, 591, 5, 109, 0, 0, 591, 592, 5, 101, 0, 0, 592, 593, 5, 110, 0, 0, 593, 594, 5, 116, 0, 0, 594, 126, 1, 0, 0, 0, 595, 596, 5, 99, 0, 0, 596, 597, 5, 111, 0, 0, 597, 598, 5, 115, 0, 0, 598, 599, 5, 115, 0, 0, 599, 600, 5, 105, 0, 0, 600, 601, 5, 109, 0, 0, 601, 128, 1, 0, 0, 0, 602, 603, 5, 102, 0, 0, 603, 604, 5, 108, 0, 0, 604, 605, 5, 105, 0, 0, 605, 606, 5, 112, 0, 0, 606, 130, 1, 0, 0, 0, 607, 608, 5, 99, 0, 0, 608, 609, 5, 111, 0, 0, 609, 610, 5, 118, 0, 0, 610, 132, 1, 0, 0, 0, 611, 612, 5, 115, 0, 0, 612, 613, 5, 111, 0, 0, 613, 614, 5, 114, 0, 0, 614, 615, 5, 116, 0, 0, 615, 134, 1, 0, 0, 0, 616, 617, 5, 97, 0, 0, 617, 618, 5, 112, 0, 0, 618, 619, 5, 112, 0, 0, 619, 620, 5, 101, 0, 0, 620, 621, 5, 110, 0, 0, 621, 622, 5, 100, 0, 0, 622, 136, 1, 0, 0, 0, 623, 624, 5, 43, 0, 0, 624, 138, 1, 0, 0, 0, 625, 626, 5, 45, 0, 0, 626, 140, 1, 0, 0, 0, 627, 628, 5, 42, 0, 0, 628, 142, 1, 0, 0, 0, 629, 630, 5, 47, 0, 0, 630, 144, 1, 0, 0, 0, 631, 632, 5, 37, 0, 0, 632, 146, 1, 0, 0, 0, 633, 634, 5, 94, 0, 0, 634, 148, 1, 0, 0, 0, 635, 636, 5, 62, 0, 0, 636, 637, 5, 61, 0, 0, 637, 150, 1, 0, 0, 0, 638, 639, 5, 62, 0, 0, 639, 152, 1, 0, 0, 0, 640, 641, 5, 60, 0, 0, 641, 642, 5, 61, 0, 0, 642, 154, 1, 0, 0, 0, 643, 644, 5, 60, 0, 0, 644, 156, 1, 0, 0, 0, 645, 646, 5, 61, 0, 0, 646, 647, 5, 61, 0, 0, 647, 158, 1, 0, 0, 0, 648, 649, 5, 33, 0, 0, 649, 650, 5, 61, 0, 0, 650, 160, 1, 0, 0, 0, 651, 652, 5, 124, 0, 0, 652, 162, 1, 0, 0, 0, 653, 654, 5, 40, 0, 0, 654, 164, 1, 0, 0, 0, 655, 656, 5, 41, 0, 0, 656, 166, 1, 0, 0, 0, 657, 658, 5, 44, 0, 0, 658, 168, 1, 0, 0, 0, 659, 660, 5, 59, 0, 0, 660, 170, 1, 0, 0, 0, 661, 662, 5, 45, 0, 0, 662, 663, 5, 62, 0, 0, 663, 172, 1, 0, 0, 0, 664, 665, 5, 91, 0, 0, 665, 174, 1, 0, 0, 0, 666, 667, 5, 93, 0, 0, 667, 176, 1, 0, 0, 0, 668, 669, 5, 112, 0, 0, 669, 674, 5, 105, 0, 0, 670, 671, 5, 80, 0, 0, 671, 674, 5, 73, 0, 0, 672, 674, 7, 0, 0, 0, 673, 668, 1, 0, 0, 0, 673, 670, 1, 0, 0, 0, 673, 672, 1, 0, 0, 0, 674, 178, 1, 0, 0, 0, 675, 677, 7, 1, 0, 0, 676, 675, 1, 0, 0, 0, 677, 678, 1, 0, 0, 0, 678, 676, 1, 0, 0, 0, 678, 679, 1, 0, 0, 0, 679, 686, 1, 0, 0, 0, 680, 682, 5, 46, 0, 0, 681, 683, 7, 1, 0, 0, 682, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 682, 1, 0, 0, 0, 684, 685, 1, 0, 0, 0, 685, 687, 1, 0, 0, 0, 686, 680, 1, 0, 0, 0, 686, 687, 1, 0, 0, 0, 687, 180, 1, 0, 0, 0, 688, 692, 7, 2, 0, 0, 689, 691, 7, 3, 0, 0, 690, 689, 1, 0, 0, 0, 691, 694, 1, 0, 0, 0, 692, 690, 1, 0, 0, 0, 692, 693, 1, 0, 0, 0, 693, 182, 1, 0, 0, 0, 694, 692, 1, 0, 0, 0, 695, 697, 7, 4, 0, 0, 696, 695, 1, 0, 0, 0, 697, 698, 1, 0, 0, 0, 698, 696, 1, 0, 0, 0, 698, 699, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 701, 6, 91, 0, 0, 701, 184, 1, 0, 0, 0, 14, 0, 377, 453, 470, 488, 501, 556, 573, 673, 678, 684, 686, 692, 698, 1, 6, 0, 0] \ No newline at end of file diff --git a/more_math/Parser/MathExprLexer.py b/more_math/Parser/MathExprLexer.py index c37c91c..0539d40 100644 --- a/more_math/Parser/MathExprLexer.py +++ b/more_math/Parser/MathExprLexer.py @@ -10,7 +10,7 @@ else: def serializedATN(): return [ - 4,0,91,693,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, + 4,0,92,702,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2, 13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7, 19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2, @@ -23,238 +23,241 @@ def serializedATN(): 65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7, 71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2, 78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7, - 84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,1, - 0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1, - 3,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1, - 6,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1, - 10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,12,1, - 12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1, - 14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,18,1, - 18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1, - 20,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,23,1, - 23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1, - 25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1, - 27,1,27,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1, - 30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1, - 33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,35,1, - 35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1, - 35,3,35,376,8,35,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1, - 37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1, - 39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1, - 41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1, - 43,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1, - 45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3, - 45,452,8,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1, - 46,1,46,1,46,1,46,1,46,3,46,469,8,46,1,47,1,47,1,47,1,47,1,47,1, - 48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,487,8, - 48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,500, - 8,49,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52, - 1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54, - 1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57, - 1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58, - 1,58,1,58,3,58,555,8,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59, - 1,59,1,59,1,59,1,59,1,59,1,59,1,59,3,59,572,8,59,1,60,1,60,1,60, - 1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,62,1,62,1,62, - 1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64, - 1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,67, - 1,67,1,68,1,68,1,69,1,69,1,70,1,70,1,71,1,71,1,72,1,72,1,73,1,73, - 1,73,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,77,1,77,1,77,1,78,1,78, - 1,78,1,79,1,79,1,80,1,80,1,81,1,81,1,82,1,82,1,83,1,83,1,84,1,84, - 1,84,1,85,1,85,1,86,1,86,1,87,1,87,1,87,1,87,1,87,3,87,665,8,87, - 1,88,4,88,668,8,88,11,88,12,88,669,1,88,1,88,4,88,674,8,88,11,88, - 12,88,675,3,88,678,8,88,1,89,1,89,5,89,682,8,89,10,89,12,89,685, - 9,89,1,90,4,90,688,8,90,11,90,12,90,689,1,90,1,90,0,0,91,1,1,3,2, - 5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29, - 15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51, - 26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73, - 37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95, - 48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57, - 115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133, - 67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76, - 153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171, - 86,173,87,175,88,177,89,179,90,181,91,1,0,5,2,0,69,69,101,101,1, - 0,48,57,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,3,0, - 9,10,13,13,32,32,706,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0, - 0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0, - 0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0, - 0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0, - 0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0, - 0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0, - 0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0, - 0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0, - 0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0, - 0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0, - 0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107, - 1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0, - 0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1, - 0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0, - 135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0, - 0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153, - 1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0, - 0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1, - 0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0, - 181,1,0,0,0,1,183,1,0,0,0,3,187,1,0,0,0,5,191,1,0,0,0,7,195,1,0, - 0,0,9,200,1,0,0,0,11,205,1,0,0,0,13,210,1,0,0,0,15,216,1,0,0,0,17, - 221,1,0,0,0,19,226,1,0,0,0,21,231,1,0,0,0,23,237,1,0,0,0,25,243, - 1,0,0,0,27,249,1,0,0,0,29,253,1,0,0,0,31,258,1,0,0,0,33,261,1,0, - 0,0,35,265,1,0,0,0,37,269,1,0,0,0,39,274,1,0,0,0,41,279,1,0,0,0, - 43,284,1,0,0,0,45,289,1,0,0,0,47,295,1,0,0,0,49,301,1,0,0,0,51,307, - 1,0,0,0,53,312,1,0,0,0,55,318,1,0,0,0,57,324,1,0,0,0,59,328,1,0, - 0,0,61,333,1,0,0,0,63,339,1,0,0,0,65,343,1,0,0,0,67,348,1,0,0,0, - 69,354,1,0,0,0,71,375,1,0,0,0,73,377,1,0,0,0,75,382,1,0,0,0,77,387, - 1,0,0,0,79,398,1,0,0,0,81,404,1,0,0,0,83,409,1,0,0,0,85,418,1,0, - 0,0,87,423,1,0,0,0,89,428,1,0,0,0,91,451,1,0,0,0,93,468,1,0,0,0, - 95,470,1,0,0,0,97,486,1,0,0,0,99,499,1,0,0,0,101,501,1,0,0,0,103, - 507,1,0,0,0,105,512,1,0,0,0,107,517,1,0,0,0,109,522,1,0,0,0,111, - 526,1,0,0,0,113,531,1,0,0,0,115,535,1,0,0,0,117,554,1,0,0,0,119, - 571,1,0,0,0,121,573,1,0,0,0,123,582,1,0,0,0,125,586,1,0,0,0,127, - 593,1,0,0,0,129,600,1,0,0,0,131,605,1,0,0,0,133,609,1,0,0,0,135, - 614,1,0,0,0,137,616,1,0,0,0,139,618,1,0,0,0,141,620,1,0,0,0,143, - 622,1,0,0,0,145,624,1,0,0,0,147,626,1,0,0,0,149,629,1,0,0,0,151, - 631,1,0,0,0,153,634,1,0,0,0,155,636,1,0,0,0,157,639,1,0,0,0,159, - 642,1,0,0,0,161,644,1,0,0,0,163,646,1,0,0,0,165,648,1,0,0,0,167, - 650,1,0,0,0,169,652,1,0,0,0,171,655,1,0,0,0,173,657,1,0,0,0,175, - 664,1,0,0,0,177,667,1,0,0,0,179,679,1,0,0,0,181,687,1,0,0,0,183, - 184,5,115,0,0,184,185,5,105,0,0,185,186,5,110,0,0,186,2,1,0,0,0, - 187,188,5,99,0,0,188,189,5,111,0,0,189,190,5,115,0,0,190,4,1,0,0, - 0,191,192,5,116,0,0,192,193,5,97,0,0,193,194,5,110,0,0,194,6,1,0, - 0,0,195,196,5,97,0,0,196,197,5,115,0,0,197,198,5,105,0,0,198,199, - 5,110,0,0,199,8,1,0,0,0,200,201,5,97,0,0,201,202,5,99,0,0,202,203, - 5,111,0,0,203,204,5,115,0,0,204,10,1,0,0,0,205,206,5,97,0,0,206, - 207,5,116,0,0,207,208,5,97,0,0,208,209,5,110,0,0,209,12,1,0,0,0, - 210,211,5,97,0,0,211,212,5,116,0,0,212,213,5,97,0,0,213,214,5,110, - 0,0,214,215,5,50,0,0,215,14,1,0,0,0,216,217,5,115,0,0,217,218,5, - 105,0,0,218,219,5,110,0,0,219,220,5,104,0,0,220,16,1,0,0,0,221,222, - 5,99,0,0,222,223,5,111,0,0,223,224,5,115,0,0,224,225,5,104,0,0,225, - 18,1,0,0,0,226,227,5,116,0,0,227,228,5,97,0,0,228,229,5,110,0,0, - 229,230,5,104,0,0,230,20,1,0,0,0,231,232,5,97,0,0,232,233,5,115, - 0,0,233,234,5,105,0,0,234,235,5,110,0,0,235,236,5,104,0,0,236,22, - 1,0,0,0,237,238,5,97,0,0,238,239,5,99,0,0,239,240,5,111,0,0,240, - 241,5,115,0,0,241,242,5,104,0,0,242,24,1,0,0,0,243,244,5,97,0,0, - 244,245,5,116,0,0,245,246,5,97,0,0,246,247,5,110,0,0,247,248,5,104, - 0,0,248,26,1,0,0,0,249,250,5,97,0,0,250,251,5,98,0,0,251,252,5,115, - 0,0,252,28,1,0,0,0,253,254,5,115,0,0,254,255,5,113,0,0,255,256,5, - 114,0,0,256,257,5,116,0,0,257,30,1,0,0,0,258,259,5,108,0,0,259,260, - 5,110,0,0,260,32,1,0,0,0,261,262,5,108,0,0,262,263,5,111,0,0,263, - 264,5,103,0,0,264,34,1,0,0,0,265,266,5,101,0,0,266,267,5,120,0,0, - 267,268,5,112,0,0,268,36,1,0,0,0,269,270,5,115,0,0,270,271,5,109, - 0,0,271,272,5,105,0,0,272,273,5,110,0,0,273,38,1,0,0,0,274,275,5, - 115,0,0,275,276,5,109,0,0,276,277,5,97,0,0,277,278,5,120,0,0,278, - 40,1,0,0,0,279,280,5,116,0,0,280,281,5,109,0,0,281,282,5,105,0,0, - 282,283,5,110,0,0,283,42,1,0,0,0,284,285,5,116,0,0,285,286,5,109, - 0,0,286,287,5,97,0,0,287,288,5,120,0,0,288,44,1,0,0,0,289,290,5, - 116,0,0,290,291,5,110,0,0,291,292,5,111,0,0,292,293,5,114,0,0,293, - 294,5,109,0,0,294,46,1,0,0,0,295,296,5,115,0,0,296,297,5,110,0,0, - 297,298,5,111,0,0,298,299,5,114,0,0,299,300,5,109,0,0,300,48,1,0, - 0,0,301,302,5,102,0,0,302,303,5,108,0,0,303,304,5,111,0,0,304,305, - 5,111,0,0,305,306,5,114,0,0,306,50,1,0,0,0,307,308,5,99,0,0,308, - 309,5,101,0,0,309,310,5,105,0,0,310,311,5,108,0,0,311,52,1,0,0,0, - 312,313,5,114,0,0,313,314,5,111,0,0,314,315,5,117,0,0,315,316,5, - 110,0,0,316,317,5,100,0,0,317,54,1,0,0,0,318,319,5,103,0,0,319,320, - 5,97,0,0,320,321,5,109,0,0,321,322,5,109,0,0,322,323,5,97,0,0,323, - 56,1,0,0,0,324,325,5,112,0,0,325,326,5,111,0,0,326,327,5,119,0,0, - 327,58,1,0,0,0,328,329,5,115,0,0,329,330,5,105,0,0,330,331,5,103, - 0,0,331,332,5,109,0,0,332,60,1,0,0,0,333,334,5,99,0,0,334,335,5, - 108,0,0,335,336,5,97,0,0,336,337,5,109,0,0,337,338,5,112,0,0,338, - 62,1,0,0,0,339,340,5,102,0,0,340,341,5,102,0,0,341,342,5,116,0,0, - 342,64,1,0,0,0,343,344,5,105,0,0,344,345,5,102,0,0,345,346,5,102, - 0,0,346,347,5,116,0,0,347,66,1,0,0,0,348,349,5,97,0,0,349,350,5, - 110,0,0,350,351,5,103,0,0,351,352,5,108,0,0,352,353,5,101,0,0,353, - 68,1,0,0,0,354,355,5,112,0,0,355,356,5,114,0,0,356,357,5,105,0,0, - 357,358,5,110,0,0,358,359,5,116,0,0,359,70,1,0,0,0,360,361,5,112, - 0,0,361,362,5,114,0,0,362,363,5,105,0,0,363,364,5,110,0,0,364,365, - 5,116,0,0,365,366,5,95,0,0,366,367,5,115,0,0,367,368,5,104,0,0,368, - 369,5,97,0,0,369,370,5,112,0,0,370,376,5,101,0,0,371,372,5,112,0, - 0,372,373,5,115,0,0,373,374,5,104,0,0,374,376,5,112,0,0,375,360, - 1,0,0,0,375,371,1,0,0,0,376,72,1,0,0,0,377,378,5,108,0,0,378,379, - 5,101,0,0,379,380,5,114,0,0,380,381,5,112,0,0,381,74,1,0,0,0,382, - 383,5,115,0,0,383,384,5,116,0,0,384,385,5,101,0,0,385,386,5,112, - 0,0,386,76,1,0,0,0,387,388,5,115,0,0,388,389,5,109,0,0,389,390,5, - 111,0,0,390,391,5,111,0,0,391,392,5,116,0,0,392,393,5,104,0,0,393, - 394,5,115,0,0,394,395,5,116,0,0,395,396,5,101,0,0,396,397,5,112, - 0,0,397,78,1,0,0,0,398,399,5,102,0,0,399,400,5,114,0,0,400,401,5, - 97,0,0,401,402,5,99,0,0,402,403,5,116,0,0,403,80,1,0,0,0,404,405, - 5,114,0,0,405,406,5,101,0,0,406,407,5,108,0,0,407,408,5,117,0,0, - 408,82,1,0,0,0,409,410,5,115,0,0,410,411,5,111,0,0,411,412,5,102, - 0,0,412,413,5,116,0,0,413,414,5,112,0,0,414,415,5,108,0,0,415,416, - 5,117,0,0,416,417,5,115,0,0,417,84,1,0,0,0,418,419,5,103,0,0,419, - 420,5,101,0,0,420,421,5,108,0,0,421,422,5,117,0,0,422,86,1,0,0,0, - 423,424,5,115,0,0,424,425,5,105,0,0,425,426,5,103,0,0,426,427,5, - 110,0,0,427,88,1,0,0,0,428,429,5,109,0,0,429,430,5,97,0,0,430,431, - 5,112,0,0,431,90,1,0,0,0,432,433,5,101,0,0,433,434,5,122,0,0,434, - 435,5,99,0,0,435,436,5,111,0,0,436,437,5,110,0,0,437,438,5,118,0, - 0,438,439,5,111,0,0,439,440,5,108,0,0,440,441,5,117,0,0,441,442, - 5,116,0,0,442,443,5,105,0,0,443,444,5,111,0,0,444,452,5,110,0,0, - 445,446,5,101,0,0,446,447,5,122,0,0,447,448,5,99,0,0,448,449,5,111, - 0,0,449,450,5,110,0,0,450,452,5,118,0,0,451,432,1,0,0,0,451,445, - 1,0,0,0,452,92,1,0,0,0,453,454,5,99,0,0,454,455,5,111,0,0,455,456, - 5,110,0,0,456,457,5,118,0,0,457,458,5,111,0,0,458,459,5,108,0,0, - 459,460,5,117,0,0,460,461,5,116,0,0,461,462,5,105,0,0,462,463,5, - 111,0,0,463,469,5,110,0,0,464,465,5,99,0,0,465,466,5,111,0,0,466, - 467,5,110,0,0,467,469,5,118,0,0,468,453,1,0,0,0,468,464,1,0,0,0, - 469,94,1,0,0,0,470,471,5,115,0,0,471,472,5,119,0,0,472,473,5,97, - 0,0,473,474,5,112,0,0,474,96,1,0,0,0,475,476,5,112,0,0,476,477,5, - 101,0,0,477,478,5,114,0,0,478,479,5,109,0,0,479,480,5,117,0,0,480, - 481,5,116,0,0,481,487,5,101,0,0,482,483,5,112,0,0,483,484,5,101, - 0,0,484,485,5,114,0,0,485,487,5,109,0,0,486,475,1,0,0,0,486,482, - 1,0,0,0,487,98,1,0,0,0,488,489,5,114,0,0,489,490,5,101,0,0,490,491, - 5,115,0,0,491,492,5,104,0,0,492,493,5,97,0,0,493,494,5,112,0,0,494, - 500,5,101,0,0,495,496,5,114,0,0,496,497,5,115,0,0,497,498,5,104, - 0,0,498,500,5,112,0,0,499,488,1,0,0,0,499,495,1,0,0,0,500,100,1, - 0,0,0,501,502,5,114,0,0,502,503,5,97,0,0,503,504,5,110,0,0,504,505, - 5,103,0,0,505,506,5,101,0,0,506,102,1,0,0,0,507,508,5,116,0,0,508, - 509,5,111,0,0,509,510,5,112,0,0,510,511,5,107,0,0,511,104,1,0,0, - 0,512,513,5,98,0,0,513,514,5,111,0,0,514,515,5,116,0,0,515,516,5, - 107,0,0,516,106,1,0,0,0,517,518,5,112,0,0,518,519,5,105,0,0,519, - 520,5,110,0,0,520,521,5,118,0,0,521,108,1,0,0,0,522,523,5,115,0, - 0,523,524,5,117,0,0,524,525,5,109,0,0,525,110,1,0,0,0,526,527,5, - 109,0,0,527,528,5,101,0,0,528,529,5,97,0,0,529,530,5,110,0,0,530, - 112,1,0,0,0,531,532,5,115,0,0,532,533,5,116,0,0,533,534,5,100,0, - 0,534,114,1,0,0,0,535,536,5,118,0,0,536,537,5,97,0,0,537,538,5,114, - 0,0,538,116,1,0,0,0,539,540,5,113,0,0,540,541,5,117,0,0,541,542, - 5,97,0,0,542,543,5,114,0,0,543,544,5,116,0,0,544,545,5,105,0,0,545, - 546,5,108,0,0,546,555,5,101,0,0,547,548,5,113,0,0,548,549,5,117, - 0,0,549,550,5,97,0,0,550,551,5,114,0,0,551,552,5,116,0,0,552,553, - 5,105,0,0,553,555,5,108,0,0,554,539,1,0,0,0,554,547,1,0,0,0,555, - 118,1,0,0,0,556,557,5,112,0,0,557,558,5,101,0,0,558,559,5,114,0, - 0,559,560,5,99,0,0,560,561,5,101,0,0,561,562,5,110,0,0,562,563,5, - 116,0,0,563,564,5,105,0,0,564,565,5,108,0,0,565,572,5,101,0,0,566, - 567,5,112,0,0,567,568,5,114,0,0,568,569,5,99,0,0,569,570,5,110,0, - 0,570,572,5,116,0,0,571,556,1,0,0,0,571,566,1,0,0,0,572,120,1,0, - 0,0,573,574,5,113,0,0,574,575,5,117,0,0,575,576,5,97,0,0,576,577, - 5,110,0,0,577,578,5,116,0,0,578,579,5,105,0,0,579,580,5,108,0,0, - 580,581,5,101,0,0,581,122,1,0,0,0,582,583,5,100,0,0,583,584,5,111, - 0,0,584,585,5,116,0,0,585,124,1,0,0,0,586,587,5,109,0,0,587,588, - 5,111,0,0,588,589,5,109,0,0,589,590,5,101,0,0,590,591,5,110,0,0, - 591,592,5,116,0,0,592,126,1,0,0,0,593,594,5,99,0,0,594,595,5,111, - 0,0,595,596,5,115,0,0,596,597,5,115,0,0,597,598,5,105,0,0,598,599, - 5,109,0,0,599,128,1,0,0,0,600,601,5,102,0,0,601,602,5,108,0,0,602, - 603,5,105,0,0,603,604,5,112,0,0,604,130,1,0,0,0,605,606,5,99,0,0, - 606,607,5,111,0,0,607,608,5,118,0,0,608,132,1,0,0,0,609,610,5,115, - 0,0,610,611,5,111,0,0,611,612,5,114,0,0,612,613,5,116,0,0,613,134, - 1,0,0,0,614,615,5,43,0,0,615,136,1,0,0,0,616,617,5,45,0,0,617,138, - 1,0,0,0,618,619,5,42,0,0,619,140,1,0,0,0,620,621,5,47,0,0,621,142, - 1,0,0,0,622,623,5,37,0,0,623,144,1,0,0,0,624,625,5,94,0,0,625,146, - 1,0,0,0,626,627,5,62,0,0,627,628,5,61,0,0,628,148,1,0,0,0,629,630, - 5,62,0,0,630,150,1,0,0,0,631,632,5,60,0,0,632,633,5,61,0,0,633,152, - 1,0,0,0,634,635,5,60,0,0,635,154,1,0,0,0,636,637,5,61,0,0,637,638, - 5,61,0,0,638,156,1,0,0,0,639,640,5,33,0,0,640,641,5,61,0,0,641,158, - 1,0,0,0,642,643,5,124,0,0,643,160,1,0,0,0,644,645,5,40,0,0,645,162, - 1,0,0,0,646,647,5,41,0,0,647,164,1,0,0,0,648,649,5,44,0,0,649,166, - 1,0,0,0,650,651,5,59,0,0,651,168,1,0,0,0,652,653,5,45,0,0,653,654, - 5,62,0,0,654,170,1,0,0,0,655,656,5,91,0,0,656,172,1,0,0,0,657,658, - 5,93,0,0,658,174,1,0,0,0,659,660,5,112,0,0,660,665,5,105,0,0,661, - 662,5,80,0,0,662,665,5,73,0,0,663,665,7,0,0,0,664,659,1,0,0,0,664, - 661,1,0,0,0,664,663,1,0,0,0,665,176,1,0,0,0,666,668,7,1,0,0,667, - 666,1,0,0,0,668,669,1,0,0,0,669,667,1,0,0,0,669,670,1,0,0,0,670, - 677,1,0,0,0,671,673,5,46,0,0,672,674,7,1,0,0,673,672,1,0,0,0,674, - 675,1,0,0,0,675,673,1,0,0,0,675,676,1,0,0,0,676,678,1,0,0,0,677, - 671,1,0,0,0,677,678,1,0,0,0,678,178,1,0,0,0,679,683,7,2,0,0,680, - 682,7,3,0,0,681,680,1,0,0,0,682,685,1,0,0,0,683,681,1,0,0,0,683, - 684,1,0,0,0,684,180,1,0,0,0,685,683,1,0,0,0,686,688,7,4,0,0,687, - 686,1,0,0,0,688,689,1,0,0,0,689,687,1,0,0,0,689,690,1,0,0,0,690, - 691,1,0,0,0,691,692,6,90,0,0,692,182,1,0,0,0,14,0,375,451,468,486, - 499,554,571,664,669,675,677,683,689,1,6,0,0 + 84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2, + 91,7,91,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3, + 1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6, + 1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9, + 1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1, + 11,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,14,1,14,1, + 14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1, + 17,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1, + 20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1, + 22,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1, + 25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1, + 27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1, + 30,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1, + 32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1, + 34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1, + 35,1,35,1,35,3,35,378,8,35,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1, + 37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1, + 41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1, + 43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1, + 45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1, + 45,1,45,3,45,454,8,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1, + 46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,471,8,46,1,47,1,47,1,47,1, + 47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3, + 48,489,8,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1, + 49,3,49,502,8,49,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1, + 51,1,51,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1, + 54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,57,1, + 57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1, + 58,1,58,1,58,1,58,1,58,3,58,557,8,58,1,59,1,59,1,59,1,59,1,59,1, + 59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,3,59,574,8,59,1, + 60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1, + 62,1,62,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1, + 63,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1, + 66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,69,1,69,1, + 70,1,70,1,71,1,71,1,72,1,72,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1, + 76,1,76,1,76,1,77,1,77,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1, + 81,1,81,1,82,1,82,1,83,1,83,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1, + 87,1,87,1,88,1,88,1,88,1,88,1,88,3,88,674,8,88,1,89,4,89,677,8,89, + 11,89,12,89,678,1,89,1,89,4,89,683,8,89,11,89,12,89,684,3,89,687, + 8,89,1,90,1,90,5,90,691,8,90,10,90,12,90,694,9,90,1,91,4,91,697, + 8,91,11,91,12,91,698,1,91,1,91,0,0,92,1,1,3,2,5,3,7,4,9,5,11,6,13, + 7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18, + 37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29, + 59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40, + 81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101, + 51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60, + 121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139, + 70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79, + 159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177, + 89,179,90,181,91,183,92,1,0,5,2,0,69,69,101,101,1,0,48,57,3,0,65, + 90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,3,0,9,10,13,13,32,32, + 715,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0, + 0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0, + 0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0, + 0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0, + 0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0, + 0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0, + 0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0, + 0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0, + 0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0, + 0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0, + 0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1, + 0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0, + 119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0, + 0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137, + 1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0, + 0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1, + 0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0, + 165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0, + 0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183, + 1,0,0,0,1,185,1,0,0,0,3,189,1,0,0,0,5,193,1,0,0,0,7,197,1,0,0,0, + 9,202,1,0,0,0,11,207,1,0,0,0,13,212,1,0,0,0,15,218,1,0,0,0,17,223, + 1,0,0,0,19,228,1,0,0,0,21,233,1,0,0,0,23,239,1,0,0,0,25,245,1,0, + 0,0,27,251,1,0,0,0,29,255,1,0,0,0,31,260,1,0,0,0,33,263,1,0,0,0, + 35,267,1,0,0,0,37,271,1,0,0,0,39,276,1,0,0,0,41,281,1,0,0,0,43,286, + 1,0,0,0,45,291,1,0,0,0,47,297,1,0,0,0,49,303,1,0,0,0,51,309,1,0, + 0,0,53,314,1,0,0,0,55,320,1,0,0,0,57,326,1,0,0,0,59,330,1,0,0,0, + 61,335,1,0,0,0,63,341,1,0,0,0,65,345,1,0,0,0,67,350,1,0,0,0,69,356, + 1,0,0,0,71,377,1,0,0,0,73,379,1,0,0,0,75,384,1,0,0,0,77,389,1,0, + 0,0,79,400,1,0,0,0,81,406,1,0,0,0,83,411,1,0,0,0,85,420,1,0,0,0, + 87,425,1,0,0,0,89,430,1,0,0,0,91,453,1,0,0,0,93,470,1,0,0,0,95,472, + 1,0,0,0,97,488,1,0,0,0,99,501,1,0,0,0,101,503,1,0,0,0,103,509,1, + 0,0,0,105,514,1,0,0,0,107,519,1,0,0,0,109,524,1,0,0,0,111,528,1, + 0,0,0,113,533,1,0,0,0,115,537,1,0,0,0,117,556,1,0,0,0,119,573,1, + 0,0,0,121,575,1,0,0,0,123,584,1,0,0,0,125,588,1,0,0,0,127,595,1, + 0,0,0,129,602,1,0,0,0,131,607,1,0,0,0,133,611,1,0,0,0,135,616,1, + 0,0,0,137,623,1,0,0,0,139,625,1,0,0,0,141,627,1,0,0,0,143,629,1, + 0,0,0,145,631,1,0,0,0,147,633,1,0,0,0,149,635,1,0,0,0,151,638,1, + 0,0,0,153,640,1,0,0,0,155,643,1,0,0,0,157,645,1,0,0,0,159,648,1, + 0,0,0,161,651,1,0,0,0,163,653,1,0,0,0,165,655,1,0,0,0,167,657,1, + 0,0,0,169,659,1,0,0,0,171,661,1,0,0,0,173,664,1,0,0,0,175,666,1, + 0,0,0,177,673,1,0,0,0,179,676,1,0,0,0,181,688,1,0,0,0,183,696,1, + 0,0,0,185,186,5,115,0,0,186,187,5,105,0,0,187,188,5,110,0,0,188, + 2,1,0,0,0,189,190,5,99,0,0,190,191,5,111,0,0,191,192,5,115,0,0,192, + 4,1,0,0,0,193,194,5,116,0,0,194,195,5,97,0,0,195,196,5,110,0,0,196, + 6,1,0,0,0,197,198,5,97,0,0,198,199,5,115,0,0,199,200,5,105,0,0,200, + 201,5,110,0,0,201,8,1,0,0,0,202,203,5,97,0,0,203,204,5,99,0,0,204, + 205,5,111,0,0,205,206,5,115,0,0,206,10,1,0,0,0,207,208,5,97,0,0, + 208,209,5,116,0,0,209,210,5,97,0,0,210,211,5,110,0,0,211,12,1,0, + 0,0,212,213,5,97,0,0,213,214,5,116,0,0,214,215,5,97,0,0,215,216, + 5,110,0,0,216,217,5,50,0,0,217,14,1,0,0,0,218,219,5,115,0,0,219, + 220,5,105,0,0,220,221,5,110,0,0,221,222,5,104,0,0,222,16,1,0,0,0, + 223,224,5,99,0,0,224,225,5,111,0,0,225,226,5,115,0,0,226,227,5,104, + 0,0,227,18,1,0,0,0,228,229,5,116,0,0,229,230,5,97,0,0,230,231,5, + 110,0,0,231,232,5,104,0,0,232,20,1,0,0,0,233,234,5,97,0,0,234,235, + 5,115,0,0,235,236,5,105,0,0,236,237,5,110,0,0,237,238,5,104,0,0, + 238,22,1,0,0,0,239,240,5,97,0,0,240,241,5,99,0,0,241,242,5,111,0, + 0,242,243,5,115,0,0,243,244,5,104,0,0,244,24,1,0,0,0,245,246,5,97, + 0,0,246,247,5,116,0,0,247,248,5,97,0,0,248,249,5,110,0,0,249,250, + 5,104,0,0,250,26,1,0,0,0,251,252,5,97,0,0,252,253,5,98,0,0,253,254, + 5,115,0,0,254,28,1,0,0,0,255,256,5,115,0,0,256,257,5,113,0,0,257, + 258,5,114,0,0,258,259,5,116,0,0,259,30,1,0,0,0,260,261,5,108,0,0, + 261,262,5,110,0,0,262,32,1,0,0,0,263,264,5,108,0,0,264,265,5,111, + 0,0,265,266,5,103,0,0,266,34,1,0,0,0,267,268,5,101,0,0,268,269,5, + 120,0,0,269,270,5,112,0,0,270,36,1,0,0,0,271,272,5,115,0,0,272,273, + 5,109,0,0,273,274,5,105,0,0,274,275,5,110,0,0,275,38,1,0,0,0,276, + 277,5,115,0,0,277,278,5,109,0,0,278,279,5,97,0,0,279,280,5,120,0, + 0,280,40,1,0,0,0,281,282,5,116,0,0,282,283,5,109,0,0,283,284,5,105, + 0,0,284,285,5,110,0,0,285,42,1,0,0,0,286,287,5,116,0,0,287,288,5, + 109,0,0,288,289,5,97,0,0,289,290,5,120,0,0,290,44,1,0,0,0,291,292, + 5,116,0,0,292,293,5,110,0,0,293,294,5,111,0,0,294,295,5,114,0,0, + 295,296,5,109,0,0,296,46,1,0,0,0,297,298,5,115,0,0,298,299,5,110, + 0,0,299,300,5,111,0,0,300,301,5,114,0,0,301,302,5,109,0,0,302,48, + 1,0,0,0,303,304,5,102,0,0,304,305,5,108,0,0,305,306,5,111,0,0,306, + 307,5,111,0,0,307,308,5,114,0,0,308,50,1,0,0,0,309,310,5,99,0,0, + 310,311,5,101,0,0,311,312,5,105,0,0,312,313,5,108,0,0,313,52,1,0, + 0,0,314,315,5,114,0,0,315,316,5,111,0,0,316,317,5,117,0,0,317,318, + 5,110,0,0,318,319,5,100,0,0,319,54,1,0,0,0,320,321,5,103,0,0,321, + 322,5,97,0,0,322,323,5,109,0,0,323,324,5,109,0,0,324,325,5,97,0, + 0,325,56,1,0,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,119, + 0,0,329,58,1,0,0,0,330,331,5,115,0,0,331,332,5,105,0,0,332,333,5, + 103,0,0,333,334,5,109,0,0,334,60,1,0,0,0,335,336,5,99,0,0,336,337, + 5,108,0,0,337,338,5,97,0,0,338,339,5,109,0,0,339,340,5,112,0,0,340, + 62,1,0,0,0,341,342,5,102,0,0,342,343,5,102,0,0,343,344,5,116,0,0, + 344,64,1,0,0,0,345,346,5,105,0,0,346,347,5,102,0,0,347,348,5,102, + 0,0,348,349,5,116,0,0,349,66,1,0,0,0,350,351,5,97,0,0,351,352,5, + 110,0,0,352,353,5,103,0,0,353,354,5,108,0,0,354,355,5,101,0,0,355, + 68,1,0,0,0,356,357,5,112,0,0,357,358,5,114,0,0,358,359,5,105,0,0, + 359,360,5,110,0,0,360,361,5,116,0,0,361,70,1,0,0,0,362,363,5,112, + 0,0,363,364,5,114,0,0,364,365,5,105,0,0,365,366,5,110,0,0,366,367, + 5,116,0,0,367,368,5,95,0,0,368,369,5,115,0,0,369,370,5,104,0,0,370, + 371,5,97,0,0,371,372,5,112,0,0,372,378,5,101,0,0,373,374,5,112,0, + 0,374,375,5,115,0,0,375,376,5,104,0,0,376,378,5,112,0,0,377,362, + 1,0,0,0,377,373,1,0,0,0,378,72,1,0,0,0,379,380,5,108,0,0,380,381, + 5,101,0,0,381,382,5,114,0,0,382,383,5,112,0,0,383,74,1,0,0,0,384, + 385,5,115,0,0,385,386,5,116,0,0,386,387,5,101,0,0,387,388,5,112, + 0,0,388,76,1,0,0,0,389,390,5,115,0,0,390,391,5,109,0,0,391,392,5, + 111,0,0,392,393,5,111,0,0,393,394,5,116,0,0,394,395,5,104,0,0,395, + 396,5,115,0,0,396,397,5,116,0,0,397,398,5,101,0,0,398,399,5,112, + 0,0,399,78,1,0,0,0,400,401,5,102,0,0,401,402,5,114,0,0,402,403,5, + 97,0,0,403,404,5,99,0,0,404,405,5,116,0,0,405,80,1,0,0,0,406,407, + 5,114,0,0,407,408,5,101,0,0,408,409,5,108,0,0,409,410,5,117,0,0, + 410,82,1,0,0,0,411,412,5,115,0,0,412,413,5,111,0,0,413,414,5,102, + 0,0,414,415,5,116,0,0,415,416,5,112,0,0,416,417,5,108,0,0,417,418, + 5,117,0,0,418,419,5,115,0,0,419,84,1,0,0,0,420,421,5,103,0,0,421, + 422,5,101,0,0,422,423,5,108,0,0,423,424,5,117,0,0,424,86,1,0,0,0, + 425,426,5,115,0,0,426,427,5,105,0,0,427,428,5,103,0,0,428,429,5, + 110,0,0,429,88,1,0,0,0,430,431,5,109,0,0,431,432,5,97,0,0,432,433, + 5,112,0,0,433,90,1,0,0,0,434,435,5,101,0,0,435,436,5,122,0,0,436, + 437,5,99,0,0,437,438,5,111,0,0,438,439,5,110,0,0,439,440,5,118,0, + 0,440,441,5,111,0,0,441,442,5,108,0,0,442,443,5,117,0,0,443,444, + 5,116,0,0,444,445,5,105,0,0,445,446,5,111,0,0,446,454,5,110,0,0, + 447,448,5,101,0,0,448,449,5,122,0,0,449,450,5,99,0,0,450,451,5,111, + 0,0,451,452,5,110,0,0,452,454,5,118,0,0,453,434,1,0,0,0,453,447, + 1,0,0,0,454,92,1,0,0,0,455,456,5,99,0,0,456,457,5,111,0,0,457,458, + 5,110,0,0,458,459,5,118,0,0,459,460,5,111,0,0,460,461,5,108,0,0, + 461,462,5,117,0,0,462,463,5,116,0,0,463,464,5,105,0,0,464,465,5, + 111,0,0,465,471,5,110,0,0,466,467,5,99,0,0,467,468,5,111,0,0,468, + 469,5,110,0,0,469,471,5,118,0,0,470,455,1,0,0,0,470,466,1,0,0,0, + 471,94,1,0,0,0,472,473,5,115,0,0,473,474,5,119,0,0,474,475,5,97, + 0,0,475,476,5,112,0,0,476,96,1,0,0,0,477,478,5,112,0,0,478,479,5, + 101,0,0,479,480,5,114,0,0,480,481,5,109,0,0,481,482,5,117,0,0,482, + 483,5,116,0,0,483,489,5,101,0,0,484,485,5,112,0,0,485,486,5,101, + 0,0,486,487,5,114,0,0,487,489,5,109,0,0,488,477,1,0,0,0,488,484, + 1,0,0,0,489,98,1,0,0,0,490,491,5,114,0,0,491,492,5,101,0,0,492,493, + 5,115,0,0,493,494,5,104,0,0,494,495,5,97,0,0,495,496,5,112,0,0,496, + 502,5,101,0,0,497,498,5,114,0,0,498,499,5,115,0,0,499,500,5,104, + 0,0,500,502,5,112,0,0,501,490,1,0,0,0,501,497,1,0,0,0,502,100,1, + 0,0,0,503,504,5,114,0,0,504,505,5,97,0,0,505,506,5,110,0,0,506,507, + 5,103,0,0,507,508,5,101,0,0,508,102,1,0,0,0,509,510,5,116,0,0,510, + 511,5,111,0,0,511,512,5,112,0,0,512,513,5,107,0,0,513,104,1,0,0, + 0,514,515,5,98,0,0,515,516,5,111,0,0,516,517,5,116,0,0,517,518,5, + 107,0,0,518,106,1,0,0,0,519,520,5,112,0,0,520,521,5,105,0,0,521, + 522,5,110,0,0,522,523,5,118,0,0,523,108,1,0,0,0,524,525,5,115,0, + 0,525,526,5,117,0,0,526,527,5,109,0,0,527,110,1,0,0,0,528,529,5, + 109,0,0,529,530,5,101,0,0,530,531,5,97,0,0,531,532,5,110,0,0,532, + 112,1,0,0,0,533,534,5,115,0,0,534,535,5,116,0,0,535,536,5,100,0, + 0,536,114,1,0,0,0,537,538,5,118,0,0,538,539,5,97,0,0,539,540,5,114, + 0,0,540,116,1,0,0,0,541,542,5,113,0,0,542,543,5,117,0,0,543,544, + 5,97,0,0,544,545,5,114,0,0,545,546,5,116,0,0,546,547,5,105,0,0,547, + 548,5,108,0,0,548,557,5,101,0,0,549,550,5,113,0,0,550,551,5,117, + 0,0,551,552,5,97,0,0,552,553,5,114,0,0,553,554,5,116,0,0,554,555, + 5,105,0,0,555,557,5,108,0,0,556,541,1,0,0,0,556,549,1,0,0,0,557, + 118,1,0,0,0,558,559,5,112,0,0,559,560,5,101,0,0,560,561,5,114,0, + 0,561,562,5,99,0,0,562,563,5,101,0,0,563,564,5,110,0,0,564,565,5, + 116,0,0,565,566,5,105,0,0,566,567,5,108,0,0,567,574,5,101,0,0,568, + 569,5,112,0,0,569,570,5,114,0,0,570,571,5,99,0,0,571,572,5,110,0, + 0,572,574,5,116,0,0,573,558,1,0,0,0,573,568,1,0,0,0,574,120,1,0, + 0,0,575,576,5,113,0,0,576,577,5,117,0,0,577,578,5,97,0,0,578,579, + 5,110,0,0,579,580,5,116,0,0,580,581,5,105,0,0,581,582,5,108,0,0, + 582,583,5,101,0,0,583,122,1,0,0,0,584,585,5,100,0,0,585,586,5,111, + 0,0,586,587,5,116,0,0,587,124,1,0,0,0,588,589,5,109,0,0,589,590, + 5,111,0,0,590,591,5,109,0,0,591,592,5,101,0,0,592,593,5,110,0,0, + 593,594,5,116,0,0,594,126,1,0,0,0,595,596,5,99,0,0,596,597,5,111, + 0,0,597,598,5,115,0,0,598,599,5,115,0,0,599,600,5,105,0,0,600,601, + 5,109,0,0,601,128,1,0,0,0,602,603,5,102,0,0,603,604,5,108,0,0,604, + 605,5,105,0,0,605,606,5,112,0,0,606,130,1,0,0,0,607,608,5,99,0,0, + 608,609,5,111,0,0,609,610,5,118,0,0,610,132,1,0,0,0,611,612,5,115, + 0,0,612,613,5,111,0,0,613,614,5,114,0,0,614,615,5,116,0,0,615,134, + 1,0,0,0,616,617,5,97,0,0,617,618,5,112,0,0,618,619,5,112,0,0,619, + 620,5,101,0,0,620,621,5,110,0,0,621,622,5,100,0,0,622,136,1,0,0, + 0,623,624,5,43,0,0,624,138,1,0,0,0,625,626,5,45,0,0,626,140,1,0, + 0,0,627,628,5,42,0,0,628,142,1,0,0,0,629,630,5,47,0,0,630,144,1, + 0,0,0,631,632,5,37,0,0,632,146,1,0,0,0,633,634,5,94,0,0,634,148, + 1,0,0,0,635,636,5,62,0,0,636,637,5,61,0,0,637,150,1,0,0,0,638,639, + 5,62,0,0,639,152,1,0,0,0,640,641,5,60,0,0,641,642,5,61,0,0,642,154, + 1,0,0,0,643,644,5,60,0,0,644,156,1,0,0,0,645,646,5,61,0,0,646,647, + 5,61,0,0,647,158,1,0,0,0,648,649,5,33,0,0,649,650,5,61,0,0,650,160, + 1,0,0,0,651,652,5,124,0,0,652,162,1,0,0,0,653,654,5,40,0,0,654,164, + 1,0,0,0,655,656,5,41,0,0,656,166,1,0,0,0,657,658,5,44,0,0,658,168, + 1,0,0,0,659,660,5,59,0,0,660,170,1,0,0,0,661,662,5,45,0,0,662,663, + 5,62,0,0,663,172,1,0,0,0,664,665,5,91,0,0,665,174,1,0,0,0,666,667, + 5,93,0,0,667,176,1,0,0,0,668,669,5,112,0,0,669,674,5,105,0,0,670, + 671,5,80,0,0,671,674,5,73,0,0,672,674,7,0,0,0,673,668,1,0,0,0,673, + 670,1,0,0,0,673,672,1,0,0,0,674,178,1,0,0,0,675,677,7,1,0,0,676, + 675,1,0,0,0,677,678,1,0,0,0,678,676,1,0,0,0,678,679,1,0,0,0,679, + 686,1,0,0,0,680,682,5,46,0,0,681,683,7,1,0,0,682,681,1,0,0,0,683, + 684,1,0,0,0,684,682,1,0,0,0,684,685,1,0,0,0,685,687,1,0,0,0,686, + 680,1,0,0,0,686,687,1,0,0,0,687,180,1,0,0,0,688,692,7,2,0,0,689, + 691,7,3,0,0,690,689,1,0,0,0,691,694,1,0,0,0,692,690,1,0,0,0,692, + 693,1,0,0,0,693,182,1,0,0,0,694,692,1,0,0,0,695,697,7,4,0,0,696, + 695,1,0,0,0,697,698,1,0,0,0,698,696,1,0,0,0,698,699,1,0,0,0,699, + 700,1,0,0,0,700,701,6,91,0,0,701,184,1,0,0,0,14,0,377,453,470,488, + 501,556,573,673,678,684,686,692,698,1,6,0,0 ] class MathExprLexer(Lexer): @@ -330,30 +333,31 @@ class MathExprLexer(Lexer): FLIP = 65 COV = 66 SORT = 67 - PLUS = 68 - MINUS = 69 - MULT = 70 - DIV = 71 - MOD = 72 - POW = 73 - GE = 74 - GT = 75 - LE = 76 - LT = 77 - EQ = 78 - NE = 79 - PIPE = 80 - LPAREN = 81 - RPAREN = 82 - COMMA = 83 - SEMICOLON = 84 - ARROW = 85 - LBRACKET = 86 - RBRACKET = 87 - CONSTANT = 88 - NUMBER = 89 - VARIABLE = 90 - WS = 91 + APPEND = 68 + PLUS = 69 + MINUS = 70 + MULT = 71 + DIV = 72 + MOD = 73 + POW = 74 + GE = 75 + GT = 76 + LE = 77 + LT = 78 + EQ = 79 + NE = 80 + PIPE = 81 + LPAREN = 82 + RPAREN = 83 + COMMA = 84 + SEMICOLON = 85 + ARROW = 86 + LBRACKET = 87 + RBRACKET = 88 + CONSTANT = 89 + NUMBER = 90 + VARIABLE = 91 + WS = 92 channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ] @@ -369,9 +373,10 @@ class MathExprLexer(Lexer): "'fract'", "'relu'", "'softplus'", "'gelu'", "'sign'", "'map'", "'swap'", "'range'", "'topk'", "'botk'", "'pinv'", "'sum'", "'mean'", "'std'", "'var'", "'quantile'", "'dot'", "'moment'", - "'cossim'", "'flip'", "'cov'", "'sort'", "'+'", "'-'", "'*'", - "'/'", "'%'", "'^'", "'>='", "'>'", "'<='", "'<'", "'=='", "'!='", - "'|'", "'('", "')'", "','", "';'", "'->'", "'['", "']'" ] + "'cossim'", "'flip'", "'cov'", "'sort'", "'append'", "'+'", + "'-'", "'*'", "'/'", "'%'", "'^'", "'>='", "'>'", "'<='", "'<'", + "'=='", "'!='", "'|'", "'('", "')'", "','", "';'", "'->'", "'['", + "']'" ] symbolicNames = [ "", "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", @@ -383,10 +388,10 @@ class MathExprLexer(Lexer): "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", "QUANTILE", "DOT", "MOMENT", "COSSIM", "FLIP", "COV", "SORT", - "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", - "LT", "EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", "SEMICOLON", - "ARROW", "LBRACKET", "RBRACKET", "CONSTANT", "NUMBER", "VARIABLE", - "WS" ] + "APPEND", "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", + "GT", "LE", "LT", "EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", + "SEMICOLON", "ARROW", "LBRACKET", "RBRACKET", "CONSTANT", "NUMBER", + "VARIABLE", "WS" ] ruleNames = [ "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", "COSH", "TANH", "ASINH", "ACOSH", "ATANH", "ABS", @@ -397,11 +402,11 @@ class MathExprLexer(Lexer): "GELU", "SIGN", "MAP", "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", "QUANTILE", "DOT", - "MOMENT", "COSSIM", "FLIP", "COV", "SORT", "PLUS", "MINUS", - "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", "LT", "EQ", - "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", "SEMICOLON", - "ARROW", "LBRACKET", "RBRACKET", "CONSTANT", "NUMBER", - "VARIABLE", "WS" ] + "MOMENT", "COSSIM", "FLIP", "COV", "SORT", "APPEND", "PLUS", + "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", + "LT", "EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", + "SEMICOLON", "ARROW", "LBRACKET", "RBRACKET", "CONSTANT", + "NUMBER", "VARIABLE", "WS" ] grammarFileName = "MathExpr.g4" diff --git a/more_math/Parser/MathExprLexer.tokens b/more_math/Parser/MathExprLexer.tokens index f3279b4..b1cf5bf 100644 --- a/more_math/Parser/MathExprLexer.tokens +++ b/more_math/Parser/MathExprLexer.tokens @@ -65,30 +65,31 @@ COSSIM=64 FLIP=65 COV=66 SORT=67 -PLUS=68 -MINUS=69 -MULT=70 -DIV=71 -MOD=72 -POW=73 -GE=74 -GT=75 -LE=76 -LT=77 -EQ=78 -NE=79 -PIPE=80 -LPAREN=81 -RPAREN=82 -COMMA=83 -SEMICOLON=84 -ARROW=85 -LBRACKET=86 -RBRACKET=87 -CONSTANT=88 -NUMBER=89 -VARIABLE=90 -WS=91 +APPEND=68 +PLUS=69 +MINUS=70 +MULT=71 +DIV=72 +MOD=73 +POW=74 +GE=75 +GT=76 +LE=77 +LT=78 +EQ=79 +NE=80 +PIPE=81 +LPAREN=82 +RPAREN=83 +COMMA=84 +SEMICOLON=85 +ARROW=86 +LBRACKET=87 +RBRACKET=88 +CONSTANT=89 +NUMBER=90 +VARIABLE=91 +WS=92 'sin'=1 'cos'=2 'tan'=3 @@ -149,23 +150,24 @@ WS=91 'flip'=65 'cov'=66 'sort'=67 -'+'=68 -'-'=69 -'*'=70 -'/'=71 -'%'=72 -'^'=73 -'>='=74 -'>'=75 -'<='=76 -'<'=77 -'=='=78 -'!='=79 -'|'=80 -'('=81 -')'=82 -','=83 -';'=84 -'->'=85 -'['=86 -']'=87 +'append'=68 +'+'=69 +'-'=70 +'*'=71 +'/'=72 +'%'=73 +'^'=74 +'>='=75 +'>'=76 +'<='=77 +'<'=78 +'=='=79 +'!='=80 +'|'=81 +'('=82 +')'=83 +','=84 +';'=85 +'->'=86 +'['=87 +']'=88 diff --git a/more_math/Parser/MathExprParser.py b/more_math/Parser/MathExprParser.py index fff3e69..e3728cd 100644 --- a/more_math/Parser/MathExprParser.py +++ b/more_math/Parser/MathExprParser.py @@ -10,7 +10,7 @@ else: def serializedATN(): return [ - 4,1,91,640,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7, + 4,1,92,647,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7, 6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13, 2,14,7,14,2,15,7,15,2,16,7,16,1,0,5,0,36,8,0,10,0,12,0,39,9,0,1, 0,1,0,1,0,1,1,1,1,1,1,3,1,47,8,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2, @@ -48,200 +48,203 @@ def serializedATN(): 13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1, 13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1, 13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1, - 13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,507,8,13,1, + 13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1, + 13,1,13,1,13,1,13,3,13,514,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1, 14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1, 14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1, - 14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1, - 14,1,14,1,14,1,14,1,14,1,14,3,14,554,8,14,1,15,1,15,1,15,1,15,1, - 15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,5,16,572, - 8,16,10,16,12,16,575,9,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,5,16, - 584,8,16,10,16,12,16,587,9,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16, - 4,16,596,8,16,11,16,12,16,597,1,16,1,16,1,16,1,16,1,16,1,16,1,16, - 4,16,607,8,16,11,16,12,16,608,1,16,1,16,1,16,1,16,1,16,1,16,1,16, - 4,16,618,8,16,11,16,12,16,619,1,16,1,16,1,16,1,16,1,16,1,16,1,16, - 1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3,16,638,8,16,1,16, - 0,4,8,10,12,18,17,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32, - 0,0,724,0,37,1,0,0,0,2,43,1,0,0,0,4,53,1,0,0,0,6,63,1,0,0,0,8,65, - 1,0,0,0,10,91,1,0,0,0,12,105,1,0,0,0,14,127,1,0,0,0,16,134,1,0,0, - 0,18,136,1,0,0,0,20,189,1,0,0,0,22,191,1,0,0,0,24,399,1,0,0,0,26, - 506,1,0,0,0,28,553,1,0,0,0,30,555,1,0,0,0,32,637,1,0,0,0,34,36,3, - 2,1,0,35,34,1,0,0,0,36,39,1,0,0,0,37,35,1,0,0,0,37,38,1,0,0,0,38, - 40,1,0,0,0,39,37,1,0,0,0,40,41,3,6,3,0,41,42,5,0,0,1,42,1,1,0,0, - 0,43,44,5,90,0,0,44,46,5,81,0,0,45,47,3,4,2,0,46,45,1,0,0,0,46,47, - 1,0,0,0,47,48,1,0,0,0,48,49,5,82,0,0,49,50,5,85,0,0,50,51,3,6,3, - 0,51,52,5,84,0,0,52,3,1,0,0,0,53,58,5,90,0,0,54,55,5,83,0,0,55,57, - 5,90,0,0,56,54,1,0,0,0,57,60,1,0,0,0,58,56,1,0,0,0,58,59,1,0,0,0, - 59,5,1,0,0,0,60,58,1,0,0,0,61,64,3,20,10,0,62,64,3,8,4,0,63,61,1, - 0,0,0,63,62,1,0,0,0,64,7,1,0,0,0,65,66,6,4,-1,0,66,67,3,10,5,0,67, - 88,1,0,0,0,68,69,10,7,0,0,69,70,5,75,0,0,70,87,3,10,5,0,71,72,10, - 6,0,0,72,73,5,74,0,0,73,87,3,10,5,0,74,75,10,5,0,0,75,76,5,77,0, - 0,76,87,3,10,5,0,77,78,10,4,0,0,78,79,5,76,0,0,79,87,3,10,5,0,80, - 81,10,3,0,0,81,82,5,78,0,0,82,87,3,10,5,0,83,84,10,2,0,0,84,85,5, - 79,0,0,85,87,3,10,5,0,86,68,1,0,0,0,86,71,1,0,0,0,86,74,1,0,0,0, - 86,77,1,0,0,0,86,80,1,0,0,0,86,83,1,0,0,0,87,90,1,0,0,0,88,86,1, - 0,0,0,88,89,1,0,0,0,89,9,1,0,0,0,90,88,1,0,0,0,91,92,6,5,-1,0,92, - 93,3,12,6,0,93,102,1,0,0,0,94,95,10,3,0,0,95,96,5,68,0,0,96,101, - 3,12,6,0,97,98,10,2,0,0,98,99,5,69,0,0,99,101,3,12,6,0,100,94,1, - 0,0,0,100,97,1,0,0,0,101,104,1,0,0,0,102,100,1,0,0,0,102,103,1,0, - 0,0,103,11,1,0,0,0,104,102,1,0,0,0,105,106,6,6,-1,0,106,107,3,14, - 7,0,107,119,1,0,0,0,108,109,10,4,0,0,109,110,5,70,0,0,110,118,3, - 14,7,0,111,112,10,3,0,0,112,113,5,71,0,0,113,118,3,14,7,0,114,115, - 10,2,0,0,115,116,5,72,0,0,116,118,3,14,7,0,117,108,1,0,0,0,117,111, - 1,0,0,0,117,114,1,0,0,0,118,121,1,0,0,0,119,117,1,0,0,0,119,120, - 1,0,0,0,120,13,1,0,0,0,121,119,1,0,0,0,122,123,3,16,8,0,123,124, - 5,73,0,0,124,125,3,14,7,0,125,128,1,0,0,0,126,128,3,16,8,0,127,122, - 1,0,0,0,127,126,1,0,0,0,128,15,1,0,0,0,129,130,5,68,0,0,130,135, - 3,16,8,0,131,132,5,69,0,0,132,135,3,16,8,0,133,135,3,18,9,0,134, - 129,1,0,0,0,134,131,1,0,0,0,134,133,1,0,0,0,135,17,1,0,0,0,136,137, - 6,9,-1,0,137,138,3,20,10,0,138,153,1,0,0,0,139,140,10,2,0,0,140, - 141,5,86,0,0,141,146,3,6,3,0,142,143,5,83,0,0,143,145,3,6,3,0,144, - 142,1,0,0,0,145,148,1,0,0,0,146,144,1,0,0,0,146,147,1,0,0,0,147, - 149,1,0,0,0,148,146,1,0,0,0,149,150,5,87,0,0,150,152,1,0,0,0,151, - 139,1,0,0,0,152,155,1,0,0,0,153,151,1,0,0,0,153,154,1,0,0,0,154, - 19,1,0,0,0,155,153,1,0,0,0,156,190,3,24,12,0,157,190,3,26,13,0,158, - 190,3,28,14,0,159,190,3,30,15,0,160,190,3,32,16,0,161,190,5,90,0, - 0,162,190,5,89,0,0,163,190,5,88,0,0,164,165,5,81,0,0,165,166,3,6, - 3,0,166,167,5,82,0,0,167,190,1,0,0,0,168,169,5,80,0,0,169,170,3, - 6,3,0,170,171,5,80,0,0,171,190,1,0,0,0,172,173,5,86,0,0,173,178, - 3,6,3,0,174,175,5,83,0,0,175,177,3,6,3,0,176,174,1,0,0,0,177,180, - 1,0,0,0,178,176,1,0,0,0,178,179,1,0,0,0,179,181,1,0,0,0,180,178, - 1,0,0,0,181,182,5,87,0,0,182,190,1,0,0,0,183,184,5,90,0,0,184,186, - 5,81,0,0,185,187,3,22,11,0,186,185,1,0,0,0,186,187,1,0,0,0,187,188, - 1,0,0,0,188,190,5,82,0,0,189,156,1,0,0,0,189,157,1,0,0,0,189,158, - 1,0,0,0,189,159,1,0,0,0,189,160,1,0,0,0,189,161,1,0,0,0,189,162, - 1,0,0,0,189,163,1,0,0,0,189,164,1,0,0,0,189,168,1,0,0,0,189,172, - 1,0,0,0,189,183,1,0,0,0,190,21,1,0,0,0,191,196,3,6,3,0,192,193,5, - 83,0,0,193,195,3,6,3,0,194,192,1,0,0,0,195,198,1,0,0,0,196,194,1, - 0,0,0,196,197,1,0,0,0,197,23,1,0,0,0,198,196,1,0,0,0,199,200,5,1, - 0,0,200,201,5,81,0,0,201,202,3,6,3,0,202,203,5,82,0,0,203,400,1, - 0,0,0,204,205,5,2,0,0,205,206,5,81,0,0,206,207,3,6,3,0,207,208,5, - 82,0,0,208,400,1,0,0,0,209,210,5,3,0,0,210,211,5,81,0,0,211,212, - 3,6,3,0,212,213,5,82,0,0,213,400,1,0,0,0,214,215,5,4,0,0,215,216, - 5,81,0,0,216,217,3,6,3,0,217,218,5,82,0,0,218,400,1,0,0,0,219,220, - 5,5,0,0,220,221,5,81,0,0,221,222,3,6,3,0,222,223,5,82,0,0,223,400, - 1,0,0,0,224,225,5,6,0,0,225,226,5,81,0,0,226,227,3,6,3,0,227,228, - 5,82,0,0,228,400,1,0,0,0,229,230,5,8,0,0,230,231,5,81,0,0,231,232, - 3,6,3,0,232,233,5,82,0,0,233,400,1,0,0,0,234,235,5,9,0,0,235,236, - 5,81,0,0,236,237,3,6,3,0,237,238,5,82,0,0,238,400,1,0,0,0,239,240, - 5,10,0,0,240,241,5,81,0,0,241,242,3,6,3,0,242,243,5,82,0,0,243,400, - 1,0,0,0,244,245,5,11,0,0,245,246,5,81,0,0,246,247,3,6,3,0,247,248, - 5,82,0,0,248,400,1,0,0,0,249,250,5,12,0,0,250,251,5,81,0,0,251,252, - 3,6,3,0,252,253,5,82,0,0,253,400,1,0,0,0,254,255,5,13,0,0,255,256, - 5,81,0,0,256,257,3,6,3,0,257,258,5,82,0,0,258,400,1,0,0,0,259,260, - 5,14,0,0,260,261,5,81,0,0,261,262,3,6,3,0,262,263,5,82,0,0,263,400, - 1,0,0,0,264,265,5,15,0,0,265,266,5,81,0,0,266,267,3,6,3,0,267,268, - 5,82,0,0,268,400,1,0,0,0,269,270,5,16,0,0,270,271,5,81,0,0,271,272, - 3,6,3,0,272,273,5,82,0,0,273,400,1,0,0,0,274,275,5,17,0,0,275,276, - 5,81,0,0,276,277,3,6,3,0,277,278,5,82,0,0,278,400,1,0,0,0,279,280, - 5,18,0,0,280,281,5,81,0,0,281,282,3,6,3,0,282,283,5,82,0,0,283,400, - 1,0,0,0,284,285,5,23,0,0,285,286,5,81,0,0,286,287,3,6,3,0,287,288, - 5,82,0,0,288,400,1,0,0,0,289,290,5,24,0,0,290,291,5,81,0,0,291,292, - 3,6,3,0,292,293,5,82,0,0,293,400,1,0,0,0,294,295,5,25,0,0,295,296, - 5,81,0,0,296,297,3,6,3,0,297,298,5,82,0,0,298,400,1,0,0,0,299,300, - 5,26,0,0,300,301,5,81,0,0,301,302,3,6,3,0,302,303,5,82,0,0,303,400, - 1,0,0,0,304,305,5,27,0,0,305,306,5,81,0,0,306,307,3,6,3,0,307,308, - 5,82,0,0,308,400,1,0,0,0,309,310,5,28,0,0,310,311,5,81,0,0,311,312, - 3,6,3,0,312,313,5,82,0,0,313,400,1,0,0,0,314,315,5,30,0,0,315,316, - 5,81,0,0,316,317,3,6,3,0,317,318,5,82,0,0,318,400,1,0,0,0,319,320, - 5,32,0,0,320,321,5,81,0,0,321,322,3,6,3,0,322,323,5,82,0,0,323,400, - 1,0,0,0,324,325,5,33,0,0,325,326,5,81,0,0,326,327,3,6,3,0,327,328, - 5,82,0,0,328,400,1,0,0,0,329,330,5,34,0,0,330,331,5,81,0,0,331,332, - 3,6,3,0,332,333,5,82,0,0,333,400,1,0,0,0,334,335,5,35,0,0,335,336, - 5,81,0,0,336,337,3,6,3,0,337,338,5,82,0,0,338,400,1,0,0,0,339,340, - 5,40,0,0,340,341,5,81,0,0,341,342,3,6,3,0,342,343,5,82,0,0,343,400, - 1,0,0,0,344,345,5,41,0,0,345,346,5,81,0,0,346,347,3,6,3,0,347,348, - 5,82,0,0,348,400,1,0,0,0,349,350,5,42,0,0,350,351,5,81,0,0,351,352, - 3,6,3,0,352,353,5,82,0,0,353,400,1,0,0,0,354,355,5,43,0,0,355,356, - 5,81,0,0,356,357,3,6,3,0,357,358,5,82,0,0,358,400,1,0,0,0,359,360, - 5,44,0,0,360,361,5,81,0,0,361,362,3,6,3,0,362,363,5,82,0,0,363,400, - 1,0,0,0,364,365,5,36,0,0,365,366,5,81,0,0,366,367,3,6,3,0,367,368, - 5,82,0,0,368,400,1,0,0,0,369,370,5,54,0,0,370,371,5,81,0,0,371,372, - 3,6,3,0,372,373,5,82,0,0,373,400,1,0,0,0,374,375,5,55,0,0,375,376, - 5,81,0,0,376,377,3,6,3,0,377,378,5,82,0,0,378,400,1,0,0,0,379,380, - 5,56,0,0,380,381,5,81,0,0,381,382,3,6,3,0,382,383,5,82,0,0,383,400, - 1,0,0,0,384,385,5,57,0,0,385,386,5,81,0,0,386,387,3,6,3,0,387,388, - 5,82,0,0,388,400,1,0,0,0,389,390,5,58,0,0,390,391,5,81,0,0,391,392, - 3,6,3,0,392,393,5,82,0,0,393,400,1,0,0,0,394,395,5,67,0,0,395,396, - 5,81,0,0,396,397,3,6,3,0,397,398,5,82,0,0,398,400,1,0,0,0,399,199, - 1,0,0,0,399,204,1,0,0,0,399,209,1,0,0,0,399,214,1,0,0,0,399,219, - 1,0,0,0,399,224,1,0,0,0,399,229,1,0,0,0,399,234,1,0,0,0,399,239, - 1,0,0,0,399,244,1,0,0,0,399,249,1,0,0,0,399,254,1,0,0,0,399,259, - 1,0,0,0,399,264,1,0,0,0,399,269,1,0,0,0,399,274,1,0,0,0,399,279, - 1,0,0,0,399,284,1,0,0,0,399,289,1,0,0,0,399,294,1,0,0,0,399,299, - 1,0,0,0,399,304,1,0,0,0,399,309,1,0,0,0,399,314,1,0,0,0,399,319, - 1,0,0,0,399,324,1,0,0,0,399,329,1,0,0,0,399,334,1,0,0,0,399,339, - 1,0,0,0,399,344,1,0,0,0,399,349,1,0,0,0,399,354,1,0,0,0,399,359, - 1,0,0,0,399,364,1,0,0,0,399,369,1,0,0,0,399,374,1,0,0,0,399,379, - 1,0,0,0,399,384,1,0,0,0,399,389,1,0,0,0,399,394,1,0,0,0,400,25,1, - 0,0,0,401,402,5,29,0,0,402,403,5,81,0,0,403,404,3,6,3,0,404,405, - 5,83,0,0,405,406,3,6,3,0,406,407,5,82,0,0,407,507,1,0,0,0,408,409, - 5,7,0,0,409,410,5,81,0,0,410,411,3,6,3,0,411,412,5,83,0,0,412,413, - 3,6,3,0,413,414,5,82,0,0,414,507,1,0,0,0,415,416,5,21,0,0,416,417, - 5,81,0,0,417,418,3,6,3,0,418,419,5,83,0,0,419,420,3,6,3,0,420,421, - 5,82,0,0,421,507,1,0,0,0,422,423,5,22,0,0,423,424,5,81,0,0,424,425, - 3,6,3,0,425,426,5,83,0,0,426,427,3,6,3,0,427,428,5,82,0,0,428,507, - 1,0,0,0,429,430,5,38,0,0,430,431,5,81,0,0,431,432,3,6,3,0,432,433, - 5,83,0,0,433,434,3,6,3,0,434,435,5,82,0,0,435,507,1,0,0,0,436,437, - 5,52,0,0,437,438,5,81,0,0,438,439,3,6,3,0,439,440,5,83,0,0,440,441, - 3,6,3,0,441,442,5,82,0,0,442,507,1,0,0,0,443,444,5,53,0,0,444,445, - 5,81,0,0,445,446,3,6,3,0,446,447,5,83,0,0,447,448,3,6,3,0,448,449, - 5,82,0,0,449,507,1,0,0,0,450,451,5,59,0,0,451,452,5,81,0,0,452,453, - 3,6,3,0,453,454,5,83,0,0,454,455,3,6,3,0,455,456,5,82,0,0,456,507, - 1,0,0,0,457,458,5,60,0,0,458,459,5,81,0,0,459,460,3,6,3,0,460,461, - 5,83,0,0,461,462,3,6,3,0,462,463,5,82,0,0,463,507,1,0,0,0,464,465, - 5,61,0,0,465,466,5,81,0,0,466,467,3,6,3,0,467,468,5,83,0,0,468,469, - 3,6,3,0,469,470,5,82,0,0,470,507,1,0,0,0,471,472,5,61,0,0,472,473, - 5,81,0,0,473,474,3,6,3,0,474,475,5,83,0,0,475,476,3,6,3,0,476,477, - 5,82,0,0,477,507,1,0,0,0,478,479,5,62,0,0,479,480,5,81,0,0,480,481, - 3,6,3,0,481,482,5,83,0,0,482,483,3,6,3,0,483,484,5,82,0,0,484,507, - 1,0,0,0,485,486,5,64,0,0,486,487,5,81,0,0,487,488,3,6,3,0,488,489, - 5,83,0,0,489,490,3,6,3,0,490,491,5,82,0,0,491,507,1,0,0,0,492,493, - 5,65,0,0,493,494,5,81,0,0,494,495,3,6,3,0,495,496,5,83,0,0,496,497, - 3,6,3,0,497,498,5,82,0,0,498,507,1,0,0,0,499,500,5,66,0,0,500,501, - 5,81,0,0,501,502,3,6,3,0,502,503,5,83,0,0,503,504,3,6,3,0,504,505, - 5,82,0,0,505,507,1,0,0,0,506,401,1,0,0,0,506,408,1,0,0,0,506,415, - 1,0,0,0,506,422,1,0,0,0,506,429,1,0,0,0,506,436,1,0,0,0,506,443, - 1,0,0,0,506,450,1,0,0,0,506,457,1,0,0,0,506,464,1,0,0,0,506,471, - 1,0,0,0,506,478,1,0,0,0,506,485,1,0,0,0,506,492,1,0,0,0,506,499, - 1,0,0,0,507,27,1,0,0,0,508,509,5,31,0,0,509,510,5,81,0,0,510,511, - 3,6,3,0,511,512,5,83,0,0,512,513,3,6,3,0,513,514,5,83,0,0,514,515, - 3,6,3,0,515,516,5,82,0,0,516,554,1,0,0,0,517,518,5,37,0,0,518,519, - 5,81,0,0,519,520,3,6,3,0,520,521,5,83,0,0,521,522,3,6,3,0,522,523, - 5,83,0,0,523,524,3,6,3,0,524,525,5,82,0,0,525,554,1,0,0,0,526,527, - 5,39,0,0,527,528,5,81,0,0,528,529,3,6,3,0,529,530,5,83,0,0,530,531, - 3,6,3,0,531,532,5,83,0,0,532,533,3,6,3,0,533,534,5,82,0,0,534,554, - 1,0,0,0,535,536,5,51,0,0,536,537,5,81,0,0,537,538,3,6,3,0,538,539, - 5,83,0,0,539,540,3,6,3,0,540,541,5,83,0,0,541,542,3,6,3,0,542,543, - 5,82,0,0,543,554,1,0,0,0,544,545,5,63,0,0,545,546,5,81,0,0,546,547, - 3,6,3,0,547,548,5,83,0,0,548,549,3,6,3,0,549,550,5,83,0,0,550,551, - 3,6,3,0,551,552,5,82,0,0,552,554,1,0,0,0,553,508,1,0,0,0,553,517, - 1,0,0,0,553,526,1,0,0,0,553,535,1,0,0,0,553,544,1,0,0,0,554,29,1, - 0,0,0,555,556,5,48,0,0,556,557,5,81,0,0,557,558,3,6,3,0,558,559, - 5,83,0,0,559,560,3,6,3,0,560,561,5,83,0,0,561,562,3,6,3,0,562,563, - 5,83,0,0,563,564,3,6,3,0,564,565,5,82,0,0,565,31,1,0,0,0,566,567, - 5,19,0,0,567,568,5,81,0,0,568,573,3,6,3,0,569,570,5,83,0,0,570,572, - 3,6,3,0,571,569,1,0,0,0,572,575,1,0,0,0,573,571,1,0,0,0,573,574, - 1,0,0,0,574,576,1,0,0,0,575,573,1,0,0,0,576,577,5,82,0,0,577,638, - 1,0,0,0,578,579,5,20,0,0,579,580,5,81,0,0,580,585,3,6,3,0,581,582, - 5,83,0,0,582,584,3,6,3,0,583,581,1,0,0,0,584,587,1,0,0,0,585,583, - 1,0,0,0,585,586,1,0,0,0,586,588,1,0,0,0,587,585,1,0,0,0,588,589, - 5,82,0,0,589,638,1,0,0,0,590,591,5,45,0,0,591,592,5,81,0,0,592,595, - 3,6,3,0,593,594,5,83,0,0,594,596,3,6,3,0,595,593,1,0,0,0,596,597, - 1,0,0,0,597,595,1,0,0,0,597,598,1,0,0,0,598,599,1,0,0,0,599,600, - 5,82,0,0,600,638,1,0,0,0,601,602,5,46,0,0,602,603,5,81,0,0,603,606, - 3,6,3,0,604,605,5,83,0,0,605,607,3,6,3,0,606,604,1,0,0,0,607,608, - 1,0,0,0,608,606,1,0,0,0,608,609,1,0,0,0,609,610,1,0,0,0,610,611, - 5,82,0,0,611,638,1,0,0,0,612,613,5,47,0,0,613,614,5,81,0,0,614,617, - 3,6,3,0,615,616,5,83,0,0,616,618,3,6,3,0,617,615,1,0,0,0,618,619, - 1,0,0,0,619,617,1,0,0,0,619,620,1,0,0,0,620,621,1,0,0,0,621,622, - 5,82,0,0,622,638,1,0,0,0,623,624,5,49,0,0,624,625,5,81,0,0,625,626, - 3,6,3,0,626,627,5,83,0,0,627,628,3,6,3,0,628,629,5,82,0,0,629,638, - 1,0,0,0,630,631,5,50,0,0,631,632,5,81,0,0,632,633,3,6,3,0,633,634, - 5,83,0,0,634,635,3,6,3,0,635,636,5,82,0,0,636,638,1,0,0,0,637,566, - 1,0,0,0,637,578,1,0,0,0,637,590,1,0,0,0,637,601,1,0,0,0,637,612, - 1,0,0,0,637,623,1,0,0,0,637,630,1,0,0,0,638,33,1,0,0,0,27,37,46, - 58,63,86,88,100,102,117,119,127,134,146,153,178,186,189,196,399, - 506,553,573,585,597,608,619,637 + 14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,3, + 14,561,8,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1, + 15,1,16,1,16,1,16,1,16,1,16,5,16,579,8,16,10,16,12,16,582,9,16,1, + 16,1,16,1,16,1,16,1,16,1,16,1,16,5,16,591,8,16,10,16,12,16,594,9, + 16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,4,16,603,8,16,11,16,12,16, + 604,1,16,1,16,1,16,1,16,1,16,1,16,1,16,4,16,614,8,16,11,16,12,16, + 615,1,16,1,16,1,16,1,16,1,16,1,16,1,16,4,16,625,8,16,11,16,12,16, + 626,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16, + 1,16,1,16,1,16,1,16,3,16,645,8,16,1,16,0,4,8,10,12,18,17,0,2,4,6, + 8,10,12,14,16,18,20,22,24,26,28,30,32,0,0,732,0,37,1,0,0,0,2,43, + 1,0,0,0,4,53,1,0,0,0,6,63,1,0,0,0,8,65,1,0,0,0,10,91,1,0,0,0,12, + 105,1,0,0,0,14,127,1,0,0,0,16,134,1,0,0,0,18,136,1,0,0,0,20,189, + 1,0,0,0,22,191,1,0,0,0,24,399,1,0,0,0,26,513,1,0,0,0,28,560,1,0, + 0,0,30,562,1,0,0,0,32,644,1,0,0,0,34,36,3,2,1,0,35,34,1,0,0,0,36, + 39,1,0,0,0,37,35,1,0,0,0,37,38,1,0,0,0,38,40,1,0,0,0,39,37,1,0,0, + 0,40,41,3,6,3,0,41,42,5,0,0,1,42,1,1,0,0,0,43,44,5,91,0,0,44,46, + 5,82,0,0,45,47,3,4,2,0,46,45,1,0,0,0,46,47,1,0,0,0,47,48,1,0,0,0, + 48,49,5,83,0,0,49,50,5,86,0,0,50,51,3,6,3,0,51,52,5,85,0,0,52,3, + 1,0,0,0,53,58,5,91,0,0,54,55,5,84,0,0,55,57,5,91,0,0,56,54,1,0,0, + 0,57,60,1,0,0,0,58,56,1,0,0,0,58,59,1,0,0,0,59,5,1,0,0,0,60,58,1, + 0,0,0,61,64,3,20,10,0,62,64,3,8,4,0,63,61,1,0,0,0,63,62,1,0,0,0, + 64,7,1,0,0,0,65,66,6,4,-1,0,66,67,3,10,5,0,67,88,1,0,0,0,68,69,10, + 7,0,0,69,70,5,76,0,0,70,87,3,10,5,0,71,72,10,6,0,0,72,73,5,75,0, + 0,73,87,3,10,5,0,74,75,10,5,0,0,75,76,5,78,0,0,76,87,3,10,5,0,77, + 78,10,4,0,0,78,79,5,77,0,0,79,87,3,10,5,0,80,81,10,3,0,0,81,82,5, + 79,0,0,82,87,3,10,5,0,83,84,10,2,0,0,84,85,5,80,0,0,85,87,3,10,5, + 0,86,68,1,0,0,0,86,71,1,0,0,0,86,74,1,0,0,0,86,77,1,0,0,0,86,80, + 1,0,0,0,86,83,1,0,0,0,87,90,1,0,0,0,88,86,1,0,0,0,88,89,1,0,0,0, + 89,9,1,0,0,0,90,88,1,0,0,0,91,92,6,5,-1,0,92,93,3,12,6,0,93,102, + 1,0,0,0,94,95,10,3,0,0,95,96,5,69,0,0,96,101,3,12,6,0,97,98,10,2, + 0,0,98,99,5,70,0,0,99,101,3,12,6,0,100,94,1,0,0,0,100,97,1,0,0,0, + 101,104,1,0,0,0,102,100,1,0,0,0,102,103,1,0,0,0,103,11,1,0,0,0,104, + 102,1,0,0,0,105,106,6,6,-1,0,106,107,3,14,7,0,107,119,1,0,0,0,108, + 109,10,4,0,0,109,110,5,71,0,0,110,118,3,14,7,0,111,112,10,3,0,0, + 112,113,5,72,0,0,113,118,3,14,7,0,114,115,10,2,0,0,115,116,5,73, + 0,0,116,118,3,14,7,0,117,108,1,0,0,0,117,111,1,0,0,0,117,114,1,0, + 0,0,118,121,1,0,0,0,119,117,1,0,0,0,119,120,1,0,0,0,120,13,1,0,0, + 0,121,119,1,0,0,0,122,123,3,16,8,0,123,124,5,74,0,0,124,125,3,14, + 7,0,125,128,1,0,0,0,126,128,3,16,8,0,127,122,1,0,0,0,127,126,1,0, + 0,0,128,15,1,0,0,0,129,130,5,69,0,0,130,135,3,16,8,0,131,132,5,70, + 0,0,132,135,3,16,8,0,133,135,3,18,9,0,134,129,1,0,0,0,134,131,1, + 0,0,0,134,133,1,0,0,0,135,17,1,0,0,0,136,137,6,9,-1,0,137,138,3, + 20,10,0,138,153,1,0,0,0,139,140,10,2,0,0,140,141,5,87,0,0,141,146, + 3,6,3,0,142,143,5,84,0,0,143,145,3,6,3,0,144,142,1,0,0,0,145,148, + 1,0,0,0,146,144,1,0,0,0,146,147,1,0,0,0,147,149,1,0,0,0,148,146, + 1,0,0,0,149,150,5,88,0,0,150,152,1,0,0,0,151,139,1,0,0,0,152,155, + 1,0,0,0,153,151,1,0,0,0,153,154,1,0,0,0,154,19,1,0,0,0,155,153,1, + 0,0,0,156,190,3,24,12,0,157,190,3,26,13,0,158,190,3,28,14,0,159, + 190,3,30,15,0,160,190,3,32,16,0,161,190,5,91,0,0,162,190,5,90,0, + 0,163,190,5,89,0,0,164,165,5,82,0,0,165,166,3,6,3,0,166,167,5,83, + 0,0,167,190,1,0,0,0,168,169,5,81,0,0,169,170,3,6,3,0,170,171,5,81, + 0,0,171,190,1,0,0,0,172,173,5,87,0,0,173,178,3,6,3,0,174,175,5,84, + 0,0,175,177,3,6,3,0,176,174,1,0,0,0,177,180,1,0,0,0,178,176,1,0, + 0,0,178,179,1,0,0,0,179,181,1,0,0,0,180,178,1,0,0,0,181,182,5,88, + 0,0,182,190,1,0,0,0,183,184,5,91,0,0,184,186,5,82,0,0,185,187,3, + 22,11,0,186,185,1,0,0,0,186,187,1,0,0,0,187,188,1,0,0,0,188,190, + 5,83,0,0,189,156,1,0,0,0,189,157,1,0,0,0,189,158,1,0,0,0,189,159, + 1,0,0,0,189,160,1,0,0,0,189,161,1,0,0,0,189,162,1,0,0,0,189,163, + 1,0,0,0,189,164,1,0,0,0,189,168,1,0,0,0,189,172,1,0,0,0,189,183, + 1,0,0,0,190,21,1,0,0,0,191,196,3,6,3,0,192,193,5,84,0,0,193,195, + 3,6,3,0,194,192,1,0,0,0,195,198,1,0,0,0,196,194,1,0,0,0,196,197, + 1,0,0,0,197,23,1,0,0,0,198,196,1,0,0,0,199,200,5,1,0,0,200,201,5, + 82,0,0,201,202,3,6,3,0,202,203,5,83,0,0,203,400,1,0,0,0,204,205, + 5,2,0,0,205,206,5,82,0,0,206,207,3,6,3,0,207,208,5,83,0,0,208,400, + 1,0,0,0,209,210,5,3,0,0,210,211,5,82,0,0,211,212,3,6,3,0,212,213, + 5,83,0,0,213,400,1,0,0,0,214,215,5,4,0,0,215,216,5,82,0,0,216,217, + 3,6,3,0,217,218,5,83,0,0,218,400,1,0,0,0,219,220,5,5,0,0,220,221, + 5,82,0,0,221,222,3,6,3,0,222,223,5,83,0,0,223,400,1,0,0,0,224,225, + 5,6,0,0,225,226,5,82,0,0,226,227,3,6,3,0,227,228,5,83,0,0,228,400, + 1,0,0,0,229,230,5,8,0,0,230,231,5,82,0,0,231,232,3,6,3,0,232,233, + 5,83,0,0,233,400,1,0,0,0,234,235,5,9,0,0,235,236,5,82,0,0,236,237, + 3,6,3,0,237,238,5,83,0,0,238,400,1,0,0,0,239,240,5,10,0,0,240,241, + 5,82,0,0,241,242,3,6,3,0,242,243,5,83,0,0,243,400,1,0,0,0,244,245, + 5,11,0,0,245,246,5,82,0,0,246,247,3,6,3,0,247,248,5,83,0,0,248,400, + 1,0,0,0,249,250,5,12,0,0,250,251,5,82,0,0,251,252,3,6,3,0,252,253, + 5,83,0,0,253,400,1,0,0,0,254,255,5,13,0,0,255,256,5,82,0,0,256,257, + 3,6,3,0,257,258,5,83,0,0,258,400,1,0,0,0,259,260,5,14,0,0,260,261, + 5,82,0,0,261,262,3,6,3,0,262,263,5,83,0,0,263,400,1,0,0,0,264,265, + 5,15,0,0,265,266,5,82,0,0,266,267,3,6,3,0,267,268,5,83,0,0,268,400, + 1,0,0,0,269,270,5,16,0,0,270,271,5,82,0,0,271,272,3,6,3,0,272,273, + 5,83,0,0,273,400,1,0,0,0,274,275,5,17,0,0,275,276,5,82,0,0,276,277, + 3,6,3,0,277,278,5,83,0,0,278,400,1,0,0,0,279,280,5,18,0,0,280,281, + 5,82,0,0,281,282,3,6,3,0,282,283,5,83,0,0,283,400,1,0,0,0,284,285, + 5,23,0,0,285,286,5,82,0,0,286,287,3,6,3,0,287,288,5,83,0,0,288,400, + 1,0,0,0,289,290,5,24,0,0,290,291,5,82,0,0,291,292,3,6,3,0,292,293, + 5,83,0,0,293,400,1,0,0,0,294,295,5,25,0,0,295,296,5,82,0,0,296,297, + 3,6,3,0,297,298,5,83,0,0,298,400,1,0,0,0,299,300,5,26,0,0,300,301, + 5,82,0,0,301,302,3,6,3,0,302,303,5,83,0,0,303,400,1,0,0,0,304,305, + 5,27,0,0,305,306,5,82,0,0,306,307,3,6,3,0,307,308,5,83,0,0,308,400, + 1,0,0,0,309,310,5,28,0,0,310,311,5,82,0,0,311,312,3,6,3,0,312,313, + 5,83,0,0,313,400,1,0,0,0,314,315,5,30,0,0,315,316,5,82,0,0,316,317, + 3,6,3,0,317,318,5,83,0,0,318,400,1,0,0,0,319,320,5,32,0,0,320,321, + 5,82,0,0,321,322,3,6,3,0,322,323,5,83,0,0,323,400,1,0,0,0,324,325, + 5,33,0,0,325,326,5,82,0,0,326,327,3,6,3,0,327,328,5,83,0,0,328,400, + 1,0,0,0,329,330,5,34,0,0,330,331,5,82,0,0,331,332,3,6,3,0,332,333, + 5,83,0,0,333,400,1,0,0,0,334,335,5,35,0,0,335,336,5,82,0,0,336,337, + 3,6,3,0,337,338,5,83,0,0,338,400,1,0,0,0,339,340,5,40,0,0,340,341, + 5,82,0,0,341,342,3,6,3,0,342,343,5,83,0,0,343,400,1,0,0,0,344,345, + 5,41,0,0,345,346,5,82,0,0,346,347,3,6,3,0,347,348,5,83,0,0,348,400, + 1,0,0,0,349,350,5,42,0,0,350,351,5,82,0,0,351,352,3,6,3,0,352,353, + 5,83,0,0,353,400,1,0,0,0,354,355,5,43,0,0,355,356,5,82,0,0,356,357, + 3,6,3,0,357,358,5,83,0,0,358,400,1,0,0,0,359,360,5,44,0,0,360,361, + 5,82,0,0,361,362,3,6,3,0,362,363,5,83,0,0,363,400,1,0,0,0,364,365, + 5,36,0,0,365,366,5,82,0,0,366,367,3,6,3,0,367,368,5,83,0,0,368,400, + 1,0,0,0,369,370,5,54,0,0,370,371,5,82,0,0,371,372,3,6,3,0,372,373, + 5,83,0,0,373,400,1,0,0,0,374,375,5,55,0,0,375,376,5,82,0,0,376,377, + 3,6,3,0,377,378,5,83,0,0,378,400,1,0,0,0,379,380,5,56,0,0,380,381, + 5,82,0,0,381,382,3,6,3,0,382,383,5,83,0,0,383,400,1,0,0,0,384,385, + 5,57,0,0,385,386,5,82,0,0,386,387,3,6,3,0,387,388,5,83,0,0,388,400, + 1,0,0,0,389,390,5,58,0,0,390,391,5,82,0,0,391,392,3,6,3,0,392,393, + 5,83,0,0,393,400,1,0,0,0,394,395,5,67,0,0,395,396,5,82,0,0,396,397, + 3,6,3,0,397,398,5,83,0,0,398,400,1,0,0,0,399,199,1,0,0,0,399,204, + 1,0,0,0,399,209,1,0,0,0,399,214,1,0,0,0,399,219,1,0,0,0,399,224, + 1,0,0,0,399,229,1,0,0,0,399,234,1,0,0,0,399,239,1,0,0,0,399,244, + 1,0,0,0,399,249,1,0,0,0,399,254,1,0,0,0,399,259,1,0,0,0,399,264, + 1,0,0,0,399,269,1,0,0,0,399,274,1,0,0,0,399,279,1,0,0,0,399,284, + 1,0,0,0,399,289,1,0,0,0,399,294,1,0,0,0,399,299,1,0,0,0,399,304, + 1,0,0,0,399,309,1,0,0,0,399,314,1,0,0,0,399,319,1,0,0,0,399,324, + 1,0,0,0,399,329,1,0,0,0,399,334,1,0,0,0,399,339,1,0,0,0,399,344, + 1,0,0,0,399,349,1,0,0,0,399,354,1,0,0,0,399,359,1,0,0,0,399,364, + 1,0,0,0,399,369,1,0,0,0,399,374,1,0,0,0,399,379,1,0,0,0,399,384, + 1,0,0,0,399,389,1,0,0,0,399,394,1,0,0,0,400,25,1,0,0,0,401,402,5, + 29,0,0,402,403,5,82,0,0,403,404,3,6,3,0,404,405,5,84,0,0,405,406, + 3,6,3,0,406,407,5,83,0,0,407,514,1,0,0,0,408,409,5,7,0,0,409,410, + 5,82,0,0,410,411,3,6,3,0,411,412,5,84,0,0,412,413,3,6,3,0,413,414, + 5,83,0,0,414,514,1,0,0,0,415,416,5,21,0,0,416,417,5,82,0,0,417,418, + 3,6,3,0,418,419,5,84,0,0,419,420,3,6,3,0,420,421,5,83,0,0,421,514, + 1,0,0,0,422,423,5,22,0,0,423,424,5,82,0,0,424,425,3,6,3,0,425,426, + 5,84,0,0,426,427,3,6,3,0,427,428,5,83,0,0,428,514,1,0,0,0,429,430, + 5,38,0,0,430,431,5,82,0,0,431,432,3,6,3,0,432,433,5,84,0,0,433,434, + 3,6,3,0,434,435,5,83,0,0,435,514,1,0,0,0,436,437,5,52,0,0,437,438, + 5,82,0,0,438,439,3,6,3,0,439,440,5,84,0,0,440,441,3,6,3,0,441,442, + 5,83,0,0,442,514,1,0,0,0,443,444,5,53,0,0,444,445,5,82,0,0,445,446, + 3,6,3,0,446,447,5,84,0,0,447,448,3,6,3,0,448,449,5,83,0,0,449,514, + 1,0,0,0,450,451,5,59,0,0,451,452,5,82,0,0,452,453,3,6,3,0,453,454, + 5,84,0,0,454,455,3,6,3,0,455,456,5,83,0,0,456,514,1,0,0,0,457,458, + 5,60,0,0,458,459,5,82,0,0,459,460,3,6,3,0,460,461,5,84,0,0,461,462, + 3,6,3,0,462,463,5,83,0,0,463,514,1,0,0,0,464,465,5,61,0,0,465,466, + 5,82,0,0,466,467,3,6,3,0,467,468,5,84,0,0,468,469,3,6,3,0,469,470, + 5,83,0,0,470,514,1,0,0,0,471,472,5,61,0,0,472,473,5,82,0,0,473,474, + 3,6,3,0,474,475,5,84,0,0,475,476,3,6,3,0,476,477,5,83,0,0,477,514, + 1,0,0,0,478,479,5,62,0,0,479,480,5,82,0,0,480,481,3,6,3,0,481,482, + 5,84,0,0,482,483,3,6,3,0,483,484,5,83,0,0,484,514,1,0,0,0,485,486, + 5,64,0,0,486,487,5,82,0,0,487,488,3,6,3,0,488,489,5,84,0,0,489,490, + 3,6,3,0,490,491,5,83,0,0,491,514,1,0,0,0,492,493,5,65,0,0,493,494, + 5,82,0,0,494,495,3,6,3,0,495,496,5,84,0,0,496,497,3,6,3,0,497,498, + 5,83,0,0,498,514,1,0,0,0,499,500,5,66,0,0,500,501,5,82,0,0,501,502, + 3,6,3,0,502,503,5,84,0,0,503,504,3,6,3,0,504,505,5,83,0,0,505,514, + 1,0,0,0,506,507,5,68,0,0,507,508,5,82,0,0,508,509,3,6,3,0,509,510, + 5,84,0,0,510,511,3,6,3,0,511,512,5,83,0,0,512,514,1,0,0,0,513,401, + 1,0,0,0,513,408,1,0,0,0,513,415,1,0,0,0,513,422,1,0,0,0,513,429, + 1,0,0,0,513,436,1,0,0,0,513,443,1,0,0,0,513,450,1,0,0,0,513,457, + 1,0,0,0,513,464,1,0,0,0,513,471,1,0,0,0,513,478,1,0,0,0,513,485, + 1,0,0,0,513,492,1,0,0,0,513,499,1,0,0,0,513,506,1,0,0,0,514,27,1, + 0,0,0,515,516,5,31,0,0,516,517,5,82,0,0,517,518,3,6,3,0,518,519, + 5,84,0,0,519,520,3,6,3,0,520,521,5,84,0,0,521,522,3,6,3,0,522,523, + 5,83,0,0,523,561,1,0,0,0,524,525,5,37,0,0,525,526,5,82,0,0,526,527, + 3,6,3,0,527,528,5,84,0,0,528,529,3,6,3,0,529,530,5,84,0,0,530,531, + 3,6,3,0,531,532,5,83,0,0,532,561,1,0,0,0,533,534,5,39,0,0,534,535, + 5,82,0,0,535,536,3,6,3,0,536,537,5,84,0,0,537,538,3,6,3,0,538,539, + 5,84,0,0,539,540,3,6,3,0,540,541,5,83,0,0,541,561,1,0,0,0,542,543, + 5,51,0,0,543,544,5,82,0,0,544,545,3,6,3,0,545,546,5,84,0,0,546,547, + 3,6,3,0,547,548,5,84,0,0,548,549,3,6,3,0,549,550,5,83,0,0,550,561, + 1,0,0,0,551,552,5,63,0,0,552,553,5,82,0,0,553,554,3,6,3,0,554,555, + 5,84,0,0,555,556,3,6,3,0,556,557,5,84,0,0,557,558,3,6,3,0,558,559, + 5,83,0,0,559,561,1,0,0,0,560,515,1,0,0,0,560,524,1,0,0,0,560,533, + 1,0,0,0,560,542,1,0,0,0,560,551,1,0,0,0,561,29,1,0,0,0,562,563,5, + 48,0,0,563,564,5,82,0,0,564,565,3,6,3,0,565,566,5,84,0,0,566,567, + 3,6,3,0,567,568,5,84,0,0,568,569,3,6,3,0,569,570,5,84,0,0,570,571, + 3,6,3,0,571,572,5,83,0,0,572,31,1,0,0,0,573,574,5,19,0,0,574,575, + 5,82,0,0,575,580,3,6,3,0,576,577,5,84,0,0,577,579,3,6,3,0,578,576, + 1,0,0,0,579,582,1,0,0,0,580,578,1,0,0,0,580,581,1,0,0,0,581,583, + 1,0,0,0,582,580,1,0,0,0,583,584,5,83,0,0,584,645,1,0,0,0,585,586, + 5,20,0,0,586,587,5,82,0,0,587,592,3,6,3,0,588,589,5,84,0,0,589,591, + 3,6,3,0,590,588,1,0,0,0,591,594,1,0,0,0,592,590,1,0,0,0,592,593, + 1,0,0,0,593,595,1,0,0,0,594,592,1,0,0,0,595,596,5,83,0,0,596,645, + 1,0,0,0,597,598,5,45,0,0,598,599,5,82,0,0,599,602,3,6,3,0,600,601, + 5,84,0,0,601,603,3,6,3,0,602,600,1,0,0,0,603,604,1,0,0,0,604,602, + 1,0,0,0,604,605,1,0,0,0,605,606,1,0,0,0,606,607,5,83,0,0,607,645, + 1,0,0,0,608,609,5,46,0,0,609,610,5,82,0,0,610,613,3,6,3,0,611,612, + 5,84,0,0,612,614,3,6,3,0,613,611,1,0,0,0,614,615,1,0,0,0,615,613, + 1,0,0,0,615,616,1,0,0,0,616,617,1,0,0,0,617,618,5,83,0,0,618,645, + 1,0,0,0,619,620,5,47,0,0,620,621,5,82,0,0,621,624,3,6,3,0,622,623, + 5,84,0,0,623,625,3,6,3,0,624,622,1,0,0,0,625,626,1,0,0,0,626,624, + 1,0,0,0,626,627,1,0,0,0,627,628,1,0,0,0,628,629,5,83,0,0,629,645, + 1,0,0,0,630,631,5,49,0,0,631,632,5,82,0,0,632,633,3,6,3,0,633,634, + 5,84,0,0,634,635,3,6,3,0,635,636,5,83,0,0,636,645,1,0,0,0,637,638, + 5,50,0,0,638,639,5,82,0,0,639,640,3,6,3,0,640,641,5,84,0,0,641,642, + 3,6,3,0,642,643,5,83,0,0,643,645,1,0,0,0,644,573,1,0,0,0,644,585, + 1,0,0,0,644,597,1,0,0,0,644,608,1,0,0,0,644,619,1,0,0,0,644,630, + 1,0,0,0,644,637,1,0,0,0,645,33,1,0,0,0,27,37,46,58,63,86,88,100, + 102,117,119,127,134,146,153,178,186,189,196,399,513,560,580,592, + 604,615,626,644 ] class MathExprParser ( Parser ): @@ -267,9 +270,9 @@ class MathExprParser ( Parser ): "'topk'", "'botk'", "'pinv'", "'sum'", "'mean'", "'std'", "'var'", "", "", "'quantile'", "'dot'", "'moment'", "'cossim'", "'flip'", "'cov'", "'sort'", - "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "'>='", "'>'", - "'<='", "'<'", "'=='", "'!='", "'|'", "'('", "')'", - "','", "';'", "'->'", "'['", "']'" ] + "'append'", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", + "'>='", "'>'", "'<='", "'<'", "'=='", "'!='", "'|'", + "'('", "')'", "','", "';'", "'->'", "'['", "']'" ] symbolicNames = [ "", "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", "COSH", "TANH", "ASINH", @@ -282,10 +285,10 @@ class MathExprParser ( Parser ): "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", "QUANTILE", "DOT", "MOMENT", "COSSIM", "FLIP", "COV", "SORT", - "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", - "GT", "LE", "LT", "EQ", "NE", "PIPE", "LPAREN", "RPAREN", - "COMMA", "SEMICOLON", "ARROW", "LBRACKET", "RBRACKET", - "CONSTANT", "NUMBER", "VARIABLE", "WS" ] + "APPEND", "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", + "GE", "GT", "LE", "LT", "EQ", "NE", "PIPE", "LPAREN", + "RPAREN", "COMMA", "SEMICOLON", "ARROW", "LBRACKET", + "RBRACKET", "CONSTANT", "NUMBER", "VARIABLE", "WS" ] RULE_start = 0 RULE_funcDef = 1 @@ -378,30 +381,31 @@ class MathExprParser ( Parser ): FLIP=65 COV=66 SORT=67 - PLUS=68 - MINUS=69 - MULT=70 - DIV=71 - MOD=72 - POW=73 - GE=74 - GT=75 - LE=76 - LT=77 - EQ=78 - NE=79 - PIPE=80 - LPAREN=81 - RPAREN=82 - COMMA=83 - SEMICOLON=84 - ARROW=85 - LBRACKET=86 - RBRACKET=87 - CONSTANT=88 - NUMBER=89 - VARIABLE=90 - WS=91 + APPEND=68 + PLUS=69 + MINUS=70 + MULT=71 + DIV=72 + MOD=73 + POW=74 + GE=75 + GT=76 + LE=77 + LT=78 + EQ=79 + NE=80 + PIPE=81 + LPAREN=82 + RPAREN=83 + COMMA=84 + SEMICOLON=85 + ARROW=86 + LBRACKET=87 + RBRACKET=88 + CONSTANT=89 + NUMBER=90 + VARIABLE=91 + WS=92 def __init__(self, input:TokenStream, output:TextIO = sys.stdout): super().__init__(input, output) @@ -486,7 +490,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_funcDef - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -538,7 +542,7 @@ class MathExprParser ( Parser ): self.state = 46 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==90: + if _la==91: self.state = 45 self.paramList() @@ -603,7 +607,7 @@ class MathExprParser ( Parser ): self.state = 58 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==83: + while _la==84: self.state = 54 self.match(MathExprParser.COMMA) self.state = 55 @@ -689,7 +693,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_compExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -949,7 +953,7 @@ class MathExprParser ( Parser ): self.addExpr(0) pass - + self.state = 90 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,5,self._ctx) @@ -974,7 +978,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_addExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1094,7 +1098,7 @@ class MathExprParser ( Parser ): self.mulExpr(0) pass - + self.state = 104 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,7,self._ctx) @@ -1119,7 +1123,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_mulExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1274,7 +1278,7 @@ class MathExprParser ( Parser ): self.powExpr() pass - + self.state = 121 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,9,self._ctx) @@ -1299,7 +1303,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_powExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1392,7 +1396,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_unaryExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1462,7 +1466,7 @@ class MathExprParser ( Parser ): self.state = 134 self._errHandler.sync(self) token = self._input.LA(1) - if token in [68]: + if token in [69]: localctx = MathExprParser.UnaryPlusContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 129 @@ -1470,7 +1474,7 @@ class MathExprParser ( Parser ): self.state = 130 self.unaryExpr() pass - elif token in [69]: + elif token in [70]: localctx = MathExprParser.UnaryMinusContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 131 @@ -1478,7 +1482,7 @@ class MathExprParser ( Parser ): self.state = 132 self.unaryExpr() pass - elif token in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 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, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 80, 81, 86, 88, 89, 90]: + elif token in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 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, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 81, 82, 87, 89, 90, 91]: localctx = MathExprParser.ToIndexContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 133 @@ -1507,7 +1511,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_indexExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1600,7 +1604,7 @@ class MathExprParser ( Parser ): self.state = 146 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==83: + while _la==84: self.state = 142 self.match(MathExprParser.COMMA) self.state = 143 @@ -1635,7 +1639,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_atom - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1967,7 +1971,7 @@ class MathExprParser ( Parser ): self.state = 178 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==83: + while _la==84: self.state = 174 self.match(MathExprParser.COMMA) self.state = 175 @@ -1990,7 +1994,7 @@ class MathExprParser ( Parser ): self.state = 186 self._errHandler.sync(self) _la = self._input.LA(1) - if (((_la) & ~0x3f) == 0 and ((1 << _la) & -2) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & 121831487) != 0): + if (((_la) & ~0x3f) == 0 and ((1 << _la) & -2) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & 243662975) != 0): self.state = 185 self.exprList() @@ -2053,7 +2057,7 @@ class MathExprParser ( Parser ): self.state = 196 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==83: + while _la==84: self.state = 192 self.match(MathExprParser.COMMA) self.state = 193 @@ -2082,7 +2086,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func1 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -3520,7 +3524,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func2 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -3834,6 +3838,34 @@ class MathExprParser ( Parser ): return visitor.visitChildren(self) + class AppendFuncContext(Func2Context): + + def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context + super().__init__(parser) + self.copyFrom(ctx) + + def APPEND(self): + return self.getToken(MathExprParser.APPEND, 0) + def LPAREN(self): + return self.getToken(MathExprParser.LPAREN, 0) + def expr(self, i:int=None): + if i is None: + return self.getTypedRuleContexts(MathExprParser.ExprContext) + else: + return self.getTypedRuleContext(MathExprParser.ExprContext,i) + + def COMMA(self): + return self.getToken(MathExprParser.COMMA, 0) + def RPAREN(self): + return self.getToken(MathExprParser.RPAREN, 0) + + def accept(self, visitor:ParseTreeVisitor): + if hasattr( visitor, "visitAppendFunc" ): + return visitor.visitAppendFunc(self) + else: + return visitor.visitChildren(self) + + class FlipFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context @@ -3924,7 +3956,7 @@ class MathExprParser ( Parser ): localctx = MathExprParser.Func2Context(self, self._ctx, self.state) self.enterRule(localctx, 26, self.RULE_func2) try: - self.state = 506 + self.state = 513 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,19,self._ctx) if la_ == 1: @@ -4182,6 +4214,23 @@ class MathExprParser ( Parser ): self.match(MathExprParser.RPAREN) pass + elif la_ == 16: + localctx = MathExprParser.AppendFuncContext(self, localctx) + self.enterOuterAlt(localctx, 16) + self.state = 506 + self.match(MathExprParser.APPEND) + self.state = 507 + self.match(MathExprParser.LPAREN) + self.state = 508 + self.expr() + self.state = 509 + self.match(MathExprParser.COMMA) + self.state = 510 + self.expr() + self.state = 511 + self.match(MathExprParser.RPAREN) + pass + except RecognitionException as re: localctx.exception = re @@ -4203,7 +4252,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func3 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -4370,36 +4419,20 @@ class MathExprParser ( Parser ): localctx = MathExprParser.Func3Context(self, self._ctx, self.state) self.enterRule(localctx, 28, self.RULE_func3) try: - self.state = 553 + self.state = 560 self._errHandler.sync(self) token = self._input.LA(1) if token in [31]: localctx = MathExprParser.ClampFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 508 - self.match(MathExprParser.CLAMP) - self.state = 509 - self.match(MathExprParser.LPAREN) - self.state = 510 - self.expr() - self.state = 511 - self.match(MathExprParser.COMMA) - self.state = 512 - self.expr() - self.state = 513 - self.match(MathExprParser.COMMA) - self.state = 514 - self.expr() self.state = 515 - self.match(MathExprParser.RPAREN) - pass - elif token in [37]: - localctx = MathExprParser.LerpFuncContext(self, localctx) - self.enterOuterAlt(localctx, 2) - self.state = 517 - self.match(MathExprParser.LERP) - self.state = 518 + self.match(MathExprParser.CLAMP) + self.state = 516 self.match(MathExprParser.LPAREN) + self.state = 517 + self.expr() + self.state = 518 + self.match(MathExprParser.COMMA) self.state = 519 self.expr() self.state = 520 @@ -4407,19 +4440,19 @@ class MathExprParser ( Parser ): self.state = 521 self.expr() self.state = 522 - self.match(MathExprParser.COMMA) - self.state = 523 - self.expr() - self.state = 524 self.match(MathExprParser.RPAREN) pass - elif token in [39]: - localctx = MathExprParser.SmoothstepFuncContext(self, localctx) - self.enterOuterAlt(localctx, 3) - self.state = 526 - self.match(MathExprParser.SMOOTHSTEP) - self.state = 527 + elif token in [37]: + localctx = MathExprParser.LerpFuncContext(self, localctx) + self.enterOuterAlt(localctx, 2) + self.state = 524 + self.match(MathExprParser.LERP) + self.state = 525 self.match(MathExprParser.LPAREN) + self.state = 526 + self.expr() + self.state = 527 + self.match(MathExprParser.COMMA) self.state = 528 self.expr() self.state = 529 @@ -4427,19 +4460,19 @@ class MathExprParser ( Parser ): self.state = 530 self.expr() self.state = 531 - self.match(MathExprParser.COMMA) - self.state = 532 - self.expr() - self.state = 533 self.match(MathExprParser.RPAREN) pass - elif token in [51]: - localctx = MathExprParser.RangeFuncContext(self, localctx) - self.enterOuterAlt(localctx, 4) - self.state = 535 - self.match(MathExprParser.RANGE) - self.state = 536 + elif token in [39]: + localctx = MathExprParser.SmoothstepFuncContext(self, localctx) + self.enterOuterAlt(localctx, 3) + self.state = 533 + self.match(MathExprParser.SMOOTHSTEP) + self.state = 534 self.match(MathExprParser.LPAREN) + self.state = 535 + self.expr() + self.state = 536 + self.match(MathExprParser.COMMA) self.state = 537 self.expr() self.state = 538 @@ -4447,19 +4480,19 @@ class MathExprParser ( Parser ): self.state = 539 self.expr() self.state = 540 - self.match(MathExprParser.COMMA) - self.state = 541 - self.expr() - self.state = 542 self.match(MathExprParser.RPAREN) pass - elif token in [63]: - localctx = MathExprParser.MomentFuncContext(self, localctx) - self.enterOuterAlt(localctx, 5) - self.state = 544 - self.match(MathExprParser.MOMENT) - self.state = 545 + elif token in [51]: + localctx = MathExprParser.RangeFuncContext(self, localctx) + self.enterOuterAlt(localctx, 4) + self.state = 542 + self.match(MathExprParser.RANGE) + self.state = 543 self.match(MathExprParser.LPAREN) + self.state = 544 + self.expr() + self.state = 545 + self.match(MathExprParser.COMMA) self.state = 546 self.expr() self.state = 547 @@ -4467,10 +4500,26 @@ class MathExprParser ( Parser ): self.state = 548 self.expr() self.state = 549 - self.match(MathExprParser.COMMA) - self.state = 550 - self.expr() + self.match(MathExprParser.RPAREN) + pass + elif token in [63]: + localctx = MathExprParser.MomentFuncContext(self, localctx) + self.enterOuterAlt(localctx, 5) self.state = 551 + self.match(MathExprParser.MOMENT) + self.state = 552 + self.match(MathExprParser.LPAREN) + self.state = 553 + self.expr() + self.state = 554 + self.match(MathExprParser.COMMA) + self.state = 555 + self.expr() + self.state = 556 + self.match(MathExprParser.COMMA) + self.state = 557 + self.expr() + self.state = 558 self.match(MathExprParser.RPAREN) pass else: @@ -4496,7 +4545,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func4 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -4541,25 +4590,25 @@ class MathExprParser ( Parser ): try: localctx = MathExprParser.SwapFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 555 - self.match(MathExprParser.SWAP) - self.state = 556 - self.match(MathExprParser.LPAREN) - self.state = 557 - self.expr() - self.state = 558 - self.match(MathExprParser.COMMA) - self.state = 559 - self.expr() - self.state = 560 - self.match(MathExprParser.COMMA) - self.state = 561 - self.expr() self.state = 562 - self.match(MathExprParser.COMMA) + self.match(MathExprParser.SWAP) self.state = 563 - self.expr() + self.match(MathExprParser.LPAREN) self.state = 564 + self.expr() + self.state = 565 + self.match(MathExprParser.COMMA) + self.state = 566 + self.expr() + self.state = 567 + self.match(MathExprParser.COMMA) + self.state = 568 + self.expr() + self.state = 569 + self.match(MathExprParser.COMMA) + self.state = 570 + self.expr() + self.state = 571 self.match(MathExprParser.RPAREN) except RecognitionException as re: localctx.exception = re @@ -4581,7 +4630,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_funcN - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -4805,156 +4854,140 @@ class MathExprParser ( Parser ): self.enterRule(localctx, 32, self.RULE_funcN) self._la = 0 # Token type try: - self.state = 637 + self.state = 644 self._errHandler.sync(self) token = self._input.LA(1) if token in [19]: localctx = MathExprParser.SMinFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 566 - self.match(MathExprParser.SMIN) - self.state = 567 - self.match(MathExprParser.LPAREN) - self.state = 568 - self.expr() self.state = 573 + self.match(MathExprParser.SMIN) + self.state = 574 + self.match(MathExprParser.LPAREN) + self.state = 575 + self.expr() + self.state = 580 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==83: - self.state = 569 + while _la==84: + self.state = 576 self.match(MathExprParser.COMMA) - self.state = 570 + self.state = 577 self.expr() - self.state = 575 + self.state = 582 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 576 + self.state = 583 self.match(MathExprParser.RPAREN) pass elif token in [20]: localctx = MathExprParser.SMaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 578 - self.match(MathExprParser.SMAX) - self.state = 579 - self.match(MathExprParser.LPAREN) - self.state = 580 - self.expr() self.state = 585 + self.match(MathExprParser.SMAX) + self.state = 586 + self.match(MathExprParser.LPAREN) + self.state = 587 + self.expr() + self.state = 592 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==83: - self.state = 581 + while _la==84: + self.state = 588 self.match(MathExprParser.COMMA) - self.state = 582 + self.state = 589 self.expr() - self.state = 587 + self.state = 594 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 588 + self.state = 595 self.match(MathExprParser.RPAREN) pass elif token in [45]: localctx = MathExprParser.MapFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 590 + self.state = 597 self.match(MathExprParser.MAP) - self.state = 591 + self.state = 598 self.match(MathExprParser.LPAREN) - self.state = 592 + self.state = 599 self.expr() - self.state = 595 + self.state = 602 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 593 + self.state = 600 self.match(MathExprParser.COMMA) - self.state = 594 + self.state = 601 self.expr() - self.state = 597 + self.state = 604 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==83): + if not (_la==84): break - self.state = 599 + self.state = 606 self.match(MathExprParser.RPAREN) pass elif token in [46]: localctx = MathExprParser.EzConvFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 601 + self.state = 608 self.match(MathExprParser.EZCONV) - self.state = 602 + self.state = 609 self.match(MathExprParser.LPAREN) - self.state = 603 + self.state = 610 self.expr() - self.state = 606 + self.state = 613 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 604 + self.state = 611 self.match(MathExprParser.COMMA) - self.state = 605 + self.state = 612 self.expr() - self.state = 608 + self.state = 615 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==83): + if not (_la==84): break - self.state = 610 + self.state = 617 self.match(MathExprParser.RPAREN) pass elif token in [47]: localctx = MathExprParser.ConvFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) - self.state = 612 + self.state = 619 self.match(MathExprParser.CONV) - self.state = 613 + self.state = 620 self.match(MathExprParser.LPAREN) - self.state = 614 + self.state = 621 self.expr() - self.state = 617 + self.state = 624 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 615 + self.state = 622 self.match(MathExprParser.COMMA) - self.state = 616 + self.state = 623 self.expr() - self.state = 619 + self.state = 626 self._errHandler.sync(self) _la = self._input.LA(1) - if not (_la==83): + if not (_la==84): break - self.state = 621 + self.state = 628 self.match(MathExprParser.RPAREN) pass elif token in [49]: localctx = MathExprParser.PermuteFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) - self.state = 623 - self.match(MathExprParser.PERM) - self.state = 624 - self.match(MathExprParser.LPAREN) - self.state = 625 - self.expr() - self.state = 626 - self.match(MathExprParser.COMMA) - self.state = 627 - self.expr() - self.state = 628 - self.match(MathExprParser.RPAREN) - pass - elif token in [50]: - localctx = MathExprParser.ReshapeFuncContext(self, localctx) - self.enterOuterAlt(localctx, 7) self.state = 630 - self.match(MathExprParser.RESHAPE) + self.match(MathExprParser.PERM) self.state = 631 self.match(MathExprParser.LPAREN) self.state = 632 @@ -4966,6 +4999,22 @@ class MathExprParser ( Parser ): self.state = 635 self.match(MathExprParser.RPAREN) pass + elif token in [50]: + localctx = MathExprParser.ReshapeFuncContext(self, localctx) + self.enterOuterAlt(localctx, 7) + self.state = 637 + self.match(MathExprParser.RESHAPE) + self.state = 638 + self.match(MathExprParser.LPAREN) + self.state = 639 + self.expr() + self.state = 640 + self.match(MathExprParser.COMMA) + self.state = 641 + self.expr() + self.state = 642 + self.match(MathExprParser.RPAREN) + pass else: raise NoViableAltException(self) @@ -4995,54 +5044,54 @@ class MathExprParser ( Parser ): def compExpr_sempred(self, localctx:CompExprContext, predIndex:int): if predIndex == 0: return self.precpred(self._ctx, 7) - + if predIndex == 1: return self.precpred(self._ctx, 6) - + if predIndex == 2: return self.precpred(self._ctx, 5) - + if predIndex == 3: return self.precpred(self._ctx, 4) - + if predIndex == 4: return self.precpred(self._ctx, 3) - + if predIndex == 5: return self.precpred(self._ctx, 2) - + def addExpr_sempred(self, localctx:AddExprContext, predIndex:int): if predIndex == 6: return self.precpred(self._ctx, 3) - + if predIndex == 7: return self.precpred(self._ctx, 2) - + def mulExpr_sempred(self, localctx:MulExprContext, predIndex:int): if predIndex == 8: return self.precpred(self._ctx, 4) - + if predIndex == 9: return self.precpred(self._ctx, 3) - + if predIndex == 10: return self.precpred(self._ctx, 2) - + def indexExpr_sempred(self, localctx:IndexExprContext, predIndex:int): if predIndex == 11: return self.precpred(self._ctx, 2) - + diff --git a/more_math/Parser/MathExprVisitor.py b/more_math/Parser/MathExprVisitor.py index eca7824..b2b69d2 100644 --- a/more_math/Parser/MathExprVisitor.py +++ b/more_math/Parser/MathExprVisitor.py @@ -469,6 +469,11 @@ class MathExprVisitor(ParseTreeVisitor): return self.visitChildren(ctx) + # Visit a parse tree produced by MathExprParser#AppendFunc. + def visitAppendFunc(self, ctx:MathExprParser.AppendFuncContext): + return self.visitChildren(ctx) + + # Visit a parse tree produced by MathExprParser#ClampFunc. def visitClampFunc(self, ctx:MathExprParser.ClampFuncContext): return self.visitChildren(ctx) diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index 1707200..0f1ef9e 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -1043,6 +1043,18 @@ class UnifiedMathVisitor(MathExprVisitor): return result.reshape(*batch_shape, in_channels, *spatial_shape) + def visitAppendFunc(self, ctx): + a = self.visit(ctx.expr(0)) + b = self.visit(ctx.expr(1)) + + if self._is_tensor(a) or self._is_tensor(b): + a = self._promote_to_tensor(a) + b = self._promote_to_tensor(b) + return torch.cat((a, b), dim=0) + if not self._is_list(a): a = [a] + if not self._is_list(b): b = [b] + return a + b + def visitStart(self, ctx): # Visit all statements (function definitions) if ctx.funcDef():