# Generated from MathExpr.g4 by ANTLR 4.9.3 # encoding: utf-8 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u00e9") buf.write("\u0761\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7") buf.write("\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") buf.write("\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23\t\23") buf.write("\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31") buf.write("\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36") buf.write("\4\37\t\37\4 \t \3\2\3\2\3\2\7\2D\n\2\f\2\16\2G\13\2\3") buf.write("\2\3\2\5\2K\n\2\3\2\3\2\3\3\3\3\3\3\5\3R\n\3\3\3\3\3\3") buf.write("\3\3\3\5\3X\n\3\3\3\3\3\3\4\3\4\3\4\3\4\3\4\7\4a\n\4\f") buf.write("\4\16\4d\13\4\3\4\3\4\7\4h\n\4\f\4\16\4k\13\4\3\4\3\4") buf.write("\3\4\3\4\3\5\3\5\3\5\7\5t\n\5\f\5\16\5w\13\5\3\6\3\6\3") buf.write("\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\5\6\u0084\n\6\3\7\3") buf.write("\7\3\7\3\7\3\7\3\7\3\7\5\7\u008d\n\7\3\b\3\b\3\b\3\b\3") buf.write("\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\n\3\n\7\n\u009f") buf.write("\n\n\f\n\16\n\u00a2\13\n\3\n\3\n\3\13\3\13\3\13\3\f\3") buf.write("\f\3\f\3\r\3\r\5\r\u00ae\n\r\3\r\3\r\3\16\3\16\3\16\5") buf.write("\16\u00b5\n\16\3\17\3\17\3\17\3\17\3\17\3\17\3\20\3\20") buf.write("\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20") buf.write("\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\7\20\u00d2\n") buf.write("\20\f\20\16\20\u00d5\13\20\3\21\3\21\3\21\3\21\3\21\3") buf.write("\21\3\21\3\21\3\21\7\21\u00e0\n\21\f\21\16\21\u00e3\13") buf.write("\21\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22") buf.write("\3\22\3\22\7\22\u00f1\n\22\f\22\16\22\u00f4\13\22\3\23") buf.write("\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\7\23\u00ff\n") buf.write("\23\f\23\16\23\u0102\13\23\3\24\3\24\3\24\3\24\3\24\5") buf.write("\24\u0109\n\24\3\25\3\25\3\25\3\25\3\25\5\25\u0110\n\25") buf.write("\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\7\26\u011a\n") buf.write("\26\f\26\16\26\u011d\13\26\3\26\3\26\7\26\u0121\n\26\f") buf.write("\26\16\26\u0124\13\26\3\27\3\27\3\27\3\27\3\27\3\27\3") buf.write("\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27") buf.write("\3\27\5\27\u0138\n\27\3\27\3\27\3\27\3\27\3\27\3\27\3") buf.write("\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\7\27") buf.write("\u014a\n\27\f\27\16\27\u014d\13\27\3\27\3\27\3\27\3\27") buf.write("\3\27\5\27\u0154\n\27\3\27\3\27\3\27\3\27\5\27\u015a\n") buf.write("\27\3\30\3\30\3\30\7\30\u015f\n\30\f\30\16\30\u0162\13") buf.write("\30\3\31\3\31\3\31\3\31\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\5\32\u020d\n\32\3\32\3\32\3") buf.write("\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\5\32\u0234\n\32\3\32\3\32\3\32\3\32\3\32\3") buf.write("\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\5\32\u0247\n\32\3\32\3\32\3\32\3\32\3\32\3\32\3") buf.write("\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u0257\n\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\5\32\u027b\n\32\5\32\u027d\n\32\3\32\3\32\3\32\3") buf.write("\32\3\32\3\32\3\32\5\32\u0286\n\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\5\32\u028f\n\32\3\32\3\32\3\32\3\32\3") buf.write("\32\3\32\3\32\5\32\u0298\n\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\5\32\u02a1\n\32\3\32\3\32\3\32\3\32\3\32\3") buf.write("\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u02f0\n\32\3\32\3") buf.write("\32\3\32\3\32\3\32\3\32\3\32\5\32\u02f9\n\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\5\32\u0302\n\32\3\32\3\32\3") buf.write("\32\3\32\3\32\3\32\3\32\5\32\u030b\n\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32") buf.write("\3\32\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u032d\n\32\3") buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\5\33\u0350\n\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3") buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\5\33\u03c4\n") buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\5\33\u03f2\n\33\5\33\u03f4\n\33\3\33\3\33\3\33\3") buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\5\33\u041f\n\33\5\33\u0421\n") buf.write("\33\5\33\u0423\n\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\5\33") buf.write("\u0441\n\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\5\33\u044a") buf.write("\n\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\5\33") buf.write("\u0455\n\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3") buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\5\33\u0476\n\33\3\33\3\33\3\33\3\33\3\33\3\33\3") buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33") buf.write("\3\33\3\33\3\33\3\33\3\33\3\33\5\33\u048f\n\33\3\34\3") buf.write("\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u04f0\n\34\3\34\3") buf.write("\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34") buf.write("\u04fd\n\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3") buf.write("\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34") buf.write("\u0511\n\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3") buf.write("\34\3\34\5\34\u051d\n\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\5\34\u0529\n\34\3\34\3\34\3\34\3") buf.write("\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u0535\n\34\3\34") buf.write("\3\34\5\34\u0539\n\34\3\34\3\34\3\34\3\34\3\34\3\34\3") buf.write("\34\3\34\3\34\3\34\5\34\u0545\n\34\3\34\3\34\5\34\u0549") buf.write("\n\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u055e") buf.write("\n\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34") buf.write("\5\34\u056a\n\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3") buf.write("\34\3\34\3\34\3\34\5\34\u0577\n\34\3\34\3\34\5\34\u057b") buf.write("\n\34\3\34\3\34\5\34\u057f\n\34\3\34\3\34\5\34\u0583\n") buf.write("\34\3\34\3\34\5\34\u0587\n\34\3\34\3\34\5\34\u058b\n\34") buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u0596") buf.write("\n\34\3\34\3\34\5\34\u059a\n\34\3\35\3\35\3\35\3\35\3") buf.write("\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35") buf.write("\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35") buf.write("\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35") buf.write("\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35") buf.write("\3\35\3\35\3\35\3\35\3\35\3\35\3\35\5\35\u05d3\n\35\3") buf.write("\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36") buf.write("\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36") buf.write("\3\36\3\36\5\36\u05ed\n\36\5\36\u05ef\n\36\5\36\u05f1") buf.write("\n\36\3\36\3\36\5\36\u05f5\n\36\3\37\3\37\3\37\3\37\3") buf.write("\37\7\37\u05fc\n\37\f\37\16\37\u05ff\13\37\3\37\3\37\3") buf.write("\37\3\37\3\37\3\37\3\37\7\37\u0608\n\37\f\37\16\37\u060b") buf.write("\13\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\6\37\u0614\n") buf.write("\37\r\37\16\37\u0615\3\37\3\37\3\37\3\37\3\37\3\37\3\37") buf.write("\6\37\u061f\n\37\r\37\16\37\u0620\3\37\3\37\3\37\3\37") buf.write("\3\37\3\37\3\37\6\37\u062a\n\37\r\37\16\37\u062b\3\37") buf.write("\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37") buf.write("\3\37\3\37\5\37\u063c\n\37\3\37\3\37\3\37\3\37\3\37\3") buf.write("\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\6\37\u064c") buf.write("\n\37\r\37\16\37\u064d\3\37\3\37\5\37\u0652\n\37\3 \3") buf.write(" \3 \3 \3 \5 \u0659\n \3 \3 \3 \3 \3 \3 \3 \5 \u0662\n") buf.write(" \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u066d\n \3 \3 \3 \3 \3") buf.write(" \3 \3 \3 \3 \5 \u0678\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \5") buf.write(" \u0683\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u0690\n") buf.write(" \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u069d\n \3 \3 \3") buf.write(" \3 \3 \3 \3 \3 \3 \3 \3 \5 \u06aa\n \3 \3 \3 \3 \3 \3") buf.write(" \3 \3 \3 \3 \3 \5 \u06b7\n \3 \3 \3 \3 \3 \3 \3 \3 \3") buf.write(" \3 \3 \5 \u06c4\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \5") buf.write(" \u06d1\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u06de\n") buf.write(" \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u06e9\n \3 \3 \3 \3 \3") buf.write(" \3 \3 \3 \3 \5 \u06f4\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \5") buf.write(" \u06ff\n \3 \3 \5 \u0703\n \3 \3 \5 \u0707\n \3 \3 \3") buf.write(" \3 \3 \3 \3 \3 \3 \5 \u0712\n \3 \3 \5 \u0716\n \3 \3") buf.write(" \5 \u071a\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u0725\n \3") buf.write(" \3 \5 \u0729\n \3 \3 \5 \u072d\n \3 \3 \3 \3 \3 \3 \3") buf.write(" \3 \3 \5 \u0738\n \3 \3 \5 \u073c\n \3 \3 \5 \u0740\n") buf.write(" \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \5 \u074f\n \3") buf.write(" \3 \5 \u0753\n \3 \3 \5 \u0757\n \3 \3 \5 \u075b\n \3") buf.write(" \3 \5 \u075f\n \3 \2\7\36 \"$*!\2\4\6\b\n\f\16\20\22") buf.write("\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>\2\3\3\2\u00d0") buf.write("\u00d5\2\u0883\2E\3\2\2\2\4N\3\2\2\2\6[\3\2\2\2\bp\3\2") buf.write("\2\2\n\u0083\3\2\2\2\f\u0085\3\2\2\2\16\u008e\3\2\2\2") buf.write("\20\u0094\3\2\2\2\22\u009c\3\2\2\2\24\u00a5\3\2\2\2\26") buf.write("\u00a8\3\2\2\2\30\u00ab\3\2\2\2\32\u00b4\3\2\2\2\34\u00b6") buf.write("\3\2\2\2\36\u00bc\3\2\2\2 \u00d6\3\2\2\2\"\u00e4\3\2\2") buf.write("\2$\u00f5\3\2\2\2&\u0108\3\2\2\2(\u010f\3\2\2\2*\u0111") buf.write("\3\2\2\2,\u0159\3\2\2\2.\u015b\3\2\2\2\60\u0163\3\2\2") buf.write("\2\62\u032c\3\2\2\2\64\u048e\3\2\2\2\66\u0599\3\2\2\2") buf.write("8\u05d2\3\2\2\2:\u05f4\3\2\2\2<\u0651\3\2\2\2>\u075e\3") buf.write("\2\2\2@D\5\4\3\2AD\5\6\4\2BD\5\n\6\2C@\3\2\2\2CA\3\2\2") buf.write("\2CB\3\2\2\2DG\3\2\2\2EC\3\2\2\2EF\3\2\2\2FH\3\2\2\2G") buf.write("E\3\2\2\2HJ\5\32\16\2IK\7\u00db\2\2JI\3\2\2\2JK\3\2\2") buf.write("\2KL\3\2\2\2LM\7\2\2\3M\3\3\2\2\2NO\7\u00e6\2\2OQ\7\u00d8") buf.write("\2\2PR\5\b\5\2QP\3\2\2\2QR\3\2\2\2RS\3\2\2\2ST\7\u00d9") buf.write("\2\2TW\7\u00dc\2\2UX\5\22\n\2VX\5\32\16\2WU\3\2\2\2WV") buf.write("\3\2\2\2XY\3\2\2\2YZ\7\u00db\2\2Z\5\3\2\2\2[i\7\u00e6") buf.write("\2\2\\]\7\u00dd\2\2]b\5\32\16\2^_\7\u00da\2\2_a\5\32\16") buf.write("\2`^\3\2\2\2ad\3\2\2\2b`\3\2\2\2bc\3\2\2\2ce\3\2\2\2d") buf.write("b\3\2\2\2ef\7\u00de\2\2fh\3\2\2\2g\\\3\2\2\2hk\3\2\2\2") buf.write("ig\3\2\2\2ij\3\2\2\2jl\3\2\2\2ki\3\2\2\2lm\t\2\2\2mn\5") buf.write("\32\16\2no\7\u00db\2\2o\7\3\2\2\2pu\7\u00e6\2\2qr\7\u00da") buf.write("\2\2rt\7\u00e6\2\2sq\3\2\2\2tw\3\2\2\2us\3\2\2\2uv\3\2") buf.write("\2\2v\t\3\2\2\2wu\3\2\2\2x\u0084\5\f\7\2y\u0084\5\16\b") buf.write("\2z\u0084\5\22\n\2{\u0084\5\24\13\2|\u0084\5\26\f\2}\u0084") buf.write("\5\30\r\2~\u0084\5\6\4\2\177\u0084\5\20\t\2\u0080\u0081") buf.write("\5\32\16\2\u0081\u0082\7\u00db\2\2\u0082\u0084\3\2\2\2") buf.write("\u0083x\3\2\2\2\u0083y\3\2\2\2\u0083z\3\2\2\2\u0083{\3") buf.write("\2\2\2\u0083|\3\2\2\2\u0083}\3\2\2\2\u0083~\3\2\2\2\u0083") buf.write("\177\3\2\2\2\u0083\u0080\3\2\2\2\u0084\13\3\2\2\2\u0085") buf.write("\u0086\7\u0094\2\2\u0086\u0087\7\u00d8\2\2\u0087\u0088") buf.write("\5\32\16\2\u0088\u0089\7\u00d9\2\2\u0089\u008c\5\n\6\2") buf.write("\u008a\u008b\7\u0095\2\2\u008b\u008d\5\n\6\2\u008c\u008a") buf.write("\3\2\2\2\u008c\u008d\3\2\2\2\u008d\r\3\2\2\2\u008e\u008f") buf.write("\7\u0096\2\2\u008f\u0090\7\u00d8\2\2\u0090\u0091\5\32") buf.write("\16\2\u0091\u0092\7\u00d9\2\2\u0092\u0093\5\n\6\2\u0093") buf.write("\17\3\2\2\2\u0094\u0095\7\u0097\2\2\u0095\u0096\7\u00d8") buf.write("\2\2\u0096\u0097\7\u00e6\2\2\u0097\u0098\7\u0098\2\2\u0098") buf.write("\u0099\5\32\16\2\u0099\u009a\7\u00d9\2\2\u009a\u009b\5") buf.write("\n\6\2\u009b\21\3\2\2\2\u009c\u00a0\7\u00e1\2\2\u009d") buf.write("\u009f\5\n\6\2\u009e\u009d\3\2\2\2\u009f\u00a2\3\2\2\2") buf.write("\u00a0\u009e\3\2\2\2\u00a0\u00a1\3\2\2\2\u00a1\u00a3\3") buf.write("\2\2\2\u00a2\u00a0\3\2\2\2\u00a3\u00a4\7\u00e2\2\2\u00a4") buf.write("\23\3\2\2\2\u00a5\u00a6\7\u0099\2\2\u00a6\u00a7\7\u00db") buf.write("\2\2\u00a7\25\3\2\2\2\u00a8\u00a9\7\u009a\2\2\u00a9\u00aa") buf.write("\7\u00db\2\2\u00aa\27\3\2\2\2\u00ab\u00ad\7\u009b\2\2") buf.write("\u00ac\u00ae\5\32\16\2\u00ad\u00ac\3\2\2\2\u00ad\u00ae") buf.write("\3\2\2\2\u00ae\u00af\3\2\2\2\u00af\u00b0\7\u00db\2\2\u00b0") buf.write("\31\3\2\2\2\u00b1\u00b5\5\34\17\2\u00b2\u00b5\5,\27\2") buf.write("\u00b3\u00b5\5\36\20\2\u00b4\u00b1\3\2\2\2\u00b4\u00b2") buf.write("\3\2\2\2\u00b4\u00b3\3\2\2\2\u00b5\33\3\2\2\2\u00b6\u00b7") buf.write("\5\36\20\2\u00b7\u00b8\7\u00df\2\2\u00b8\u00b9\5\32\16") buf.write("\2\u00b9\u00ba\7\u00e0\2\2\u00ba\u00bb\5\32\16\2\u00bb") buf.write("\35\3\2\2\2\u00bc\u00bd\b\20\1\2\u00bd\u00be\5 \21\2\u00be") buf.write("\u00d3\3\2\2\2\u00bf\u00c0\f\t\2\2\u00c0\u00c1\7\u00cc") buf.write("\2\2\u00c1\u00d2\5 \21\2\u00c2\u00c3\f\b\2\2\u00c3\u00c4") buf.write("\7\u00cb\2\2\u00c4\u00d2\5 \21\2\u00c5\u00c6\f\7\2\2\u00c6") buf.write("\u00c7\7\u00ce\2\2\u00c7\u00d2\5 \21\2\u00c8\u00c9\f\6") buf.write("\2\2\u00c9\u00ca\7\u00cd\2\2\u00ca\u00d2\5 \21\2\u00cb") buf.write("\u00cc\f\5\2\2\u00cc\u00cd\7\u00cf\2\2\u00cd\u00d2\5 ") buf.write("\21\2\u00ce\u00cf\f\4\2\2\u00cf\u00d0\7\u00d6\2\2\u00d0") buf.write("\u00d2\5 \21\2\u00d1\u00bf\3\2\2\2\u00d1\u00c2\3\2\2\2") buf.write("\u00d1\u00c5\3\2\2\2\u00d1\u00c8\3\2\2\2\u00d1\u00cb\3") buf.write("\2\2\2\u00d1\u00ce\3\2\2\2\u00d2\u00d5\3\2\2\2\u00d3\u00d1") buf.write("\3\2\2\2\u00d3\u00d4\3\2\2\2\u00d4\37\3\2\2\2\u00d5\u00d3") buf.write("\3\2\2\2\u00d6\u00d7\b\21\1\2\u00d7\u00d8\5\"\22\2\u00d8") buf.write("\u00e1\3\2\2\2\u00d9\u00da\f\5\2\2\u00da\u00db\7\u00c3") buf.write("\2\2\u00db\u00e0\5\"\22\2\u00dc\u00dd\f\4\2\2\u00dd\u00de") buf.write("\7\u00c4\2\2\u00de\u00e0\5\"\22\2\u00df\u00d9\3\2\2\2") buf.write("\u00df\u00dc\3\2\2\2\u00e0\u00e3\3\2\2\2\u00e1\u00df\3") buf.write("\2\2\2\u00e1\u00e2\3\2\2\2\u00e2!\3\2\2\2\u00e3\u00e1") buf.write("\3\2\2\2\u00e4\u00e5\b\22\1\2\u00e5\u00e6\5$\23\2\u00e6") buf.write("\u00f2\3\2\2\2\u00e7\u00e8\f\6\2\2\u00e8\u00e9\7\u00c5") buf.write("\2\2\u00e9\u00f1\5$\23\2\u00ea\u00eb\f\5\2\2\u00eb\u00ec") buf.write("\7\u00c6\2\2\u00ec\u00f1\5$\23\2\u00ed\u00ee\f\4\2\2\u00ee") buf.write("\u00ef\7\u00c7\2\2\u00ef\u00f1\5$\23\2\u00f0\u00e7\3\2") buf.write("\2\2\u00f0\u00ea\3\2\2\2\u00f0\u00ed\3\2\2\2\u00f1\u00f4") buf.write("\3\2\2\2\u00f2\u00f0\3\2\2\2\u00f2\u00f3\3\2\2\2\u00f3") buf.write("#\3\2\2\2\u00f4\u00f2\3\2\2\2\u00f5\u00f6\b\23\1\2\u00f6") buf.write("\u00f7\5&\24\2\u00f7\u0100\3\2\2\2\u00f8\u00f9\f\5\2\2") buf.write("\u00f9\u00fa\7\u00c9\2\2\u00fa\u00ff\5&\24\2\u00fb\u00fc") buf.write("\f\4\2\2\u00fc\u00fd\7\u00ca\2\2\u00fd\u00ff\5&\24\2\u00fe") buf.write("\u00f8\3\2\2\2\u00fe\u00fb\3\2\2\2\u00ff\u0102\3\2\2\2") buf.write("\u0100\u00fe\3\2\2\2\u0100\u0101\3\2\2\2\u0101%\3\2\2") buf.write("\2\u0102\u0100\3\2\2\2\u0103\u0104\5(\25\2\u0104\u0105") buf.write("\7\u00c8\2\2\u0105\u0106\5&\24\2\u0106\u0109\3\2\2\2\u0107") buf.write("\u0109\5(\25\2\u0108\u0103\3\2\2\2\u0108\u0107\3\2\2\2") buf.write("\u0109\'\3\2\2\2\u010a\u010b\7\u00c3\2\2\u010b\u0110\5") buf.write("(\25\2\u010c\u010d\7\u00c4\2\2\u010d\u0110\5(\25\2\u010e") buf.write("\u0110\5*\26\2\u010f\u010a\3\2\2\2\u010f\u010c\3\2\2\2") buf.write("\u010f\u010e\3\2\2\2\u0110)\3\2\2\2\u0111\u0112\b\26\1") buf.write("\2\u0112\u0113\5,\27\2\u0113\u0122\3\2\2\2\u0114\u0115") buf.write("\f\4\2\2\u0115\u0116\7\u00dd\2\2\u0116\u011b\5\32\16\2") buf.write("\u0117\u0118\7\u00da\2\2\u0118\u011a\5\32\16\2\u0119\u0117") buf.write("\3\2\2\2\u011a\u011d\3\2\2\2\u011b\u0119\3\2\2\2\u011b") buf.write("\u011c\3\2\2\2\u011c\u011e\3\2\2\2\u011d\u011b\3\2\2\2") buf.write("\u011e\u011f\7\u00de\2\2\u011f\u0121\3\2\2\2\u0120\u0114") buf.write("\3\2\2\2\u0121\u0124\3\2\2\2\u0122\u0120\3\2\2\2\u0122") buf.write("\u0123\3\2\2\2\u0123+\3\2\2\2\u0124\u0122\3\2\2\2\u0125") buf.write("\u015a\5\60\31\2\u0126\u015a\5\62\32\2\u0127\u015a\5\64") buf.write("\33\2\u0128\u015a\5\66\34\2\u0129\u015a\58\35\2\u012a") buf.write("\u015a\5:\36\2\u012b\u015a\5<\37\2\u012c\u015a\5> \2\u012d") buf.write("\u015a\7\u00e6\2\2\u012e\u015a\7\u00e3\2\2\u012f\u015a") buf.write("\7\u00e4\2\2\u0130\u015a\7\u00e5\2\2\u0131\u0132\7\u00d8") buf.write("\2\2\u0132\u0133\5\b\5\2\u0133\u0134\7\u00d9\2\2\u0134") buf.write("\u0137\7\u00dc\2\2\u0135\u0138\5\22\n\2\u0136\u0138\5") buf.write("\32\16\2\u0137\u0135\3\2\2\2\u0137\u0136\3\2\2\2\u0138") buf.write("\u015a\3\2\2\2\u0139\u013a\7\u00d8\2\2\u013a\u013b\5\32") buf.write("\16\2\u013b\u013c\7\u00d9\2\2\u013c\u015a\3\2\2\2\u013d") buf.write("\u013e\7\u00d8\2\2\u013e\u013f\5\32\16\2\u013f\u0140\7") buf.write("\u00d9\2\2\u0140\u015a\3\2\2\2\u0141\u0142\7\u00d7\2\2") buf.write("\u0142\u0143\5\32\16\2\u0143\u0144\7\u00d7\2\2\u0144\u015a") buf.write("\3\2\2\2\u0145\u0146\7\u00dd\2\2\u0146\u014b\5\32\16\2") buf.write("\u0147\u0148\7\u00da\2\2\u0148\u014a\5\32\16\2\u0149\u0147") buf.write("\3\2\2\2\u014a\u014d\3\2\2\2\u014b\u0149\3\2\2\2\u014b") buf.write("\u014c\3\2\2\2\u014c\u014e\3\2\2\2\u014d\u014b\3\2\2\2") buf.write("\u014e\u014f\7\u00de\2\2\u014f\u015a\3\2\2\2\u0150\u0151") buf.write("\7\u00e6\2\2\u0151\u0153\7\u00d8\2\2\u0152\u0154\5.\30") buf.write("\2\u0153\u0152\3\2\2\2\u0153\u0154\3\2\2\2\u0154\u0155") buf.write("\3\2\2\2\u0155\u015a\7\u00d9\2\2\u0156\u015a\7\u00ae\2") buf.write("\2\u0157\u015a\7\u0099\2\2\u0158\u015a\7\u009a\2\2\u0159") buf.write("\u0125\3\2\2\2\u0159\u0126\3\2\2\2\u0159\u0127\3\2\2\2") buf.write("\u0159\u0128\3\2\2\2\u0159\u0129\3\2\2\2\u0159\u012a\3") buf.write("\2\2\2\u0159\u012b\3\2\2\2\u0159\u012c\3\2\2\2\u0159\u012d") buf.write("\3\2\2\2\u0159\u012e\3\2\2\2\u0159\u012f\3\2\2\2\u0159") buf.write("\u0130\3\2\2\2\u0159\u0131\3\2\2\2\u0159\u0139\3\2\2\2") buf.write("\u0159\u013d\3\2\2\2\u0159\u0141\3\2\2\2\u0159\u0145\3") buf.write("\2\2\2\u0159\u0150\3\2\2\2\u0159\u0156\3\2\2\2\u0159\u0157") buf.write("\3\2\2\2\u0159\u0158\3\2\2\2\u015a-\3\2\2\2\u015b\u0160") buf.write("\5\32\16\2\u015c\u015d\7\u00da\2\2\u015d\u015f\5\32\16") buf.write("\2\u015e\u015c\3\2\2\2\u015f\u0162\3\2\2\2\u0160\u015e") buf.write("\3\2\2\2\u0160\u0161\3\2\2\2\u0161/\3\2\2\2\u0162\u0160") buf.write("\3\2\2\2\u0163\u0164\7\u009c\2\2\u0164\u0165\7\u00d8\2") buf.write("\2\u0165\u0166\7\u00d9\2\2\u0166\61\3\2\2\2\u0167\u0168") buf.write("\7\3\2\2\u0168\u0169\7\u00d8\2\2\u0169\u016a\5\32\16\2") buf.write("\u016a\u016b\7\u00d9\2\2\u016b\u032d\3\2\2\2\u016c\u016d") buf.write("\7\4\2\2\u016d\u016e\7\u00d8\2\2\u016e\u016f\5\32\16\2") buf.write("\u016f\u0170\7\u00d9\2\2\u0170\u032d\3\2\2\2\u0171\u0172") buf.write("\7\5\2\2\u0172\u0173\7\u00d8\2\2\u0173\u0174\5\32\16\2") buf.write("\u0174\u0175\7\u00d9\2\2\u0175\u032d\3\2\2\2\u0176\u0177") buf.write("\7\6\2\2\u0177\u0178\7\u00d8\2\2\u0178\u0179\5\32\16\2") buf.write("\u0179\u017a\7\u00d9\2\2\u017a\u032d\3\2\2\2\u017b\u017c") buf.write("\7\7\2\2\u017c\u017d\7\u00d8\2\2\u017d\u017e\5\32\16\2") buf.write("\u017e\u017f\7\u00d9\2\2\u017f\u032d\3\2\2\2\u0180\u0181") buf.write("\7\b\2\2\u0181\u0182\7\u00d8\2\2\u0182\u0183\5\32\16\2") buf.write("\u0183\u0184\7\u00d9\2\2\u0184\u032d\3\2\2\2\u0185\u0186") buf.write("\7\n\2\2\u0186\u0187\7\u00d8\2\2\u0187\u0188\5\32\16\2") buf.write("\u0188\u0189\7\u00d9\2\2\u0189\u032d\3\2\2\2\u018a\u018b") buf.write("\7\13\2\2\u018b\u018c\7\u00d8\2\2\u018c\u018d\5\32\16") buf.write("\2\u018d\u018e\7\u00d9\2\2\u018e\u032d\3\2\2\2\u018f\u0190") buf.write("\7\f\2\2\u0190\u0191\7\u00d8\2\2\u0191\u0192\5\32\16\2") buf.write("\u0192\u0193\7\u00d9\2\2\u0193\u032d\3\2\2\2\u0194\u0195") buf.write("\7\r\2\2\u0195\u0196\7\u00d8\2\2\u0196\u0197\5\32\16\2") buf.write("\u0197\u0198\7\u00d9\2\2\u0198\u032d\3\2\2\2\u0199\u019a") buf.write("\7\16\2\2\u019a\u019b\7\u00d8\2\2\u019b\u019c\5\32\16") buf.write("\2\u019c\u019d\7\u00d9\2\2\u019d\u032d\3\2\2\2\u019e\u019f") buf.write("\7\17\2\2\u019f\u01a0\7\u00d8\2\2\u01a0\u01a1\5\32\16") buf.write("\2\u01a1\u01a2\7\u00d9\2\2\u01a2\u032d\3\2\2\2\u01a3\u01a4") buf.write("\7\20\2\2\u01a4\u01a5\7\u00d8\2\2\u01a5\u01a6\5\32\16") buf.write("\2\u01a6\u01a7\7\u00d9\2\2\u01a7\u032d\3\2\2\2\u01a8\u01a9") buf.write("\7\21\2\2\u01a9\u01aa\7\u00d8\2\2\u01aa\u01ab\5\32\16") buf.write("\2\u01ab\u01ac\7\u00d9\2\2\u01ac\u032d\3\2\2\2\u01ad\u01ae") buf.write("\7\22\2\2\u01ae\u01af\7\u00d8\2\2\u01af\u01b0\5\32\16") buf.write("\2\u01b0\u01b1\7\u00d9\2\2\u01b1\u032d\3\2\2\2\u01b2\u01b3") buf.write("\7\23\2\2\u01b3\u01b4\7\u00d8\2\2\u01b4\u01b5\5\32\16") buf.write("\2\u01b5\u01b6\7\u00d9\2\2\u01b6\u032d\3\2\2\2\u01b7\u01b8") buf.write("\7\24\2\2\u01b8\u01b9\7\u00d8\2\2\u01b9\u01ba\5\32\16") buf.write("\2\u01ba\u01bb\7\u00d9\2\2\u01bb\u032d\3\2\2\2\u01bc\u01bd") buf.write("\7\31\2\2\u01bd\u01be\7\u00d8\2\2\u01be\u01bf\5\32\16") buf.write("\2\u01bf\u01c0\7\u00d9\2\2\u01c0\u032d\3\2\2\2\u01c1\u01c2") buf.write("\7\33\2\2\u01c2\u01c3\7\u00d8\2\2\u01c3\u01c4\5\32\16") buf.write("\2\u01c4\u01c5\7\u00d9\2\2\u01c5\u032d\3\2\2\2\u01c6\u01c7") buf.write("\7\34\2\2\u01c7\u01c8\7\u00d8\2\2\u01c8\u01c9\5\32\16") buf.write("\2\u01c9\u01ca\7\u00d9\2\2\u01ca\u032d\3\2\2\2\u01cb\u01cc") buf.write("\7\35\2\2\u01cc\u01cd\7\u00d8\2\2\u01cd\u01ce\5\32\16") buf.write("\2\u01ce\u01cf\7\u00d9\2\2\u01cf\u032d\3\2\2\2\u01d0\u01d1") buf.write("\7\36\2\2\u01d1\u01d2\7\u00d8\2\2\u01d2\u01d3\5\32\16") buf.write("\2\u01d3\u01d4\7\u00d9\2\2\u01d4\u032d\3\2\2\2\u01d5\u01d6") buf.write("\7 \2\2\u01d6\u01d7\7\u00d8\2\2\u01d7\u01d8\5\32\16\2") buf.write("\u01d8\u01d9\7\u00d9\2\2\u01d9\u032d\3\2\2\2\u01da\u01db") buf.write("\7$\2\2\u01db\u01dc\7\u00d8\2\2\u01dc\u01dd\5\32\16\2") buf.write("\u01dd\u01de\7\u00d9\2\2\u01de\u032d\3\2\2\2\u01df\u01e0") buf.write("\7%\2\2\u01e0\u01e1\7\u00d8\2\2\u01e1\u01e2\5\32\16\2") buf.write("\u01e2\u01e3\7\u00d9\2\2\u01e3\u032d\3\2\2\2\u01e4\u01e5") buf.write("\7+\2\2\u01e5\u01e6\7\u00d8\2\2\u01e6\u01e7\5\32\16\2") buf.write("\u01e7\u01e8\7\u00d9\2\2\u01e8\u032d\3\2\2\2\u01e9\u01ea") buf.write("\7,\2\2\u01ea\u01eb\7\u00d8\2\2\u01eb\u01ec\5\32\16\2") buf.write("\u01ec\u01ed\7\u00d9\2\2\u01ed\u032d\3\2\2\2\u01ee\u01ef") buf.write("\7-\2\2\u01ef\u01f0\7\u00d8\2\2\u01f0\u01f1\5\32\16\2") buf.write("\u01f1\u01f2\7\u00d9\2\2\u01f2\u032d\3\2\2\2\u01f3\u01f4") buf.write("\7.\2\2\u01f4\u01f5\7\u00d8\2\2\u01f5\u01f6\5\32\16\2") buf.write("\u01f6\u01f7\7\u00d9\2\2\u01f7\u032d\3\2\2\2\u01f8\u01f9") buf.write("\7/\2\2\u01f9\u01fa\7\u00d8\2\2\u01fa\u01fb\5\32\16\2") buf.write("\u01fb\u01fc\7\u00d9\2\2\u01fc\u032d\3\2\2\2\u01fd\u01fe") buf.write("\7&\2\2\u01fe\u01ff\7\u00d8\2\2\u01ff\u0200\5\32\16\2") buf.write("\u0200\u0201\7\u00d9\2\2\u0201\u032d\3\2\2\2\u0202\u0203") buf.write("\7;\2\2\u0203\u0204\7\u00d8\2\2\u0204\u0205\5\32\16\2") buf.write("\u0205\u0206\7\u00d9\2\2\u0206\u032d\3\2\2\2\u0207\u0208") buf.write("\7<\2\2\u0208\u0209\7\u00d8\2\2\u0209\u020c\5\32\16\2") buf.write("\u020a\u020b\7\u00da\2\2\u020b\u020d\5\32\16\2\u020c\u020a") buf.write("\3\2\2\2\u020c\u020d\3\2\2\2\u020d\u020e\3\2\2\2\u020e") buf.write("\u020f\7\u00d9\2\2\u020f\u032d\3\2\2\2\u0210\u0211\7=") buf.write("\2\2\u0211\u0212\7\u00d8\2\2\u0212\u0213\5\32\16\2\u0213") buf.write("\u0214\7\u00d9\2\2\u0214\u032d\3\2\2\2\u0215\u0216\7>") buf.write("\2\2\u0216\u0217\7\u00d8\2\2\u0217\u0218\5\32\16\2\u0218") buf.write("\u0219\7\u00d9\2\2\u0219\u032d\3\2\2\2\u021a\u021b\7?") buf.write("\2\2\u021b\u021c\7\u00d8\2\2\u021c\u021d\5\32\16\2\u021d") buf.write("\u021e\7\u00d9\2\2\u021e\u032d\3\2\2\2\u021f\u0220\7\u009d") buf.write("\2\2\u0220\u0221\7\u00d8\2\2\u0221\u0222\5\32\16\2\u0222") buf.write("\u0223\7\u00d9\2\2\u0223\u032d\3\2\2\2\u0224\u0225\7G") buf.write("\2\2\u0225\u0226\7\u00d8\2\2\u0226\u0227\5\32\16\2\u0227") buf.write("\u0228\7\u00d9\2\2\u0228\u032d\3\2\2\2\u0229\u022a\7H") buf.write("\2\2\u022a\u022b\7\u00d8\2\2\u022b\u022c\5\32\16\2\u022c") buf.write("\u022d\7\u00d9\2\2\u022d\u032d\3\2\2\2\u022e\u022f\7I") buf.write("\2\2\u022f\u0230\7\u00d8\2\2\u0230\u0233\5\32\16\2\u0231") buf.write("\u0232\7\u00da\2\2\u0232\u0234\5\32\16\2\u0233\u0231\3") buf.write("\2\2\2\u0233\u0234\3\2\2\2\u0234\u0235\3\2\2\2\u0235\u0236") buf.write("\7\u00d9\2\2\u0236\u032d\3\2\2\2\u0237\u0238\7K\2\2\u0238") buf.write("\u0239\7\u00d8\2\2\u0239\u023a\5\32\16\2\u023a\u023b\7") buf.write("\u00d9\2\2\u023b\u032d\3\2\2\2\u023c\u023d\7L\2\2\u023d") buf.write("\u023e\7\u00d8\2\2\u023e\u023f\5\32\16\2\u023f\u0240\7") buf.write("\u00d9\2\2\u0240\u032d\3\2\2\2\u0241\u0242\7M\2\2\u0242") buf.write("\u0243\7\u00d8\2\2\u0243\u0246\5\32\16\2\u0244\u0245\7") buf.write("\u00da\2\2\u0245\u0247\5\32\16\2\u0246\u0244\3\2\2\2\u0246") buf.write("\u0247\3\2\2\2\u0247\u0248\3\2\2\2\u0248\u0249\7\u00d9") buf.write("\2\2\u0249\u032d\3\2\2\2\u024a\u024b\7X\2\2\u024b\u024c") buf.write("\7\u00d8\2\2\u024c\u024d\5\32\16\2\u024d\u024e\7\u00d9") buf.write("\2\2\u024e\u032d\3\2\2\2\u024f\u0250\7Y\2\2\u0250\u0251") buf.write("\7\u00d8\2\2\u0251\u0252\5\32\16\2\u0252\u0253\7\u00da") buf.write("\2\2\u0253\u0256\5\32\16\2\u0254\u0255\7\u00da\2\2\u0255") buf.write("\u0257\5\32\16\2\u0256\u0254\3\2\2\2\u0256\u0257\3\2\2") buf.write("\2\u0257\u0258\3\2\2\2\u0258\u0259\7\u00d9\2\2\u0259\u032d") buf.write("\3\2\2\2\u025a\u025b\7N\2\2\u025b\u025c\7\u00d8\2\2\u025c") buf.write("\u025d\5\32\16\2\u025d\u025e\7\u00d9\2\2\u025e\u032d\3") buf.write("\2\2\2\u025f\u0260\7r\2\2\u0260\u0261\7\u00d8\2\2\u0261") buf.write("\u0262\5\32\16\2\u0262\u0263\7\u00d9\2\2\u0263\u032d\3") buf.write("\2\2\2\u0264\u0265\7s\2\2\u0265\u0266\7\u00d8\2\2\u0266") buf.write("\u0267\5\32\16\2\u0267\u0268\7\u00d9\2\2\u0268\u032d\3") buf.write("\2\2\2\u0269\u026a\7t\2\2\u026a\u026b\7\u00d8\2\2\u026b") buf.write("\u026c\5\32\16\2\u026c\u026d\7\u00d9\2\2\u026d\u032d\3") buf.write("\2\2\2\u026e\u026f\7u\2\2\u026f\u0270\7\u00d8\2\2\u0270") buf.write("\u0271\5\32\16\2\u0271\u0272\7\u00d9\2\2\u0272\u032d\3") buf.write("\2\2\2\u0273\u0274\7\u009e\2\2\u0274\u0275\7\u00d8\2\2") buf.write("\u0275\u027c\5\32\16\2\u0276\u0277\7\u00da\2\2\u0277\u027a") buf.write("\5\32\16\2\u0278\u0279\7\u00da\2\2\u0279\u027b\5\32\16") buf.write("\2\u027a\u0278\3\2\2\2\u027a\u027b\3\2\2\2\u027b\u027d") buf.write("\3\2\2\2\u027c\u0276\3\2\2\2\u027c\u027d\3\2\2\2\u027d") buf.write("\u027e\3\2\2\2\u027e\u027f\7\u00d9\2\2\u027f\u032d\3\2") buf.write("\2\2\u0280\u0281\7\u009f\2\2\u0281\u0282\7\u00d8\2\2\u0282") buf.write("\u0285\5\32\16\2\u0283\u0284\7\u00da\2\2\u0284\u0286\5") buf.write("\32\16\2\u0285\u0283\3\2\2\2\u0285\u0286\3\2\2\2\u0286") buf.write("\u0287\3\2\2\2\u0287\u0288\7\u00d9\2\2\u0288\u032d\3\2") buf.write("\2\2\u0289\u028a\7\u00a0\2\2\u028a\u028b\7\u00d8\2\2\u028b") buf.write("\u028e\5\32\16\2\u028c\u028d\7\u00da\2\2\u028d\u028f\5") buf.write("\32\16\2\u028e\u028c\3\2\2\2\u028e\u028f\3\2\2\2\u028f") buf.write("\u0290\3\2\2\2\u0290\u0291\7\u00d9\2\2\u0291\u032d\3\2") buf.write("\2\2\u0292\u0293\7\u00a1\2\2\u0293\u0294\7\u00d8\2\2\u0294") buf.write("\u0297\5\32\16\2\u0295\u0296\7\u00da\2\2\u0296\u0298\5") buf.write("\32\16\2\u0297\u0295\3\2\2\2\u0297\u0298\3\2\2\2\u0298") buf.write("\u0299\3\2\2\2\u0299\u029a\7\u00d9\2\2\u029a\u032d\3\2") buf.write("\2\2\u029b\u029c\7\u00a2\2\2\u029c\u029d\7\u00d8\2\2\u029d") buf.write("\u02a0\5\32\16\2\u029e\u029f\7\u00da\2\2\u029f\u02a1\5") buf.write("\32\16\2\u02a0\u029e\3\2\2\2\u02a0\u02a1\3\2\2\2\u02a1") buf.write("\u02a2\3\2\2\2\u02a2\u02a3\7\u00d9\2\2\u02a3\u032d\3\2") buf.write("\2\2\u02a4\u02a5\7E\2\2\u02a5\u02a6\7\u00d8\2\2\u02a6") buf.write("\u02a7\5\32\16\2\u02a7\u02a8\7\u00d9\2\2\u02a8\u032d\3") buf.write("\2\2\2\u02a9\u02aa\7F\2\2\u02aa\u02ab\7\u00d8\2\2\u02ab") buf.write("\u02ac\5\32\16\2\u02ac\u02ad\7\u00d9\2\2\u02ad\u032d\3") buf.write("\2\2\2\u02ae\u02af\7\u00a3\2\2\u02af\u02b0\7\u00d8\2\2") buf.write("\u02b0\u02b1\5\32\16\2\u02b1\u02b2\7\u00d9\2\2\u02b2\u032d") buf.write("\3\2\2\2\u02b3\u02b4\7Z\2\2\u02b4\u02b5\7\u00d8\2\2\u02b5") buf.write("\u02b6\5\32\16\2\u02b6\u02b7\7\u00d9\2\2\u02b7\u032d\3") buf.write("\2\2\2\u02b8\u02b9\7_\2\2\u02b9\u02ba\7\u00d8\2\2\u02ba") buf.write("\u02bb\5\32\16\2\u02bb\u02bc\7\u00d9\2\2\u02bc\u032d\3") buf.write("\2\2\2\u02bd\u02be\7`\2\2\u02be\u02bf\7\u00d8\2\2\u02bf") buf.write("\u02c0\5\32\16\2\u02c0\u02c1\7\u00d9\2\2\u02c1\u032d\3") buf.write("\2\2\2\u02c2\u02c3\7j\2\2\u02c3\u02c4\7\u00d8\2\2\u02c4") buf.write("\u02c5\5\32\16\2\u02c5\u02c6\7\u00d9\2\2\u02c6\u032d\3") buf.write("\2\2\2\u02c7\u02c8\7k\2\2\u02c8\u02c9\7\u00d8\2\2\u02c9") buf.write("\u02ca\5\32\16\2\u02ca\u02cb\7\u00d9\2\2\u02cb\u032d\3") buf.write("\2\2\2\u02cc\u02cd\7l\2\2\u02cd\u02ce\7\u00d8\2\2\u02ce") buf.write("\u02cf\5\32\16\2\u02cf\u02d0\7\u00d9\2\2\u02d0\u032d\3") buf.write("\2\2\2\u02d1\u02d2\7y\2\2\u02d2\u02d3\7\u00d8\2\2\u02d3") buf.write("\u02d4\5\32\16\2\u02d4\u02d5\7\u00d9\2\2\u02d5\u032d\3") buf.write("\2\2\2\u02d6\u02d7\7z\2\2\u02d7\u02d8\7\u00d8\2\2\u02d8") buf.write("\u02d9\5\32\16\2\u02d9\u02da\7\u00d9\2\2\u02da\u032d\3") buf.write("\2\2\2\u02db\u02dc\7{\2\2\u02dc\u02dd\7\u00d8\2\2\u02dd") buf.write("\u02de\5\32\16\2\u02de\u02df\7\u00d9\2\2\u02df\u032d\3") buf.write("\2\2\2\u02e0\u02e1\7\u00ac\2\2\u02e1\u02e2\7\u00d8\2\2") buf.write("\u02e2\u02e3\5\32\16\2\u02e3\u02e4\7\u00d9\2\2\u02e4\u032d") buf.write("\3\2\2\2\u02e5\u02e6\7\"\2\2\u02e6\u02e7\7\u00d8\2\2\u02e7") buf.write("\u02e8\5\32\16\2\u02e8\u02e9\7\u00d9\2\2\u02e9\u032d\3") buf.write("\2\2\2\u02ea\u02eb\7\u0081\2\2\u02eb\u02ec\7\u00d8\2\2") buf.write("\u02ec\u02ef\5\32\16\2\u02ed\u02ee\7\u00da\2\2\u02ee\u02f0") buf.write("\5\32\16\2\u02ef\u02ed\3\2\2\2\u02ef\u02f0\3\2\2\2\u02f0") buf.write("\u02f1\3\2\2\2\u02f1\u02f2\7\u00d9\2\2\u02f2\u032d\3\2") buf.write("\2\2\u02f3\u02f4\7\u0082\2\2\u02f4\u02f5\7\u00d8\2\2\u02f5") buf.write("\u02f8\5\32\16\2\u02f6\u02f7\7\u00da\2\2\u02f7\u02f9\5") buf.write("\32\16\2\u02f8\u02f6\3\2\2\2\u02f8\u02f9\3\2\2\2\u02f9") buf.write("\u02fa\3\2\2\2\u02fa\u02fb\7\u00d9\2\2\u02fb\u032d\3\2") buf.write("\2\2\u02fc\u02fd\7\u0083\2\2\u02fd\u02fe\7\u00d8\2\2\u02fe") buf.write("\u0301\5\32\16\2\u02ff\u0300\7\u00da\2\2\u0300\u0302\5") buf.write("\32\16\2\u0301\u02ff\3\2\2\2\u0301\u0302\3\2\2\2\u0302") buf.write("\u0303\3\2\2\2\u0303\u0304\7\u00d9\2\2\u0304\u032d\3\2") buf.write("\2\2\u0305\u0306\7\u0084\2\2\u0306\u0307\7\u00d8\2\2\u0307") buf.write("\u030a\5\32\16\2\u0308\u0309\7\u00da\2\2\u0309\u030b\5") buf.write("\32\16\2\u030a\u0308\3\2\2\2\u030a\u030b\3\2\2\2\u030b") buf.write("\u030c\3\2\2\2\u030c\u030d\7\u00d9\2\2\u030d\u032d\3\2") buf.write("\2\2\u030e\u030f\7w\2\2\u030f\u0310\7\u00d8\2\2\u0310") buf.write("\u0311\5\32\16\2\u0311\u0312\7\u00d9\2\2\u0312\u032d\3") buf.write("\2\2\2\u0313\u0314\7x\2\2\u0314\u0315\7\u00d8\2\2\u0315") buf.write("\u0316\5\32\16\2\u0316\u0317\7\u00d9\2\2\u0317\u032d\3") buf.write("\2\2\2\u0318\u0319\7a\2\2\u0319\u031a\7\u00d8\2\2\u031a") buf.write("\u031b\5\32\16\2\u031b\u031c\7\u00d9\2\2\u031c\u032d\3") buf.write("\2\2\2\u031d\u031e\7b\2\2\u031e\u031f\7\u00d8\2\2\u031f") buf.write("\u0320\5\32\16\2\u0320\u0321\7\u00d9\2\2\u0321\u032d\3") buf.write("\2\2\2\u0322\u0323\7\u0091\2\2\u0323\u0324\7\u00d8\2\2") buf.write("\u0324\u0325\5\32\16\2\u0325\u0326\7\u00d9\2\2\u0326\u032d") buf.write("\3\2\2\2\u0327\u0328\7\u0092\2\2\u0328\u0329\7\u00d8\2") buf.write("\2\u0329\u032a\5\32\16\2\u032a\u032b\7\u00d9\2\2\u032b") buf.write("\u032d\3\2\2\2\u032c\u0167\3\2\2\2\u032c\u016c\3\2\2\2") buf.write("\u032c\u0171\3\2\2\2\u032c\u0176\3\2\2\2\u032c\u017b\3") buf.write("\2\2\2\u032c\u0180\3\2\2\2\u032c\u0185\3\2\2\2\u032c\u018a") buf.write("\3\2\2\2\u032c\u018f\3\2\2\2\u032c\u0194\3\2\2\2\u032c") buf.write("\u0199\3\2\2\2\u032c\u019e\3\2\2\2\u032c\u01a3\3\2\2\2") buf.write("\u032c\u01a8\3\2\2\2\u032c\u01ad\3\2\2\2\u032c\u01b2\3") buf.write("\2\2\2\u032c\u01b7\3\2\2\2\u032c\u01bc\3\2\2\2\u032c\u01c1") buf.write("\3\2\2\2\u032c\u01c6\3\2\2\2\u032c\u01cb\3\2\2\2\u032c") buf.write("\u01d0\3\2\2\2\u032c\u01d5\3\2\2\2\u032c\u01da\3\2\2\2") buf.write("\u032c\u01df\3\2\2\2\u032c\u01e4\3\2\2\2\u032c\u01e9\3") buf.write("\2\2\2\u032c\u01ee\3\2\2\2\u032c\u01f3\3\2\2\2\u032c\u01f8") buf.write("\3\2\2\2\u032c\u01fd\3\2\2\2\u032c\u0202\3\2\2\2\u032c") buf.write("\u0207\3\2\2\2\u032c\u0210\3\2\2\2\u032c\u0215\3\2\2\2") buf.write("\u032c\u021a\3\2\2\2\u032c\u021f\3\2\2\2\u032c\u0224\3") buf.write("\2\2\2\u032c\u0229\3\2\2\2\u032c\u022e\3\2\2\2\u032c\u0237") buf.write("\3\2\2\2\u032c\u023c\3\2\2\2\u032c\u0241\3\2\2\2\u032c") buf.write("\u024a\3\2\2\2\u032c\u024f\3\2\2\2\u032c\u025a\3\2\2\2") buf.write("\u032c\u025f\3\2\2\2\u032c\u0264\3\2\2\2\u032c\u0269\3") buf.write("\2\2\2\u032c\u026e\3\2\2\2\u032c\u0273\3\2\2\2\u032c\u0280") buf.write("\3\2\2\2\u032c\u0289\3\2\2\2\u032c\u0292\3\2\2\2\u032c") buf.write("\u029b\3\2\2\2\u032c\u02a4\3\2\2\2\u032c\u02a9\3\2\2\2") buf.write("\u032c\u02ae\3\2\2\2\u032c\u02b3\3\2\2\2\u032c\u02b8\3") buf.write("\2\2\2\u032c\u02bd\3\2\2\2\u032c\u02c2\3\2\2\2\u032c\u02c7") buf.write("\3\2\2\2\u032c\u02cc\3\2\2\2\u032c\u02d1\3\2\2\2\u032c") buf.write("\u02d6\3\2\2\2\u032c\u02db\3\2\2\2\u032c\u02e0\3\2\2\2") buf.write("\u032c\u02e5\3\2\2\2\u032c\u02ea\3\2\2\2\u032c\u02f3\3") buf.write("\2\2\2\u032c\u02fc\3\2\2\2\u032c\u0305\3\2\2\2\u032c\u030e") buf.write("\3\2\2\2\u032c\u0313\3\2\2\2\u032c\u0318\3\2\2\2\u032c") buf.write("\u031d\3\2\2\2\u032c\u0322\3\2\2\2\u032c\u0327\3\2\2\2") buf.write("\u032d\63\3\2\2\2\u032e\u032f\7\37\2\2\u032f\u0330\7\u00d8") buf.write("\2\2\u0330\u0331\5\32\16\2\u0331\u0332\7\u00da\2\2\u0332") buf.write("\u0333\5\32\16\2\u0333\u0334\7\u00d9\2\2\u0334\u048f\3") buf.write("\2\2\2\u0335\u0336\7\t\2\2\u0336\u0337\7\u00d8\2\2\u0337") buf.write("\u0338\5\32\16\2\u0338\u0339\7\u00da\2\2\u0339\u033a\5") buf.write("\32\16\2\u033a\u033b\7\u00d9\2\2\u033b\u048f\3\2\2\2\u033c") buf.write("\u033d\7\27\2\2\u033d\u033e\7\u00d8\2\2\u033e\u033f\5") buf.write("\32\16\2\u033f\u0340\7\u00da\2\2\u0340\u0341\5\32\16\2") buf.write("\u0341\u0342\7\u00d9\2\2\u0342\u048f\3\2\2\2\u0343\u0344") buf.write("\7\30\2\2\u0344\u0345\7\u00d8\2\2\u0345\u0346\5\32\16") buf.write("\2\u0346\u0347\7\u00da\2\2\u0347\u0348\5\32\16\2\u0348") buf.write("\u0349\7\u00d9\2\2\u0349\u048f\3\2\2\2\u034a\u034b\7\32") buf.write("\2\2\u034b\u034c\7\u00d8\2\2\u034c\u034f\5\32\16\2\u034d") buf.write("\u034e\7\u00da\2\2\u034e\u0350\5\32\16\2\u034f\u034d\3") buf.write("\2\2\2\u034f\u0350\3\2\2\2\u0350\u0351\3\2\2\2\u0351\u0352") buf.write("\7\u00d9\2\2\u0352\u048f\3\2\2\2\u0353\u0354\7)\2\2\u0354") buf.write("\u0355\7\u00d8\2\2\u0355\u0356\5\32\16\2\u0356\u0357\7") buf.write("\u00da\2\2\u0357\u0358\5\32\16\2\u0358\u0359\7\u00d9\2") buf.write("\2\u0359\u048f\3\2\2\2\u035a\u035b\79\2\2\u035b\u035c") buf.write("\7\u00d8\2\2\u035c\u035d\5\32\16\2\u035d\u035e\7\u00da") buf.write("\2\2\u035e\u035f\5\32\16\2\u035f\u0360\7\u00d9\2\2\u0360") buf.write("\u048f\3\2\2\2\u0361\u0362\7:\2\2\u0362\u0363\7\u00d8") buf.write("\2\2\u0363\u0364\5\32\16\2\u0364\u0365\7\u00da\2\2\u0365") buf.write("\u0366\5\32\16\2\u0366\u0367\7\u00d9\2\2\u0367\u048f\3") buf.write("\2\2\2\u0368\u0369\7@\2\2\u0369\u036a\7\u00d8\2\2\u036a") buf.write("\u036b\5\32\16\2\u036b\u036c\7\u00da\2\2\u036c\u036d\5") buf.write("\32\16\2\u036d\u036e\7\u00d9\2\2\u036e\u048f\3\2\2\2\u036f") buf.write("\u0370\7A\2\2\u0370\u0371\7\u00d8\2\2\u0371\u0372\5\32") buf.write("\16\2\u0372\u0373\7\u00da\2\2\u0373\u0374\5\32\16\2\u0374") buf.write("\u0375\7\u00d9\2\2\u0375\u048f\3\2\2\2\u0376\u0377\7B") buf.write("\2\2\u0377\u0378\7\u00d8\2\2\u0378\u0379\5\32\16\2\u0379") buf.write("\u037a\7\u00da\2\2\u037a\u037b\5\32\16\2\u037b\u037c\7") buf.write("\u00d9\2\2\u037c\u048f\3\2\2\2\u037d\u037e\7C\2\2\u037e") buf.write("\u037f\7\u00d8\2\2\u037f\u0380\5\32\16\2\u0380\u0381\7") buf.write("\u00da\2\2\u0381\u0382\5\32\16\2\u0382\u0383\7\u00d9\2") buf.write("\2\u0383\u048f\3\2\2\2\u0384\u0385\7W\2\2\u0385\u0386") buf.write("\7\u00d8\2\2\u0386\u0387\5\32\16\2\u0387\u0388\7\u00da") buf.write("\2\2\u0388\u0389\5\32\16\2\u0389\u038a\7\u00d9\2\2\u038a") buf.write("\u048f\3\2\2\2\u038b\u038c\7\u00a5\2\2\u038c\u038d\7\u00d8") buf.write("\2\2\u038d\u038e\5\32\16\2\u038e\u038f\7\u00da\2\2\u038f") buf.write("\u0390\5\32\16\2\u0390\u0391\7\u00d9\2\2\u0391\u048f\3") buf.write("\2\2\2\u0392\u0393\7\u00a6\2\2\u0393\u0394\7\u00d8\2\2") buf.write("\u0394\u0395\5\32\16\2\u0395\u0396\7\u00da\2\2\u0396\u0397") buf.write("\5\32\16\2\u0397\u0398\7\u00d9\2\2\u0398\u048f\3\2\2\2") buf.write("\u0399\u039a\7\u00a4\2\2\u039a\u039b\7\u00d8\2\2\u039b") buf.write("\u039c\5\32\16\2\u039c\u039d\7\u00da\2\2\u039d\u039e\5") buf.write("\32\16\2\u039e\u039f\7\u00d9\2\2\u039f\u048f\3\2\2\2\u03a0") buf.write("\u03a1\7\u00aa\2\2\u03a1\u03a2\7\u00d8\2\2\u03a2\u03a3") buf.write("\5\32\16\2\u03a3\u03a4\7\u00da\2\2\u03a4\u03a5\5\32\16") buf.write("\2\u03a5\u03a6\7\u00d9\2\2\u03a6\u048f\3\2\2\2\u03a7\u03a8") buf.write("\7\u00ab\2\2\u03a8\u03a9\7\u00d8\2\2\u03a9\u03aa\5\32") buf.write("\16\2\u03aa\u03ab\7\u00da\2\2\u03ab\u03ac\5\32\16\2\u03ac") buf.write("\u03ad\7\u00d9\2\2\u03ad\u048f\3\2\2\2\u03ae\u03af\7[") buf.write("\2\2\u03af\u03b0\7\u00d8\2\2\u03b0\u03b1\5\32\16\2\u03b1") buf.write("\u03b2\7\u00da\2\2\u03b2\u03b3\5\32\16\2\u03b3\u03b4\7") buf.write("\u00d9\2\2\u03b4\u048f\3\2\2\2\u03b5\u03b6\7\64\2\2\u03b6") buf.write("\u03b7\7\u00d8\2\2\u03b7\u03b8\5\32\16\2\u03b8\u03b9\7") buf.write("\u00da\2\2\u03b9\u03ba\5\32\16\2\u03ba\u03bb\7\u00d9\2") buf.write("\2\u03bb\u048f\3\2\2\2\u03bc\u03bd\7J\2\2\u03bd\u03be") buf.write("\7\u00d8\2\2\u03be\u03bf\5\32\16\2\u03bf\u03c0\7\u00da") buf.write("\2\2\u03c0\u03c3\5\32\16\2\u03c1\u03c2\7\u00da\2\2\u03c2") buf.write("\u03c4\5\32\16\2\u03c3\u03c1\3\2\2\2\u03c3\u03c4\3\2\2") buf.write("\2\u03c4\u03c5\3\2\2\2\u03c5\u03c6\7\u00d9\2\2\u03c6\u048f") buf.write("\3\2\2\2\u03c7\u03c8\7O\2\2\u03c8\u03c9\7\u00d8\2\2\u03c9") buf.write("\u03ca\5\32\16\2\u03ca\u03cb\7\u00da\2\2\u03cb\u03cc\5") buf.write("\32\16\2\u03cc\u03cd\7\u00d9\2\2\u03cd\u048f\3\2\2\2\u03ce") buf.write("\u03cf\7P\2\2\u03cf\u03d0\7\u00d8\2\2\u03d0\u03d1\5\32") buf.write("\16\2\u03d1\u03d2\7\u00da\2\2\u03d2\u03d3\5\32\16\2\u03d3") buf.write("\u03d4\7\u00d9\2\2\u03d4\u048f\3\2\2\2\u03d5\u03d6\7^") buf.write("\2\2\u03d6\u03d7\7\u00d8\2\2\u03d7\u03d8\5\32\16\2\u03d8") buf.write("\u03d9\7\u00da\2\2\u03d9\u03da\5\32\16\2\u03da\u03db\7") buf.write("\u00d9\2\2\u03db\u048f\3\2\2\2\u03dc\u03dd\7q\2\2\u03dd") buf.write("\u03de\7\u00d8\2\2\u03de\u03df\5\32\16\2\u03df\u03e0\7") buf.write("\u00da\2\2\u03e0\u03e1\5\32\16\2\u03e1\u03e2\7\u00d9\2") buf.write("\2\u03e2\u048f\3\2\2\2\u03e3\u03e4\7\\\2\2\u03e4\u03e5") buf.write("\7\u00d8\2\2\u03e5\u03e6\5\32\16\2\u03e6\u03e7\7\u00da") buf.write("\2\2\u03e7\u03e8\5\32\16\2\u03e8\u03e9\7\u00d9\2\2\u03e9") buf.write("\u048f\3\2\2\2\u03ea\u03eb\7p\2\2\u03eb\u03ec\7\u00d8") buf.write("\2\2\u03ec\u03f3\5*\26\2\u03ed\u03ee\7\u00da\2\2\u03ee") buf.write("\u03f1\5\32\16\2\u03ef\u03f0\7\u00da\2\2\u03f0\u03f2\5") buf.write("\32\16\2\u03f1\u03ef\3\2\2\2\u03f1\u03f2\3\2\2\2\u03f2") buf.write("\u03f4\3\2\2\2\u03f3\u03ed\3\2\2\2\u03f3\u03f4\3\2\2\2") buf.write("\u03f4\u03f5\3\2\2\2\u03f5\u03f6\7\u00d9\2\2\u03f6\u048f") buf.write("\3\2\2\2\u03f7\u03f8\7f\2\2\u03f8\u03f9\7\u00d8\2\2\u03f9") buf.write("\u03fa\5\32\16\2\u03fa\u03fb\7\u00da\2\2\u03fb\u03fc\5") buf.write("\32\16\2\u03fc\u03fd\7\u00d9\2\2\u03fd\u048f\3\2\2\2\u03fe") buf.write("\u03ff\7g\2\2\u03ff\u0400\7\u00d8\2\2\u0400\u0401\5\32") buf.write("\16\2\u0401\u0402\7\u00da\2\2\u0402\u0403\5\32\16\2\u0403") buf.write("\u0404\7\u00d9\2\2\u0404\u048f\3\2\2\2\u0405\u0406\7h") buf.write("\2\2\u0406\u0407\7\u00d8\2\2\u0407\u0408\5\32\16\2\u0408") buf.write("\u0409\7\u00da\2\2\u0409\u040a\5\32\16\2\u040a\u040b\7") buf.write("\u00d9\2\2\u040b\u048f\3\2\2\2\u040c\u040d\7]\2\2\u040d") buf.write("\u040e\7\u00d8\2\2\u040e\u040f\5\32\16\2\u040f\u0410\7") buf.write("\u00da\2\2\u0410\u0411\5\32\16\2\u0411\u0412\7\u00d9\2") buf.write("\2\u0412\u048f\3\2\2\2\u0413\u0414\7i\2\2\u0414\u0415") buf.write("\7\u00d8\2\2\u0415\u0416\5\32\16\2\u0416\u0417\7\u00da") buf.write("\2\2\u0417\u0422\5\32\16\2\u0418\u0419\7\u00da\2\2\u0419") buf.write("\u0420\5\32\16\2\u041a\u041b\7\u00da\2\2\u041b\u041e\5") buf.write("\32\16\2\u041c\u041d\7\u00da\2\2\u041d\u041f\5\32\16\2") buf.write("\u041e\u041c\3\2\2\2\u041e\u041f\3\2\2\2\u041f\u0421\3") buf.write("\2\2\2\u0420\u041a\3\2\2\2\u0420\u0421\3\2\2\2\u0421\u0423") buf.write("\3\2\2\2\u0422\u0418\3\2\2\2\u0422\u0423\3\2\2\2\u0423") buf.write("\u0424\3\2\2\2\u0424\u0425\7\u00d9\2\2\u0425\u048f\3\2") buf.write("\2\2\u0426\u0427\7m\2\2\u0427\u0428\7\u00d8\2\2\u0428") buf.write("\u0429\5\32\16\2\u0429\u042a\7\u00da\2\2\u042a\u042b\5") buf.write("\32\16\2\u042b\u042c\7\u00d9\2\2\u042c\u048f\3\2\2\2\u042d") buf.write("\u042e\7n\2\2\u042e\u042f\7\u00d8\2\2\u042f\u0430\5\32") buf.write("\16\2\u0430\u0431\7\u00da\2\2\u0431\u0432\5\32\16\2\u0432") buf.write("\u0433\7\u00d9\2\2\u0433\u048f\3\2\2\2\u0434\u0435\7o") buf.write("\2\2\u0435\u0436\7\u00d8\2\2\u0436\u0437\5\32\16\2\u0437") buf.write("\u0438\7\u00da\2\2\u0438\u0439\5\32\16\2\u0439\u043a\7") buf.write("\u00d9\2\2\u043a\u048f\3\2\2\2\u043b\u043c\7|\2\2\u043c") buf.write("\u043d\7\u00d8\2\2\u043d\u0440\5\32\16\2\u043e\u043f\7") buf.write("\u00da\2\2\u043f\u0441\5\32\16\2\u0440\u043e\3\2\2\2\u0440") buf.write("\u0441\3\2\2\2\u0441\u0442\3\2\2\2\u0442\u0443\7\u00d9") buf.write("\2\2\u0443\u048f\3\2\2\2\u0444\u0445\7}\2\2\u0445\u0446") buf.write("\7\u00d8\2\2\u0446\u0449\5\32\16\2\u0447\u0448\7\u00da") buf.write("\2\2\u0448\u044a\5\32\16\2\u0449\u0447\3\2\2\2\u0449\u044a") buf.write("\3\2\2\2\u044a\u044b\3\2\2\2\u044b\u044c\7\u00d9\2\2\u044c") buf.write("\u048f\3\2\2\2\u044d\u044e\7~\2\2\u044e\u044f\7\u00d8") buf.write("\2\2\u044f\u0450\5\32\16\2\u0450\u0451\7\u00da\2\2\u0451") buf.write("\u0454\5\32\16\2\u0452\u0453\7\u00da\2\2\u0453\u0455\5") buf.write("\32\16\2\u0454\u0452\3\2\2\2\u0454\u0455\3\2\2\2\u0455") buf.write("\u0456\3\2\2\2\u0456\u0457\7\u00d9\2\2\u0457\u048f\3\2") buf.write("\2\2\u0458\u0459\7\177\2\2\u0459\u045a\7\u00d8\2\2\u045a") buf.write("\u045b\5\32\16\2\u045b\u045c\7\u00da\2\2\u045c\u045d\5") buf.write("\32\16\2\u045d\u045e\7\u00d9\2\2\u045e\u048f\3\2\2\2\u045f") buf.write("\u0460\7\u0080\2\2\u0460\u0461\7\u00d8\2\2\u0461\u0462") buf.write("\5\32\16\2\u0462\u0463\7\u00da\2\2\u0463\u0464\5\32\16") buf.write("\2\u0464\u0465\7\u00da\2\2\u0465\u0466\5\32\16\2\u0466") buf.write("\u0467\7\u00d9\2\2\u0467\u048f\3\2\2\2\u0468\u0469\7\u008b") buf.write("\2\2\u0469\u046a\7\u00d8\2\2\u046a\u046b\5\32\16\2\u046b") buf.write("\u046c\7\u00d9\2\2\u046c\u048f\3\2\2\2\u046d\u046e\7\u008c") buf.write("\2\2\u046e\u046f\7\u00d8\2\2\u046f\u0475\5\32\16\2\u0470") buf.write("\u0471\7\u00da\2\2\u0471\u0472\5\32\16\2\u0472\u0473\7") buf.write("\u00da\2\2\u0473\u0474\5\32\16\2\u0474\u0476\3\2\2\2\u0475") buf.write("\u0470\3\2\2\2\u0475\u0476\3\2\2\2\u0476\u0477\3\2\2\2") buf.write("\u0477\u0478\7\u00d9\2\2\u0478\u048f\3\2\2\2\u0479\u047a") buf.write("\7\u008d\2\2\u047a\u047b\7\u00d8\2\2\u047b\u047c\5\32") buf.write("\16\2\u047c\u047d\7\u00da\2\2\u047d\u047e\5\32\16\2\u047e") buf.write("\u047f\7\u00d9\2\2\u047f\u048f\3\2\2\2\u0480\u0481\7\u008e") buf.write("\2\2\u0481\u0482\7\u00d8\2\2\u0482\u0483\5\32\16\2\u0483") buf.write("\u0484\7\u00da\2\2\u0484\u0485\5\32\16\2\u0485\u0486\7") buf.write("\u00d9\2\2\u0486\u048f\3\2\2\2\u0487\u0488\7\u008f\2\2") buf.write("\u0488\u0489\7\u00d8\2\2\u0489\u048a\5\32\16\2\u048a\u048b") buf.write("\7\u00da\2\2\u048b\u048c\5\32\16\2\u048c\u048d\7\u00d9") buf.write("\2\2\u048d\u048f\3\2\2\2\u048e\u032e\3\2\2\2\u048e\u0335") buf.write("\3\2\2\2\u048e\u033c\3\2\2\2\u048e\u0343\3\2\2\2\u048e") buf.write("\u034a\3\2\2\2\u048e\u0353\3\2\2\2\u048e\u035a\3\2\2\2") buf.write("\u048e\u0361\3\2\2\2\u048e\u0368\3\2\2\2\u048e\u036f\3") buf.write("\2\2\2\u048e\u0376\3\2\2\2\u048e\u037d\3\2\2\2\u048e\u0384") buf.write("\3\2\2\2\u048e\u038b\3\2\2\2\u048e\u0392\3\2\2\2\u048e") buf.write("\u0399\3\2\2\2\u048e\u03a0\3\2\2\2\u048e\u03a7\3\2\2\2") buf.write("\u048e\u03ae\3\2\2\2\u048e\u03b5\3\2\2\2\u048e\u03bc\3") buf.write("\2\2\2\u048e\u03c7\3\2\2\2\u048e\u03ce\3\2\2\2\u048e\u03d5") buf.write("\3\2\2\2\u048e\u03dc\3\2\2\2\u048e\u03e3\3\2\2\2\u048e") buf.write("\u03ea\3\2\2\2\u048e\u03f7\3\2\2\2\u048e\u03fe\3\2\2\2") buf.write("\u048e\u0405\3\2\2\2\u048e\u040c\3\2\2\2\u048e\u0413\3") buf.write("\2\2\2\u048e\u0426\3\2\2\2\u048e\u042d\3\2\2\2\u048e\u0434") buf.write("\3\2\2\2\u048e\u043b\3\2\2\2\u048e\u0444\3\2\2\2\u048e") buf.write("\u044d\3\2\2\2\u048e\u0458\3\2\2\2\u048e\u045f\3\2\2\2") buf.write("\u048e\u0468\3\2\2\2\u048e\u046d\3\2\2\2\u048e\u0479\3") buf.write("\2\2\2\u048e\u0480\3\2\2\2\u048e\u0487\3\2\2\2\u048f\65") buf.write("\3\2\2\2\u0490\u0491\7!\2\2\u0491\u0492\7\u00d8\2\2\u0492") buf.write("\u0493\5\32\16\2\u0493\u0494\7\u00da\2\2\u0494\u0495\5") buf.write("\32\16\2\u0495\u0496\7\u00da\2\2\u0496\u0497\5\32\16\2") buf.write("\u0497\u0498\7\u00d9\2\2\u0498\u059a\3\2\2\2\u0499\u049a") buf.write("\7(\2\2\u049a\u049b\7\u00d8\2\2\u049b\u049c\5\32\16\2") buf.write("\u049c\u049d\7\u00da\2\2\u049d\u049e\5\32\16\2\u049e\u049f") buf.write("\7\u00da\2\2\u049f\u04a0\5\32\16\2\u04a0\u04a1\7\u00d9") buf.write("\2\2\u04a1\u059a\3\2\2\2\u04a2\u04a3\7*\2\2\u04a3\u04a4") buf.write("\7\u00d8\2\2\u04a4\u04a5\5\32\16\2\u04a5\u04a6\7\u00da") buf.write("\2\2\u04a6\u04a7\5\32\16\2\u04a7\u04a8\7\u00da\2\2\u04a8") buf.write("\u04a9\5\32\16\2\u04a9\u04aa\7\u00d9\2\2\u04aa\u059a\3") buf.write("\2\2\2\u04ab\u04ac\7\66\2\2\u04ac\u04ad\7\u00d8\2\2\u04ad") buf.write("\u04ae\5\32\16\2\u04ae\u04af\7\u00da\2\2\u04af\u04b0\5") buf.write("\32\16\2\u04b0\u04b1\7\u00da\2\2\u04b1\u04b2\5\32\16\2") buf.write("\u04b2\u04b3\7\u00d9\2\2\u04b3\u059a\3\2\2\2\u04b4\u04b5") buf.write("\7D\2\2\u04b5\u04b6\7\u00d8\2\2\u04b6\u04b7\5\32\16\2") buf.write("\u04b7\u04b8\7\u00da\2\2\u04b8\u04b9\5\32\16\2\u04b9\u04ba") buf.write("\7\u00da\2\2\u04ba\u04bb\5\32\16\2\u04bb\u04bc\7\u00d9") buf.write("\2\2\u04bc\u059a\3\2\2\2\u04bd\u04be\7Q\2\2\u04be\u04bf") buf.write("\7\u00d8\2\2\u04bf\u04c0\5\32\16\2\u04c0\u04c1\7\u00da") buf.write("\2\2\u04c1\u04c2\5\32\16\2\u04c2\u04c3\7\u00da\2\2\u04c3") buf.write("\u04c4\5\32\16\2\u04c4\u04c5\7\u00d9\2\2\u04c5\u059a\3") buf.write("\2\2\2\u04c6\u04c7\7R\2\2\u04c7\u04c8\7\u00d8\2\2\u04c8") buf.write("\u04c9\5\32\16\2\u04c9\u04ca\7\u00da\2\2\u04ca\u04cb\5") buf.write("\32\16\2\u04cb\u04cc\7\u00da\2\2\u04cc\u04cd\5\32\16\2") buf.write("\u04cd\u04ce\7\u00d9\2\2\u04ce\u059a\3\2\2\2\u04cf\u04d0") buf.write("\7S\2\2\u04d0\u04d1\7\u00d8\2\2\u04d1\u04d2\5\32\16\2") buf.write("\u04d2\u04d3\7\u00da\2\2\u04d3\u04d4\5\32\16\2\u04d4\u04d5") buf.write("\7\u00da\2\2\u04d5\u04d6\5\32\16\2\u04d6\u04d7\7\u00d9") buf.write("\2\2\u04d7\u059a\3\2\2\2\u04d8\u04d9\7T\2\2\u04d9\u04da") buf.write("\7\u00d8\2\2\u04da\u04db\5\32\16\2\u04db\u04dc\7\u00da") buf.write("\2\2\u04dc\u04dd\5\32\16\2\u04dd\u04de\7\u00da\2\2\u04de") buf.write("\u04df\5\32\16\2\u04df\u04e0\7\u00d9\2\2\u04e0\u059a\3") buf.write("\2\2\2\u04e1\u04e2\7\u00ad\2\2\u04e2\u04e3\7\u00d8\2\2") buf.write("\u04e3\u04e4\5\32\16\2\u04e4\u04e5\7\u00da\2\2\u04e5\u04e6") buf.write("\5\32\16\2\u04e6\u04e7\7\u00da\2\2\u04e7\u04e8\5\32\16") buf.write("\2\u04e8\u04e9\7\u00d9\2\2\u04e9\u059a\3\2\2\2\u04ea\u04eb") buf.write("\7#\2\2\u04eb\u04ec\7\u00d8\2\2\u04ec\u04ef\5\32\16\2") buf.write("\u04ed\u04ee\7\u00da\2\2\u04ee\u04f0\5\32\16\2\u04ef\u04ed") buf.write("\3\2\2\2\u04ef\u04f0\3\2\2\2\u04f0\u04f1\3\2\2\2\u04f1") buf.write("\u04f2\7\u00d9\2\2\u04f2\u059a\3\2\2\2\u04f3\u04f4\7e") buf.write("\2\2\u04f4\u04f5\7\u00d8\2\2\u04f5\u04f6\5\32\16\2\u04f6") buf.write("\u04f7\7\u00da\2\2\u04f7\u04f8\5\32\16\2\u04f8\u04f9\7") buf.write("\u00da\2\2\u04f9\u04fc\5\32\16\2\u04fa\u04fb\7\u00da\2") buf.write("\2\u04fb\u04fd\5\32\16\2\u04fc\u04fa\3\2\2\2\u04fc\u04fd") buf.write("\3\2\2\2\u04fd\u04fe\3\2\2\2\u04fe\u04ff\7\u00d9\2\2\u04ff") buf.write("\u059a\3\2\2\2\u0500\u0501\7\67\2\2\u0501\u0502\7\u00d8") buf.write("\2\2\u0502\u0503\5\32\16\2\u0503\u0504\7\u00da\2\2\u0504") buf.write("\u0505\5\32\16\2\u0505\u0506\7\u00da\2\2\u0506\u0507\5") buf.write("\32\16\2\u0507\u0508\7\u00d9\2\2\u0508\u059a\3\2\2\2\u0509") buf.write("\u050a\7\u00a9\2\2\u050a\u050b\7\u00d8\2\2\u050b\u050c") buf.write("\5\32\16\2\u050c\u050d\7\u00da\2\2\u050d\u0510\5\32\16") buf.write("\2\u050e\u050f\7\u00da\2\2\u050f\u0511\5\32\16\2\u0510") buf.write("\u050e\3\2\2\2\u0510\u0511\3\2\2\2\u0511\u0512\3\2\2\2") buf.write("\u0512\u0513\7\u00d9\2\2\u0513\u059a\3\2\2\2\u0514\u0515") buf.write("\7\u0085\2\2\u0515\u0516\7\u00d8\2\2\u0516\u051c\5\32") buf.write("\16\2\u0517\u0518\7\u00da\2\2\u0518\u0519\5\32\16\2\u0519") buf.write("\u051a\7\u00da\2\2\u051a\u051b\5\32\16\2\u051b\u051d\3") buf.write("\2\2\2\u051c\u0517\3\2\2\2\u051c\u051d\3\2\2\2\u051d\u051e") buf.write("\3\2\2\2\u051e\u051f\7\u00d9\2\2\u051f\u059a\3\2\2\2\u0520") buf.write("\u0521\7\u0086\2\2\u0521\u0522\7\u00d8\2\2\u0522\u0528") buf.write("\5\32\16\2\u0523\u0524\7\u00da\2\2\u0524\u0525\5\32\16") buf.write("\2\u0525\u0526\7\u00da\2\2\u0526\u0527\5\32\16\2\u0527") buf.write("\u0529\3\2\2\2\u0528\u0523\3\2\2\2\u0528\u0529\3\2\2\2") buf.write("\u0529\u052a\3\2\2\2\u052a\u052b\7\u00d9\2\2\u052b\u059a") buf.write("\3\2\2\2\u052c\u052d\7\u0089\2\2\u052d\u052e\7\u00d8\2") buf.write("\2\u052e\u0534\5\32\16\2\u052f\u0530\7\u00da\2\2\u0530") buf.write("\u0531\5\32\16\2\u0531\u0532\7\u00da\2\2\u0532\u0533\5") buf.write("\32\16\2\u0533\u0535\3\2\2\2\u0534\u052f\3\2\2\2\u0534") buf.write("\u0535\3\2\2\2\u0535\u0538\3\2\2\2\u0536\u0537\7\u00da") buf.write("\2\2\u0537\u0539\5\32\16\2\u0538\u0536\3\2\2\2\u0538\u0539") buf.write("\3\2\2\2\u0539\u053a\3\2\2\2\u053a\u053b\7\u00d9\2\2\u053b") buf.write("\u059a\3\2\2\2\u053c\u053d\7\u008a\2\2\u053d\u053e\7\u00d8") buf.write("\2\2\u053e\u0544\5\32\16\2\u053f\u0540\7\u00da\2\2\u0540") buf.write("\u0541\5\32\16\2\u0541\u0542\7\u00da\2\2\u0542\u0543\5") buf.write("\32\16\2\u0543\u0545\3\2\2\2\u0544\u053f\3\2\2\2\u0544") buf.write("\u0545\3\2\2\2\u0545\u0548\3\2\2\2\u0546\u0547\7\u00da") buf.write("\2\2\u0547\u0549\5\32\16\2\u0548\u0546\3\2\2\2\u0548\u0549") buf.write("\3\2\2\2\u0549\u054a\3\2\2\2\u054a\u054b\7\u00d9\2\2\u054b") buf.write("\u059a\3\2\2\2\u054c\u054d\7c\2\2\u054d\u054e\7\u00d8") buf.write("\2\2\u054e\u054f\5\32\16\2\u054f\u0550\7\u00da\2\2\u0550") buf.write("\u0551\5\32\16\2\u0551\u0552\7\u00da\2\2\u0552\u0553\5") buf.write("\32\16\2\u0553\u0554\7\u00d9\2\2\u0554\u059a\3\2\2\2\u0555") buf.write("\u0556\7\u0087\2\2\u0556\u0557\7\u00d8\2\2\u0557\u055d") buf.write("\5\32\16\2\u0558\u0559\7\u00da\2\2\u0559\u055a\5\32\16") buf.write("\2\u055a\u055b\7\u00da\2\2\u055b\u055c\5\32\16\2\u055c") buf.write("\u055e\3\2\2\2\u055d\u0558\3\2\2\2\u055d\u055e\3\2\2\2") buf.write("\u055e\u055f\3\2\2\2\u055f\u0560\7\u00d9\2\2\u0560\u059a") buf.write("\3\2\2\2\u0561\u0562\7\u0088\2\2\u0562\u0563\7\u00d8\2") buf.write("\2\u0563\u0569\5\32\16\2\u0564\u0565\7\u00da\2\2\u0565") buf.write("\u0566\5\32\16\2\u0566\u0567\7\u00da\2\2\u0567\u0568\5") buf.write("\32\16\2\u0568\u056a\3\2\2\2\u0569\u0564\3\2\2\2\u0569") buf.write("\u056a\3\2\2\2\u056a\u056b\3\2\2\2\u056b\u056c\7\u00d9") buf.write("\2\2\u056c\u059a\3\2\2\2\u056d\u056e\7\u0090\2\2\u056e") buf.write("\u056f\7\u00d8\2\2\u056f\u0570\5\32\16\2\u0570\u0571\7") buf.write("\u00da\2\2\u0571\u0572\5\32\16\2\u0572\u0573\7\u00da\2") buf.write("\2\u0573\u0576\5\32\16\2\u0574\u0575\7\u00da\2\2\u0575") buf.write("\u0577\5\32\16\2\u0576\u0574\3\2\2\2\u0576\u0577\3\2\2") buf.write("\2\u0577\u057a\3\2\2\2\u0578\u0579\7\u00da\2\2\u0579\u057b") buf.write("\5\32\16\2\u057a\u0578\3\2\2\2\u057a\u057b\3\2\2\2\u057b") buf.write("\u057e\3\2\2\2\u057c\u057d\7\u00da\2\2\u057d\u057f\5\32") buf.write("\16\2\u057e\u057c\3\2\2\2\u057e\u057f\3\2\2\2\u057f\u0582") buf.write("\3\2\2\2\u0580\u0581\7\u00da\2\2\u0581\u0583\5\32\16\2") buf.write("\u0582\u0580\3\2\2\2\u0582\u0583\3\2\2\2\u0583\u0586\3") buf.write("\2\2\2\u0584\u0585\7\u00da\2\2\u0585\u0587\5\32\16\2\u0586") buf.write("\u0584\3\2\2\2\u0586\u0587\3\2\2\2\u0587\u058a\3\2\2\2") buf.write("\u0588\u0589\7\u00da\2\2\u0589\u058b\5\32\16\2\u058a\u0588") buf.write("\3\2\2\2\u058a\u058b\3\2\2\2\u058b\u058c\3\2\2\2\u058c") buf.write("\u058d\7\u00d9\2\2\u058d\u059a\3\2\2\2\u058e\u058f\7\u00af") buf.write("\2\2\u058f\u0590\7\u00d8\2\2\u0590\u0591\5\32\16\2\u0591") buf.write("\u0592\7\u00da\2\2\u0592\u0595\5\32\16\2\u0593\u0594\7") buf.write("\u00da\2\2\u0594\u0596\5\32\16\2\u0595\u0593\3\2\2\2\u0595") buf.write("\u0596\3\2\2\2\u0596\u0597\3\2\2\2\u0597\u0598\7\u00d9") buf.write("\2\2\u0598\u059a\3\2\2\2\u0599\u0490\3\2\2\2\u0599\u0499") buf.write("\3\2\2\2\u0599\u04a2\3\2\2\2\u0599\u04ab\3\2\2\2\u0599") buf.write("\u04b4\3\2\2\2\u0599\u04bd\3\2\2\2\u0599\u04c6\3\2\2\2") buf.write("\u0599\u04cf\3\2\2\2\u0599\u04d8\3\2\2\2\u0599\u04e1\3") buf.write("\2\2\2\u0599\u04ea\3\2\2\2\u0599\u04f3\3\2\2\2\u0599\u0500") buf.write("\3\2\2\2\u0599\u0509\3\2\2\2\u0599\u0514\3\2\2\2\u0599") buf.write("\u0520\3\2\2\2\u0599\u052c\3\2\2\2\u0599\u053c\3\2\2\2") buf.write("\u0599\u054c\3\2\2\2\u0599\u0555\3\2\2\2\u0599\u0561\3") buf.write("\2\2\2\u0599\u056d\3\2\2\2\u0599\u058e\3\2\2\2\u059a\67") buf.write("\3\2\2\2\u059b\u059c\7\63\2\2\u059c\u059d\7\u00d8\2\2") buf.write("\u059d\u059e\5\32\16\2\u059e\u059f\7\u00da\2\2\u059f\u05a0") buf.write("\5\32\16\2\u05a0\u05a1\7\u00da\2\2\u05a1\u05a2\5\32\16") buf.write("\2\u05a2\u05a3\7\u00da\2\2\u05a3\u05a4\5\32\16\2\u05a4") buf.write("\u05a5\7\u00d9\2\2\u05a5\u05d3\3\2\2\2\u05a6\u05a7\7\'") buf.write("\2\2\u05a7\u05a8\7\u00d8\2\2\u05a8\u05a9\5\32\16\2\u05a9") buf.write("\u05aa\7\u00da\2\2\u05aa\u05ab\5\32\16\2\u05ab\u05ac\7") buf.write("\u00da\2\2\u05ac\u05ad\5\32\16\2\u05ad\u05ae\7\u00da\2") buf.write("\2\u05ae\u05af\5\32\16\2\u05af\u05b0\7\u00d9\2\2\u05b0") buf.write("\u05d3\3\2\2\2\u05b1\u05b2\78\2\2\u05b2\u05b3\7\u00d8") buf.write("\2\2\u05b3\u05b4\5\32\16\2\u05b4\u05b5\7\u00da\2\2\u05b5") buf.write("\u05b6\5\32\16\2\u05b6\u05b7\7\u00da\2\2\u05b7\u05b8\5") buf.write("\32\16\2\u05b8\u05b9\7\u00da\2\2\u05b9\u05ba\5\32\16\2") buf.write("\u05ba\u05bb\7\u00d9\2\2\u05bb\u05d3\3\2\2\2\u05bc\u05bd") buf.write("\7U\2\2\u05bd\u05be\7\u00d8\2\2\u05be\u05bf\5\32\16\2") buf.write("\u05bf\u05c0\7\u00da\2\2\u05c0\u05c1\5\32\16\2\u05c1\u05c2") buf.write("\7\u00da\2\2\u05c2\u05c3\5\32\16\2\u05c3\u05c4\7\u00da") buf.write("\2\2\u05c4\u05c5\5\32\16\2\u05c5\u05c6\7\u00d9\2\2\u05c6") buf.write("\u05d3\3\2\2\2\u05c7\u05c8\7d\2\2\u05c8\u05c9\7\u00d8") buf.write("\2\2\u05c9\u05ca\5\32\16\2\u05ca\u05cb\7\u00da\2\2\u05cb") buf.write("\u05cc\5\32\16\2\u05cc\u05cd\7\u00da\2\2\u05cd\u05ce\5") buf.write("\32\16\2\u05ce\u05cf\7\u00da\2\2\u05cf\u05d0\5\32\16\2") buf.write("\u05d0\u05d1\7\u00d9\2\2\u05d1\u05d3\3\2\2\2\u05d2\u059b") buf.write("\3\2\2\2\u05d2\u05a6\3\2\2\2\u05d2\u05b1\3\2\2\2\u05d2") buf.write("\u05bc\3\2\2\2\u05d2\u05c7\3\2\2\2\u05d39\3\2\2\2\u05d4") buf.write("\u05d5\7V\2\2\u05d5\u05d6\7\u00d8\2\2\u05d6\u05d7\5\32") buf.write("\16\2\u05d7\u05d8\7\u00da\2\2\u05d8\u05d9\5\32\16\2\u05d9") buf.write("\u05da\7\u00da\2\2\u05da\u05db\5\32\16\2\u05db\u05dc\7") buf.write("\u00da\2\2\u05dc\u05dd\5\32\16\2\u05dd\u05de\7\u00da\2") buf.write("\2\u05de\u05df\5\32\16\2\u05df\u05e0\7\u00d9\2\2\u05e0") buf.write("\u05f5\3\2\2\2\u05e1\u05e2\7\u0093\2\2\u05e2\u05e3\7\u00d8") buf.write("\2\2\u05e3\u05e4\5\32\16\2\u05e4\u05e5\7\u00da\2\2\u05e5") buf.write("\u05f0\5\32\16\2\u05e6\u05e7\7\u00da\2\2\u05e7\u05ee\5") buf.write("\32\16\2\u05e8\u05e9\7\u00da\2\2\u05e9\u05ec\5\32\16\2") buf.write("\u05ea\u05eb\7\u00da\2\2\u05eb\u05ed\5\32\16\2\u05ec\u05ea") buf.write("\3\2\2\2\u05ec\u05ed\3\2\2\2\u05ed\u05ef\3\2\2\2\u05ee") buf.write("\u05e8\3\2\2\2\u05ee\u05ef\3\2\2\2\u05ef\u05f1\3\2\2\2") buf.write("\u05f0\u05e6\3\2\2\2\u05f0\u05f1\3\2\2\2\u05f1\u05f2\3") buf.write("\2\2\2\u05f2\u05f3\7\u00d9\2\2\u05f3\u05f5\3\2\2\2\u05f4") buf.write("\u05d4\3\2\2\2\u05f4\u05e1\3\2\2\2\u05f5;\3\2\2\2\u05f6") buf.write("\u05f7\7\25\2\2\u05f7\u05f8\7\u00d8\2\2\u05f8\u05fd\5") buf.write("\32\16\2\u05f9\u05fa\7\u00da\2\2\u05fa\u05fc\5\32\16\2") buf.write("\u05fb\u05f9\3\2\2\2\u05fc\u05ff\3\2\2\2\u05fd\u05fb\3") buf.write("\2\2\2\u05fd\u05fe\3\2\2\2\u05fe\u0600\3\2\2\2\u05ff\u05fd") buf.write("\3\2\2\2\u0600\u0601\7\u00d9\2\2\u0601\u0652\3\2\2\2\u0602") buf.write("\u0603\7\26\2\2\u0603\u0604\7\u00d8\2\2\u0604\u0609\5") buf.write("\32\16\2\u0605\u0606\7\u00da\2\2\u0606\u0608\5\32\16\2") buf.write("\u0607\u0605\3\2\2\2\u0608\u060b\3\2\2\2\u0609\u0607\3") buf.write("\2\2\2\u0609\u060a\3\2\2\2\u060a\u060c\3\2\2\2\u060b\u0609") buf.write("\3\2\2\2\u060c\u060d\7\u00d9\2\2\u060d\u0652\3\2\2\2\u060e") buf.write("\u060f\7\60\2\2\u060f\u0610\7\u00d8\2\2\u0610\u0613\5") buf.write("\32\16\2\u0611\u0612\7\u00da\2\2\u0612\u0614\5\32\16\2") buf.write("\u0613\u0611\3\2\2\2\u0614\u0615\3\2\2\2\u0615\u0613\3") buf.write("\2\2\2\u0615\u0616\3\2\2\2\u0616\u0617\3\2\2\2\u0617\u0618") buf.write("\7\u00d9\2\2\u0618\u0652\3\2\2\2\u0619\u061a\7\61\2\2") buf.write("\u061a\u061b\7\u00d8\2\2\u061b\u061e\5\32\16\2\u061c\u061d") buf.write("\7\u00da\2\2\u061d\u061f\5\32\16\2\u061e\u061c\3\2\2\2") buf.write("\u061f\u0620\3\2\2\2\u0620\u061e\3\2\2\2\u0620\u0621\3") buf.write("\2\2\2\u0621\u0622\3\2\2\2\u0622\u0623\7\u00d9\2\2\u0623") buf.write("\u0652\3\2\2\2\u0624\u0625\7\62\2\2\u0625\u0626\7\u00d8") buf.write("\2\2\u0626\u0629\5\32\16\2\u0627\u0628\7\u00da\2\2\u0628") buf.write("\u062a\5\32\16\2\u0629\u0627\3\2\2\2\u062a\u062b\3\2\2") buf.write("\2\u062b\u0629\3\2\2\2\u062b\u062c\3\2\2\2\u062c\u062d") buf.write("\3\2\2\2\u062d\u062e\7\u00d9\2\2\u062e\u0652\3\2\2\2\u062f") buf.write("\u0630\7\65\2\2\u0630\u0631\7\u00d8\2\2\u0631\u0632\5") buf.write("\32\16\2\u0632\u0633\7\u00da\2\2\u0633\u0634\5\32\16\2") buf.write("\u0634\u0635\7\u00d9\2\2\u0635\u0652\3\2\2\2\u0636\u0637") buf.write("\7\u00a7\2\2\u0637\u0638\7\u00d8\2\2\u0638\u063b\5\32") buf.write("\16\2\u0639\u063a\7\u00da\2\2\u063a\u063c\5\32\16\2\u063b") buf.write("\u0639\3\2\2\2\u063b\u063c\3\2\2\2\u063c\u063d\3\2\2\2") buf.write("\u063d\u063e\7\u00d9\2\2\u063e\u0652\3\2\2\2\u063f\u0640") buf.write("\7\u00a8\2\2\u0640\u0641\7\u00d8\2\2\u0641\u0642\5\32") buf.write("\16\2\u0642\u0643\7\u00da\2\2\u0643\u0644\5\32\16\2\u0644") buf.write("\u0645\7\u00d9\2\2\u0645\u0652\3\2\2\2\u0646\u0647\7v") buf.write("\2\2\u0647\u0648\7\u00d8\2\2\u0648\u064b\5\32\16\2\u0649") buf.write("\u064a\7\u00da\2\2\u064a\u064c\5\32\16\2\u064b\u0649\3") buf.write("\2\2\2\u064c\u064d\3\2\2\2\u064d\u064b\3\2\2\2\u064d\u064e") buf.write("\3\2\2\2\u064e\u064f\3\2\2\2\u064f\u0650\7\u00d9\2\2\u0650") buf.write("\u0652\3\2\2\2\u0651\u05f6\3\2\2\2\u0651\u0602\3\2\2\2") buf.write("\u0651\u060e\3\2\2\2\u0651\u0619\3\2\2\2\u0651\u0624\3") buf.write("\2\2\2\u0651\u062f\3\2\2\2\u0651\u0636\3\2\2\2\u0651\u063f") buf.write("\3\2\2\2\u0651\u0646\3\2\2\2\u0652=\3\2\2\2\u0653\u0654") buf.write("\7\u00b0\2\2\u0654\u0655\7\u00d8\2\2\u0655\u0658\5\32") buf.write("\16\2\u0656\u0657\7\u00da\2\2\u0657\u0659\5\32\16\2\u0658") buf.write("\u0656\3\2\2\2\u0658\u0659\3\2\2\2\u0659\u065a\3\2\2\2") buf.write("\u065a\u065b\7\u00d9\2\2\u065b\u075f\3\2\2\2\u065c\u065d") buf.write("\7\u00b1\2\2\u065d\u065e\7\u00d8\2\2\u065e\u0661\5\32") buf.write("\16\2\u065f\u0660\7\u00da\2\2\u0660\u0662\5\32\16\2\u0661") buf.write("\u065f\3\2\2\2\u0661\u0662\3\2\2\2\u0662\u0663\3\2\2\2") buf.write("\u0663\u0664\7\u00d9\2\2\u0664\u075f\3\2\2\2\u0665\u0666") buf.write("\7\u00b3\2\2\u0666\u0667\7\u00d8\2\2\u0667\u0668\5\32") buf.write("\16\2\u0668\u0669\7\u00da\2\2\u0669\u066c\5\32\16\2\u066a") buf.write("\u066b\7\u00da\2\2\u066b\u066d\5\32\16\2\u066c\u066a\3") buf.write("\2\2\2\u066c\u066d\3\2\2\2\u066d\u066e\3\2\2\2\u066e\u066f") buf.write("\7\u00d9\2\2\u066f\u075f\3\2\2\2\u0670\u0671\7\u00b5\2") buf.write("\2\u0671\u0672\7\u00d8\2\2\u0672\u0673\5\32\16\2\u0673") buf.write("\u0674\7\u00da\2\2\u0674\u0677\5\32\16\2\u0675\u0676\7") buf.write("\u00da\2\2\u0676\u0678\5\32\16\2\u0677\u0675\3\2\2\2\u0677") buf.write("\u0678\3\2\2\2\u0678\u0679\3\2\2\2\u0679\u067a\7\u00d9") buf.write("\2\2\u067a\u075f\3\2\2\2\u067b\u067c\7\u00b6\2\2\u067c") buf.write("\u067d\7\u00d8\2\2\u067d\u067e\5\32\16\2\u067e\u067f\7") buf.write("\u00da\2\2\u067f\u0682\5\32\16\2\u0680\u0681\7\u00da\2") buf.write("\2\u0681\u0683\5\32\16\2\u0682\u0680\3\2\2\2\u0682\u0683") buf.write("\3\2\2\2\u0683\u0684\3\2\2\2\u0684\u0685\7\u00d9\2\2\u0685") buf.write("\u075f\3\2\2\2\u0686\u0687\7\u00b2\2\2\u0687\u0688\7\u00d8") buf.write("\2\2\u0688\u0689\5\32\16\2\u0689\u068a\7\u00da\2\2\u068a") buf.write("\u068b\5\32\16\2\u068b\u068c\7\u00da\2\2\u068c\u068f\5") buf.write("\32\16\2\u068d\u068e\7\u00da\2\2\u068e\u0690\5\32\16\2") buf.write("\u068f\u068d\3\2\2\2\u068f\u0690\3\2\2\2\u0690\u0691\3") buf.write("\2\2\2\u0691\u0692\7\u00d9\2\2\u0692\u075f\3\2\2\2\u0693") buf.write("\u0694\7\u00b4\2\2\u0694\u0695\7\u00d8\2\2\u0695\u0696") buf.write("\5\32\16\2\u0696\u0697\7\u00da\2\2\u0697\u0698\5\32\16") buf.write("\2\u0698\u0699\7\u00da\2\2\u0699\u069c\5\32\16\2\u069a") buf.write("\u069b\7\u00da\2\2\u069b\u069d\5\32\16\2\u069c\u069a\3") buf.write("\2\2\2\u069c\u069d\3\2\2\2\u069d\u069e\3\2\2\2\u069e\u069f") buf.write("\7\u00d9\2\2\u069f\u075f\3\2\2\2\u06a0\u06a1\7\u00b7\2") buf.write("\2\u06a1\u06a2\7\u00d8\2\2\u06a2\u06a3\5\32\16\2\u06a3") buf.write("\u06a4\7\u00da\2\2\u06a4\u06a5\5\32\16\2\u06a5\u06a6\7") buf.write("\u00da\2\2\u06a6\u06a9\5\32\16\2\u06a7\u06a8\7\u00da\2") buf.write("\2\u06a8\u06aa\5\32\16\2\u06a9\u06a7\3\2\2\2\u06a9\u06aa") buf.write("\3\2\2\2\u06aa\u06ab\3\2\2\2\u06ab\u06ac\7\u00d9\2\2\u06ac") buf.write("\u075f\3\2\2\2\u06ad\u06ae\7\u00b8\2\2\u06ae\u06af\7\u00d8") buf.write("\2\2\u06af\u06b0\5\32\16\2\u06b0\u06b1\7\u00da\2\2\u06b1") buf.write("\u06b2\5\32\16\2\u06b2\u06b3\7\u00da\2\2\u06b3\u06b6\5") buf.write("\32\16\2\u06b4\u06b5\7\u00da\2\2\u06b5\u06b7\5\32\16\2") buf.write("\u06b6\u06b4\3\2\2\2\u06b6\u06b7\3\2\2\2\u06b7\u06b8\3") buf.write("\2\2\2\u06b8\u06b9\7\u00d9\2\2\u06b9\u075f\3\2\2\2\u06ba") buf.write("\u06bb\7\u00b9\2\2\u06bb\u06bc\7\u00d8\2\2\u06bc\u06bd") buf.write("\5\32\16\2\u06bd\u06be\7\u00da\2\2\u06be\u06bf\5\32\16") buf.write("\2\u06bf\u06c0\7\u00da\2\2\u06c0\u06c3\5\32\16\2\u06c1") buf.write("\u06c2\7\u00da\2\2\u06c2\u06c4\5\32\16\2\u06c3\u06c1\3") buf.write("\2\2\2\u06c3\u06c4\3\2\2\2\u06c4\u06c5\3\2\2\2\u06c5\u06c6") buf.write("\7\u00d9\2\2\u06c6\u075f\3\2\2\2\u06c7\u06c8\7\u00ba\2") buf.write("\2\u06c8\u06c9\7\u00d8\2\2\u06c9\u06ca\5\32\16\2\u06ca") buf.write("\u06cb\7\u00da\2\2\u06cb\u06cc\5\32\16\2\u06cc\u06cd\7") buf.write("\u00da\2\2\u06cd\u06d0\5\32\16\2\u06ce\u06cf\7\u00da\2") buf.write("\2\u06cf\u06d1\5\32\16\2\u06d0\u06ce\3\2\2\2\u06d0\u06d1") buf.write("\3\2\2\2\u06d1\u06d2\3\2\2\2\u06d2\u06d3\7\u00d9\2\2\u06d3") buf.write("\u075f\3\2\2\2\u06d4\u06d5\7\u00bb\2\2\u06d5\u06d6\7\u00d8") buf.write("\2\2\u06d6\u06d7\5\32\16\2\u06d7\u06d8\7\u00da\2\2\u06d8") buf.write("\u06d9\5\32\16\2\u06d9\u06da\7\u00da\2\2\u06da\u06dd\5") buf.write("\32\16\2\u06db\u06dc\7\u00da\2\2\u06dc\u06de\5\32\16\2") buf.write("\u06dd\u06db\3\2\2\2\u06dd\u06de\3\2\2\2\u06de\u06df\3") buf.write("\2\2\2\u06df\u06e0\7\u00d9\2\2\u06e0\u075f\3\2\2\2\u06e1") buf.write("\u06e2\7\u00bc\2\2\u06e2\u06e3\7\u00d8\2\2\u06e3\u06e4") buf.write("\5\32\16\2\u06e4\u06e5\7\u00da\2\2\u06e5\u06e8\5\32\16") buf.write("\2\u06e6\u06e7\7\u00da\2\2\u06e7\u06e9\5\32\16\2\u06e8") buf.write("\u06e6\3\2\2\2\u06e8\u06e9\3\2\2\2\u06e9\u06ea\3\2\2\2") buf.write("\u06ea\u06eb\7\u00d9\2\2\u06eb\u075f\3\2\2\2\u06ec\u06ed") buf.write("\7\u00bd\2\2\u06ed\u06ee\7\u00d8\2\2\u06ee\u06ef\5\32") buf.write("\16\2\u06ef\u06f0\7\u00da\2\2\u06f0\u06f3\5\32\16\2\u06f1") buf.write("\u06f2\7\u00da\2\2\u06f2\u06f4\5\32\16\2\u06f3\u06f1\3") buf.write("\2\2\2\u06f3\u06f4\3\2\2\2\u06f4\u06f5\3\2\2\2\u06f5\u06f6") buf.write("\7\u00d9\2\2\u06f6\u075f\3\2\2\2\u06f7\u06f8\7\u00be\2") buf.write("\2\u06f8\u06f9\7\u00d8\2\2\u06f9\u06fa\5\32\16\2\u06fa") buf.write("\u06fb\7\u00da\2\2\u06fb\u06fe\5\32\16\2\u06fc\u06fd\7") buf.write("\u00da\2\2\u06fd\u06ff\5\32\16\2\u06fe\u06fc\3\2\2\2\u06fe") buf.write("\u06ff\3\2\2\2\u06ff\u0702\3\2\2\2\u0700\u0701\7\u00da") buf.write("\2\2\u0701\u0703\5\32\16\2\u0702\u0700\3\2\2\2\u0702\u0703") buf.write("\3\2\2\2\u0703\u0706\3\2\2\2\u0704\u0705\7\u00da\2\2\u0705") buf.write("\u0707\5\32\16\2\u0706\u0704\3\2\2\2\u0706\u0707\3\2\2") buf.write("\2\u0707\u0708\3\2\2\2\u0708\u0709\7\u00d9\2\2\u0709\u075f") buf.write("\3\2\2\2\u070a\u070b\7\u00bf\2\2\u070b\u070c\7\u00d8\2") buf.write("\2\u070c\u070d\5\32\16\2\u070d\u070e\7\u00da\2\2\u070e") buf.write("\u0711\5\32\16\2\u070f\u0710\7\u00da\2\2\u0710\u0712\5") buf.write("\32\16\2\u0711\u070f\3\2\2\2\u0711\u0712\3\2\2\2\u0712") buf.write("\u0715\3\2\2\2\u0713\u0714\7\u00da\2\2\u0714\u0716\5\32") buf.write("\16\2\u0715\u0713\3\2\2\2\u0715\u0716\3\2\2\2\u0716\u0719") buf.write("\3\2\2\2\u0717\u0718\7\u00da\2\2\u0718\u071a\5\32\16\2") buf.write("\u0719\u0717\3\2\2\2\u0719\u071a\3\2\2\2\u071a\u071b\3") buf.write("\2\2\2\u071b\u071c\7\u00d9\2\2\u071c\u075f\3\2\2\2\u071d") buf.write("\u071e\7\u00c0\2\2\u071e\u071f\7\u00d8\2\2\u071f\u0720") buf.write("\5\32\16\2\u0720\u0721\7\u00da\2\2\u0721\u0724\5\32\16") buf.write("\2\u0722\u0723\7\u00da\2\2\u0723\u0725\5\32\16\2\u0724") buf.write("\u0722\3\2\2\2\u0724\u0725\3\2\2\2\u0725\u0728\3\2\2\2") buf.write("\u0726\u0727\7\u00da\2\2\u0727\u0729\5\32\16\2\u0728\u0726") buf.write("\3\2\2\2\u0728\u0729\3\2\2\2\u0729\u072c\3\2\2\2\u072a") buf.write("\u072b\7\u00da\2\2\u072b\u072d\5\32\16\2\u072c\u072a\3") buf.write("\2\2\2\u072c\u072d\3\2\2\2\u072d\u072e\3\2\2\2\u072e\u072f") buf.write("\7\u00d9\2\2\u072f\u075f\3\2\2\2\u0730\u0731\7\u00c1\2") buf.write("\2\u0731\u0732\7\u00d8\2\2\u0732\u0733\5\32\16\2\u0733") buf.write("\u0734\7\u00da\2\2\u0734\u0737\5\32\16\2\u0735\u0736\7") buf.write("\u00da\2\2\u0736\u0738\5\32\16\2\u0737\u0735\3\2\2\2\u0737") buf.write("\u0738\3\2\2\2\u0738\u073b\3\2\2\2\u0739\u073a\7\u00da") buf.write("\2\2\u073a\u073c\5\32\16\2\u073b\u0739\3\2\2\2\u073b\u073c") buf.write("\3\2\2\2\u073c\u073f\3\2\2\2\u073d\u073e\7\u00da\2\2\u073e") buf.write("\u0740\5\32\16\2\u073f\u073d\3\2\2\2\u073f\u0740\3\2\2") buf.write("\2\u0740\u0741\3\2\2\2\u0741\u0742\7\u00d9\2\2\u0742\u075f") buf.write("\3\2\2\2\u0743\u0744\7\u00c2\2\2\u0744\u0745\7\u00d8\2") buf.write("\2\u0745\u0746\5\32\16\2\u0746\u0747\7\u00da\2\2\u0747") buf.write("\u0748\5\32\16\2\u0748\u0749\7\u00da\2\2\u0749\u074a\5") buf.write("\32\16\2\u074a\u074b\7\u00da\2\2\u074b\u074e\5\32\16\2") buf.write("\u074c\u074d\7\u00da\2\2\u074d\u074f\5\32\16\2\u074e\u074c") buf.write("\3\2\2\2\u074e\u074f\3\2\2\2\u074f\u0752\3\2\2\2\u0750") buf.write("\u0751\7\u00da\2\2\u0751\u0753\5\32\16\2\u0752\u0750\3") buf.write("\2\2\2\u0752\u0753\3\2\2\2\u0753\u0756\3\2\2\2\u0754\u0755") buf.write("\7\u00da\2\2\u0755\u0757\5\32\16\2\u0756\u0754\3\2\2\2") buf.write("\u0756\u0757\3\2\2\2\u0757\u075a\3\2\2\2\u0758\u0759\7") buf.write("\u00da\2\2\u0759\u075b\5\32\16\2\u075a\u0758\3\2\2\2\u075a") buf.write("\u075b\3\2\2\2\u075b\u075c\3\2\2\2\u075c\u075d\7\u00d9") buf.write("\2\2\u075d\u075f\3\2\2\2\u075e\u0653\3\2\2\2\u075e\u065c") buf.write("\3\2\2\2\u075e\u0665\3\2\2\2\u075e\u0670\3\2\2\2\u075e") buf.write("\u067b\3\2\2\2\u075e\u0686\3\2\2\2\u075e\u0693\3\2\2\2") buf.write("\u075e\u06a0\3\2\2\2\u075e\u06ad\3\2\2\2\u075e\u06ba\3") buf.write("\2\2\2\u075e\u06c7\3\2\2\2\u075e\u06d4\3\2\2\2\u075e\u06e1") buf.write("\3\2\2\2\u075e\u06ec\3\2\2\2\u075e\u06f7\3\2\2\2\u075e") buf.write("\u070a\3\2\2\2\u075e\u071d\3\2\2\2\u075e\u0730\3\2\2\2") buf.write("\u075e\u0743\3\2\2\2\u075f?\3\2\2\2zCEJQWbiu\u0083\u008c") buf.write("\u00a0\u00ad\u00b4\u00d1\u00d3\u00df\u00e1\u00f0\u00f2") buf.write("\u00fe\u0100\u0108\u010f\u011b\u0122\u0137\u014b\u0153") buf.write("\u0159\u0160\u020c\u0233\u0246\u0256\u027a\u027c\u0285") buf.write("\u028e\u0297\u02a0\u02ef\u02f8\u0301\u030a\u032c\u034f") buf.write("\u03c3\u03f1\u03f3\u041e\u0420\u0422\u0440\u0449\u0454") buf.write("\u0475\u048e\u04ef\u04fc\u0510\u051c\u0528\u0534\u0538") buf.write("\u0544\u0548\u055d\u0569\u0576\u057a\u057e\u0582\u0586") buf.write("\u058a\u0595\u0599\u05d2\u05ec\u05ee\u05f0\u05f4\u05fd") buf.write("\u0609\u0615\u0620\u062b\u063b\u064d\u0651\u0658\u0661") buf.write("\u066c\u0677\u0682\u068f\u069c\u06a9\u06b6\u06c3\u06d0") buf.write("\u06dd\u06e8\u06f3\u06fe\u0702\u0706\u0711\u0715\u0719") buf.write("\u0724\u0728\u072c\u0737\u073b\u073f\u074e\u0752\u0756") buf.write("\u075a\u075e") return buf.getvalue() class MathExprParser ( Parser ): grammarFileName = "MathExpr.g4" atn = ATNDeserializer().deserialize(serializedATN()) decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ] sharedContextCache = PredictionContextCache() literalNames = [ "", "'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'", "", "", "'lerp'", "'step'", "'smoothstep'", "'fract'", "'relu'", "'softplus'", "'gelu'", "'sign'", "'map'", "", "", "'swap'", "", "", "'range'", "'linspace'", "'logspace'", "'topk'", "'botk'", "'pinv'", "'sum'", "'mean'", "'std'", "'var'", "", "", "'quantile'", "'dot'", "'moment'", "'erf'", "'erfinv'", "'any'", "'all'", "'edge'", "", "'median'", "'mode'", "'cumsum'", "'cumprod'", "", "", "", "", "", "'smootherstep'", "", "'remap'", "", "", "'repeat'", "'flatten'", "'append'", "'get_value'", "'flow_apply'", "", "'motion_mask'", "'flow_to_image'", "", "", "'where'", "", "'overlay'", "'pad'", "'cross'", "'matmul'", "'rife'", "", "", "'shape'", "", "", "", "'tensor'", "'stack_push'", "'stack_pop'", "'stack_clear'", "'stack_has'", "'stack_get'", "", "'int'", "'float'", "'upper'", "'lower'", "'trim'", "'split'", "'join'", "", "'find'", "'replace'", "'dilate'", "'erode'", "'morph_open'", "'morph_close'", "'rgb_to_oklab'", "'rgb_to_cielab'", "'oklab_to_rgb'", "'cielab_to_rgb'", "'rgb_to_hsv'", "'hsv_to_rgb'", "'int_to_rgb'", "'rgb_to_int'", "'interpolate_linear'", "'interpolate_area'", "", "'text_image'", "'as_nested_tensor'", "", "", "'if'", "'else'", "'while'", "'for'", "'in'", "'break'", "'continue'", "'return'", "", "'sort'", "'argsort'", "'argmin'", "'argmax'", "'softmax'", "'softmin'", "'unique'", "'flip'", "'startswith'", "'endswith'", "'squeeze'", "'unsqueeze'", "'roll'", "'cov'", "", "'entropy'", "'crop'", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "'<<'", "'>>'", "'>='", "'>'", "'<='", "'<'", "'=='", "'='", "'+='", "'-='", "'*='", "'/='", "'%='", "'!='", "'|'", "'('", "')'", "','", "';'", "'->'", "'['", "']'", "'?'", "':'", "'{'", "'}'" ] symbolicNames = [ "", "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", "NVL", "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", "GELU", "SIGN", "MAP", "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "LINSPACE", "LOGSPACE", "TOPK", "BOTK", "PINV", "SUM", "MEAN", "STD", "VAR", "QUARTILE", "PERCENTILE", "QUANTILE", "DOT", "MOMENT", "ERF", "ERFINV", "ANY", "ALL", "EDGE", "GAUSSIAN", "MEDIAN", "MODE", "CUMSUM", "CUMPROD", "TOPK_IND", "BOTK_IND", "CUBIC_EASE", "ELASTIC_EASE", "SINE_EASE", "SMOOTHERSTEP", "DIST", "REMAP", "COSSIM", "COUNT", "REPEAT", "FLATTEN", "APPEND", "GET_VALUE", "FLOW_APPLY", "BATCH_SHUFFLE", "MOTION_MASK", "FLOW_TO_IMAGE", "FLOW_MAG", "FLOW_ANG", "WHERE", "HISTOGRAM", "OVERLAY", "PAD", "CROSS", "MATMUL", "RIFE", "BNOT", "BITCOUNT", "SHAPE", "BAND", "XOR", "BOR", "TENSOR", "PUSH", "POP", "CLEAR", "HAS", "GET", "CONCAT", "INT", "FLOAT", "UPPER", "LOWER", "TRIM", "SPLIT", "JOIN", "SUBSTRING", "FIND", "REPLACE", "DILATE", "ERODE", "MORPH_OPEN", "MORPH_CLOSE", "RGB_TO_OKLAB", "RGB_TO_CIELAB", "OKLAB_TO_RGB", "CIELAB_TO_RGB", "RGB_TO_HSV", "HSV_TO_RGB", "INT_TO_RGB", "RGB_TO_INT", "INTERPOLATE_LINEAR", "INTERPOLATE_AREA", "INTERPOLATE_NEAREST", "TEXT_IMAGE", "AS_NESTED", "SVD", "DIAG", "IF", "ELSE", "WHILE", "FOR", "IN", "BREAK", "CONTINUE", "RETURN", "TIMESTAMP", "SORT", "ARGSORT", "ARGMIN", "ARGMAX", "SOFTMAX", "SOFTMIN", "UNIQUE", "FLIP", "STARTSWITH", "ENDSWITH", "SQUEEZE", "UNSQUEEZE", "ROLL", "COV", "CORR", "ENTROPY", "CROP", "NONE", "COORDS", "NOISE", "RAND", "CAUCHY", "EXPONENTIAL", "LOGNORMAL", "BERNOULLI", "POISSON", "GAMMADIST", "BETADIST", "LAPLACEDIST", "GUMBELDIST", "WEIBULLDIST", "CHI2DIST", "STUDENTTDIST", "PERLIN", "CELLULAR", "PLASMA", "RIDGED", "DOMAIN_WARP", "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "LSHIFT", "RSHIFT", "GE", "GT", "LE", "LT", "EQ", "EQUEALS", "PLUS_EQ", "MINUS_EQ", "MULT_EQ", "DIV_EQ", "MOD_EQ", "NE", "PIPE", "LPAREN", "RPAREN", "COMMA", "SEMICOLON", "ARROW", "LBRACKET", "RBRACKET", "QUESTION", "COLON", "LBRACE", "RBRACE", "NUMBER", "CONSTANT", "STRING", "VARIABLE", "SL_COMMENT", "ML_COMMENT", "WS" ] RULE_start = 0 RULE_funcDef = 1 RULE_varDef = 2 RULE_paramList = 3 RULE_stmt = 4 RULE_ifStmt = 5 RULE_whileStmt = 6 RULE_forStmt = 7 RULE_block = 8 RULE_breakStmt = 9 RULE_continueStmt = 10 RULE_returnStmt = 11 RULE_expr = 12 RULE_ternaryExpr = 13 RULE_compExpr = 14 RULE_addExpr = 15 RULE_mulExpr = 16 RULE_shiftExpr = 17 RULE_powExpr = 18 RULE_unaryExpr = 19 RULE_indexExpr = 20 RULE_atom = 21 RULE_exprList = 22 RULE_func0 = 23 RULE_func1 = 24 RULE_func2 = 25 RULE_func3 = 26 RULE_func4 = 27 RULE_func5 = 28 RULE_funcN = 29 RULE_funcNoise = 30 ruleNames = [ "start", "funcDef", "varDef", "paramList", "stmt", "ifStmt", "whileStmt", "forStmt", "block", "breakStmt", "continueStmt", "returnStmt", "expr", "ternaryExpr", "compExpr", "addExpr", "mulExpr", "shiftExpr", "powExpr", "unaryExpr", "indexExpr", "atom", "exprList", "func0", "func1", "func2", "func3", "func4", "func5", "funcN", "funcNoise" ] EOF = Token.EOF 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 NVL=37 LERP=38 STEP=39 SMOOTHSTEP=40 FRACT=41 RELU=42 SOFTPLUS=43 GELU=44 SIGN=45 MAP=46 EZCONV=47 CONV=48 SWAP=49 PERM=50 RESHAPE=51 RANGE=52 LINSPACE=53 LOGSPACE=54 TOPK=55 BOTK=56 PINV=57 SUM=58 MEAN=59 STD=60 VAR=61 QUARTILE=62 PERCENTILE=63 QUANTILE=64 DOT=65 MOMENT=66 ERF=67 ERFINV=68 ANY=69 ALL=70 EDGE=71 GAUSSIAN=72 MEDIAN=73 MODE=74 CUMSUM=75 CUMPROD=76 TOPK_IND=77 BOTK_IND=78 CUBIC_EASE=79 ELASTIC_EASE=80 SINE_EASE=81 SMOOTHERSTEP=82 DIST=83 REMAP=84 COSSIM=85 COUNT=86 REPEAT=87 FLATTEN=88 APPEND=89 GET_VALUE=90 FLOW_APPLY=91 BATCH_SHUFFLE=92 MOTION_MASK=93 FLOW_TO_IMAGE=94 FLOW_MAG=95 FLOW_ANG=96 WHERE=97 HISTOGRAM=98 OVERLAY=99 PAD=100 CROSS=101 MATMUL=102 RIFE=103 BNOT=104 BITCOUNT=105 SHAPE=106 BAND=107 XOR=108 BOR=109 TENSOR=110 PUSH=111 POP=112 CLEAR=113 HAS=114 GET=115 CONCAT=116 INT=117 FLOAT=118 UPPER=119 LOWER=120 TRIM=121 SPLIT=122 JOIN=123 SUBSTRING=124 FIND=125 REPLACE=126 DILATE=127 ERODE=128 MORPH_OPEN=129 MORPH_CLOSE=130 RGB_TO_OKLAB=131 RGB_TO_CIELAB=132 OKLAB_TO_RGB=133 CIELAB_TO_RGB=134 RGB_TO_HSV=135 HSV_TO_RGB=136 INT_TO_RGB=137 RGB_TO_INT=138 INTERPOLATE_LINEAR=139 INTERPOLATE_AREA=140 INTERPOLATE_NEAREST=141 TEXT_IMAGE=142 AS_NESTED=143 SVD=144 DIAG=145 IF=146 ELSE=147 WHILE=148 FOR=149 IN=150 BREAK=151 CONTINUE=152 RETURN=153 TIMESTAMP=154 SORT=155 ARGSORT=156 ARGMIN=157 ARGMAX=158 SOFTMAX=159 SOFTMIN=160 UNIQUE=161 FLIP=162 STARTSWITH=163 ENDSWITH=164 SQUEEZE=165 UNSQUEEZE=166 ROLL=167 COV=168 CORR=169 ENTROPY=170 CROP=171 NONE=172 COORDS=173 NOISE=174 RAND=175 CAUCHY=176 EXPONENTIAL=177 LOGNORMAL=178 BERNOULLI=179 POISSON=180 GAMMADIST=181 BETADIST=182 LAPLACEDIST=183 GUMBELDIST=184 WEIBULLDIST=185 CHI2DIST=186 STUDENTTDIST=187 PERLIN=188 CELLULAR=189 PLASMA=190 RIDGED=191 DOMAIN_WARP=192 PLUS=193 MINUS=194 MULT=195 DIV=196 MOD=197 POW=198 LSHIFT=199 RSHIFT=200 GE=201 GT=202 LE=203 LT=204 EQ=205 EQUEALS=206 PLUS_EQ=207 MINUS_EQ=208 MULT_EQ=209 DIV_EQ=210 MOD_EQ=211 NE=212 PIPE=213 LPAREN=214 RPAREN=215 COMMA=216 SEMICOLON=217 ARROW=218 LBRACKET=219 RBRACKET=220 QUESTION=221 COLON=222 LBRACE=223 RBRACE=224 NUMBER=225 CONSTANT=226 STRING=227 VARIABLE=228 SL_COMMENT=229 ML_COMMENT=230 WS=231 def __init__(self, input:TokenStream, output:TextIO = sys.stdout): super().__init__(input, output) self.checkVersion("4.9.3") self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache) self._predicates = None class StartContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def EOF(self): return self.getToken(MathExprParser.EOF, 0) def funcDef(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.FuncDefContext) else: return self.getTypedRuleContext(MathExprParser.FuncDefContext,i) def varDef(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.VarDefContext) else: return self.getTypedRuleContext(MathExprParser.VarDefContext,i) def stmt(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.StmtContext) else: return self.getTypedRuleContext(MathExprParser.StmtContext,i) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def getRuleIndex(self): return MathExprParser.RULE_start def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterStart" ): listener.enterStart(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitStart" ): listener.exitStart(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStart" ): return visitor.visitStart(self) else: return visitor.visitChildren(self) def start(self): localctx = MathExprParser.StartContext(self, self._ctx, self.state) self.enterRule(localctx, 0, self.RULE_start) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) self.state = 67 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,1,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: self.state = 65 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,0,self._ctx) if la_ == 1: self.state = 62 self.funcDef() pass elif la_ == 2: self.state = 63 self.varDef() pass elif la_ == 3: self.state = 64 self.stmt() pass self.state = 69 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,1,self._ctx) self.state = 70 self.expr() self.state = 72 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.SEMICOLON: self.state = 71 self.match(MathExprParser.SEMICOLON) self.state = 74 self.match(MathExprParser.EOF) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class FuncDefContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_funcDef def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class FunctionDefContext(FuncDefContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncDefContext super().__init__(parser) self.copyFrom(ctx) def VARIABLE(self): return self.getToken(MathExprParser.VARIABLE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def ARROW(self): return self.getToken(MathExprParser.ARROW, 0) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def block(self): return self.getTypedRuleContext(MathExprParser.BlockContext,0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def paramList(self): return self.getTypedRuleContext(MathExprParser.ParamListContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunctionDef" ): listener.enterFunctionDef(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunctionDef" ): listener.exitFunctionDef(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunctionDef" ): return visitor.visitFunctionDef(self) else: return visitor.visitChildren(self) def funcDef(self): localctx = MathExprParser.FuncDefContext(self, self._ctx, self.state) self.enterRule(localctx, 2, self.RULE_funcDef) self._la = 0 # Token type try: localctx = MathExprParser.FunctionDefContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 76 self.match(MathExprParser.VARIABLE) self.state = 77 self.match(MathExprParser.LPAREN) self.state = 79 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.VARIABLE: self.state = 78 self.paramList() self.state = 81 self.match(MathExprParser.RPAREN) self.state = 82 self.match(MathExprParser.ARROW) self.state = 85 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.LBRACE]: self.state = 83 self.block() pass elif token in [MathExprParser.SIN, MathExprParser.COS, MathExprParser.TAN, MathExprParser.ASIN, MathExprParser.ACOS, MathExprParser.ATAN, MathExprParser.ATAN2, MathExprParser.SINH, MathExprParser.COSH, MathExprParser.TANH, MathExprParser.ASINH, MathExprParser.ACOSH, MathExprParser.ATANH, MathExprParser.ABS, MathExprParser.SQRT, MathExprParser.LN, MathExprParser.LOG, MathExprParser.EXP, MathExprParser.SMIN, MathExprParser.SMAX, MathExprParser.TMIN, MathExprParser.TMAX, MathExprParser.TNORM, MathExprParser.SNORM, MathExprParser.FLOOR, MathExprParser.CEIL, MathExprParser.ROUND, MathExprParser.GAMMA, MathExprParser.POWE, MathExprParser.SIGM, MathExprParser.CLAMP, MathExprParser.SFFT, MathExprParser.SIFFT, MathExprParser.ANGL, MathExprParser.PRNT, MathExprParser.PRINT_SHAPE, MathExprParser.NVL, MathExprParser.LERP, MathExprParser.STEP, MathExprParser.SMOOTHSTEP, MathExprParser.FRACT, MathExprParser.RELU, MathExprParser.SOFTPLUS, MathExprParser.GELU, MathExprParser.SIGN, MathExprParser.MAP, MathExprParser.EZCONV, MathExprParser.CONV, MathExprParser.SWAP, MathExprParser.PERM, MathExprParser.RESHAPE, MathExprParser.RANGE, MathExprParser.LINSPACE, MathExprParser.LOGSPACE, MathExprParser.TOPK, MathExprParser.BOTK, MathExprParser.PINV, MathExprParser.SUM, MathExprParser.MEAN, MathExprParser.STD, MathExprParser.VAR, MathExprParser.QUARTILE, MathExprParser.PERCENTILE, MathExprParser.QUANTILE, MathExprParser.DOT, MathExprParser.MOMENT, MathExprParser.ERF, MathExprParser.ERFINV, MathExprParser.ANY, MathExprParser.ALL, MathExprParser.EDGE, MathExprParser.GAUSSIAN, MathExprParser.MEDIAN, MathExprParser.MODE, MathExprParser.CUMSUM, MathExprParser.CUMPROD, MathExprParser.TOPK_IND, MathExprParser.BOTK_IND, MathExprParser.CUBIC_EASE, MathExprParser.ELASTIC_EASE, MathExprParser.SINE_EASE, MathExprParser.SMOOTHERSTEP, MathExprParser.DIST, MathExprParser.REMAP, MathExprParser.COSSIM, MathExprParser.COUNT, MathExprParser.REPEAT, MathExprParser.FLATTEN, MathExprParser.APPEND, MathExprParser.GET_VALUE, MathExprParser.FLOW_APPLY, MathExprParser.BATCH_SHUFFLE, MathExprParser.MOTION_MASK, MathExprParser.FLOW_TO_IMAGE, MathExprParser.FLOW_MAG, MathExprParser.FLOW_ANG, MathExprParser.WHERE, MathExprParser.HISTOGRAM, MathExprParser.OVERLAY, MathExprParser.PAD, MathExprParser.CROSS, MathExprParser.MATMUL, MathExprParser.RIFE, MathExprParser.BNOT, MathExprParser.BITCOUNT, MathExprParser.SHAPE, MathExprParser.BAND, MathExprParser.XOR, MathExprParser.BOR, MathExprParser.TENSOR, MathExprParser.PUSH, MathExprParser.POP, MathExprParser.CLEAR, MathExprParser.HAS, MathExprParser.GET, MathExprParser.CONCAT, MathExprParser.INT, MathExprParser.FLOAT, MathExprParser.UPPER, MathExprParser.LOWER, MathExprParser.TRIM, MathExprParser.SPLIT, MathExprParser.JOIN, MathExprParser.SUBSTRING, MathExprParser.FIND, MathExprParser.REPLACE, MathExprParser.DILATE, MathExprParser.ERODE, MathExprParser.MORPH_OPEN, MathExprParser.MORPH_CLOSE, MathExprParser.RGB_TO_OKLAB, MathExprParser.RGB_TO_CIELAB, MathExprParser.OKLAB_TO_RGB, MathExprParser.CIELAB_TO_RGB, MathExprParser.RGB_TO_HSV, MathExprParser.HSV_TO_RGB, MathExprParser.INT_TO_RGB, MathExprParser.RGB_TO_INT, MathExprParser.INTERPOLATE_LINEAR, MathExprParser.INTERPOLATE_AREA, MathExprParser.INTERPOLATE_NEAREST, MathExprParser.TEXT_IMAGE, MathExprParser.AS_NESTED, MathExprParser.SVD, MathExprParser.DIAG, MathExprParser.BREAK, MathExprParser.CONTINUE, MathExprParser.TIMESTAMP, MathExprParser.SORT, MathExprParser.ARGSORT, MathExprParser.ARGMIN, MathExprParser.ARGMAX, MathExprParser.SOFTMAX, MathExprParser.SOFTMIN, MathExprParser.UNIQUE, MathExprParser.FLIP, MathExprParser.STARTSWITH, MathExprParser.ENDSWITH, MathExprParser.SQUEEZE, MathExprParser.UNSQUEEZE, MathExprParser.ROLL, MathExprParser.COV, MathExprParser.CORR, MathExprParser.ENTROPY, MathExprParser.CROP, MathExprParser.NONE, MathExprParser.COORDS, MathExprParser.NOISE, MathExprParser.RAND, MathExprParser.CAUCHY, MathExprParser.EXPONENTIAL, MathExprParser.LOGNORMAL, MathExprParser.BERNOULLI, MathExprParser.POISSON, MathExprParser.GAMMADIST, MathExprParser.BETADIST, MathExprParser.LAPLACEDIST, MathExprParser.GUMBELDIST, MathExprParser.WEIBULLDIST, MathExprParser.CHI2DIST, MathExprParser.STUDENTTDIST, MathExprParser.PERLIN, MathExprParser.CELLULAR, MathExprParser.PLASMA, MathExprParser.RIDGED, MathExprParser.DOMAIN_WARP, MathExprParser.PLUS, MathExprParser.MINUS, MathExprParser.PIPE, MathExprParser.LPAREN, MathExprParser.LBRACKET, MathExprParser.NUMBER, MathExprParser.CONSTANT, MathExprParser.STRING, MathExprParser.VARIABLE]: self.state = 84 self.expr() pass else: raise NoViableAltException(self) self.state = 87 self.match(MathExprParser.SEMICOLON) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class VarDefContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def VARIABLE(self): return self.getToken(MathExprParser.VARIABLE, 0) def expr(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.ExprContext) else: return self.getTypedRuleContext(MathExprParser.ExprContext,i) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def EQUEALS(self): return self.getToken(MathExprParser.EQUEALS, 0) def PLUS_EQ(self): return self.getToken(MathExprParser.PLUS_EQ, 0) def MINUS_EQ(self): return self.getToken(MathExprParser.MINUS_EQ, 0) def MULT_EQ(self): return self.getToken(MathExprParser.MULT_EQ, 0) def DIV_EQ(self): return self.getToken(MathExprParser.DIV_EQ, 0) def MOD_EQ(self): return self.getToken(MathExprParser.MOD_EQ, 0) def LBRACKET(self, i:int=None): if i is None: return self.getTokens(MathExprParser.LBRACKET) else: return self.getToken(MathExprParser.LBRACKET, i) def RBRACKET(self, i:int=None): if i is None: return self.getTokens(MathExprParser.RBRACKET) else: return self.getToken(MathExprParser.RBRACKET, i) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def getRuleIndex(self): return MathExprParser.RULE_varDef def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterVarDef" ): listener.enterVarDef(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitVarDef" ): listener.exitVarDef(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitVarDef" ): return visitor.visitVarDef(self) else: return visitor.visitChildren(self) def varDef(self): localctx = MathExprParser.VarDefContext(self, self._ctx, self.state) self.enterRule(localctx, 4, self.RULE_varDef) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) self.state = 89 self.match(MathExprParser.VARIABLE) self.state = 103 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.LBRACKET: self.state = 90 self.match(MathExprParser.LBRACKET) self.state = 91 self.expr() self.state = 96 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 92 self.match(MathExprParser.COMMA) self.state = 93 self.expr() self.state = 98 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 99 self.match(MathExprParser.RBRACKET) self.state = 105 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 106 _la = self._input.LA(1) if not(((((_la - 206)) & ~0x3f) == 0 and ((1 << (_la - 206)) & ((1 << (MathExprParser.EQUEALS - 206)) | (1 << (MathExprParser.PLUS_EQ - 206)) | (1 << (MathExprParser.MINUS_EQ - 206)) | (1 << (MathExprParser.MULT_EQ - 206)) | (1 << (MathExprParser.DIV_EQ - 206)) | (1 << (MathExprParser.MOD_EQ - 206)))) != 0)): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() self.state = 107 self.expr() self.state = 108 self.match(MathExprParser.SEMICOLON) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class ParamListContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def VARIABLE(self, i:int=None): if i is None: return self.getTokens(MathExprParser.VARIABLE) else: return self.getToken(MathExprParser.VARIABLE, i) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def getRuleIndex(self): return MathExprParser.RULE_paramList def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterParamList" ): listener.enterParamList(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitParamList" ): listener.exitParamList(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitParamList" ): return visitor.visitParamList(self) else: return visitor.visitChildren(self) def paramList(self): localctx = MathExprParser.ParamListContext(self, self._ctx, self.state) self.enterRule(localctx, 6, self.RULE_paramList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) self.state = 110 self.match(MathExprParser.VARIABLE) self.state = 115 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 111 self.match(MathExprParser.COMMA) self.state = 112 self.match(MathExprParser.VARIABLE) self.state = 117 self._errHandler.sync(self) _la = self._input.LA(1) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class StmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_stmt def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class BreakStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def breakStmt(self): return self.getTypedRuleContext(MathExprParser.BreakStmtContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBreakStatement" ): listener.enterBreakStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBreakStatement" ): listener.exitBreakStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBreakStatement" ): return visitor.visitBreakStatement(self) else: return visitor.visitChildren(self) class VarDefStmtContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def varDef(self): return self.getTypedRuleContext(MathExprParser.VarDefContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterVarDefStmt" ): listener.enterVarDefStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitVarDefStmt" ): listener.exitVarDefStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitVarDefStmt" ): return visitor.visitVarDefStmt(self) else: return visitor.visitChildren(self) class IfStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def ifStmt(self): return self.getTypedRuleContext(MathExprParser.IfStmtContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterIfStatement" ): listener.enterIfStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitIfStatement" ): listener.exitIfStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitIfStatement" ): return visitor.visitIfStatement(self) else: return visitor.visitChildren(self) class ReturnStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def returnStmt(self): return self.getTypedRuleContext(MathExprParser.ReturnStmtContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterReturnStatement" ): listener.enterReturnStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitReturnStatement" ): listener.exitReturnStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReturnStatement" ): return visitor.visitReturnStatement(self) else: return visitor.visitChildren(self) class ExprStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterExprStatement" ): listener.enterExprStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitExprStatement" ): listener.exitExprStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExprStatement" ): return visitor.visitExprStatement(self) else: return visitor.visitChildren(self) class BlockStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def block(self): return self.getTypedRuleContext(MathExprParser.BlockContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBlockStatement" ): listener.enterBlockStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBlockStatement" ): listener.exitBlockStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBlockStatement" ): return visitor.visitBlockStatement(self) else: return visitor.visitChildren(self) class WhileStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def whileStmt(self): return self.getTypedRuleContext(MathExprParser.WhileStmtContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterWhileStatement" ): listener.enterWhileStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitWhileStatement" ): listener.exitWhileStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitWhileStatement" ): return visitor.visitWhileStatement(self) else: return visitor.visitChildren(self) class ForStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def forStmt(self): return self.getTypedRuleContext(MathExprParser.ForStmtContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterForStatement" ): listener.enterForStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitForStatement" ): listener.exitForStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitForStatement" ): return visitor.visitForStatement(self) else: return visitor.visitChildren(self) class ContinueStatementContext(StmtContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.StmtContext super().__init__(parser) self.copyFrom(ctx) def continueStmt(self): return self.getTypedRuleContext(MathExprParser.ContinueStmtContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterContinueStatement" ): listener.enterContinueStatement(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitContinueStatement" ): listener.exitContinueStatement(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitContinueStatement" ): return visitor.visitContinueStatement(self) else: return visitor.visitChildren(self) def stmt(self): localctx = MathExprParser.StmtContext(self, self._ctx, self.state) self.enterRule(localctx, 8, self.RULE_stmt) try: self.state = 129 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,8,self._ctx) if la_ == 1: localctx = MathExprParser.IfStatementContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 118 self.ifStmt() pass elif la_ == 2: localctx = MathExprParser.WhileStatementContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 119 self.whileStmt() pass elif la_ == 3: localctx = MathExprParser.BlockStatementContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 120 self.block() pass elif la_ == 4: localctx = MathExprParser.BreakStatementContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 121 self.breakStmt() pass elif la_ == 5: localctx = MathExprParser.ContinueStatementContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 122 self.continueStmt() pass elif la_ == 6: localctx = MathExprParser.ReturnStatementContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 123 self.returnStmt() pass elif la_ == 7: localctx = MathExprParser.VarDefStmtContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 124 self.varDef() pass elif la_ == 8: localctx = MathExprParser.ForStatementContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 125 self.forStmt() pass elif la_ == 9: localctx = MathExprParser.ExprStatementContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 126 self.expr() self.state = 127 self.match(MathExprParser.SEMICOLON) pass except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class IfStmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def IF(self): return self.getToken(MathExprParser.IF, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def stmt(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.StmtContext) else: return self.getTypedRuleContext(MathExprParser.StmtContext,i) def ELSE(self): return self.getToken(MathExprParser.ELSE, 0) def getRuleIndex(self): return MathExprParser.RULE_ifStmt def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterIfStmt" ): listener.enterIfStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitIfStmt" ): listener.exitIfStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitIfStmt" ): return visitor.visitIfStmt(self) else: return visitor.visitChildren(self) def ifStmt(self): localctx = MathExprParser.IfStmtContext(self, self._ctx, self.state) self.enterRule(localctx, 10, self.RULE_ifStmt) try: self.enterOuterAlt(localctx, 1) self.state = 131 self.match(MathExprParser.IF) self.state = 132 self.match(MathExprParser.LPAREN) self.state = 133 self.expr() self.state = 134 self.match(MathExprParser.RPAREN) self.state = 135 self.stmt() self.state = 138 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,9,self._ctx) if la_ == 1: self.state = 136 self.match(MathExprParser.ELSE) self.state = 137 self.stmt() except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class WhileStmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def WHILE(self): return self.getToken(MathExprParser.WHILE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def stmt(self): return self.getTypedRuleContext(MathExprParser.StmtContext,0) def getRuleIndex(self): return MathExprParser.RULE_whileStmt def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterWhileStmt" ): listener.enterWhileStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitWhileStmt" ): listener.exitWhileStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitWhileStmt" ): return visitor.visitWhileStmt(self) else: return visitor.visitChildren(self) def whileStmt(self): localctx = MathExprParser.WhileStmtContext(self, self._ctx, self.state) self.enterRule(localctx, 12, self.RULE_whileStmt) try: self.enterOuterAlt(localctx, 1) self.state = 140 self.match(MathExprParser.WHILE) self.state = 141 self.match(MathExprParser.LPAREN) self.state = 142 self.expr() self.state = 143 self.match(MathExprParser.RPAREN) self.state = 144 self.stmt() except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class ForStmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def FOR(self): return self.getToken(MathExprParser.FOR, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def VARIABLE(self): return self.getToken(MathExprParser.VARIABLE, 0) def IN(self): return self.getToken(MathExprParser.IN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def stmt(self): return self.getTypedRuleContext(MathExprParser.StmtContext,0) def getRuleIndex(self): return MathExprParser.RULE_forStmt def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterForStmt" ): listener.enterForStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitForStmt" ): listener.exitForStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitForStmt" ): return visitor.visitForStmt(self) else: return visitor.visitChildren(self) def forStmt(self): localctx = MathExprParser.ForStmtContext(self, self._ctx, self.state) self.enterRule(localctx, 14, self.RULE_forStmt) try: self.enterOuterAlt(localctx, 1) self.state = 146 self.match(MathExprParser.FOR) self.state = 147 self.match(MathExprParser.LPAREN) self.state = 148 self.match(MathExprParser.VARIABLE) self.state = 149 self.match(MathExprParser.IN) self.state = 150 self.expr() self.state = 151 self.match(MathExprParser.RPAREN) self.state = 152 self.stmt() except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class BlockContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def LBRACE(self): return self.getToken(MathExprParser.LBRACE, 0) def RBRACE(self): return self.getToken(MathExprParser.RBRACE, 0) def stmt(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.StmtContext) else: return self.getTypedRuleContext(MathExprParser.StmtContext,i) def getRuleIndex(self): return MathExprParser.RULE_block def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBlock" ): listener.enterBlock(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBlock" ): listener.exitBlock(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBlock" ): return visitor.visitBlock(self) else: return visitor.visitChildren(self) def block(self): localctx = MathExprParser.BlockContext(self, self._ctx, self.state) self.enterRule(localctx, 16, self.RULE_block) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) self.state = 154 self.match(MathExprParser.LBRACE) self.state = 158 self._errHandler.sync(self) _la = self._input.LA(1) while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << MathExprParser.SIN) | (1 << MathExprParser.COS) | (1 << MathExprParser.TAN) | (1 << MathExprParser.ASIN) | (1 << MathExprParser.ACOS) | (1 << MathExprParser.ATAN) | (1 << MathExprParser.ATAN2) | (1 << MathExprParser.SINH) | (1 << MathExprParser.COSH) | (1 << MathExprParser.TANH) | (1 << MathExprParser.ASINH) | (1 << MathExprParser.ACOSH) | (1 << MathExprParser.ATANH) | (1 << MathExprParser.ABS) | (1 << MathExprParser.SQRT) | (1 << MathExprParser.LN) | (1 << MathExprParser.LOG) | (1 << MathExprParser.EXP) | (1 << MathExprParser.SMIN) | (1 << MathExprParser.SMAX) | (1 << MathExprParser.TMIN) | (1 << MathExprParser.TMAX) | (1 << MathExprParser.TNORM) | (1 << MathExprParser.SNORM) | (1 << MathExprParser.FLOOR) | (1 << MathExprParser.CEIL) | (1 << MathExprParser.ROUND) | (1 << MathExprParser.GAMMA) | (1 << MathExprParser.POWE) | (1 << MathExprParser.SIGM) | (1 << MathExprParser.CLAMP) | (1 << MathExprParser.SFFT) | (1 << MathExprParser.SIFFT) | (1 << MathExprParser.ANGL) | (1 << MathExprParser.PRNT) | (1 << MathExprParser.PRINT_SHAPE) | (1 << MathExprParser.NVL) | (1 << MathExprParser.LERP) | (1 << MathExprParser.STEP) | (1 << MathExprParser.SMOOTHSTEP) | (1 << MathExprParser.FRACT) | (1 << MathExprParser.RELU) | (1 << MathExprParser.SOFTPLUS) | (1 << MathExprParser.GELU) | (1 << MathExprParser.SIGN) | (1 << MathExprParser.MAP) | (1 << MathExprParser.EZCONV) | (1 << MathExprParser.CONV) | (1 << MathExprParser.SWAP) | (1 << MathExprParser.PERM) | (1 << MathExprParser.RESHAPE) | (1 << MathExprParser.RANGE) | (1 << MathExprParser.LINSPACE) | (1 << MathExprParser.LOGSPACE) | (1 << MathExprParser.TOPK) | (1 << MathExprParser.BOTK) | (1 << MathExprParser.PINV) | (1 << MathExprParser.SUM) | (1 << MathExprParser.MEAN) | (1 << MathExprParser.STD) | (1 << MathExprParser.VAR) | (1 << MathExprParser.QUARTILE) | (1 << MathExprParser.PERCENTILE))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (MathExprParser.QUANTILE - 64)) | (1 << (MathExprParser.DOT - 64)) | (1 << (MathExprParser.MOMENT - 64)) | (1 << (MathExprParser.ERF - 64)) | (1 << (MathExprParser.ERFINV - 64)) | (1 << (MathExprParser.ANY - 64)) | (1 << (MathExprParser.ALL - 64)) | (1 << (MathExprParser.EDGE - 64)) | (1 << (MathExprParser.GAUSSIAN - 64)) | (1 << (MathExprParser.MEDIAN - 64)) | (1 << (MathExprParser.MODE - 64)) | (1 << (MathExprParser.CUMSUM - 64)) | (1 << (MathExprParser.CUMPROD - 64)) | (1 << (MathExprParser.TOPK_IND - 64)) | (1 << (MathExprParser.BOTK_IND - 64)) | (1 << (MathExprParser.CUBIC_EASE - 64)) | (1 << (MathExprParser.ELASTIC_EASE - 64)) | (1 << (MathExprParser.SINE_EASE - 64)) | (1 << (MathExprParser.SMOOTHERSTEP - 64)) | (1 << (MathExprParser.DIST - 64)) | (1 << (MathExprParser.REMAP - 64)) | (1 << (MathExprParser.COSSIM - 64)) | (1 << (MathExprParser.COUNT - 64)) | (1 << (MathExprParser.REPEAT - 64)) | (1 << (MathExprParser.FLATTEN - 64)) | (1 << (MathExprParser.APPEND - 64)) | (1 << (MathExprParser.GET_VALUE - 64)) | (1 << (MathExprParser.FLOW_APPLY - 64)) | (1 << (MathExprParser.BATCH_SHUFFLE - 64)) | (1 << (MathExprParser.MOTION_MASK - 64)) | (1 << (MathExprParser.FLOW_TO_IMAGE - 64)) | (1 << (MathExprParser.FLOW_MAG - 64)) | (1 << (MathExprParser.FLOW_ANG - 64)) | (1 << (MathExprParser.WHERE - 64)) | (1 << (MathExprParser.HISTOGRAM - 64)) | (1 << (MathExprParser.OVERLAY - 64)) | (1 << (MathExprParser.PAD - 64)) | (1 << (MathExprParser.CROSS - 64)) | (1 << (MathExprParser.MATMUL - 64)) | (1 << (MathExprParser.RIFE - 64)) | (1 << (MathExprParser.BNOT - 64)) | (1 << (MathExprParser.BITCOUNT - 64)) | (1 << (MathExprParser.SHAPE - 64)) | (1 << (MathExprParser.BAND - 64)) | (1 << (MathExprParser.XOR - 64)) | (1 << (MathExprParser.BOR - 64)) | (1 << (MathExprParser.TENSOR - 64)) | (1 << (MathExprParser.PUSH - 64)) | (1 << (MathExprParser.POP - 64)) | (1 << (MathExprParser.CLEAR - 64)) | (1 << (MathExprParser.HAS - 64)) | (1 << (MathExprParser.GET - 64)) | (1 << (MathExprParser.CONCAT - 64)) | (1 << (MathExprParser.INT - 64)) | (1 << (MathExprParser.FLOAT - 64)) | (1 << (MathExprParser.UPPER - 64)) | (1 << (MathExprParser.LOWER - 64)) | (1 << (MathExprParser.TRIM - 64)) | (1 << (MathExprParser.SPLIT - 64)) | (1 << (MathExprParser.JOIN - 64)) | (1 << (MathExprParser.SUBSTRING - 64)) | (1 << (MathExprParser.FIND - 64)) | (1 << (MathExprParser.REPLACE - 64)) | (1 << (MathExprParser.DILATE - 64)))) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & ((1 << (MathExprParser.ERODE - 128)) | (1 << (MathExprParser.MORPH_OPEN - 128)) | (1 << (MathExprParser.MORPH_CLOSE - 128)) | (1 << (MathExprParser.RGB_TO_OKLAB - 128)) | (1 << (MathExprParser.RGB_TO_CIELAB - 128)) | (1 << (MathExprParser.OKLAB_TO_RGB - 128)) | (1 << (MathExprParser.CIELAB_TO_RGB - 128)) | (1 << (MathExprParser.RGB_TO_HSV - 128)) | (1 << (MathExprParser.HSV_TO_RGB - 128)) | (1 << (MathExprParser.INT_TO_RGB - 128)) | (1 << (MathExprParser.RGB_TO_INT - 128)) | (1 << (MathExprParser.INTERPOLATE_LINEAR - 128)) | (1 << (MathExprParser.INTERPOLATE_AREA - 128)) | (1 << (MathExprParser.INTERPOLATE_NEAREST - 128)) | (1 << (MathExprParser.TEXT_IMAGE - 128)) | (1 << (MathExprParser.AS_NESTED - 128)) | (1 << (MathExprParser.SVD - 128)) | (1 << (MathExprParser.DIAG - 128)) | (1 << (MathExprParser.IF - 128)) | (1 << (MathExprParser.WHILE - 128)) | (1 << (MathExprParser.FOR - 128)) | (1 << (MathExprParser.BREAK - 128)) | (1 << (MathExprParser.CONTINUE - 128)) | (1 << (MathExprParser.RETURN - 128)) | (1 << (MathExprParser.TIMESTAMP - 128)) | (1 << (MathExprParser.SORT - 128)) | (1 << (MathExprParser.ARGSORT - 128)) | (1 << (MathExprParser.ARGMIN - 128)) | (1 << (MathExprParser.ARGMAX - 128)) | (1 << (MathExprParser.SOFTMAX - 128)) | (1 << (MathExprParser.SOFTMIN - 128)) | (1 << (MathExprParser.UNIQUE - 128)) | (1 << (MathExprParser.FLIP - 128)) | (1 << (MathExprParser.STARTSWITH - 128)) | (1 << (MathExprParser.ENDSWITH - 128)) | (1 << (MathExprParser.SQUEEZE - 128)) | (1 << (MathExprParser.UNSQUEEZE - 128)) | (1 << (MathExprParser.ROLL - 128)) | (1 << (MathExprParser.COV - 128)) | (1 << (MathExprParser.CORR - 128)) | (1 << (MathExprParser.ENTROPY - 128)) | (1 << (MathExprParser.CROP - 128)) | (1 << (MathExprParser.NONE - 128)) | (1 << (MathExprParser.COORDS - 128)) | (1 << (MathExprParser.NOISE - 128)) | (1 << (MathExprParser.RAND - 128)) | (1 << (MathExprParser.CAUCHY - 128)) | (1 << (MathExprParser.EXPONENTIAL - 128)) | (1 << (MathExprParser.LOGNORMAL - 128)) | (1 << (MathExprParser.BERNOULLI - 128)) | (1 << (MathExprParser.POISSON - 128)) | (1 << (MathExprParser.GAMMADIST - 128)) | (1 << (MathExprParser.BETADIST - 128)) | (1 << (MathExprParser.LAPLACEDIST - 128)) | (1 << (MathExprParser.GUMBELDIST - 128)) | (1 << (MathExprParser.WEIBULLDIST - 128)) | (1 << (MathExprParser.CHI2DIST - 128)) | (1 << (MathExprParser.STUDENTTDIST - 128)) | (1 << (MathExprParser.PERLIN - 128)) | (1 << (MathExprParser.CELLULAR - 128)) | (1 << (MathExprParser.PLASMA - 128)) | (1 << (MathExprParser.RIDGED - 128)))) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & ((1 << (MathExprParser.DOMAIN_WARP - 192)) | (1 << (MathExprParser.PLUS - 192)) | (1 << (MathExprParser.MINUS - 192)) | (1 << (MathExprParser.PIPE - 192)) | (1 << (MathExprParser.LPAREN - 192)) | (1 << (MathExprParser.LBRACKET - 192)) | (1 << (MathExprParser.LBRACE - 192)) | (1 << (MathExprParser.NUMBER - 192)) | (1 << (MathExprParser.CONSTANT - 192)) | (1 << (MathExprParser.STRING - 192)) | (1 << (MathExprParser.VARIABLE - 192)))) != 0): self.state = 155 self.stmt() self.state = 160 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 161 self.match(MathExprParser.RBRACE) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class BreakStmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def BREAK(self): return self.getToken(MathExprParser.BREAK, 0) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def getRuleIndex(self): return MathExprParser.RULE_breakStmt def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBreakStmt" ): listener.enterBreakStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBreakStmt" ): listener.exitBreakStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBreakStmt" ): return visitor.visitBreakStmt(self) else: return visitor.visitChildren(self) def breakStmt(self): localctx = MathExprParser.BreakStmtContext(self, self._ctx, self.state) self.enterRule(localctx, 18, self.RULE_breakStmt) try: self.enterOuterAlt(localctx, 1) self.state = 163 self.match(MathExprParser.BREAK) self.state = 164 self.match(MathExprParser.SEMICOLON) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class ContinueStmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def CONTINUE(self): return self.getToken(MathExprParser.CONTINUE, 0) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def getRuleIndex(self): return MathExprParser.RULE_continueStmt def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterContinueStmt" ): listener.enterContinueStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitContinueStmt" ): listener.exitContinueStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitContinueStmt" ): return visitor.visitContinueStmt(self) else: return visitor.visitChildren(self) def continueStmt(self): localctx = MathExprParser.ContinueStmtContext(self, self._ctx, self.state) self.enterRule(localctx, 20, self.RULE_continueStmt) try: self.enterOuterAlt(localctx, 1) self.state = 166 self.match(MathExprParser.CONTINUE) self.state = 167 self.match(MathExprParser.SEMICOLON) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class ReturnStmtContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def RETURN(self): return self.getToken(MathExprParser.RETURN, 0) def SEMICOLON(self): return self.getToken(MathExprParser.SEMICOLON, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def getRuleIndex(self): return MathExprParser.RULE_returnStmt def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterReturnStmt" ): listener.enterReturnStmt(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitReturnStmt" ): listener.exitReturnStmt(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReturnStmt" ): return visitor.visitReturnStmt(self) else: return visitor.visitChildren(self) def returnStmt(self): localctx = MathExprParser.ReturnStmtContext(self, self._ctx, self.state) self.enterRule(localctx, 22, self.RULE_returnStmt) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) self.state = 169 self.match(MathExprParser.RETURN) self.state = 171 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << MathExprParser.SIN) | (1 << MathExprParser.COS) | (1 << MathExprParser.TAN) | (1 << MathExprParser.ASIN) | (1 << MathExprParser.ACOS) | (1 << MathExprParser.ATAN) | (1 << MathExprParser.ATAN2) | (1 << MathExprParser.SINH) | (1 << MathExprParser.COSH) | (1 << MathExprParser.TANH) | (1 << MathExprParser.ASINH) | (1 << MathExprParser.ACOSH) | (1 << MathExprParser.ATANH) | (1 << MathExprParser.ABS) | (1 << MathExprParser.SQRT) | (1 << MathExprParser.LN) | (1 << MathExprParser.LOG) | (1 << MathExprParser.EXP) | (1 << MathExprParser.SMIN) | (1 << MathExprParser.SMAX) | (1 << MathExprParser.TMIN) | (1 << MathExprParser.TMAX) | (1 << MathExprParser.TNORM) | (1 << MathExprParser.SNORM) | (1 << MathExprParser.FLOOR) | (1 << MathExprParser.CEIL) | (1 << MathExprParser.ROUND) | (1 << MathExprParser.GAMMA) | (1 << MathExprParser.POWE) | (1 << MathExprParser.SIGM) | (1 << MathExprParser.CLAMP) | (1 << MathExprParser.SFFT) | (1 << MathExprParser.SIFFT) | (1 << MathExprParser.ANGL) | (1 << MathExprParser.PRNT) | (1 << MathExprParser.PRINT_SHAPE) | (1 << MathExprParser.NVL) | (1 << MathExprParser.LERP) | (1 << MathExprParser.STEP) | (1 << MathExprParser.SMOOTHSTEP) | (1 << MathExprParser.FRACT) | (1 << MathExprParser.RELU) | (1 << MathExprParser.SOFTPLUS) | (1 << MathExprParser.GELU) | (1 << MathExprParser.SIGN) | (1 << MathExprParser.MAP) | (1 << MathExprParser.EZCONV) | (1 << MathExprParser.CONV) | (1 << MathExprParser.SWAP) | (1 << MathExprParser.PERM) | (1 << MathExprParser.RESHAPE) | (1 << MathExprParser.RANGE) | (1 << MathExprParser.LINSPACE) | (1 << MathExprParser.LOGSPACE) | (1 << MathExprParser.TOPK) | (1 << MathExprParser.BOTK) | (1 << MathExprParser.PINV) | (1 << MathExprParser.SUM) | (1 << MathExprParser.MEAN) | (1 << MathExprParser.STD) | (1 << MathExprParser.VAR) | (1 << MathExprParser.QUARTILE) | (1 << MathExprParser.PERCENTILE))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (MathExprParser.QUANTILE - 64)) | (1 << (MathExprParser.DOT - 64)) | (1 << (MathExprParser.MOMENT - 64)) | (1 << (MathExprParser.ERF - 64)) | (1 << (MathExprParser.ERFINV - 64)) | (1 << (MathExprParser.ANY - 64)) | (1 << (MathExprParser.ALL - 64)) | (1 << (MathExprParser.EDGE - 64)) | (1 << (MathExprParser.GAUSSIAN - 64)) | (1 << (MathExprParser.MEDIAN - 64)) | (1 << (MathExprParser.MODE - 64)) | (1 << (MathExprParser.CUMSUM - 64)) | (1 << (MathExprParser.CUMPROD - 64)) | (1 << (MathExprParser.TOPK_IND - 64)) | (1 << (MathExprParser.BOTK_IND - 64)) | (1 << (MathExprParser.CUBIC_EASE - 64)) | (1 << (MathExprParser.ELASTIC_EASE - 64)) | (1 << (MathExprParser.SINE_EASE - 64)) | (1 << (MathExprParser.SMOOTHERSTEP - 64)) | (1 << (MathExprParser.DIST - 64)) | (1 << (MathExprParser.REMAP - 64)) | (1 << (MathExprParser.COSSIM - 64)) | (1 << (MathExprParser.COUNT - 64)) | (1 << (MathExprParser.REPEAT - 64)) | (1 << (MathExprParser.FLATTEN - 64)) | (1 << (MathExprParser.APPEND - 64)) | (1 << (MathExprParser.GET_VALUE - 64)) | (1 << (MathExprParser.FLOW_APPLY - 64)) | (1 << (MathExprParser.BATCH_SHUFFLE - 64)) | (1 << (MathExprParser.MOTION_MASK - 64)) | (1 << (MathExprParser.FLOW_TO_IMAGE - 64)) | (1 << (MathExprParser.FLOW_MAG - 64)) | (1 << (MathExprParser.FLOW_ANG - 64)) | (1 << (MathExprParser.WHERE - 64)) | (1 << (MathExprParser.HISTOGRAM - 64)) | (1 << (MathExprParser.OVERLAY - 64)) | (1 << (MathExprParser.PAD - 64)) | (1 << (MathExprParser.CROSS - 64)) | (1 << (MathExprParser.MATMUL - 64)) | (1 << (MathExprParser.RIFE - 64)) | (1 << (MathExprParser.BNOT - 64)) | (1 << (MathExprParser.BITCOUNT - 64)) | (1 << (MathExprParser.SHAPE - 64)) | (1 << (MathExprParser.BAND - 64)) | (1 << (MathExprParser.XOR - 64)) | (1 << (MathExprParser.BOR - 64)) | (1 << (MathExprParser.TENSOR - 64)) | (1 << (MathExprParser.PUSH - 64)) | (1 << (MathExprParser.POP - 64)) | (1 << (MathExprParser.CLEAR - 64)) | (1 << (MathExprParser.HAS - 64)) | (1 << (MathExprParser.GET - 64)) | (1 << (MathExprParser.CONCAT - 64)) | (1 << (MathExprParser.INT - 64)) | (1 << (MathExprParser.FLOAT - 64)) | (1 << (MathExprParser.UPPER - 64)) | (1 << (MathExprParser.LOWER - 64)) | (1 << (MathExprParser.TRIM - 64)) | (1 << (MathExprParser.SPLIT - 64)) | (1 << (MathExprParser.JOIN - 64)) | (1 << (MathExprParser.SUBSTRING - 64)) | (1 << (MathExprParser.FIND - 64)) | (1 << (MathExprParser.REPLACE - 64)) | (1 << (MathExprParser.DILATE - 64)))) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & ((1 << (MathExprParser.ERODE - 128)) | (1 << (MathExprParser.MORPH_OPEN - 128)) | (1 << (MathExprParser.MORPH_CLOSE - 128)) | (1 << (MathExprParser.RGB_TO_OKLAB - 128)) | (1 << (MathExprParser.RGB_TO_CIELAB - 128)) | (1 << (MathExprParser.OKLAB_TO_RGB - 128)) | (1 << (MathExprParser.CIELAB_TO_RGB - 128)) | (1 << (MathExprParser.RGB_TO_HSV - 128)) | (1 << (MathExprParser.HSV_TO_RGB - 128)) | (1 << (MathExprParser.INT_TO_RGB - 128)) | (1 << (MathExprParser.RGB_TO_INT - 128)) | (1 << (MathExprParser.INTERPOLATE_LINEAR - 128)) | (1 << (MathExprParser.INTERPOLATE_AREA - 128)) | (1 << (MathExprParser.INTERPOLATE_NEAREST - 128)) | (1 << (MathExprParser.TEXT_IMAGE - 128)) | (1 << (MathExprParser.AS_NESTED - 128)) | (1 << (MathExprParser.SVD - 128)) | (1 << (MathExprParser.DIAG - 128)) | (1 << (MathExprParser.BREAK - 128)) | (1 << (MathExprParser.CONTINUE - 128)) | (1 << (MathExprParser.TIMESTAMP - 128)) | (1 << (MathExprParser.SORT - 128)) | (1 << (MathExprParser.ARGSORT - 128)) | (1 << (MathExprParser.ARGMIN - 128)) | (1 << (MathExprParser.ARGMAX - 128)) | (1 << (MathExprParser.SOFTMAX - 128)) | (1 << (MathExprParser.SOFTMIN - 128)) | (1 << (MathExprParser.UNIQUE - 128)) | (1 << (MathExprParser.FLIP - 128)) | (1 << (MathExprParser.STARTSWITH - 128)) | (1 << (MathExprParser.ENDSWITH - 128)) | (1 << (MathExprParser.SQUEEZE - 128)) | (1 << (MathExprParser.UNSQUEEZE - 128)) | (1 << (MathExprParser.ROLL - 128)) | (1 << (MathExprParser.COV - 128)) | (1 << (MathExprParser.CORR - 128)) | (1 << (MathExprParser.ENTROPY - 128)) | (1 << (MathExprParser.CROP - 128)) | (1 << (MathExprParser.NONE - 128)) | (1 << (MathExprParser.COORDS - 128)) | (1 << (MathExprParser.NOISE - 128)) | (1 << (MathExprParser.RAND - 128)) | (1 << (MathExprParser.CAUCHY - 128)) | (1 << (MathExprParser.EXPONENTIAL - 128)) | (1 << (MathExprParser.LOGNORMAL - 128)) | (1 << (MathExprParser.BERNOULLI - 128)) | (1 << (MathExprParser.POISSON - 128)) | (1 << (MathExprParser.GAMMADIST - 128)) | (1 << (MathExprParser.BETADIST - 128)) | (1 << (MathExprParser.LAPLACEDIST - 128)) | (1 << (MathExprParser.GUMBELDIST - 128)) | (1 << (MathExprParser.WEIBULLDIST - 128)) | (1 << (MathExprParser.CHI2DIST - 128)) | (1 << (MathExprParser.STUDENTTDIST - 128)) | (1 << (MathExprParser.PERLIN - 128)) | (1 << (MathExprParser.CELLULAR - 128)) | (1 << (MathExprParser.PLASMA - 128)) | (1 << (MathExprParser.RIDGED - 128)))) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & ((1 << (MathExprParser.DOMAIN_WARP - 192)) | (1 << (MathExprParser.PLUS - 192)) | (1 << (MathExprParser.MINUS - 192)) | (1 << (MathExprParser.PIPE - 192)) | (1 << (MathExprParser.LPAREN - 192)) | (1 << (MathExprParser.LBRACKET - 192)) | (1 << (MathExprParser.NUMBER - 192)) | (1 << (MathExprParser.CONSTANT - 192)) | (1 << (MathExprParser.STRING - 192)) | (1 << (MathExprParser.VARIABLE - 192)))) != 0): self.state = 170 self.expr() self.state = 173 self.match(MathExprParser.SEMICOLON) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class ExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def ternaryExpr(self): return self.getTypedRuleContext(MathExprParser.TernaryExprContext,0) def atom(self): return self.getTypedRuleContext(MathExprParser.AtomContext,0) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def getRuleIndex(self): return MathExprParser.RULE_expr def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterExpr" ): listener.enterExpr(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitExpr" ): listener.exitExpr(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExpr" ): return visitor.visitExpr(self) else: return visitor.visitChildren(self) def expr(self): localctx = MathExprParser.ExprContext(self, self._ctx, self.state) self.enterRule(localctx, 24, self.RULE_expr) try: self.state = 178 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,12,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) self.state = 175 self.ternaryExpr() pass elif la_ == 2: self.enterOuterAlt(localctx, 2) self.state = 176 self.atom() pass elif la_ == 3: self.enterOuterAlt(localctx, 3) self.state = 177 self.compExpr(0) pass except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class TernaryExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_ternaryExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class TernaryExpContext(TernaryExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.TernaryExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def QUESTION(self): return self.getToken(MathExprParser.QUESTION, 0) def expr(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.ExprContext) else: return self.getTypedRuleContext(MathExprParser.ExprContext,i) def COLON(self): return self.getToken(MathExprParser.COLON, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTernaryExp" ): listener.enterTernaryExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTernaryExp" ): listener.exitTernaryExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTernaryExp" ): return visitor.visitTernaryExp(self) else: return visitor.visitChildren(self) def ternaryExpr(self): localctx = MathExprParser.TernaryExprContext(self, self._ctx, self.state) self.enterRule(localctx, 26, self.RULE_ternaryExpr) try: localctx = MathExprParser.TernaryExpContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 180 self.compExpr(0) self.state = 181 self.match(MathExprParser.QUESTION) self.state = 182 self.expr() self.state = 183 self.match(MathExprParser.COLON) self.state = 184 self.expr() except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class CompExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_compExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class LtExpContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def LT(self): return self.getToken(MathExprParser.LT, 0) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLtExp" ): listener.enterLtExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLtExp" ): listener.exitLtExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLtExp" ): return visitor.visitLtExp(self) else: return visitor.visitChildren(self) class EqExpContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def EQ(self): return self.getToken(MathExprParser.EQ, 0) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterEqExp" ): listener.enterEqExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitEqExp" ): listener.exitEqExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEqExp" ): return visitor.visitEqExp(self) else: return visitor.visitChildren(self) class ToAddContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToAdd" ): listener.enterToAdd(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToAdd" ): listener.exitToAdd(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToAdd" ): return visitor.visitToAdd(self) else: return visitor.visitChildren(self) class GeExpContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def GE(self): return self.getToken(MathExprParser.GE, 0) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGeExp" ): listener.enterGeExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGeExp" ): listener.exitGeExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGeExp" ): return visitor.visitGeExp(self) else: return visitor.visitChildren(self) class LeExpContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def LE(self): return self.getToken(MathExprParser.LE, 0) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLeExp" ): listener.enterLeExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLeExp" ): listener.exitLeExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLeExp" ): return visitor.visitLeExp(self) else: return visitor.visitChildren(self) class NeExpContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def NE(self): return self.getToken(MathExprParser.NE, 0) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterNeExp" ): listener.enterNeExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitNeExp" ): listener.exitNeExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNeExp" ): return visitor.visitNeExp(self) else: return visitor.visitChildren(self) class GtExpContext(CompExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.CompExprContext super().__init__(parser) self.copyFrom(ctx) def compExpr(self): return self.getTypedRuleContext(MathExprParser.CompExprContext,0) def GT(self): return self.getToken(MathExprParser.GT, 0) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGtExp" ): listener.enterGtExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGtExp" ): listener.exitGtExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGtExp" ): return visitor.visitGtExp(self) else: return visitor.visitChildren(self) def compExpr(self, _p:int=0): _parentctx = self._ctx _parentState = self.state localctx = MathExprParser.CompExprContext(self, self._ctx, _parentState) _prevctx = localctx _startState = 28 self.enterRecursionRule(localctx, 28, self.RULE_compExpr, _p) try: self.enterOuterAlt(localctx, 1) localctx = MathExprParser.ToAddContext(self, localctx) self._ctx = localctx _prevctx = localctx self.state = 187 self.addExpr(0) self._ctx.stop = self._input.LT(-1) self.state = 209 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,14,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx self.state = 207 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,13,self._ctx) if la_ == 1: localctx = MathExprParser.GtExpContext(self, MathExprParser.CompExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_compExpr) self.state = 189 if not self.precpred(self._ctx, 7): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 7)") self.state = 190 self.match(MathExprParser.GT) self.state = 191 self.addExpr(0) pass elif la_ == 2: localctx = MathExprParser.GeExpContext(self, MathExprParser.CompExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_compExpr) self.state = 192 if not self.precpred(self._ctx, 6): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 6)") self.state = 193 self.match(MathExprParser.GE) self.state = 194 self.addExpr(0) pass elif la_ == 3: localctx = MathExprParser.LtExpContext(self, MathExprParser.CompExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_compExpr) self.state = 195 if not self.precpred(self._ctx, 5): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 5)") self.state = 196 self.match(MathExprParser.LT) self.state = 197 self.addExpr(0) pass elif la_ == 4: localctx = MathExprParser.LeExpContext(self, MathExprParser.CompExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_compExpr) self.state = 198 if not self.precpred(self._ctx, 4): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 4)") self.state = 199 self.match(MathExprParser.LE) self.state = 200 self.addExpr(0) pass elif la_ == 5: localctx = MathExprParser.EqExpContext(self, MathExprParser.CompExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_compExpr) self.state = 201 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") self.state = 202 self.match(MathExprParser.EQ) self.state = 203 self.addExpr(0) pass elif la_ == 6: localctx = MathExprParser.NeExpContext(self, MathExprParser.CompExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_compExpr) self.state = 204 if not self.precpred(self._ctx, 2): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") self.state = 205 self.match(MathExprParser.NE) self.state = 206 self.addExpr(0) pass self.state = 211 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,14,self._ctx) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.unrollRecursionContexts(_parentctx) return localctx class AddExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_addExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class AddExpContext(AddExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AddExprContext super().__init__(parser) self.copyFrom(ctx) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def PLUS(self): return self.getToken(MathExprParser.PLUS, 0) def mulExpr(self): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAddExp" ): listener.enterAddExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAddExp" ): listener.exitAddExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAddExp" ): return visitor.visitAddExp(self) else: return visitor.visitChildren(self) class ToMulContext(AddExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AddExprContext super().__init__(parser) self.copyFrom(ctx) def mulExpr(self): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToMul" ): listener.enterToMul(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToMul" ): listener.exitToMul(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToMul" ): return visitor.visitToMul(self) else: return visitor.visitChildren(self) class SubExpContext(AddExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AddExprContext super().__init__(parser) self.copyFrom(ctx) def addExpr(self): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) def MINUS(self): return self.getToken(MathExprParser.MINUS, 0) def mulExpr(self): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSubExp" ): listener.enterSubExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSubExp" ): listener.exitSubExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSubExp" ): return visitor.visitSubExp(self) else: return visitor.visitChildren(self) def addExpr(self, _p:int=0): _parentctx = self._ctx _parentState = self.state localctx = MathExprParser.AddExprContext(self, self._ctx, _parentState) _prevctx = localctx _startState = 30 self.enterRecursionRule(localctx, 30, self.RULE_addExpr, _p) try: self.enterOuterAlt(localctx, 1) localctx = MathExprParser.ToMulContext(self, localctx) self._ctx = localctx _prevctx = localctx self.state = 213 self.mulExpr(0) self._ctx.stop = self._input.LT(-1) self.state = 223 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,16,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx self.state = 221 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,15,self._ctx) if la_ == 1: localctx = MathExprParser.AddExpContext(self, MathExprParser.AddExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_addExpr) self.state = 215 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") self.state = 216 self.match(MathExprParser.PLUS) self.state = 217 self.mulExpr(0) pass elif la_ == 2: localctx = MathExprParser.SubExpContext(self, MathExprParser.AddExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_addExpr) self.state = 218 if not self.precpred(self._ctx, 2): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") self.state = 219 self.match(MathExprParser.MINUS) self.state = 220 self.mulExpr(0) pass self.state = 225 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,16,self._ctx) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.unrollRecursionContexts(_parentctx) return localctx class MulExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_mulExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class ToShiftContext(MulExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.MulExprContext super().__init__(parser) self.copyFrom(ctx) def shiftExpr(self): return self.getTypedRuleContext(MathExprParser.ShiftExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToShift" ): listener.enterToShift(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToShift" ): listener.exitToShift(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToShift" ): return visitor.visitToShift(self) else: return visitor.visitChildren(self) class MulExpContext(MulExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.MulExprContext super().__init__(parser) self.copyFrom(ctx) def mulExpr(self): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) def MULT(self): return self.getToken(MathExprParser.MULT, 0) def shiftExpr(self): return self.getTypedRuleContext(MathExprParser.ShiftExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMulExp" ): listener.enterMulExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMulExp" ): listener.exitMulExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMulExp" ): return visitor.visitMulExp(self) else: return visitor.visitChildren(self) class ModExpContext(MulExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.MulExprContext super().__init__(parser) self.copyFrom(ctx) def mulExpr(self): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) def MOD(self): return self.getToken(MathExprParser.MOD, 0) def shiftExpr(self): return self.getTypedRuleContext(MathExprParser.ShiftExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterModExp" ): listener.enterModExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitModExp" ): listener.exitModExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitModExp" ): return visitor.visitModExp(self) else: return visitor.visitChildren(self) class DivExpContext(MulExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.MulExprContext super().__init__(parser) self.copyFrom(ctx) def mulExpr(self): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) def DIV(self): return self.getToken(MathExprParser.DIV, 0) def shiftExpr(self): return self.getTypedRuleContext(MathExprParser.ShiftExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterDivExp" ): listener.enterDivExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitDivExp" ): listener.exitDivExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDivExp" ): return visitor.visitDivExp(self) else: return visitor.visitChildren(self) def mulExpr(self, _p:int=0): _parentctx = self._ctx _parentState = self.state localctx = MathExprParser.MulExprContext(self, self._ctx, _parentState) _prevctx = localctx _startState = 32 self.enterRecursionRule(localctx, 32, self.RULE_mulExpr, _p) try: self.enterOuterAlt(localctx, 1) localctx = MathExprParser.ToShiftContext(self, localctx) self._ctx = localctx _prevctx = localctx self.state = 227 self.shiftExpr(0) self._ctx.stop = self._input.LT(-1) self.state = 240 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,18,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx self.state = 238 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,17,self._ctx) if la_ == 1: localctx = MathExprParser.MulExpContext(self, MathExprParser.MulExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_mulExpr) self.state = 229 if not self.precpred(self._ctx, 4): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 4)") self.state = 230 self.match(MathExprParser.MULT) self.state = 231 self.shiftExpr(0) pass elif la_ == 2: localctx = MathExprParser.DivExpContext(self, MathExprParser.MulExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_mulExpr) self.state = 232 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") self.state = 233 self.match(MathExprParser.DIV) self.state = 234 self.shiftExpr(0) pass elif la_ == 3: localctx = MathExprParser.ModExpContext(self, MathExprParser.MulExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_mulExpr) self.state = 235 if not self.precpred(self._ctx, 2): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") self.state = 236 self.match(MathExprParser.MOD) self.state = 237 self.shiftExpr(0) pass self.state = 242 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,18,self._ctx) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.unrollRecursionContexts(_parentctx) return localctx class ShiftExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_shiftExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class RShiftExpContext(ShiftExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.ShiftExprContext super().__init__(parser) self.copyFrom(ctx) def shiftExpr(self): return self.getTypedRuleContext(MathExprParser.ShiftExprContext,0) def RSHIFT(self): return self.getToken(MathExprParser.RSHIFT, 0) def powExpr(self): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRShiftExp" ): listener.enterRShiftExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRShiftExp" ): listener.exitRShiftExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRShiftExp" ): return visitor.visitRShiftExp(self) else: return visitor.visitChildren(self) class LShiftExpContext(ShiftExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.ShiftExprContext super().__init__(parser) self.copyFrom(ctx) def shiftExpr(self): return self.getTypedRuleContext(MathExprParser.ShiftExprContext,0) def LSHIFT(self): return self.getToken(MathExprParser.LSHIFT, 0) def powExpr(self): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLShiftExp" ): listener.enterLShiftExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLShiftExp" ): listener.exitLShiftExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLShiftExp" ): return visitor.visitLShiftExp(self) else: return visitor.visitChildren(self) class ToPowContext(ShiftExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.ShiftExprContext super().__init__(parser) self.copyFrom(ctx) def powExpr(self): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToPow" ): listener.enterToPow(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToPow" ): listener.exitToPow(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToPow" ): return visitor.visitToPow(self) else: return visitor.visitChildren(self) def shiftExpr(self, _p:int=0): _parentctx = self._ctx _parentState = self.state localctx = MathExprParser.ShiftExprContext(self, self._ctx, _parentState) _prevctx = localctx _startState = 34 self.enterRecursionRule(localctx, 34, self.RULE_shiftExpr, _p) try: self.enterOuterAlt(localctx, 1) localctx = MathExprParser.ToPowContext(self, localctx) self._ctx = localctx _prevctx = localctx self.state = 244 self.powExpr() self._ctx.stop = self._input.LT(-1) self.state = 254 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,20,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx self.state = 252 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,19,self._ctx) if la_ == 1: localctx = MathExprParser.LShiftExpContext(self, MathExprParser.ShiftExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_shiftExpr) self.state = 246 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") self.state = 247 self.match(MathExprParser.LSHIFT) self.state = 248 self.powExpr() pass elif la_ == 2: localctx = MathExprParser.RShiftExpContext(self, MathExprParser.ShiftExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_shiftExpr) self.state = 249 if not self.precpred(self._ctx, 2): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") self.state = 250 self.match(MathExprParser.RSHIFT) self.state = 251 self.powExpr() pass self.state = 256 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,20,self._ctx) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.unrollRecursionContexts(_parentctx) return localctx class PowExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_powExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class PowExpContext(PowExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.PowExprContext super().__init__(parser) self.copyFrom(ctx) def unaryExpr(self): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) def POW(self): return self.getToken(MathExprParser.POW, 0) def powExpr(self): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPowExp" ): listener.enterPowExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPowExp" ): listener.exitPowExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPowExp" ): return visitor.visitPowExp(self) else: return visitor.visitChildren(self) class ToUnaryContext(PowExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.PowExprContext super().__init__(parser) self.copyFrom(ctx) def unaryExpr(self): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToUnary" ): listener.enterToUnary(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToUnary" ): listener.exitToUnary(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToUnary" ): return visitor.visitToUnary(self) else: return visitor.visitChildren(self) def powExpr(self): localctx = MathExprParser.PowExprContext(self, self._ctx, self.state) self.enterRule(localctx, 36, self.RULE_powExpr) try: self.state = 262 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,21,self._ctx) if la_ == 1: localctx = MathExprParser.PowExpContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 257 self.unaryExpr() self.state = 258 self.match(MathExprParser.POW) self.state = 259 self.powExpr() pass elif la_ == 2: localctx = MathExprParser.ToUnaryContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 261 self.unaryExpr() pass except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class UnaryExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_unaryExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class UnaryPlusContext(UnaryExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.UnaryExprContext super().__init__(parser) self.copyFrom(ctx) def PLUS(self): return self.getToken(MathExprParser.PLUS, 0) def unaryExpr(self): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterUnaryPlus" ): listener.enterUnaryPlus(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitUnaryPlus" ): listener.exitUnaryPlus(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUnaryPlus" ): return visitor.visitUnaryPlus(self) else: return visitor.visitChildren(self) class UnaryMinusContext(UnaryExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.UnaryExprContext super().__init__(parser) self.copyFrom(ctx) def MINUS(self): return self.getToken(MathExprParser.MINUS, 0) def unaryExpr(self): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterUnaryMinus" ): listener.enterUnaryMinus(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitUnaryMinus" ): listener.exitUnaryMinus(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUnaryMinus" ): return visitor.visitUnaryMinus(self) else: return visitor.visitChildren(self) class ToIndexContext(UnaryExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.UnaryExprContext super().__init__(parser) self.copyFrom(ctx) def indexExpr(self): return self.getTypedRuleContext(MathExprParser.IndexExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToIndex" ): listener.enterToIndex(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToIndex" ): listener.exitToIndex(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToIndex" ): return visitor.visitToIndex(self) else: return visitor.visitChildren(self) def unaryExpr(self): localctx = MathExprParser.UnaryExprContext(self, self._ctx, self.state) self.enterRule(localctx, 38, self.RULE_unaryExpr) try: self.state = 269 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.PLUS]: localctx = MathExprParser.UnaryPlusContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 264 self.match(MathExprParser.PLUS) self.state = 265 self.unaryExpr() pass elif token in [MathExprParser.MINUS]: localctx = MathExprParser.UnaryMinusContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 266 self.match(MathExprParser.MINUS) self.state = 267 self.unaryExpr() pass elif token in [MathExprParser.SIN, MathExprParser.COS, MathExprParser.TAN, MathExprParser.ASIN, MathExprParser.ACOS, MathExprParser.ATAN, MathExprParser.ATAN2, MathExprParser.SINH, MathExprParser.COSH, MathExprParser.TANH, MathExprParser.ASINH, MathExprParser.ACOSH, MathExprParser.ATANH, MathExprParser.ABS, MathExprParser.SQRT, MathExprParser.LN, MathExprParser.LOG, MathExprParser.EXP, MathExprParser.SMIN, MathExprParser.SMAX, MathExprParser.TMIN, MathExprParser.TMAX, MathExprParser.TNORM, MathExprParser.SNORM, MathExprParser.FLOOR, MathExprParser.CEIL, MathExprParser.ROUND, MathExprParser.GAMMA, MathExprParser.POWE, MathExprParser.SIGM, MathExprParser.CLAMP, MathExprParser.SFFT, MathExprParser.SIFFT, MathExprParser.ANGL, MathExprParser.PRNT, MathExprParser.PRINT_SHAPE, MathExprParser.NVL, MathExprParser.LERP, MathExprParser.STEP, MathExprParser.SMOOTHSTEP, MathExprParser.FRACT, MathExprParser.RELU, MathExprParser.SOFTPLUS, MathExprParser.GELU, MathExprParser.SIGN, MathExprParser.MAP, MathExprParser.EZCONV, MathExprParser.CONV, MathExprParser.SWAP, MathExprParser.PERM, MathExprParser.RESHAPE, MathExprParser.RANGE, MathExprParser.LINSPACE, MathExprParser.LOGSPACE, MathExprParser.TOPK, MathExprParser.BOTK, MathExprParser.PINV, MathExprParser.SUM, MathExprParser.MEAN, MathExprParser.STD, MathExprParser.VAR, MathExprParser.QUARTILE, MathExprParser.PERCENTILE, MathExprParser.QUANTILE, MathExprParser.DOT, MathExprParser.MOMENT, MathExprParser.ERF, MathExprParser.ERFINV, MathExprParser.ANY, MathExprParser.ALL, MathExprParser.EDGE, MathExprParser.GAUSSIAN, MathExprParser.MEDIAN, MathExprParser.MODE, MathExprParser.CUMSUM, MathExprParser.CUMPROD, MathExprParser.TOPK_IND, MathExprParser.BOTK_IND, MathExprParser.CUBIC_EASE, MathExprParser.ELASTIC_EASE, MathExprParser.SINE_EASE, MathExprParser.SMOOTHERSTEP, MathExprParser.DIST, MathExprParser.REMAP, MathExprParser.COSSIM, MathExprParser.COUNT, MathExprParser.REPEAT, MathExprParser.FLATTEN, MathExprParser.APPEND, MathExprParser.GET_VALUE, MathExprParser.FLOW_APPLY, MathExprParser.BATCH_SHUFFLE, MathExprParser.MOTION_MASK, MathExprParser.FLOW_TO_IMAGE, MathExprParser.FLOW_MAG, MathExprParser.FLOW_ANG, MathExprParser.WHERE, MathExprParser.HISTOGRAM, MathExprParser.OVERLAY, MathExprParser.PAD, MathExprParser.CROSS, MathExprParser.MATMUL, MathExprParser.RIFE, MathExprParser.BNOT, MathExprParser.BITCOUNT, MathExprParser.SHAPE, MathExprParser.BAND, MathExprParser.XOR, MathExprParser.BOR, MathExprParser.TENSOR, MathExprParser.PUSH, MathExprParser.POP, MathExprParser.CLEAR, MathExprParser.HAS, MathExprParser.GET, MathExprParser.CONCAT, MathExprParser.INT, MathExprParser.FLOAT, MathExprParser.UPPER, MathExprParser.LOWER, MathExprParser.TRIM, MathExprParser.SPLIT, MathExprParser.JOIN, MathExprParser.SUBSTRING, MathExprParser.FIND, MathExprParser.REPLACE, MathExprParser.DILATE, MathExprParser.ERODE, MathExprParser.MORPH_OPEN, MathExprParser.MORPH_CLOSE, MathExprParser.RGB_TO_OKLAB, MathExprParser.RGB_TO_CIELAB, MathExprParser.OKLAB_TO_RGB, MathExprParser.CIELAB_TO_RGB, MathExprParser.RGB_TO_HSV, MathExprParser.HSV_TO_RGB, MathExprParser.INT_TO_RGB, MathExprParser.RGB_TO_INT, MathExprParser.INTERPOLATE_LINEAR, MathExprParser.INTERPOLATE_AREA, MathExprParser.INTERPOLATE_NEAREST, MathExprParser.TEXT_IMAGE, MathExprParser.AS_NESTED, MathExprParser.SVD, MathExprParser.DIAG, MathExprParser.BREAK, MathExprParser.CONTINUE, MathExprParser.TIMESTAMP, MathExprParser.SORT, MathExprParser.ARGSORT, MathExprParser.ARGMIN, MathExprParser.ARGMAX, MathExprParser.SOFTMAX, MathExprParser.SOFTMIN, MathExprParser.UNIQUE, MathExprParser.FLIP, MathExprParser.STARTSWITH, MathExprParser.ENDSWITH, MathExprParser.SQUEEZE, MathExprParser.UNSQUEEZE, MathExprParser.ROLL, MathExprParser.COV, MathExprParser.CORR, MathExprParser.ENTROPY, MathExprParser.CROP, MathExprParser.NONE, MathExprParser.COORDS, MathExprParser.NOISE, MathExprParser.RAND, MathExprParser.CAUCHY, MathExprParser.EXPONENTIAL, MathExprParser.LOGNORMAL, MathExprParser.BERNOULLI, MathExprParser.POISSON, MathExprParser.GAMMADIST, MathExprParser.BETADIST, MathExprParser.LAPLACEDIST, MathExprParser.GUMBELDIST, MathExprParser.WEIBULLDIST, MathExprParser.CHI2DIST, MathExprParser.STUDENTTDIST, MathExprParser.PERLIN, MathExprParser.CELLULAR, MathExprParser.PLASMA, MathExprParser.RIDGED, MathExprParser.DOMAIN_WARP, MathExprParser.PIPE, MathExprParser.LPAREN, MathExprParser.LBRACKET, MathExprParser.NUMBER, MathExprParser.CONSTANT, MathExprParser.STRING, MathExprParser.VARIABLE]: localctx = MathExprParser.ToIndexContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 268 self.indexExpr(0) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class IndexExprContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_indexExpr def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class IndexExpContext(IndexExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.IndexExprContext super().__init__(parser) self.copyFrom(ctx) def indexExpr(self): return self.getTypedRuleContext(MathExprParser.IndexExprContext,0) def LBRACKET(self): return self.getToken(MathExprParser.LBRACKET, 0) def expr(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.ExprContext) else: return self.getTypedRuleContext(MathExprParser.ExprContext,i) def RBRACKET(self): return self.getToken(MathExprParser.RBRACKET, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterIndexExp" ): listener.enterIndexExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitIndexExp" ): listener.exitIndexExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitIndexExp" ): return visitor.visitIndexExp(self) else: return visitor.visitChildren(self) class ToAtomContext(IndexExprContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.IndexExprContext super().__init__(parser) self.copyFrom(ctx) def atom(self): return self.getTypedRuleContext(MathExprParser.AtomContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterToAtom" ): listener.enterToAtom(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitToAtom" ): listener.exitToAtom(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToAtom" ): return visitor.visitToAtom(self) else: return visitor.visitChildren(self) def indexExpr(self, _p:int=0): _parentctx = self._ctx _parentState = self.state localctx = MathExprParser.IndexExprContext(self, self._ctx, _parentState) _prevctx = localctx _startState = 40 self.enterRecursionRule(localctx, 40, self.RULE_indexExpr, _p) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) localctx = MathExprParser.ToAtomContext(self, localctx) self._ctx = localctx _prevctx = localctx self.state = 272 self.atom() self._ctx.stop = self._input.LT(-1) self.state = 288 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,24,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx localctx = MathExprParser.IndexExpContext(self, MathExprParser.IndexExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_indexExpr) self.state = 274 if not self.precpred(self._ctx, 2): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") self.state = 275 self.match(MathExprParser.LBRACKET) self.state = 276 self.expr() self.state = 281 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 277 self.match(MathExprParser.COMMA) self.state = 278 self.expr() self.state = 283 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 284 self.match(MathExprParser.RBRACKET) self.state = 290 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,24,self._ctx) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.unrollRecursionContexts(_parentctx) return localctx class AtomContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_atom def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class Func5ExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def func5(self): return self.getTypedRuleContext(MathExprParser.Func5Context,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunc5Exp" ): listener.enterFunc5Exp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunc5Exp" ): listener.exitFunc5Exp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc5Exp" ): return visitor.visitFunc5Exp(self) else: return visitor.visitChildren(self) class Func4ExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def func4(self): return self.getTypedRuleContext(MathExprParser.Func4Context,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunc4Exp" ): listener.enterFunc4Exp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunc4Exp" ): listener.exitFunc4Exp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc4Exp" ): return visitor.visitFunc4Exp(self) else: return visitor.visitChildren(self) class Func2ExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def func2(self): return self.getTypedRuleContext(MathExprParser.Func2Context,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunc2Exp" ): listener.enterFunc2Exp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunc2Exp" ): listener.exitFunc2Exp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc2Exp" ): return visitor.visitFunc2Exp(self) else: return visitor.visitChildren(self) class Func3ExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def func3(self): return self.getTypedRuleContext(MathExprParser.Func3Context,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunc3Exp" ): listener.enterFunc3Exp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunc3Exp" ): listener.exitFunc3Exp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc3Exp" ): return visitor.visitFunc3Exp(self) else: return visitor.visitChildren(self) class StringExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def STRING(self): return self.getToken(MathExprParser.STRING, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterStringExp" ): listener.enterStringExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitStringExp" ): listener.exitStringExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStringExp" ): return visitor.visitStringExp(self) else: return visitor.visitChildren(self) class LambdaExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def paramList(self): return self.getTypedRuleContext(MathExprParser.ParamListContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def ARROW(self): return self.getToken(MathExprParser.ARROW, 0) def block(self): return self.getTypedRuleContext(MathExprParser.BlockContext,0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLambdaExp" ): listener.enterLambdaExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLambdaExp" ): listener.exitLambdaExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLambdaExp" ): return visitor.visitLambdaExp(self) else: return visitor.visitChildren(self) class ConstantExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def CONSTANT(self): return self.getToken(MathExprParser.CONSTANT, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterConstantExp" ): listener.enterConstantExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitConstantExp" ): listener.exitConstantExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitConstantExp" ): return visitor.visitConstantExp(self) else: return visitor.visitChildren(self) class NoneExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def NONE(self): return self.getToken(MathExprParser.NONE, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterNoneExp" ): listener.enterNoneExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitNoneExp" ): listener.exitNoneExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNoneExp" ): return visitor.visitNoneExp(self) else: return visitor.visitChildren(self) class BreakExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def BREAK(self): return self.getToken(MathExprParser.BREAK, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBreakExp" ): listener.enterBreakExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBreakExp" ): listener.exitBreakExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBreakExp" ): return visitor.visitBreakExp(self) else: return visitor.visitChildren(self) class FuncNExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def funcN(self): return self.getTypedRuleContext(MathExprParser.FuncNContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFuncNExp" ): listener.enterFuncNExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFuncNExp" ): listener.exitFuncNExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFuncNExp" ): return visitor.visitFuncNExp(self) else: return visitor.visitChildren(self) class AbsExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def PIPE(self, i:int=None): if i is None: return self.getTokens(MathExprParser.PIPE) else: return self.getToken(MathExprParser.PIPE, i) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAbsExp" ): listener.enterAbsExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAbsExp" ): listener.exitAbsExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAbsExp" ): return visitor.visitAbsExp(self) else: return visitor.visitChildren(self) class ListExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def LBRACKET(self): return self.getToken(MathExprParser.LBRACKET, 0) def expr(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.ExprContext) else: return self.getTypedRuleContext(MathExprParser.ExprContext,i) def RBRACKET(self): return self.getToken(MathExprParser.RBRACKET, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterListExp" ): listener.enterListExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitListExp" ): listener.exitListExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitListExp" ): return visitor.visitListExp(self) else: return visitor.visitChildren(self) class ContinueExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def CONTINUE(self): return self.getToken(MathExprParser.CONTINUE, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterContinueExp" ): listener.enterContinueExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitContinueExp" ): listener.exitContinueExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitContinueExp" ): return visitor.visitContinueExp(self) else: return visitor.visitChildren(self) class VariableExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def VARIABLE(self): return self.getToken(MathExprParser.VARIABLE, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterVariableExp" ): listener.enterVariableExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitVariableExp" ): listener.exitVariableExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitVariableExp" ): return visitor.visitVariableExp(self) else: return visitor.visitChildren(self) class CallExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def VARIABLE(self): return self.getToken(MathExprParser.VARIABLE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def exprList(self): return self.getTypedRuleContext(MathExprParser.ExprListContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCallExp" ): listener.enterCallExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCallExp" ): listener.exitCallExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCallExp" ): return visitor.visitCallExp(self) else: return visitor.visitChildren(self) class ParenExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterParenExp" ): listener.enterParenExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitParenExp" ): listener.exitParenExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitParenExp" ): return visitor.visitParenExp(self) else: return visitor.visitChildren(self) class FuncNoiseExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def funcNoise(self): return self.getTypedRuleContext(MathExprParser.FuncNoiseContext,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFuncNoiseExp" ): listener.enterFuncNoiseExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFuncNoiseExp" ): listener.exitFuncNoiseExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFuncNoiseExp" ): return visitor.visitFuncNoiseExp(self) else: return visitor.visitChildren(self) class Func1ExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def func1(self): return self.getTypedRuleContext(MathExprParser.Func1Context,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunc1Exp" ): listener.enterFunc1Exp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunc1Exp" ): listener.exitFunc1Exp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc1Exp" ): return visitor.visitFunc1Exp(self) else: return visitor.visitChildren(self) class Func0ExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def func0(self): return self.getTypedRuleContext(MathExprParser.Func0Context,0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFunc0Exp" ): listener.enterFunc0Exp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFunc0Exp" ): listener.exitFunc0Exp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc0Exp" ): return visitor.visitFunc0Exp(self) else: return visitor.visitChildren(self) class NumberExpContext(AtomContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.AtomContext super().__init__(parser) self.copyFrom(ctx) def NUMBER(self): return self.getToken(MathExprParser.NUMBER, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterNumberExp" ): listener.enterNumberExp(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitNumberExp" ): listener.exitNumberExp(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNumberExp" ): return visitor.visitNumberExp(self) else: return visitor.visitChildren(self) def atom(self): localctx = MathExprParser.AtomContext(self, self._ctx, self.state) self.enterRule(localctx, 42, self.RULE_atom) self._la = 0 # Token type try: self.state = 343 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,28,self._ctx) if la_ == 1: localctx = MathExprParser.Func0ExpContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 291 self.func0() pass elif la_ == 2: localctx = MathExprParser.Func1ExpContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 292 self.func1() pass elif la_ == 3: localctx = MathExprParser.Func2ExpContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 293 self.func2() pass elif la_ == 4: localctx = MathExprParser.Func3ExpContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 294 self.func3() pass elif la_ == 5: localctx = MathExprParser.Func4ExpContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 295 self.func4() pass elif la_ == 6: localctx = MathExprParser.Func5ExpContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 296 self.func5() pass elif la_ == 7: localctx = MathExprParser.FuncNExpContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 297 self.funcN() pass elif la_ == 8: localctx = MathExprParser.FuncNoiseExpContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 298 self.funcNoise() pass elif la_ == 9: localctx = MathExprParser.VariableExpContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 299 self.match(MathExprParser.VARIABLE) pass elif la_ == 10: localctx = MathExprParser.NumberExpContext(self, localctx) self.enterOuterAlt(localctx, 10) self.state = 300 self.match(MathExprParser.NUMBER) pass elif la_ == 11: localctx = MathExprParser.ConstantExpContext(self, localctx) self.enterOuterAlt(localctx, 11) self.state = 301 self.match(MathExprParser.CONSTANT) pass elif la_ == 12: localctx = MathExprParser.StringExpContext(self, localctx) self.enterOuterAlt(localctx, 12) self.state = 302 self.match(MathExprParser.STRING) pass elif la_ == 13: localctx = MathExprParser.LambdaExpContext(self, localctx) self.enterOuterAlt(localctx, 13) self.state = 303 self.match(MathExprParser.LPAREN) self.state = 304 self.paramList() self.state = 305 self.match(MathExprParser.RPAREN) self.state = 306 self.match(MathExprParser.ARROW) self.state = 309 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.LBRACE]: self.state = 307 self.block() pass elif token in [MathExprParser.SIN, MathExprParser.COS, MathExprParser.TAN, MathExprParser.ASIN, MathExprParser.ACOS, MathExprParser.ATAN, MathExprParser.ATAN2, MathExprParser.SINH, MathExprParser.COSH, MathExprParser.TANH, MathExprParser.ASINH, MathExprParser.ACOSH, MathExprParser.ATANH, MathExprParser.ABS, MathExprParser.SQRT, MathExprParser.LN, MathExprParser.LOG, MathExprParser.EXP, MathExprParser.SMIN, MathExprParser.SMAX, MathExprParser.TMIN, MathExprParser.TMAX, MathExprParser.TNORM, MathExprParser.SNORM, MathExprParser.FLOOR, MathExprParser.CEIL, MathExprParser.ROUND, MathExprParser.GAMMA, MathExprParser.POWE, MathExprParser.SIGM, MathExprParser.CLAMP, MathExprParser.SFFT, MathExprParser.SIFFT, MathExprParser.ANGL, MathExprParser.PRNT, MathExprParser.PRINT_SHAPE, MathExprParser.NVL, MathExprParser.LERP, MathExprParser.STEP, MathExprParser.SMOOTHSTEP, MathExprParser.FRACT, MathExprParser.RELU, MathExprParser.SOFTPLUS, MathExprParser.GELU, MathExprParser.SIGN, MathExprParser.MAP, MathExprParser.EZCONV, MathExprParser.CONV, MathExprParser.SWAP, MathExprParser.PERM, MathExprParser.RESHAPE, MathExprParser.RANGE, MathExprParser.LINSPACE, MathExprParser.LOGSPACE, MathExprParser.TOPK, MathExprParser.BOTK, MathExprParser.PINV, MathExprParser.SUM, MathExprParser.MEAN, MathExprParser.STD, MathExprParser.VAR, MathExprParser.QUARTILE, MathExprParser.PERCENTILE, MathExprParser.QUANTILE, MathExprParser.DOT, MathExprParser.MOMENT, MathExprParser.ERF, MathExprParser.ERFINV, MathExprParser.ANY, MathExprParser.ALL, MathExprParser.EDGE, MathExprParser.GAUSSIAN, MathExprParser.MEDIAN, MathExprParser.MODE, MathExprParser.CUMSUM, MathExprParser.CUMPROD, MathExprParser.TOPK_IND, MathExprParser.BOTK_IND, MathExprParser.CUBIC_EASE, MathExprParser.ELASTIC_EASE, MathExprParser.SINE_EASE, MathExprParser.SMOOTHERSTEP, MathExprParser.DIST, MathExprParser.REMAP, MathExprParser.COSSIM, MathExprParser.COUNT, MathExprParser.REPEAT, MathExprParser.FLATTEN, MathExprParser.APPEND, MathExprParser.GET_VALUE, MathExprParser.FLOW_APPLY, MathExprParser.BATCH_SHUFFLE, MathExprParser.MOTION_MASK, MathExprParser.FLOW_TO_IMAGE, MathExprParser.FLOW_MAG, MathExprParser.FLOW_ANG, MathExprParser.WHERE, MathExprParser.HISTOGRAM, MathExprParser.OVERLAY, MathExprParser.PAD, MathExprParser.CROSS, MathExprParser.MATMUL, MathExprParser.RIFE, MathExprParser.BNOT, MathExprParser.BITCOUNT, MathExprParser.SHAPE, MathExprParser.BAND, MathExprParser.XOR, MathExprParser.BOR, MathExprParser.TENSOR, MathExprParser.PUSH, MathExprParser.POP, MathExprParser.CLEAR, MathExprParser.HAS, MathExprParser.GET, MathExprParser.CONCAT, MathExprParser.INT, MathExprParser.FLOAT, MathExprParser.UPPER, MathExprParser.LOWER, MathExprParser.TRIM, MathExprParser.SPLIT, MathExprParser.JOIN, MathExprParser.SUBSTRING, MathExprParser.FIND, MathExprParser.REPLACE, MathExprParser.DILATE, MathExprParser.ERODE, MathExprParser.MORPH_OPEN, MathExprParser.MORPH_CLOSE, MathExprParser.RGB_TO_OKLAB, MathExprParser.RGB_TO_CIELAB, MathExprParser.OKLAB_TO_RGB, MathExprParser.CIELAB_TO_RGB, MathExprParser.RGB_TO_HSV, MathExprParser.HSV_TO_RGB, MathExprParser.INT_TO_RGB, MathExprParser.RGB_TO_INT, MathExprParser.INTERPOLATE_LINEAR, MathExprParser.INTERPOLATE_AREA, MathExprParser.INTERPOLATE_NEAREST, MathExprParser.TEXT_IMAGE, MathExprParser.AS_NESTED, MathExprParser.SVD, MathExprParser.DIAG, MathExprParser.BREAK, MathExprParser.CONTINUE, MathExprParser.TIMESTAMP, MathExprParser.SORT, MathExprParser.ARGSORT, MathExprParser.ARGMIN, MathExprParser.ARGMAX, MathExprParser.SOFTMAX, MathExprParser.SOFTMIN, MathExprParser.UNIQUE, MathExprParser.FLIP, MathExprParser.STARTSWITH, MathExprParser.ENDSWITH, MathExprParser.SQUEEZE, MathExprParser.UNSQUEEZE, MathExprParser.ROLL, MathExprParser.COV, MathExprParser.CORR, MathExprParser.ENTROPY, MathExprParser.CROP, MathExprParser.NONE, MathExprParser.COORDS, MathExprParser.NOISE, MathExprParser.RAND, MathExprParser.CAUCHY, MathExprParser.EXPONENTIAL, MathExprParser.LOGNORMAL, MathExprParser.BERNOULLI, MathExprParser.POISSON, MathExprParser.GAMMADIST, MathExprParser.BETADIST, MathExprParser.LAPLACEDIST, MathExprParser.GUMBELDIST, MathExprParser.WEIBULLDIST, MathExprParser.CHI2DIST, MathExprParser.STUDENTTDIST, MathExprParser.PERLIN, MathExprParser.CELLULAR, MathExprParser.PLASMA, MathExprParser.RIDGED, MathExprParser.DOMAIN_WARP, MathExprParser.PLUS, MathExprParser.MINUS, MathExprParser.PIPE, MathExprParser.LPAREN, MathExprParser.LBRACKET, MathExprParser.NUMBER, MathExprParser.CONSTANT, MathExprParser.STRING, MathExprParser.VARIABLE]: self.state = 308 self.expr() pass else: raise NoViableAltException(self) pass elif la_ == 14: localctx = MathExprParser.ParenExpContext(self, localctx) self.enterOuterAlt(localctx, 14) self.state = 311 self.match(MathExprParser.LPAREN) self.state = 312 self.expr() self.state = 313 self.match(MathExprParser.RPAREN) pass elif la_ == 15: localctx = MathExprParser.ParenExpContext(self, localctx) self.enterOuterAlt(localctx, 15) self.state = 315 self.match(MathExprParser.LPAREN) self.state = 316 self.expr() self.state = 317 self.match(MathExprParser.RPAREN) pass elif la_ == 16: localctx = MathExprParser.AbsExpContext(self, localctx) self.enterOuterAlt(localctx, 16) self.state = 319 self.match(MathExprParser.PIPE) self.state = 320 self.expr() self.state = 321 self.match(MathExprParser.PIPE) pass elif la_ == 17: localctx = MathExprParser.ListExpContext(self, localctx) self.enterOuterAlt(localctx, 17) self.state = 323 self.match(MathExprParser.LBRACKET) self.state = 324 self.expr() self.state = 329 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 325 self.match(MathExprParser.COMMA) self.state = 326 self.expr() self.state = 331 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 332 self.match(MathExprParser.RBRACKET) pass elif la_ == 18: localctx = MathExprParser.CallExpContext(self, localctx) self.enterOuterAlt(localctx, 18) self.state = 334 self.match(MathExprParser.VARIABLE) self.state = 335 self.match(MathExprParser.LPAREN) self.state = 337 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << MathExprParser.SIN) | (1 << MathExprParser.COS) | (1 << MathExprParser.TAN) | (1 << MathExprParser.ASIN) | (1 << MathExprParser.ACOS) | (1 << MathExprParser.ATAN) | (1 << MathExprParser.ATAN2) | (1 << MathExprParser.SINH) | (1 << MathExprParser.COSH) | (1 << MathExprParser.TANH) | (1 << MathExprParser.ASINH) | (1 << MathExprParser.ACOSH) | (1 << MathExprParser.ATANH) | (1 << MathExprParser.ABS) | (1 << MathExprParser.SQRT) | (1 << MathExprParser.LN) | (1 << MathExprParser.LOG) | (1 << MathExprParser.EXP) | (1 << MathExprParser.SMIN) | (1 << MathExprParser.SMAX) | (1 << MathExprParser.TMIN) | (1 << MathExprParser.TMAX) | (1 << MathExprParser.TNORM) | (1 << MathExprParser.SNORM) | (1 << MathExprParser.FLOOR) | (1 << MathExprParser.CEIL) | (1 << MathExprParser.ROUND) | (1 << MathExprParser.GAMMA) | (1 << MathExprParser.POWE) | (1 << MathExprParser.SIGM) | (1 << MathExprParser.CLAMP) | (1 << MathExprParser.SFFT) | (1 << MathExprParser.SIFFT) | (1 << MathExprParser.ANGL) | (1 << MathExprParser.PRNT) | (1 << MathExprParser.PRINT_SHAPE) | (1 << MathExprParser.NVL) | (1 << MathExprParser.LERP) | (1 << MathExprParser.STEP) | (1 << MathExprParser.SMOOTHSTEP) | (1 << MathExprParser.FRACT) | (1 << MathExprParser.RELU) | (1 << MathExprParser.SOFTPLUS) | (1 << MathExprParser.GELU) | (1 << MathExprParser.SIGN) | (1 << MathExprParser.MAP) | (1 << MathExprParser.EZCONV) | (1 << MathExprParser.CONV) | (1 << MathExprParser.SWAP) | (1 << MathExprParser.PERM) | (1 << MathExprParser.RESHAPE) | (1 << MathExprParser.RANGE) | (1 << MathExprParser.LINSPACE) | (1 << MathExprParser.LOGSPACE) | (1 << MathExprParser.TOPK) | (1 << MathExprParser.BOTK) | (1 << MathExprParser.PINV) | (1 << MathExprParser.SUM) | (1 << MathExprParser.MEAN) | (1 << MathExprParser.STD) | (1 << MathExprParser.VAR) | (1 << MathExprParser.QUARTILE) | (1 << MathExprParser.PERCENTILE))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (MathExprParser.QUANTILE - 64)) | (1 << (MathExprParser.DOT - 64)) | (1 << (MathExprParser.MOMENT - 64)) | (1 << (MathExprParser.ERF - 64)) | (1 << (MathExprParser.ERFINV - 64)) | (1 << (MathExprParser.ANY - 64)) | (1 << (MathExprParser.ALL - 64)) | (1 << (MathExprParser.EDGE - 64)) | (1 << (MathExprParser.GAUSSIAN - 64)) | (1 << (MathExprParser.MEDIAN - 64)) | (1 << (MathExprParser.MODE - 64)) | (1 << (MathExprParser.CUMSUM - 64)) | (1 << (MathExprParser.CUMPROD - 64)) | (1 << (MathExprParser.TOPK_IND - 64)) | (1 << (MathExprParser.BOTK_IND - 64)) | (1 << (MathExprParser.CUBIC_EASE - 64)) | (1 << (MathExprParser.ELASTIC_EASE - 64)) | (1 << (MathExprParser.SINE_EASE - 64)) | (1 << (MathExprParser.SMOOTHERSTEP - 64)) | (1 << (MathExprParser.DIST - 64)) | (1 << (MathExprParser.REMAP - 64)) | (1 << (MathExprParser.COSSIM - 64)) | (1 << (MathExprParser.COUNT - 64)) | (1 << (MathExprParser.REPEAT - 64)) | (1 << (MathExprParser.FLATTEN - 64)) | (1 << (MathExprParser.APPEND - 64)) | (1 << (MathExprParser.GET_VALUE - 64)) | (1 << (MathExprParser.FLOW_APPLY - 64)) | (1 << (MathExprParser.BATCH_SHUFFLE - 64)) | (1 << (MathExprParser.MOTION_MASK - 64)) | (1 << (MathExprParser.FLOW_TO_IMAGE - 64)) | (1 << (MathExprParser.FLOW_MAG - 64)) | (1 << (MathExprParser.FLOW_ANG - 64)) | (1 << (MathExprParser.WHERE - 64)) | (1 << (MathExprParser.HISTOGRAM - 64)) | (1 << (MathExprParser.OVERLAY - 64)) | (1 << (MathExprParser.PAD - 64)) | (1 << (MathExprParser.CROSS - 64)) | (1 << (MathExprParser.MATMUL - 64)) | (1 << (MathExprParser.RIFE - 64)) | (1 << (MathExprParser.BNOT - 64)) | (1 << (MathExprParser.BITCOUNT - 64)) | (1 << (MathExprParser.SHAPE - 64)) | (1 << (MathExprParser.BAND - 64)) | (1 << (MathExprParser.XOR - 64)) | (1 << (MathExprParser.BOR - 64)) | (1 << (MathExprParser.TENSOR - 64)) | (1 << (MathExprParser.PUSH - 64)) | (1 << (MathExprParser.POP - 64)) | (1 << (MathExprParser.CLEAR - 64)) | (1 << (MathExprParser.HAS - 64)) | (1 << (MathExprParser.GET - 64)) | (1 << (MathExprParser.CONCAT - 64)) | (1 << (MathExprParser.INT - 64)) | (1 << (MathExprParser.FLOAT - 64)) | (1 << (MathExprParser.UPPER - 64)) | (1 << (MathExprParser.LOWER - 64)) | (1 << (MathExprParser.TRIM - 64)) | (1 << (MathExprParser.SPLIT - 64)) | (1 << (MathExprParser.JOIN - 64)) | (1 << (MathExprParser.SUBSTRING - 64)) | (1 << (MathExprParser.FIND - 64)) | (1 << (MathExprParser.REPLACE - 64)) | (1 << (MathExprParser.DILATE - 64)))) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & ((1 << (MathExprParser.ERODE - 128)) | (1 << (MathExprParser.MORPH_OPEN - 128)) | (1 << (MathExprParser.MORPH_CLOSE - 128)) | (1 << (MathExprParser.RGB_TO_OKLAB - 128)) | (1 << (MathExprParser.RGB_TO_CIELAB - 128)) | (1 << (MathExprParser.OKLAB_TO_RGB - 128)) | (1 << (MathExprParser.CIELAB_TO_RGB - 128)) | (1 << (MathExprParser.RGB_TO_HSV - 128)) | (1 << (MathExprParser.HSV_TO_RGB - 128)) | (1 << (MathExprParser.INT_TO_RGB - 128)) | (1 << (MathExprParser.RGB_TO_INT - 128)) | (1 << (MathExprParser.INTERPOLATE_LINEAR - 128)) | (1 << (MathExprParser.INTERPOLATE_AREA - 128)) | (1 << (MathExprParser.INTERPOLATE_NEAREST - 128)) | (1 << (MathExprParser.TEXT_IMAGE - 128)) | (1 << (MathExprParser.AS_NESTED - 128)) | (1 << (MathExprParser.SVD - 128)) | (1 << (MathExprParser.DIAG - 128)) | (1 << (MathExprParser.BREAK - 128)) | (1 << (MathExprParser.CONTINUE - 128)) | (1 << (MathExprParser.TIMESTAMP - 128)) | (1 << (MathExprParser.SORT - 128)) | (1 << (MathExprParser.ARGSORT - 128)) | (1 << (MathExprParser.ARGMIN - 128)) | (1 << (MathExprParser.ARGMAX - 128)) | (1 << (MathExprParser.SOFTMAX - 128)) | (1 << (MathExprParser.SOFTMIN - 128)) | (1 << (MathExprParser.UNIQUE - 128)) | (1 << (MathExprParser.FLIP - 128)) | (1 << (MathExprParser.STARTSWITH - 128)) | (1 << (MathExprParser.ENDSWITH - 128)) | (1 << (MathExprParser.SQUEEZE - 128)) | (1 << (MathExprParser.UNSQUEEZE - 128)) | (1 << (MathExprParser.ROLL - 128)) | (1 << (MathExprParser.COV - 128)) | (1 << (MathExprParser.CORR - 128)) | (1 << (MathExprParser.ENTROPY - 128)) | (1 << (MathExprParser.CROP - 128)) | (1 << (MathExprParser.NONE - 128)) | (1 << (MathExprParser.COORDS - 128)) | (1 << (MathExprParser.NOISE - 128)) | (1 << (MathExprParser.RAND - 128)) | (1 << (MathExprParser.CAUCHY - 128)) | (1 << (MathExprParser.EXPONENTIAL - 128)) | (1 << (MathExprParser.LOGNORMAL - 128)) | (1 << (MathExprParser.BERNOULLI - 128)) | (1 << (MathExprParser.POISSON - 128)) | (1 << (MathExprParser.GAMMADIST - 128)) | (1 << (MathExprParser.BETADIST - 128)) | (1 << (MathExprParser.LAPLACEDIST - 128)) | (1 << (MathExprParser.GUMBELDIST - 128)) | (1 << (MathExprParser.WEIBULLDIST - 128)) | (1 << (MathExprParser.CHI2DIST - 128)) | (1 << (MathExprParser.STUDENTTDIST - 128)) | (1 << (MathExprParser.PERLIN - 128)) | (1 << (MathExprParser.CELLULAR - 128)) | (1 << (MathExprParser.PLASMA - 128)) | (1 << (MathExprParser.RIDGED - 128)))) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & ((1 << (MathExprParser.DOMAIN_WARP - 192)) | (1 << (MathExprParser.PLUS - 192)) | (1 << (MathExprParser.MINUS - 192)) | (1 << (MathExprParser.PIPE - 192)) | (1 << (MathExprParser.LPAREN - 192)) | (1 << (MathExprParser.LBRACKET - 192)) | (1 << (MathExprParser.NUMBER - 192)) | (1 << (MathExprParser.CONSTANT - 192)) | (1 << (MathExprParser.STRING - 192)) | (1 << (MathExprParser.VARIABLE - 192)))) != 0): self.state = 336 self.exprList() self.state = 339 self.match(MathExprParser.RPAREN) pass elif la_ == 19: localctx = MathExprParser.NoneExpContext(self, localctx) self.enterOuterAlt(localctx, 19) self.state = 340 self.match(MathExprParser.NONE) pass elif la_ == 20: localctx = MathExprParser.BreakExpContext(self, localctx) self.enterOuterAlt(localctx, 20) self.state = 341 self.match(MathExprParser.BREAK) pass elif la_ == 21: localctx = MathExprParser.ContinueExpContext(self, localctx) self.enterOuterAlt(localctx, 21) self.state = 342 self.match(MathExprParser.CONTINUE) pass except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class ExprListContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def getRuleIndex(self): return MathExprParser.RULE_exprList def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterExprList" ): listener.enterExprList(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitExprList" ): listener.exitExprList(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExprList" ): return visitor.visitExprList(self) else: return visitor.visitChildren(self) def exprList(self): localctx = MathExprParser.ExprListContext(self, self._ctx, self.state) self.enterRule(localctx, 44, self.RULE_exprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) self.state = 345 self.expr() self.state = 350 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 346 self.match(MathExprParser.COMMA) self.state = 347 self.expr() self.state = 352 self._errHandler.sync(self) _la = self._input.LA(1) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class Func0Context(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_func0 def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class TimestampFuncContext(Func0Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func0Context super().__init__(parser) self.copyFrom(ctx) def TIMESTAMP(self): return self.getToken(MathExprParser.TIMESTAMP, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTimestampFunc" ): listener.enterTimestampFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTimestampFunc" ): listener.exitTimestampFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTimestampFunc" ): return visitor.visitTimestampFunc(self) else: return visitor.visitChildren(self) def func0(self): localctx = MathExprParser.Func0Context(self, self._ctx, self.state) self.enterRule(localctx, 46, self.RULE_func0) try: localctx = MathExprParser.TimestampFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 353 self.match(MathExprParser.TIMESTAMP) self.state = 354 self.match(MathExprParser.LPAREN) self.state = 355 self.match(MathExprParser.RPAREN) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class Func1Context(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_func1 def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class SoftplusFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SOFTPLUS(self): return self.getToken(MathExprParser.SOFTPLUS, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSoftplusFunc" ): listener.enterSoftplusFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSoftplusFunc" ): listener.exitSoftplusFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSoftplusFunc" ): return visitor.visitSoftplusFunc(self) else: return visitor.visitChildren(self) class SoftminFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SOFTMIN(self): return self.getToken(MathExprParser.SOFTMIN, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSoftminFunc" ): listener.enterSoftminFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSoftminFunc" ): listener.exitSoftminFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSoftminFunc" ): return visitor.visitSoftminFunc(self) else: return visitor.visitChildren(self) class AcoshFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ACOSH(self): return self.getToken(MathExprParser.ACOSH, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAcoshFunc" ): listener.enterAcoshFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAcoshFunc" ): listener.exitAcoshFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAcoshFunc" ): return visitor.visitAcoshFunc(self) else: return visitor.visitChildren(self) class SvdFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SVD(self): return self.getToken(MathExprParser.SVD, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSvdFunc" ): listener.enterSvdFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSvdFunc" ): listener.exitSvdFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSvdFunc" ): return visitor.visitSvdFunc(self) else: return visitor.visitChildren(self) class SqrtFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SQRT(self): return self.getToken(MathExprParser.SQRT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSqrtFunc" ): listener.enterSqrtFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSqrtFunc" ): listener.exitSqrtFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSqrtFunc" ): return visitor.visitSqrtFunc(self) else: return visitor.visitChildren(self) class FloorFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FLOOR(self): return self.getToken(MathExprParser.FLOOR, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFloorFunc" ): listener.enterFloorFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFloorFunc" ): listener.exitFloorFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFloorFunc" ): return visitor.visitFloorFunc(self) else: return visitor.visitChildren(self) class MeanFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def MEAN(self): return self.getToken(MathExprParser.MEAN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMeanFunc" ): listener.enterMeanFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMeanFunc" ): listener.exitMeanFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMeanFunc" ): return visitor.visitMeanFunc(self) else: return visitor.visitChildren(self) class CeilFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def CEIL(self): return self.getToken(MathExprParser.CEIL, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCeilFunc" ): listener.enterCeilFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCeilFunc" ): listener.exitCeilFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCeilFunc" ): return visitor.visitCeilFunc(self) else: return visitor.visitChildren(self) class MotionMaskFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def MOTION_MASK(self): return self.getToken(MathExprParser.MOTION_MASK, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMotionMaskFunc" ): listener.enterMotionMaskFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMotionMaskFunc" ): listener.exitMotionMaskFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMotionMaskFunc" ): return visitor.visitMotionMaskFunc(self) else: return visitor.visitChildren(self) class EntropyFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ENTROPY(self): return self.getToken(MathExprParser.ENTROPY, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterEntropyFunc" ): listener.enterEntropyFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitEntropyFunc" ): listener.exitEntropyFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEntropyFunc" ): return visitor.visitEntropyFunc(self) else: return visitor.visitChildren(self) class AbsFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ABS(self): return self.getToken(MathExprParser.ABS, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAbsFunc" ): listener.enterAbsFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAbsFunc" ): listener.exitAbsFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAbsFunc" ): return visitor.visitAbsFunc(self) else: return visitor.visitChildren(self) class AtanFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ATAN(self): return self.getToken(MathExprParser.ATAN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAtanFunc" ): listener.enterAtanFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAtanFunc" ): listener.exitAtanFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAtanFunc" ): return visitor.visitAtanFunc(self) else: return visitor.visitChildren(self) class TrimFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def TRIM(self): return self.getToken(MathExprParser.TRIM, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTrimFunc" ): listener.enterTrimFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTrimFunc" ): listener.exitTrimFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTrimFunc" ): return visitor.visitTrimFunc(self) else: return visitor.visitChildren(self) class SinhFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SINH(self): return self.getToken(MathExprParser.SINH, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSinhFunc" ): listener.enterSinhFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSinhFunc" ): listener.exitSinhFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSinhFunc" ): return visitor.visitSinhFunc(self) else: return visitor.visitChildren(self) class SigmoidFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SIGM(self): return self.getToken(MathExprParser.SIGM, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSigmoidFunc" ): listener.enterSigmoidFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSigmoidFunc" ): listener.exitSigmoidFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSigmoidFunc" ): return visitor.visitSigmoidFunc(self) else: return visitor.visitChildren(self) class BitNotFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def BNOT(self): return self.getToken(MathExprParser.BNOT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBitNotFunc" ): listener.enterBitNotFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBitNotFunc" ): listener.exitBitNotFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBitNotFunc" ): return visitor.visitBitNotFunc(self) else: return visitor.visitChildren(self) class LogFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def LOG(self): return self.getToken(MathExprParser.LOG, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLogFunc" ): listener.enterLogFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLogFunc" ): listener.exitLogFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLogFunc" ): return visitor.visitLogFunc(self) else: return visitor.visitChildren(self) class TNormFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def TNORM(self): return self.getToken(MathExprParser.TNORM, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTNormFunc" ): listener.enterTNormFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTNormFunc" ): listener.exitTNormFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTNormFunc" ): return visitor.visitTNormFunc(self) else: return visitor.visitChildren(self) class SinFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SIN(self): return self.getToken(MathExprParser.SIN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSinFunc" ): listener.enterSinFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSinFunc" ): listener.exitSinFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSinFunc" ): return visitor.visitSinFunc(self) else: return visitor.visitChildren(self) class FlattenFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FLATTEN(self): return self.getToken(MathExprParser.FLATTEN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFlattenFunc" ): listener.enterFlattenFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFlattenFunc" ): listener.exitFlattenFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFlattenFunc" ): return visitor.visitFlattenFunc(self) else: return visitor.visitChildren(self) class AcosFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ACOS(self): return self.getToken(MathExprParser.ACOS, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAcosFunc" ): listener.enterAcosFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAcosFunc" ): listener.exitAcosFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAcosFunc" ): return visitor.visitAcosFunc(self) else: return visitor.visitChildren(self) class CoshFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def COSH(self): return self.getToken(MathExprParser.COSH, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCoshFunc" ): listener.enterCoshFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCoshFunc" ): listener.exitCoshFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCoshFunc" ): return visitor.visitCoshFunc(self) else: return visitor.visitChildren(self) class AnglFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ANGL(self): return self.getToken(MathExprParser.ANGL, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAnglFunc" ): listener.enterAnglFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAnglFunc" ): listener.exitAnglFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAnglFunc" ): return visitor.visitAnglFunc(self) else: return visitor.visitChildren(self) class CumsumFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def CUMSUM(self): return self.getToken(MathExprParser.CUMSUM, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCumsumFunc" ): listener.enterCumsumFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCumsumFunc" ): listener.exitCumsumFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCumsumFunc" ): return visitor.visitCumsumFunc(self) else: return visitor.visitChildren(self) class GetFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def GET(self): return self.getToken(MathExprParser.GET, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGetFunc" ): listener.enterGetFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGetFunc" ): listener.exitGetFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGetFunc" ): return visitor.visitGetFunc(self) else: return visitor.visitChildren(self) class SignFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SIGN(self): return self.getToken(MathExprParser.SIGN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSignFunc" ): listener.enterSignFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSignFunc" ): listener.exitSignFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSignFunc" ): return visitor.visitSignFunc(self) else: return visitor.visitChildren(self) class TanFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def TAN(self): return self.getToken(MathExprParser.TAN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTanFunc" ): listener.enterTanFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTanFunc" ): listener.exitTanFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTanFunc" ): return visitor.visitTanFunc(self) else: return visitor.visitChildren(self) class PinvFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def PINV(self): return self.getToken(MathExprParser.PINV, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPinvFunc" ): listener.enterPinvFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPinvFunc" ): listener.exitPinvFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPinvFunc" ): return visitor.visitPinvFunc(self) else: return visitor.visitChildren(self) class FractFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FRACT(self): return self.getToken(MathExprParser.FRACT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFractFunc" ): listener.enterFractFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFractFunc" ): listener.exitFractFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFractFunc" ): return visitor.visitFractFunc(self) else: return visitor.visitChildren(self) class GammaFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def GAMMA(self): return self.getToken(MathExprParser.GAMMA, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGammaFunc" ): listener.enterGammaFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGammaFunc" ): listener.exitGammaFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGammaFunc" ): return visitor.visitGammaFunc(self) else: return visitor.visitChildren(self) class SoftmaxFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SOFTMAX(self): return self.getToken(MathExprParser.SOFTMAX, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSoftmaxFunc" ): listener.enterSoftmaxFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSoftmaxFunc" ): listener.exitSoftmaxFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSoftmaxFunc" ): return visitor.visitSoftmaxFunc(self) else: return visitor.visitChildren(self) class SfftFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SFFT(self): return self.getToken(MathExprParser.SFFT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSfftFunc" ): listener.enterSfftFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSfftFunc" ): listener.exitSfftFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSfftFunc" ): return visitor.visitSfftFunc(self) else: return visitor.visitChildren(self) class VarFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def VAR(self): return self.getToken(MathExprParser.VAR, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterVarFunc" ): listener.enterVarFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitVarFunc" ): listener.exitVarFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitVarFunc" ): return visitor.visitVarFunc(self) else: return visitor.visitChildren(self) class AsinFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ASIN(self): return self.getToken(MathExprParser.ASIN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAsinFunc" ): listener.enterAsinFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAsinFunc" ): listener.exitAsinFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAsinFunc" ): return visitor.visitAsinFunc(self) else: return visitor.visitChildren(self) class CountFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def COUNT(self): return self.getToken(MathExprParser.COUNT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCountFunc" ): listener.enterCountFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCountFunc" ): listener.exitCountFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCountFunc" ): return visitor.visitCountFunc(self) else: return visitor.visitChildren(self) class AsinhFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ASINH(self): return self.getToken(MathExprParser.ASINH, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAsinhFunc" ): listener.enterAsinhFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAsinhFunc" ): listener.exitAsinhFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAsinhFunc" ): return visitor.visitAsinhFunc(self) else: return visitor.visitChildren(self) class FloatFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FLOAT(self): return self.getToken(MathExprParser.FLOAT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFloatFunc" ): listener.enterFloatFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFloatFunc" ): listener.exitFloatFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFloatFunc" ): return visitor.visitFloatFunc(self) else: return visitor.visitChildren(self) class AllFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ALL(self): return self.getToken(MathExprParser.ALL, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAllFunc" ): listener.enterAllFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAllFunc" ): listener.exitAllFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAllFunc" ): return visitor.visitAllFunc(self) else: return visitor.visitChildren(self) class AtanhFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ATANH(self): return self.getToken(MathExprParser.ATANH, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAtanhFunc" ): listener.enterAtanhFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAtanhFunc" ): listener.exitAtanhFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAtanhFunc" ): return visitor.visitAtanhFunc(self) else: return visitor.visitChildren(self) class ClearFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def CLEAR(self): return self.getToken(MathExprParser.CLEAR, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterClearFunc" ): listener.enterClearFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitClearFunc" ): listener.exitClearFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitClearFunc" ): return visitor.visitClearFunc(self) else: return visitor.visitChildren(self) class ErfinvFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ERFINV(self): return self.getToken(MathExprParser.ERFINV, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterErfinvFunc" ): listener.enterErfinvFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitErfinvFunc" ): listener.exitErfinvFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitErfinvFunc" ): return visitor.visitErfinvFunc(self) else: return visitor.visitChildren(self) class FlowToImageFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FLOW_TO_IMAGE(self): return self.getToken(MathExprParser.FLOW_TO_IMAGE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFlowToImageFunc" ): listener.enterFlowToImageFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFlowToImageFunc" ): listener.exitFlowToImageFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFlowToImageFunc" ): return visitor.visitFlowToImageFunc(self) else: return visitor.visitChildren(self) class PopFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def POP(self): return self.getToken(MathExprParser.POP, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPopFunc" ): listener.enterPopFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPopFunc" ): listener.exitPopFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPopFunc" ): return visitor.visitPopFunc(self) else: return visitor.visitChildren(self) class MedianFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def MEDIAN(self): return self.getToken(MathExprParser.MEDIAN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMedianFunc" ): listener.enterMedianFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMedianFunc" ): listener.exitMedianFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMedianFunc" ): return visitor.visitMedianFunc(self) else: return visitor.visitChildren(self) class PrintShapeFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def PRINT_SHAPE(self): return self.getToken(MathExprParser.PRINT_SHAPE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPrintShapeFunc" ): listener.enterPrintShapeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPrintShapeFunc" ): listener.exitPrintShapeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPrintShapeFunc" ): return visitor.visitPrintShapeFunc(self) else: return visitor.visitChildren(self) class SortFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SORT(self): return self.getToken(MathExprParser.SORT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSortFunc" ): listener.enterSortFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSortFunc" ): listener.exitSortFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSortFunc" ): return visitor.visitSortFunc(self) else: return visitor.visitChildren(self) class MorphOpenFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def MORPH_OPEN(self): return self.getToken(MathExprParser.MORPH_OPEN, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMorphOpenFunc" ): listener.enterMorphOpenFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMorphOpenFunc" ): listener.exitMorphOpenFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMorphOpenFunc" ): return visitor.visitMorphOpenFunc(self) else: return visitor.visitChildren(self) class FlowAngFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FLOW_ANG(self): return self.getToken(MathExprParser.FLOW_ANG, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFlowAngFunc" ): listener.enterFlowAngFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFlowAngFunc" ): listener.exitFlowAngFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFlowAngFunc" ): return visitor.visitFlowAngFunc(self) else: return visitor.visitChildren(self) class TanhFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def TANH(self): return self.getToken(MathExprParser.TANH, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTanhFunc" ): listener.enterTanhFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTanhFunc" ): listener.exitTanhFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTanhFunc" ): return visitor.visitTanhFunc(self) else: return visitor.visitChildren(self) class AnyFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ANY(self): return self.getToken(MathExprParser.ANY, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAnyFunc" ): listener.enterAnyFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAnyFunc" ): listener.exitAnyFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAnyFunc" ): return visitor.visitAnyFunc(self) else: return visitor.visitChildren(self) class ModeFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def MODE(self): return self.getToken(MathExprParser.MODE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterModeFunc" ): listener.enterModeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitModeFunc" ): listener.exitModeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitModeFunc" ): return visitor.visitModeFunc(self) else: return visitor.visitChildren(self) class ErodeFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ERODE(self): return self.getToken(MathExprParser.ERODE, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterErodeFunc" ): listener.enterErodeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitErodeFunc" ): listener.exitErodeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitErodeFunc" ): return visitor.visitErodeFunc(self) else: return visitor.visitChildren(self) class ErfFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ERF(self): return self.getToken(MathExprParser.ERF, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterErfFunc" ): listener.enterErfFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitErfFunc" ): listener.exitErfFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitErfFunc" ): return visitor.visitErfFunc(self) else: return visitor.visitChildren(self) class UniqueFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def UNIQUE(self): return self.getToken(MathExprParser.UNIQUE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterUniqueFunc" ): listener.enterUniqueFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitUniqueFunc" ): listener.exitUniqueFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUniqueFunc" ): return visitor.visitUniqueFunc(self) else: return visitor.visitChildren(self) class RoundFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ROUND(self): return self.getToken(MathExprParser.ROUND, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRoundFunc" ): listener.enterRoundFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRoundFunc" ): listener.exitRoundFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRoundFunc" ): return visitor.visitRoundFunc(self) else: return visitor.visitChildren(self) class GeluFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def GELU(self): return self.getToken(MathExprParser.GELU, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGeluFunc" ): listener.enterGeluFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGeluFunc" ): listener.exitGeluFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGeluFunc" ): return visitor.visitGeluFunc(self) else: return visitor.visitChildren(self) class PrintFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def PRNT(self): return self.getToken(MathExprParser.PRNT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPrintFunc" ): listener.enterPrintFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPrintFunc" ): listener.exitPrintFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPrintFunc" ): return visitor.visitPrintFunc(self) else: return visitor.visitChildren(self) class ArgmaxFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ARGMAX(self): return self.getToken(MathExprParser.ARGMAX, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterArgmaxFunc" ): listener.enterArgmaxFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitArgmaxFunc" ): listener.exitArgmaxFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitArgmaxFunc" ): return visitor.visitArgmaxFunc(self) else: return visitor.visitChildren(self) class UpperFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def UPPER(self): return self.getToken(MathExprParser.UPPER, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterUpperFunc" ): listener.enterUpperFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitUpperFunc" ): listener.exitUpperFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUpperFunc" ): return visitor.visitUpperFunc(self) else: return visitor.visitChildren(self) class ReluFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def RELU(self): return self.getToken(MathExprParser.RELU, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterReluFunc" ): listener.enterReluFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitReluFunc" ): listener.exitReluFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReluFunc" ): return visitor.visitReluFunc(self) else: return visitor.visitChildren(self) class ShapeFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SHAPE(self): return self.getToken(MathExprParser.SHAPE, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterShapeFunc" ): listener.enterShapeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitShapeFunc" ): listener.exitShapeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitShapeFunc" ): return visitor.visitShapeFunc(self) else: return visitor.visitChildren(self) class IntFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def INT(self): return self.getToken(MathExprParser.INT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterIntFunc" ): listener.enterIntFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitIntFunc" ): listener.exitIntFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitIntFunc" ): return visitor.visitIntFunc(self) else: return visitor.visitChildren(self) class EdgeFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def EDGE(self): return self.getToken(MathExprParser.EDGE, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterEdgeFunc" ): listener.enterEdgeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitEdgeFunc" ): listener.exitEdgeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEdgeFunc" ): return visitor.visitEdgeFunc(self) else: return visitor.visitChildren(self) class LnFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def LN(self): return self.getToken(MathExprParser.LN, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLnFunc" ): listener.enterLnFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLnFunc" ): listener.exitLnFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLnFunc" ): return visitor.visitLnFunc(self) else: return visitor.visitChildren(self) class BitCountFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def BITCOUNT(self): return self.getToken(MathExprParser.BITCOUNT, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBitCountFunc" ): listener.enterBitCountFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBitCountFunc" ): listener.exitBitCountFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBitCountFunc" ): return visitor.visitBitCountFunc(self) else: return visitor.visitChildren(self) class ArgminFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ARGMIN(self): return self.getToken(MathExprParser.ARGMIN, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterArgminFunc" ): listener.enterArgminFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitArgminFunc" ): listener.exitArgminFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitArgminFunc" ): return visitor.visitArgminFunc(self) else: return visitor.visitChildren(self) class StdFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def STD(self): return self.getToken(MathExprParser.STD, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterStdFunc" ): listener.enterStdFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitStdFunc" ): listener.exitStdFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStdFunc" ): return visitor.visitStdFunc(self) else: return visitor.visitChildren(self) class DilateFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def DILATE(self): return self.getToken(MathExprParser.DILATE, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterDilateFunc" ): listener.enterDilateFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitDilateFunc" ): listener.exitDilateFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDilateFunc" ): return visitor.visitDilateFunc(self) else: return visitor.visitChildren(self) class AsNestedFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def AS_NESTED(self): return self.getToken(MathExprParser.AS_NESTED, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAsNestedFunc" ): listener.enterAsNestedFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAsNestedFunc" ): listener.exitAsNestedFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAsNestedFunc" ): return visitor.visitAsNestedFunc(self) else: return visitor.visitChildren(self) class SumFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def SUM(self): return self.getToken(MathExprParser.SUM, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSumFunc" ): listener.enterSumFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSumFunc" ): listener.exitSumFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSumFunc" ): return visitor.visitSumFunc(self) else: return visitor.visitChildren(self) class HasFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def HAS(self): return self.getToken(MathExprParser.HAS, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterHasFunc" ): listener.enterHasFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitHasFunc" ): listener.exitHasFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitHasFunc" ): return visitor.visitHasFunc(self) else: return visitor.visitChildren(self) class FlowMagFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def FLOW_MAG(self): return self.getToken(MathExprParser.FLOW_MAG, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFlowMagFunc" ): listener.enterFlowMagFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFlowMagFunc" ): listener.exitFlowMagFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFlowMagFunc" ): return visitor.visitFlowMagFunc(self) else: return visitor.visitChildren(self) class CosFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def COS(self): return self.getToken(MathExprParser.COS, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCosFunc" ): listener.enterCosFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCosFunc" ): listener.exitCosFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCosFunc" ): return visitor.visitCosFunc(self) else: return visitor.visitChildren(self) class ArgsortFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def ARGSORT(self): return self.getToken(MathExprParser.ARGSORT, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterArgsortFunc" ): listener.enterArgsortFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitArgsortFunc" ): listener.exitArgsortFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitArgsortFunc" ): return visitor.visitArgsortFunc(self) else: return visitor.visitChildren(self) class CumprodFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def CUMPROD(self): return self.getToken(MathExprParser.CUMPROD, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCumprodFunc" ): listener.enterCumprodFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCumprodFunc" ): listener.exitCumprodFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCumprodFunc" ): return visitor.visitCumprodFunc(self) else: return visitor.visitChildren(self) class RepeatFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def REPEAT(self): return self.getToken(MathExprParser.REPEAT, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRepeatFunc" ): listener.enterRepeatFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRepeatFunc" ): listener.exitRepeatFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRepeatFunc" ): return visitor.visitRepeatFunc(self) else: return visitor.visitChildren(self) class MorphCloseFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def MORPH_CLOSE(self): return self.getToken(MathExprParser.MORPH_CLOSE, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMorphCloseFunc" ): listener.enterMorphCloseFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMorphCloseFunc" ): listener.exitMorphCloseFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMorphCloseFunc" ): return visitor.visitMorphCloseFunc(self) else: return visitor.visitChildren(self) class ExpFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def EXP(self): return self.getToken(MathExprParser.EXP, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterExpFunc" ): listener.enterExpFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitExpFunc" ): listener.exitExpFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExpFunc" ): return visitor.visitExpFunc(self) else: return visitor.visitChildren(self) class LowerFuncContext(Func1Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func1Context super().__init__(parser) self.copyFrom(ctx) def LOWER(self): return self.getToken(MathExprParser.LOWER, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLowerFunc" ): listener.enterLowerFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLowerFunc" ): listener.exitLowerFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLowerFunc" ): return visitor.visitLowerFunc(self) else: return visitor.visitChildren(self) def func1(self): localctx = MathExprParser.Func1Context(self, self._ctx, self.state) self.enterRule(localctx, 48, self.RULE_func1) self._la = 0 # Token type try: self.state = 810 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.SIN]: localctx = MathExprParser.SinFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 357 self.match(MathExprParser.SIN) self.state = 358 self.match(MathExprParser.LPAREN) self.state = 359 self.expr() self.state = 360 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.COS]: localctx = MathExprParser.CosFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 362 self.match(MathExprParser.COS) self.state = 363 self.match(MathExprParser.LPAREN) self.state = 364 self.expr() self.state = 365 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TAN]: localctx = MathExprParser.TanFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 367 self.match(MathExprParser.TAN) self.state = 368 self.match(MathExprParser.LPAREN) self.state = 369 self.expr() self.state = 370 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ASIN]: localctx = MathExprParser.AsinFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 372 self.match(MathExprParser.ASIN) self.state = 373 self.match(MathExprParser.LPAREN) self.state = 374 self.expr() self.state = 375 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ACOS]: localctx = MathExprParser.AcosFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 377 self.match(MathExprParser.ACOS) self.state = 378 self.match(MathExprParser.LPAREN) self.state = 379 self.expr() self.state = 380 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ATAN]: localctx = MathExprParser.AtanFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 382 self.match(MathExprParser.ATAN) self.state = 383 self.match(MathExprParser.LPAREN) self.state = 384 self.expr() self.state = 385 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SINH]: localctx = MathExprParser.SinhFuncContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 387 self.match(MathExprParser.SINH) self.state = 388 self.match(MathExprParser.LPAREN) self.state = 389 self.expr() self.state = 390 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.COSH]: localctx = MathExprParser.CoshFuncContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 392 self.match(MathExprParser.COSH) self.state = 393 self.match(MathExprParser.LPAREN) self.state = 394 self.expr() self.state = 395 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TANH]: localctx = MathExprParser.TanhFuncContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 397 self.match(MathExprParser.TANH) self.state = 398 self.match(MathExprParser.LPAREN) self.state = 399 self.expr() self.state = 400 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ASINH]: localctx = MathExprParser.AsinhFuncContext(self, localctx) self.enterOuterAlt(localctx, 10) self.state = 402 self.match(MathExprParser.ASINH) self.state = 403 self.match(MathExprParser.LPAREN) self.state = 404 self.expr() self.state = 405 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ACOSH]: localctx = MathExprParser.AcoshFuncContext(self, localctx) self.enterOuterAlt(localctx, 11) self.state = 407 self.match(MathExprParser.ACOSH) self.state = 408 self.match(MathExprParser.LPAREN) self.state = 409 self.expr() self.state = 410 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ATANH]: localctx = MathExprParser.AtanhFuncContext(self, localctx) self.enterOuterAlt(localctx, 12) self.state = 412 self.match(MathExprParser.ATANH) self.state = 413 self.match(MathExprParser.LPAREN) self.state = 414 self.expr() self.state = 415 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ABS]: localctx = MathExprParser.AbsFuncContext(self, localctx) self.enterOuterAlt(localctx, 13) self.state = 417 self.match(MathExprParser.ABS) self.state = 418 self.match(MathExprParser.LPAREN) self.state = 419 self.expr() self.state = 420 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SQRT]: localctx = MathExprParser.SqrtFuncContext(self, localctx) self.enterOuterAlt(localctx, 14) self.state = 422 self.match(MathExprParser.SQRT) self.state = 423 self.match(MathExprParser.LPAREN) self.state = 424 self.expr() self.state = 425 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LN]: localctx = MathExprParser.LnFuncContext(self, localctx) self.enterOuterAlt(localctx, 15) self.state = 427 self.match(MathExprParser.LN) self.state = 428 self.match(MathExprParser.LPAREN) self.state = 429 self.expr() self.state = 430 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LOG]: localctx = MathExprParser.LogFuncContext(self, localctx) self.enterOuterAlt(localctx, 16) self.state = 432 self.match(MathExprParser.LOG) self.state = 433 self.match(MathExprParser.LPAREN) self.state = 434 self.expr() self.state = 435 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.EXP]: localctx = MathExprParser.ExpFuncContext(self, localctx) self.enterOuterAlt(localctx, 17) self.state = 437 self.match(MathExprParser.EXP) self.state = 438 self.match(MathExprParser.LPAREN) self.state = 439 self.expr() self.state = 440 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TNORM]: localctx = MathExprParser.TNormFuncContext(self, localctx) self.enterOuterAlt(localctx, 18) self.state = 442 self.match(MathExprParser.TNORM) self.state = 443 self.match(MathExprParser.LPAREN) self.state = 444 self.expr() self.state = 445 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLOOR]: localctx = MathExprParser.FloorFuncContext(self, localctx) self.enterOuterAlt(localctx, 19) self.state = 447 self.match(MathExprParser.FLOOR) self.state = 448 self.match(MathExprParser.LPAREN) self.state = 449 self.expr() self.state = 450 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CEIL]: localctx = MathExprParser.CeilFuncContext(self, localctx) self.enterOuterAlt(localctx, 20) self.state = 452 self.match(MathExprParser.CEIL) self.state = 453 self.match(MathExprParser.LPAREN) self.state = 454 self.expr() self.state = 455 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ROUND]: localctx = MathExprParser.RoundFuncContext(self, localctx) self.enterOuterAlt(localctx, 21) self.state = 457 self.match(MathExprParser.ROUND) self.state = 458 self.match(MathExprParser.LPAREN) self.state = 459 self.expr() self.state = 460 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GAMMA]: localctx = MathExprParser.GammaFuncContext(self, localctx) self.enterOuterAlt(localctx, 22) self.state = 462 self.match(MathExprParser.GAMMA) self.state = 463 self.match(MathExprParser.LPAREN) self.state = 464 self.expr() self.state = 465 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SIGM]: localctx = MathExprParser.SigmoidFuncContext(self, localctx) self.enterOuterAlt(localctx, 23) self.state = 467 self.match(MathExprParser.SIGM) self.state = 468 self.match(MathExprParser.LPAREN) self.state = 469 self.expr() self.state = 470 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ANGL]: localctx = MathExprParser.AnglFuncContext(self, localctx) self.enterOuterAlt(localctx, 24) self.state = 472 self.match(MathExprParser.ANGL) self.state = 473 self.match(MathExprParser.LPAREN) self.state = 474 self.expr() self.state = 475 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PRNT]: localctx = MathExprParser.PrintFuncContext(self, localctx) self.enterOuterAlt(localctx, 25) self.state = 477 self.match(MathExprParser.PRNT) self.state = 478 self.match(MathExprParser.LPAREN) self.state = 479 self.expr() self.state = 480 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FRACT]: localctx = MathExprParser.FractFuncContext(self, localctx) self.enterOuterAlt(localctx, 26) self.state = 482 self.match(MathExprParser.FRACT) self.state = 483 self.match(MathExprParser.LPAREN) self.state = 484 self.expr() self.state = 485 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RELU]: localctx = MathExprParser.ReluFuncContext(self, localctx) self.enterOuterAlt(localctx, 27) self.state = 487 self.match(MathExprParser.RELU) self.state = 488 self.match(MathExprParser.LPAREN) self.state = 489 self.expr() self.state = 490 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SOFTPLUS]: localctx = MathExprParser.SoftplusFuncContext(self, localctx) self.enterOuterAlt(localctx, 28) self.state = 492 self.match(MathExprParser.SOFTPLUS) self.state = 493 self.match(MathExprParser.LPAREN) self.state = 494 self.expr() self.state = 495 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GELU]: localctx = MathExprParser.GeluFuncContext(self, localctx) self.enterOuterAlt(localctx, 29) self.state = 497 self.match(MathExprParser.GELU) self.state = 498 self.match(MathExprParser.LPAREN) self.state = 499 self.expr() self.state = 500 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SIGN]: localctx = MathExprParser.SignFuncContext(self, localctx) self.enterOuterAlt(localctx, 30) self.state = 502 self.match(MathExprParser.SIGN) self.state = 503 self.match(MathExprParser.LPAREN) self.state = 504 self.expr() self.state = 505 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PRINT_SHAPE]: localctx = MathExprParser.PrintShapeFuncContext(self, localctx) self.enterOuterAlt(localctx, 31) self.state = 507 self.match(MathExprParser.PRINT_SHAPE) self.state = 508 self.match(MathExprParser.LPAREN) self.state = 509 self.expr() self.state = 510 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PINV]: localctx = MathExprParser.PinvFuncContext(self, localctx) self.enterOuterAlt(localctx, 32) self.state = 512 self.match(MathExprParser.PINV) self.state = 513 self.match(MathExprParser.LPAREN) self.state = 514 self.expr() self.state = 515 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SUM]: localctx = MathExprParser.SumFuncContext(self, localctx) self.enterOuterAlt(localctx, 33) self.state = 517 self.match(MathExprParser.SUM) self.state = 518 self.match(MathExprParser.LPAREN) self.state = 519 self.expr() self.state = 522 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 520 self.match(MathExprParser.COMMA) self.state = 521 self.expr() self.state = 524 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MEAN]: localctx = MathExprParser.MeanFuncContext(self, localctx) self.enterOuterAlt(localctx, 34) self.state = 526 self.match(MathExprParser.MEAN) self.state = 527 self.match(MathExprParser.LPAREN) self.state = 528 self.expr() self.state = 529 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.STD]: localctx = MathExprParser.StdFuncContext(self, localctx) self.enterOuterAlt(localctx, 35) self.state = 531 self.match(MathExprParser.STD) self.state = 532 self.match(MathExprParser.LPAREN) self.state = 533 self.expr() self.state = 534 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.VAR]: localctx = MathExprParser.VarFuncContext(self, localctx) self.enterOuterAlt(localctx, 36) self.state = 536 self.match(MathExprParser.VAR) self.state = 537 self.match(MathExprParser.LPAREN) self.state = 538 self.expr() self.state = 539 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SORT]: localctx = MathExprParser.SortFuncContext(self, localctx) self.enterOuterAlt(localctx, 37) self.state = 541 self.match(MathExprParser.SORT) self.state = 542 self.match(MathExprParser.LPAREN) self.state = 543 self.expr() self.state = 544 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ANY]: localctx = MathExprParser.AnyFuncContext(self, localctx) self.enterOuterAlt(localctx, 38) self.state = 546 self.match(MathExprParser.ANY) self.state = 547 self.match(MathExprParser.LPAREN) self.state = 548 self.expr() self.state = 549 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ALL]: localctx = MathExprParser.AllFuncContext(self, localctx) self.enterOuterAlt(localctx, 39) self.state = 551 self.match(MathExprParser.ALL) self.state = 552 self.match(MathExprParser.LPAREN) self.state = 553 self.expr() self.state = 554 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.EDGE]: localctx = MathExprParser.EdgeFuncContext(self, localctx) self.enterOuterAlt(localctx, 40) self.state = 556 self.match(MathExprParser.EDGE) self.state = 557 self.match(MathExprParser.LPAREN) self.state = 558 self.expr() self.state = 561 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 559 self.match(MathExprParser.COMMA) self.state = 560 self.expr() self.state = 563 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MEDIAN]: localctx = MathExprParser.MedianFuncContext(self, localctx) self.enterOuterAlt(localctx, 41) self.state = 565 self.match(MathExprParser.MEDIAN) self.state = 566 self.match(MathExprParser.LPAREN) self.state = 567 self.expr() self.state = 568 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MODE]: localctx = MathExprParser.ModeFuncContext(self, localctx) self.enterOuterAlt(localctx, 42) self.state = 570 self.match(MathExprParser.MODE) self.state = 571 self.match(MathExprParser.LPAREN) self.state = 572 self.expr() self.state = 573 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CUMSUM]: localctx = MathExprParser.CumsumFuncContext(self, localctx) self.enterOuterAlt(localctx, 43) self.state = 575 self.match(MathExprParser.CUMSUM) self.state = 576 self.match(MathExprParser.LPAREN) self.state = 577 self.expr() self.state = 580 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 578 self.match(MathExprParser.COMMA) self.state = 579 self.expr() self.state = 582 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.COUNT]: localctx = MathExprParser.CountFuncContext(self, localctx) self.enterOuterAlt(localctx, 44) self.state = 584 self.match(MathExprParser.COUNT) self.state = 585 self.match(MathExprParser.LPAREN) self.state = 586 self.expr() self.state = 587 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.REPEAT]: localctx = MathExprParser.RepeatFuncContext(self, localctx) self.enterOuterAlt(localctx, 45) self.state = 589 self.match(MathExprParser.REPEAT) self.state = 590 self.match(MathExprParser.LPAREN) self.state = 591 self.expr() self.state = 592 self.match(MathExprParser.COMMA) self.state = 593 self.expr() self.state = 596 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 594 self.match(MathExprParser.COMMA) self.state = 595 self.expr() self.state = 598 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CUMPROD]: localctx = MathExprParser.CumprodFuncContext(self, localctx) self.enterOuterAlt(localctx, 46) self.state = 600 self.match(MathExprParser.CUMPROD) self.state = 601 self.match(MathExprParser.LPAREN) self.state = 602 self.expr() self.state = 603 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.POP]: localctx = MathExprParser.PopFuncContext(self, localctx) self.enterOuterAlt(localctx, 47) self.state = 605 self.match(MathExprParser.POP) self.state = 606 self.match(MathExprParser.LPAREN) self.state = 607 self.expr() self.state = 608 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CLEAR]: localctx = MathExprParser.ClearFuncContext(self, localctx) self.enterOuterAlt(localctx, 48) self.state = 610 self.match(MathExprParser.CLEAR) self.state = 611 self.match(MathExprParser.LPAREN) self.state = 612 self.expr() self.state = 613 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.HAS]: localctx = MathExprParser.HasFuncContext(self, localctx) self.enterOuterAlt(localctx, 49) self.state = 615 self.match(MathExprParser.HAS) self.state = 616 self.match(MathExprParser.LPAREN) self.state = 617 self.expr() self.state = 618 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GET]: localctx = MathExprParser.GetFuncContext(self, localctx) self.enterOuterAlt(localctx, 50) self.state = 620 self.match(MathExprParser.GET) self.state = 621 self.match(MathExprParser.LPAREN) self.state = 622 self.expr() self.state = 623 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ARGSORT]: localctx = MathExprParser.ArgsortFuncContext(self, localctx) self.enterOuterAlt(localctx, 51) self.state = 625 self.match(MathExprParser.ARGSORT) self.state = 626 self.match(MathExprParser.LPAREN) self.state = 627 self.expr() self.state = 634 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 628 self.match(MathExprParser.COMMA) self.state = 629 self.expr() self.state = 632 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 630 self.match(MathExprParser.COMMA) self.state = 631 self.expr() self.state = 636 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ARGMIN]: localctx = MathExprParser.ArgminFuncContext(self, localctx) self.enterOuterAlt(localctx, 52) self.state = 638 self.match(MathExprParser.ARGMIN) self.state = 639 self.match(MathExprParser.LPAREN) self.state = 640 self.expr() self.state = 643 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 641 self.match(MathExprParser.COMMA) self.state = 642 self.expr() self.state = 645 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ARGMAX]: localctx = MathExprParser.ArgmaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 53) self.state = 647 self.match(MathExprParser.ARGMAX) self.state = 648 self.match(MathExprParser.LPAREN) self.state = 649 self.expr() self.state = 652 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 650 self.match(MathExprParser.COMMA) self.state = 651 self.expr() self.state = 654 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SOFTMAX]: localctx = MathExprParser.SoftmaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 54) self.state = 656 self.match(MathExprParser.SOFTMAX) self.state = 657 self.match(MathExprParser.LPAREN) self.state = 658 self.expr() self.state = 661 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 659 self.match(MathExprParser.COMMA) self.state = 660 self.expr() self.state = 663 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SOFTMIN]: localctx = MathExprParser.SoftminFuncContext(self, localctx) self.enterOuterAlt(localctx, 55) self.state = 665 self.match(MathExprParser.SOFTMIN) self.state = 666 self.match(MathExprParser.LPAREN) self.state = 667 self.expr() self.state = 670 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 668 self.match(MathExprParser.COMMA) self.state = 669 self.expr() self.state = 672 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ERF]: localctx = MathExprParser.ErfFuncContext(self, localctx) self.enterOuterAlt(localctx, 56) self.state = 674 self.match(MathExprParser.ERF) self.state = 675 self.match(MathExprParser.LPAREN) self.state = 676 self.expr() self.state = 677 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ERFINV]: localctx = MathExprParser.ErfinvFuncContext(self, localctx) self.enterOuterAlt(localctx, 57) self.state = 679 self.match(MathExprParser.ERFINV) self.state = 680 self.match(MathExprParser.LPAREN) self.state = 681 self.expr() self.state = 682 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.UNIQUE]: localctx = MathExprParser.UniqueFuncContext(self, localctx) self.enterOuterAlt(localctx, 58) self.state = 684 self.match(MathExprParser.UNIQUE) self.state = 685 self.match(MathExprParser.LPAREN) self.state = 686 self.expr() self.state = 687 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLATTEN]: localctx = MathExprParser.FlattenFuncContext(self, localctx) self.enterOuterAlt(localctx, 59) self.state = 689 self.match(MathExprParser.FLATTEN) self.state = 690 self.match(MathExprParser.LPAREN) self.state = 691 self.expr() self.state = 692 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MOTION_MASK]: localctx = MathExprParser.MotionMaskFuncContext(self, localctx) self.enterOuterAlt(localctx, 60) self.state = 694 self.match(MathExprParser.MOTION_MASK) self.state = 695 self.match(MathExprParser.LPAREN) self.state = 696 self.expr() self.state = 697 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLOW_TO_IMAGE]: localctx = MathExprParser.FlowToImageFuncContext(self, localctx) self.enterOuterAlt(localctx, 61) self.state = 699 self.match(MathExprParser.FLOW_TO_IMAGE) self.state = 700 self.match(MathExprParser.LPAREN) self.state = 701 self.expr() self.state = 702 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BNOT]: localctx = MathExprParser.BitNotFuncContext(self, localctx) self.enterOuterAlt(localctx, 62) self.state = 704 self.match(MathExprParser.BNOT) self.state = 705 self.match(MathExprParser.LPAREN) self.state = 706 self.expr() self.state = 707 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BITCOUNT]: localctx = MathExprParser.BitCountFuncContext(self, localctx) self.enterOuterAlt(localctx, 63) self.state = 709 self.match(MathExprParser.BITCOUNT) self.state = 710 self.match(MathExprParser.LPAREN) self.state = 711 self.expr() self.state = 712 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SHAPE]: localctx = MathExprParser.ShapeFuncContext(self, localctx) self.enterOuterAlt(localctx, 64) self.state = 714 self.match(MathExprParser.SHAPE) self.state = 715 self.match(MathExprParser.LPAREN) self.state = 716 self.expr() self.state = 717 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.UPPER]: localctx = MathExprParser.UpperFuncContext(self, localctx) self.enterOuterAlt(localctx, 65) self.state = 719 self.match(MathExprParser.UPPER) self.state = 720 self.match(MathExprParser.LPAREN) self.state = 721 self.expr() self.state = 722 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LOWER]: localctx = MathExprParser.LowerFuncContext(self, localctx) self.enterOuterAlt(localctx, 66) self.state = 724 self.match(MathExprParser.LOWER) self.state = 725 self.match(MathExprParser.LPAREN) self.state = 726 self.expr() self.state = 727 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TRIM]: localctx = MathExprParser.TrimFuncContext(self, localctx) self.enterOuterAlt(localctx, 67) self.state = 729 self.match(MathExprParser.TRIM) self.state = 730 self.match(MathExprParser.LPAREN) self.state = 731 self.expr() self.state = 732 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ENTROPY]: localctx = MathExprParser.EntropyFuncContext(self, localctx) self.enterOuterAlt(localctx, 68) self.state = 734 self.match(MathExprParser.ENTROPY) self.state = 735 self.match(MathExprParser.LPAREN) self.state = 736 self.expr() self.state = 737 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SFFT]: localctx = MathExprParser.SfftFuncContext(self, localctx) self.enterOuterAlt(localctx, 69) self.state = 739 self.match(MathExprParser.SFFT) self.state = 740 self.match(MathExprParser.LPAREN) self.state = 741 self.expr() self.state = 742 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.DILATE]: localctx = MathExprParser.DilateFuncContext(self, localctx) self.enterOuterAlt(localctx, 70) self.state = 744 self.match(MathExprParser.DILATE) self.state = 745 self.match(MathExprParser.LPAREN) self.state = 746 self.expr() self.state = 749 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 747 self.match(MathExprParser.COMMA) self.state = 748 self.expr() self.state = 751 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ERODE]: localctx = MathExprParser.ErodeFuncContext(self, localctx) self.enterOuterAlt(localctx, 71) self.state = 753 self.match(MathExprParser.ERODE) self.state = 754 self.match(MathExprParser.LPAREN) self.state = 755 self.expr() self.state = 758 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 756 self.match(MathExprParser.COMMA) self.state = 757 self.expr() self.state = 760 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MORPH_OPEN]: localctx = MathExprParser.MorphOpenFuncContext(self, localctx) self.enterOuterAlt(localctx, 72) self.state = 762 self.match(MathExprParser.MORPH_OPEN) self.state = 763 self.match(MathExprParser.LPAREN) self.state = 764 self.expr() self.state = 767 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 765 self.match(MathExprParser.COMMA) self.state = 766 self.expr() self.state = 769 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MORPH_CLOSE]: localctx = MathExprParser.MorphCloseFuncContext(self, localctx) self.enterOuterAlt(localctx, 73) self.state = 771 self.match(MathExprParser.MORPH_CLOSE) self.state = 772 self.match(MathExprParser.LPAREN) self.state = 773 self.expr() self.state = 776 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 774 self.match(MathExprParser.COMMA) self.state = 775 self.expr() self.state = 778 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.INT]: localctx = MathExprParser.IntFuncContext(self, localctx) self.enterOuterAlt(localctx, 74) self.state = 780 self.match(MathExprParser.INT) self.state = 781 self.match(MathExprParser.LPAREN) self.state = 782 self.expr() self.state = 783 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLOAT]: localctx = MathExprParser.FloatFuncContext(self, localctx) self.enterOuterAlt(localctx, 75) self.state = 785 self.match(MathExprParser.FLOAT) self.state = 786 self.match(MathExprParser.LPAREN) self.state = 787 self.expr() self.state = 788 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLOW_MAG]: localctx = MathExprParser.FlowMagFuncContext(self, localctx) self.enterOuterAlt(localctx, 76) self.state = 790 self.match(MathExprParser.FLOW_MAG) self.state = 791 self.match(MathExprParser.LPAREN) self.state = 792 self.expr() self.state = 793 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLOW_ANG]: localctx = MathExprParser.FlowAngFuncContext(self, localctx) self.enterOuterAlt(localctx, 77) self.state = 795 self.match(MathExprParser.FLOW_ANG) self.state = 796 self.match(MathExprParser.LPAREN) self.state = 797 self.expr() self.state = 798 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.AS_NESTED]: localctx = MathExprParser.AsNestedFuncContext(self, localctx) self.enterOuterAlt(localctx, 78) self.state = 800 self.match(MathExprParser.AS_NESTED) self.state = 801 self.match(MathExprParser.LPAREN) self.state = 802 self.expr() self.state = 803 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SVD]: localctx = MathExprParser.SvdFuncContext(self, localctx) self.enterOuterAlt(localctx, 79) self.state = 805 self.match(MathExprParser.SVD) self.state = 806 self.match(MathExprParser.LPAREN) self.state = 807 self.expr() self.state = 808 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class Func2Context(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_func2 def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class StartswithFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def STARTSWITH(self): return self.getToken(MathExprParser.STARTSWITH, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterStartswithFunc" ): listener.enterStartswithFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitStartswithFunc" ): listener.exitStartswithFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStartswithFunc" ): return visitor.visitStartswithFunc(self) else: return visitor.visitChildren(self) class CorrFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def CORR(self): return self.getToken(MathExprParser.CORR, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCorrFunc" ): listener.enterCorrFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCorrFunc" ): listener.exitCorrFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCorrFunc" ): return visitor.visitCorrFunc(self) else: return visitor.visitChildren(self) class CovFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def COV(self): return self.getToken(MathExprParser.COV, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCovFunc" ): listener.enterCovFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCovFunc" ): listener.exitCovFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCovFunc" ): return visitor.visitCovFunc(self) else: return visitor.visitChildren(self) class PadFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def PAD(self): return self.getToken(MathExprParser.PAD, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPadFunc" ): listener.enterPadFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPadFunc" ): listener.exitPadFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPadFunc" ): return visitor.visitPadFunc(self) else: return visitor.visitChildren(self) class InterpolateAreaFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def INTERPOLATE_AREA(self): return self.getToken(MathExprParser.INTERPOLATE_AREA, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterInterpolateAreaFunc" ): listener.enterInterpolateAreaFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitInterpolateAreaFunc" ): listener.exitInterpolateAreaFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitInterpolateAreaFunc" ): return visitor.visitInterpolateAreaFunc(self) else: return visitor.visitChildren(self) class BotkFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def BOTK(self): return self.getToken(MathExprParser.BOTK, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBotkFunc" ): listener.enterBotkFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBotkFunc" ): listener.exitBotkFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBotkFunc" ): return visitor.visitBotkFunc(self) else: return visitor.visitChildren(self) class BotkIndFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def BOTK_IND(self): return self.getToken(MathExprParser.BOTK_IND, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBotkIndFunc" ): listener.enterBotkIndFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBotkIndFunc" ): listener.exitBotkIndFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBotkIndFunc" ): return visitor.visitBotkIndFunc(self) else: return visitor.visitChildren(self) class PowFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def POWE(self): return self.getToken(MathExprParser.POWE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPowFunc" ): listener.enterPowFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPowFunc" ): listener.exitPowFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPowFunc" ): return visitor.visitPowFunc(self) else: return visitor.visitChildren(self) class DotFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def DOT(self): return self.getToken(MathExprParser.DOT, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterDotFunc" ): listener.enterDotFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitDotFunc" ): listener.exitDotFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDotFunc" ): return visitor.visitDotFunc(self) else: 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAppendFunc" ): listener.enterAppendFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAppendFunc" ): listener.exitAppendFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAppendFunc" ): return visitor.visitAppendFunc(self) else: return visitor.visitChildren(self) class SNormFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def SNORM(self): return self.getToken(MathExprParser.SNORM, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSNormFunc" ): listener.enterSNormFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSNormFunc" ): listener.exitSNormFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSNormFunc" ): return visitor.visitSNormFunc(self) else: return visitor.visitChildren(self) class FlipFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def FLIP(self): return self.getToken(MathExprParser.FLIP, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFlipFunc" ): listener.enterFlipFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFlipFunc" ): listener.exitFlipFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFlipFunc" ): return visitor.visitFlipFunc(self) else: return visitor.visitChildren(self) class BitAndFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def BAND(self): return self.getToken(MathExprParser.BAND, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBitAndFunc" ): listener.enterBitAndFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBitAndFunc" ): listener.exitBitAndFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBitAndFunc" ): return visitor.visitBitAndFunc(self) else: return visitor.visitChildren(self) class SplitFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def SPLIT(self): return self.getToken(MathExprParser.SPLIT, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSplitFunc" ): listener.enterSplitFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSplitFunc" ): listener.exitSplitFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSplitFunc" ): return visitor.visitSplitFunc(self) else: return visitor.visitChildren(self) class PermuteFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def PERM(self): return self.getToken(MathExprParser.PERM, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPermuteFunc" ): listener.enterPermuteFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPermuteFunc" ): listener.exitPermuteFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPermuteFunc" ): return visitor.visitPermuteFunc(self) else: return visitor.visitChildren(self) class BitOrFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def BOR(self): return self.getToken(MathExprParser.BOR, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBitOrFunc" ): listener.enterBitOrFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBitOrFunc" ): listener.exitBitOrFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBitOrFunc" ): return visitor.visitBitOrFunc(self) else: return visitor.visitChildren(self) class InterpolateLinearFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def INTERPOLATE_LINEAR(self): return self.getToken(MathExprParser.INTERPOLATE_LINEAR, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterInterpolateLinearFunc" ): listener.enterInterpolateLinearFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitInterpolateLinearFunc" ): listener.exitInterpolateLinearFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitInterpolateLinearFunc" ): return visitor.visitInterpolateLinearFunc(self) else: return visitor.visitChildren(self) class EmptyTensorFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def TENSOR(self): return self.getToken(MathExprParser.TENSOR, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def indexExpr(self): return self.getTypedRuleContext(MathExprParser.IndexExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def expr(self, i:int=None): if i is None: return self.getTypedRuleContexts(MathExprParser.ExprContext) else: return self.getTypedRuleContext(MathExprParser.ExprContext,i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterEmptyTensorFunc" ): listener.enterEmptyTensorFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitEmptyTensorFunc" ): listener.exitEmptyTensorFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEmptyTensorFunc" ): return visitor.visitEmptyTensorFunc(self) else: return visitor.visitChildren(self) class TopkFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def TOPK(self): return self.getToken(MathExprParser.TOPK, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTopkFunc" ): listener.enterTopkFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTopkFunc" ): listener.exitTopkFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTopkFunc" ): return visitor.visitTopkFunc(self) else: return visitor.visitChildren(self) class PercentileFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def PERCENTILE(self): return self.getToken(MathExprParser.PERCENTILE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPercentileFunc" ): listener.enterPercentileFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPercentileFunc" ): listener.exitPercentileFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPercentileFunc" ): return visitor.visitPercentileFunc(self) else: return visitor.visitChildren(self) class TopkIndFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def TOPK_IND(self): return self.getToken(MathExprParser.TOPK_IND, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTopkIndFunc" ): listener.enterTopkIndFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTopkIndFunc" ): listener.exitTopkIndFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTopkIndFunc" ): return visitor.visitTopkIndFunc(self) else: return visitor.visitChildren(self) class FlowApplyFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def FLOW_APPLY(self): return self.getToken(MathExprParser.FLOW_APPLY, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFlowApplyFunc" ): listener.enterFlowApplyFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFlowApplyFunc" ): listener.exitFlowApplyFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFlowApplyFunc" ): return visitor.visitFlowApplyFunc(self) else: return visitor.visitChildren(self) class BatchShuffleFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def BATCH_SHUFFLE(self): return self.getToken(MathExprParser.BATCH_SHUFFLE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBatchShuffleFunc" ): listener.enterBatchShuffleFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBatchShuffleFunc" ): listener.exitBatchShuffleFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBatchShuffleFunc" ): return visitor.visitBatchShuffleFunc(self) else: return visitor.visitChildren(self) class FindFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def FIND(self): return self.getToken(MathExprParser.FIND, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterFindFunc" ): listener.enterFindFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitFindFunc" ): listener.exitFindFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFindFunc" ): return visitor.visitFindFunc(self) else: return visitor.visitChildren(self) class Int_to_rgbFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def INT_TO_RGB(self): return self.getToken(MathExprParser.INT_TO_RGB, 0) def LPAREN(self): return self.getToken(MathExprParser.LPAREN, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterInt_to_rgbFunc" ): listener.enterInt_to_rgbFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitInt_to_rgbFunc" ): listener.exitInt_to_rgbFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitInt_to_rgbFunc" ): return visitor.visitInt_to_rgbFunc(self) else: return visitor.visitChildren(self) class MatmulFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def MATMUL(self): return self.getToken(MathExprParser.MATMUL, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMatmulFunc" ): listener.enterMatmulFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMatmulFunc" ): listener.exitMatmulFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMatmulFunc" ): return visitor.visitMatmulFunc(self) else: return visitor.visitChildren(self) class StepFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def STEP(self): return self.getToken(MathExprParser.STEP, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterStepFunc" ): listener.enterStepFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitStepFunc" ): listener.exitStepFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStepFunc" ): return visitor.visitStepFunc(self) else: return visitor.visitChildren(self) class JoinFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def JOIN(self): return self.getToken(MathExprParser.JOIN, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterJoinFunc" ): listener.enterJoinFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitJoinFunc" ): listener.exitJoinFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitJoinFunc" ): return visitor.visitJoinFunc(self) else: return visitor.visitChildren(self) class Atan2FuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def ATAN2(self): return self.getToken(MathExprParser.ATAN2, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterAtan2Func" ): listener.enterAtan2Func(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitAtan2Func" ): listener.exitAtan2Func(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAtan2Func" ): return visitor.visitAtan2Func(self) else: return visitor.visitChildren(self) class QuantileFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def QUANTILE(self): return self.getToken(MathExprParser.QUANTILE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterQuantileFunc" ): listener.enterQuantileFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitQuantileFunc" ): listener.exitQuantileFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitQuantileFunc" ): return visitor.visitQuantileFunc(self) else: return visitor.visitChildren(self) class InterpolateNearestExactFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def INTERPOLATE_NEAREST(self): return self.getToken(MathExprParser.INTERPOLATE_NEAREST, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterInterpolateNearestExactFunc" ): listener.enterInterpolateNearestExactFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitInterpolateNearestExactFunc" ): listener.exitInterpolateNearestExactFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitInterpolateNearestExactFunc" ): return visitor.visitInterpolateNearestExactFunc(self) else: return visitor.visitChildren(self) class BitXorFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def XOR(self): return self.getToken(MathExprParser.XOR, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBitXorFunc" ): listener.enterBitXorFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBitXorFunc" ): listener.exitBitXorFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBitXorFunc" ): return visitor.visitBitXorFunc(self) else: return visitor.visitChildren(self) class Rgb_to_intFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def RGB_TO_INT(self): return self.getToken(MathExprParser.RGB_TO_INT, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRgb_to_intFunc" ): listener.enterRgb_to_intFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRgb_to_intFunc" ): listener.exitRgb_to_intFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRgb_to_intFunc" ): return visitor.visitRgb_to_intFunc(self) else: return visitor.visitChildren(self) class TMaxFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def TMAX(self): return self.getToken(MathExprParser.TMAX, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTMaxFunc" ): listener.enterTMaxFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTMaxFunc" ): listener.exitTMaxFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTMaxFunc" ): return visitor.visitTMaxFunc(self) else: return visitor.visitChildren(self) class PushFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def PUSH(self): return self.getToken(MathExprParser.PUSH, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPushFunc" ): listener.enterPushFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPushFunc" ): listener.exitPushFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPushFunc" ): return visitor.visitPushFunc(self) else: return visitor.visitChildren(self) class GetValueFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def GET_VALUE(self): return self.getToken(MathExprParser.GET_VALUE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGetValueFunc" ): listener.enterGetValueFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGetValueFunc" ): listener.exitGetValueFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGetValueFunc" ): return visitor.visitGetValueFunc(self) else: return visitor.visitChildren(self) class CossimFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def COSSIM(self): return self.getToken(MathExprParser.COSSIM, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCossimFunc" ): listener.enterCossimFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCossimFunc" ): listener.exitCossimFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCossimFunc" ): return visitor.visitCossimFunc(self) else: return visitor.visitChildren(self) class CrossFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def CROSS(self): return self.getToken(MathExprParser.CROSS, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCrossFunc" ): listener.enterCrossFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCrossFunc" ): listener.exitCrossFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCrossFunc" ): return visitor.visitCrossFunc(self) else: return visitor.visitChildren(self) class RifeFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def RIFE(self): return self.getToken(MathExprParser.RIFE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRifeFunc" ): listener.enterRifeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRifeFunc" ): listener.exitRifeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRifeFunc" ): return visitor.visitRifeFunc(self) else: return visitor.visitChildren(self) class EndswithFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def ENDSWITH(self): return self.getToken(MathExprParser.ENDSWITH, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterEndswithFunc" ): listener.enterEndswithFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitEndswithFunc" ): listener.exitEndswithFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEndswithFunc" ): return visitor.visitEndswithFunc(self) else: return visitor.visitChildren(self) class GaussianFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def GAUSSIAN(self): return self.getToken(MathExprParser.GAUSSIAN, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGaussianFunc" ): listener.enterGaussianFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGaussianFunc" ): listener.exitGaussianFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGaussianFunc" ): return visitor.visitGaussianFunc(self) else: return visitor.visitChildren(self) class SubstringFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def SUBSTRING(self): return self.getToken(MathExprParser.SUBSTRING, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSubstringFunc" ): listener.enterSubstringFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSubstringFunc" ): listener.exitSubstringFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSubstringFunc" ): return visitor.visitSubstringFunc(self) else: return visitor.visitChildren(self) class QuartileFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def QUARTILE(self): return self.getToken(MathExprParser.QUARTILE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterQuartileFunc" ): listener.enterQuartileFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitQuartileFunc" ): listener.exitQuartileFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitQuartileFunc" ): return visitor.visitQuartileFunc(self) else: return visitor.visitChildren(self) class TMinFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def TMIN(self): return self.getToken(MathExprParser.TMIN, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTMinFunc" ): listener.enterTMinFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTMinFunc" ): listener.exitTMinFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTMinFunc" ): return visitor.visitTMinFunc(self) else: return visitor.visitChildren(self) class ReplaceFuncContext(Func2Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func2Context super().__init__(parser) self.copyFrom(ctx) def REPLACE(self): return self.getToken(MathExprParser.REPLACE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterReplaceFunc" ): listener.enterReplaceFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitReplaceFunc" ): listener.exitReplaceFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReplaceFunc" ): return visitor.visitReplaceFunc(self) else: return visitor.visitChildren(self) def func2(self): localctx = MathExprParser.Func2Context(self, self._ctx, self.state) self.enterRule(localctx, 50, self.RULE_func2) self._la = 0 # Token type try: self.state = 1164 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.POWE]: localctx = MathExprParser.PowFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 812 self.match(MathExprParser.POWE) self.state = 813 self.match(MathExprParser.LPAREN) self.state = 814 self.expr() self.state = 815 self.match(MathExprParser.COMMA) self.state = 816 self.expr() self.state = 817 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ATAN2]: localctx = MathExprParser.Atan2FuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 819 self.match(MathExprParser.ATAN2) self.state = 820 self.match(MathExprParser.LPAREN) self.state = 821 self.expr() self.state = 822 self.match(MathExprParser.COMMA) self.state = 823 self.expr() self.state = 824 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TMIN]: localctx = MathExprParser.TMinFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 826 self.match(MathExprParser.TMIN) self.state = 827 self.match(MathExprParser.LPAREN) self.state = 828 self.expr() self.state = 829 self.match(MathExprParser.COMMA) self.state = 830 self.expr() self.state = 831 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TMAX]: localctx = MathExprParser.TMaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 833 self.match(MathExprParser.TMAX) self.state = 834 self.match(MathExprParser.LPAREN) self.state = 835 self.expr() self.state = 836 self.match(MathExprParser.COMMA) self.state = 837 self.expr() self.state = 838 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SNORM]: localctx = MathExprParser.SNormFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 840 self.match(MathExprParser.SNORM) self.state = 841 self.match(MathExprParser.LPAREN) self.state = 842 self.expr() self.state = 845 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 843 self.match(MathExprParser.COMMA) self.state = 844 self.expr() self.state = 847 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.STEP]: localctx = MathExprParser.StepFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 849 self.match(MathExprParser.STEP) self.state = 850 self.match(MathExprParser.LPAREN) self.state = 851 self.expr() self.state = 852 self.match(MathExprParser.COMMA) self.state = 853 self.expr() self.state = 854 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TOPK]: localctx = MathExprParser.TopkFuncContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 856 self.match(MathExprParser.TOPK) self.state = 857 self.match(MathExprParser.LPAREN) self.state = 858 self.expr() self.state = 859 self.match(MathExprParser.COMMA) self.state = 860 self.expr() self.state = 861 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BOTK]: localctx = MathExprParser.BotkFuncContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 863 self.match(MathExprParser.BOTK) self.state = 864 self.match(MathExprParser.LPAREN) self.state = 865 self.expr() self.state = 866 self.match(MathExprParser.COMMA) self.state = 867 self.expr() self.state = 868 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.QUARTILE]: localctx = MathExprParser.QuartileFuncContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 870 self.match(MathExprParser.QUARTILE) self.state = 871 self.match(MathExprParser.LPAREN) self.state = 872 self.expr() self.state = 873 self.match(MathExprParser.COMMA) self.state = 874 self.expr() self.state = 875 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PERCENTILE]: localctx = MathExprParser.PercentileFuncContext(self, localctx) self.enterOuterAlt(localctx, 10) self.state = 877 self.match(MathExprParser.PERCENTILE) self.state = 878 self.match(MathExprParser.LPAREN) self.state = 879 self.expr() self.state = 880 self.match(MathExprParser.COMMA) self.state = 881 self.expr() self.state = 882 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.QUANTILE]: localctx = MathExprParser.QuantileFuncContext(self, localctx) self.enterOuterAlt(localctx, 11) self.state = 884 self.match(MathExprParser.QUANTILE) self.state = 885 self.match(MathExprParser.LPAREN) self.state = 886 self.expr() self.state = 887 self.match(MathExprParser.COMMA) self.state = 888 self.expr() self.state = 889 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.DOT]: localctx = MathExprParser.DotFuncContext(self, localctx) self.enterOuterAlt(localctx, 12) self.state = 891 self.match(MathExprParser.DOT) self.state = 892 self.match(MathExprParser.LPAREN) self.state = 893 self.expr() self.state = 894 self.match(MathExprParser.COMMA) self.state = 895 self.expr() self.state = 896 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.COSSIM]: localctx = MathExprParser.CossimFuncContext(self, localctx) self.enterOuterAlt(localctx, 13) self.state = 898 self.match(MathExprParser.COSSIM) self.state = 899 self.match(MathExprParser.LPAREN) self.state = 900 self.expr() self.state = 901 self.match(MathExprParser.COMMA) self.state = 902 self.expr() self.state = 903 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.STARTSWITH]: localctx = MathExprParser.StartswithFuncContext(self, localctx) self.enterOuterAlt(localctx, 14) self.state = 905 self.match(MathExprParser.STARTSWITH) self.state = 906 self.match(MathExprParser.LPAREN) self.state = 907 self.expr() self.state = 908 self.match(MathExprParser.COMMA) self.state = 909 self.expr() self.state = 910 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ENDSWITH]: localctx = MathExprParser.EndswithFuncContext(self, localctx) self.enterOuterAlt(localctx, 15) self.state = 912 self.match(MathExprParser.ENDSWITH) self.state = 913 self.match(MathExprParser.LPAREN) self.state = 914 self.expr() self.state = 915 self.match(MathExprParser.COMMA) self.state = 916 self.expr() self.state = 917 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLIP]: localctx = MathExprParser.FlipFuncContext(self, localctx) self.enterOuterAlt(localctx, 16) self.state = 919 self.match(MathExprParser.FLIP) self.state = 920 self.match(MathExprParser.LPAREN) self.state = 921 self.expr() self.state = 922 self.match(MathExprParser.COMMA) self.state = 923 self.expr() self.state = 924 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.COV]: localctx = MathExprParser.CovFuncContext(self, localctx) self.enterOuterAlt(localctx, 17) self.state = 926 self.match(MathExprParser.COV) self.state = 927 self.match(MathExprParser.LPAREN) self.state = 928 self.expr() self.state = 929 self.match(MathExprParser.COMMA) self.state = 930 self.expr() self.state = 931 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CORR]: localctx = MathExprParser.CorrFuncContext(self, localctx) self.enterOuterAlt(localctx, 18) self.state = 933 self.match(MathExprParser.CORR) self.state = 934 self.match(MathExprParser.LPAREN) self.state = 935 self.expr() self.state = 936 self.match(MathExprParser.COMMA) self.state = 937 self.expr() self.state = 938 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.APPEND]: localctx = MathExprParser.AppendFuncContext(self, localctx) self.enterOuterAlt(localctx, 19) self.state = 940 self.match(MathExprParser.APPEND) self.state = 941 self.match(MathExprParser.LPAREN) self.state = 942 self.expr() self.state = 943 self.match(MathExprParser.COMMA) self.state = 944 self.expr() self.state = 945 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PERM]: localctx = MathExprParser.PermuteFuncContext(self, localctx) self.enterOuterAlt(localctx, 20) self.state = 947 self.match(MathExprParser.PERM) self.state = 948 self.match(MathExprParser.LPAREN) self.state = 949 self.expr() self.state = 950 self.match(MathExprParser.COMMA) self.state = 951 self.expr() self.state = 952 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GAUSSIAN]: localctx = MathExprParser.GaussianFuncContext(self, localctx) self.enterOuterAlt(localctx, 21) self.state = 954 self.match(MathExprParser.GAUSSIAN) self.state = 955 self.match(MathExprParser.LPAREN) self.state = 956 self.expr() self.state = 957 self.match(MathExprParser.COMMA) self.state = 958 self.expr() self.state = 961 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 959 self.match(MathExprParser.COMMA) self.state = 960 self.expr() self.state = 963 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TOPK_IND]: localctx = MathExprParser.TopkIndFuncContext(self, localctx) self.enterOuterAlt(localctx, 22) self.state = 965 self.match(MathExprParser.TOPK_IND) self.state = 966 self.match(MathExprParser.LPAREN) self.state = 967 self.expr() self.state = 968 self.match(MathExprParser.COMMA) self.state = 969 self.expr() self.state = 970 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BOTK_IND]: localctx = MathExprParser.BotkIndFuncContext(self, localctx) self.enterOuterAlt(localctx, 23) self.state = 972 self.match(MathExprParser.BOTK_IND) self.state = 973 self.match(MathExprParser.LPAREN) self.state = 974 self.expr() self.state = 975 self.match(MathExprParser.COMMA) self.state = 976 self.expr() self.state = 977 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BATCH_SHUFFLE]: localctx = MathExprParser.BatchShuffleFuncContext(self, localctx) self.enterOuterAlt(localctx, 24) self.state = 979 self.match(MathExprParser.BATCH_SHUFFLE) self.state = 980 self.match(MathExprParser.LPAREN) self.state = 981 self.expr() self.state = 982 self.match(MathExprParser.COMMA) self.state = 983 self.expr() self.state = 984 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PUSH]: localctx = MathExprParser.PushFuncContext(self, localctx) self.enterOuterAlt(localctx, 25) self.state = 986 self.match(MathExprParser.PUSH) self.state = 987 self.match(MathExprParser.LPAREN) self.state = 988 self.expr() self.state = 989 self.match(MathExprParser.COMMA) self.state = 990 self.expr() self.state = 991 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GET_VALUE]: localctx = MathExprParser.GetValueFuncContext(self, localctx) self.enterOuterAlt(localctx, 26) self.state = 993 self.match(MathExprParser.GET_VALUE) self.state = 994 self.match(MathExprParser.LPAREN) self.state = 995 self.expr() self.state = 996 self.match(MathExprParser.COMMA) self.state = 997 self.expr() self.state = 998 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TENSOR]: localctx = MathExprParser.EmptyTensorFuncContext(self, localctx) self.enterOuterAlt(localctx, 27) self.state = 1000 self.match(MathExprParser.TENSOR) self.state = 1001 self.match(MathExprParser.LPAREN) self.state = 1002 self.indexExpr(0) self.state = 1009 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1003 self.match(MathExprParser.COMMA) self.state = 1004 self.expr() self.state = 1007 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1005 self.match(MathExprParser.COMMA) self.state = 1006 self.expr() self.state = 1011 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PAD]: localctx = MathExprParser.PadFuncContext(self, localctx) self.enterOuterAlt(localctx, 28) self.state = 1013 self.match(MathExprParser.PAD) self.state = 1014 self.match(MathExprParser.LPAREN) self.state = 1015 self.expr() self.state = 1016 self.match(MathExprParser.COMMA) self.state = 1017 self.expr() self.state = 1018 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CROSS]: localctx = MathExprParser.CrossFuncContext(self, localctx) self.enterOuterAlt(localctx, 29) self.state = 1020 self.match(MathExprParser.CROSS) self.state = 1021 self.match(MathExprParser.LPAREN) self.state = 1022 self.expr() self.state = 1023 self.match(MathExprParser.COMMA) self.state = 1024 self.expr() self.state = 1025 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MATMUL]: localctx = MathExprParser.MatmulFuncContext(self, localctx) self.enterOuterAlt(localctx, 30) self.state = 1027 self.match(MathExprParser.MATMUL) self.state = 1028 self.match(MathExprParser.LPAREN) self.state = 1029 self.expr() self.state = 1030 self.match(MathExprParser.COMMA) self.state = 1031 self.expr() self.state = 1032 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FLOW_APPLY]: localctx = MathExprParser.FlowApplyFuncContext(self, localctx) self.enterOuterAlt(localctx, 31) self.state = 1034 self.match(MathExprParser.FLOW_APPLY) self.state = 1035 self.match(MathExprParser.LPAREN) self.state = 1036 self.expr() self.state = 1037 self.match(MathExprParser.COMMA) self.state = 1038 self.expr() self.state = 1039 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RIFE]: localctx = MathExprParser.RifeFuncContext(self, localctx) self.enterOuterAlt(localctx, 32) self.state = 1041 self.match(MathExprParser.RIFE) self.state = 1042 self.match(MathExprParser.LPAREN) self.state = 1043 self.expr() self.state = 1044 self.match(MathExprParser.COMMA) self.state = 1045 self.expr() self.state = 1056 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1046 self.match(MathExprParser.COMMA) self.state = 1047 self.expr() self.state = 1054 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1048 self.match(MathExprParser.COMMA) self.state = 1049 self.expr() self.state = 1052 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1050 self.match(MathExprParser.COMMA) self.state = 1051 self.expr() self.state = 1058 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BAND]: localctx = MathExprParser.BitAndFuncContext(self, localctx) self.enterOuterAlt(localctx, 33) self.state = 1060 self.match(MathExprParser.BAND) self.state = 1061 self.match(MathExprParser.LPAREN) self.state = 1062 self.expr() self.state = 1063 self.match(MathExprParser.COMMA) self.state = 1064 self.expr() self.state = 1065 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.XOR]: localctx = MathExprParser.BitXorFuncContext(self, localctx) self.enterOuterAlt(localctx, 34) self.state = 1067 self.match(MathExprParser.XOR) self.state = 1068 self.match(MathExprParser.LPAREN) self.state = 1069 self.expr() self.state = 1070 self.match(MathExprParser.COMMA) self.state = 1071 self.expr() self.state = 1072 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BOR]: localctx = MathExprParser.BitOrFuncContext(self, localctx) self.enterOuterAlt(localctx, 35) self.state = 1074 self.match(MathExprParser.BOR) self.state = 1075 self.match(MathExprParser.LPAREN) self.state = 1076 self.expr() self.state = 1077 self.match(MathExprParser.COMMA) self.state = 1078 self.expr() self.state = 1079 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SPLIT]: localctx = MathExprParser.SplitFuncContext(self, localctx) self.enterOuterAlt(localctx, 36) self.state = 1081 self.match(MathExprParser.SPLIT) self.state = 1082 self.match(MathExprParser.LPAREN) self.state = 1083 self.expr() self.state = 1086 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1084 self.match(MathExprParser.COMMA) self.state = 1085 self.expr() self.state = 1088 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.JOIN]: localctx = MathExprParser.JoinFuncContext(self, localctx) self.enterOuterAlt(localctx, 37) self.state = 1090 self.match(MathExprParser.JOIN) self.state = 1091 self.match(MathExprParser.LPAREN) self.state = 1092 self.expr() self.state = 1095 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1093 self.match(MathExprParser.COMMA) self.state = 1094 self.expr() self.state = 1097 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SUBSTRING]: localctx = MathExprParser.SubstringFuncContext(self, localctx) self.enterOuterAlt(localctx, 38) self.state = 1099 self.match(MathExprParser.SUBSTRING) self.state = 1100 self.match(MathExprParser.LPAREN) self.state = 1101 self.expr() self.state = 1102 self.match(MathExprParser.COMMA) self.state = 1103 self.expr() self.state = 1106 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1104 self.match(MathExprParser.COMMA) self.state = 1105 self.expr() self.state = 1108 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.FIND]: localctx = MathExprParser.FindFuncContext(self, localctx) self.enterOuterAlt(localctx, 39) self.state = 1110 self.match(MathExprParser.FIND) self.state = 1111 self.match(MathExprParser.LPAREN) self.state = 1112 self.expr() self.state = 1113 self.match(MathExprParser.COMMA) self.state = 1114 self.expr() self.state = 1115 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.REPLACE]: localctx = MathExprParser.ReplaceFuncContext(self, localctx) self.enterOuterAlt(localctx, 40) self.state = 1117 self.match(MathExprParser.REPLACE) self.state = 1118 self.match(MathExprParser.LPAREN) self.state = 1119 self.expr() self.state = 1120 self.match(MathExprParser.COMMA) self.state = 1121 self.expr() self.state = 1122 self.match(MathExprParser.COMMA) self.state = 1123 self.expr() self.state = 1124 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.INT_TO_RGB]: localctx = MathExprParser.Int_to_rgbFuncContext(self, localctx) self.enterOuterAlt(localctx, 41) self.state = 1126 self.match(MathExprParser.INT_TO_RGB) self.state = 1127 self.match(MathExprParser.LPAREN) self.state = 1128 self.expr() self.state = 1129 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RGB_TO_INT]: localctx = MathExprParser.Rgb_to_intFuncContext(self, localctx) self.enterOuterAlt(localctx, 42) self.state = 1131 self.match(MathExprParser.RGB_TO_INT) self.state = 1132 self.match(MathExprParser.LPAREN) self.state = 1133 self.expr() self.state = 1139 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1134 self.match(MathExprParser.COMMA) self.state = 1135 self.expr() self.state = 1136 self.match(MathExprParser.COMMA) self.state = 1137 self.expr() self.state = 1141 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.INTERPOLATE_LINEAR]: localctx = MathExprParser.InterpolateLinearFuncContext(self, localctx) self.enterOuterAlt(localctx, 43) self.state = 1143 self.match(MathExprParser.INTERPOLATE_LINEAR) self.state = 1144 self.match(MathExprParser.LPAREN) self.state = 1145 self.expr() self.state = 1146 self.match(MathExprParser.COMMA) self.state = 1147 self.expr() self.state = 1148 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.INTERPOLATE_AREA]: localctx = MathExprParser.InterpolateAreaFuncContext(self, localctx) self.enterOuterAlt(localctx, 44) self.state = 1150 self.match(MathExprParser.INTERPOLATE_AREA) self.state = 1151 self.match(MathExprParser.LPAREN) self.state = 1152 self.expr() self.state = 1153 self.match(MathExprParser.COMMA) self.state = 1154 self.expr() self.state = 1155 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.INTERPOLATE_NEAREST]: localctx = MathExprParser.InterpolateNearestExactFuncContext(self, localctx) self.enterOuterAlt(localctx, 45) self.state = 1157 self.match(MathExprParser.INTERPOLATE_NEAREST) self.state = 1158 self.match(MathExprParser.LPAREN) self.state = 1159 self.expr() self.state = 1160 self.match(MathExprParser.COMMA) self.state = 1161 self.expr() self.state = 1162 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class Func3Context(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_func3 def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class SmootherstepFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def SMOOTHERSTEP(self): return self.getToken(MathExprParser.SMOOTHERSTEP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSmootherstepFunc" ): listener.enterSmootherstepFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSmootherstepFunc" ): listener.exitSmootherstepFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSmootherstepFunc" ): return visitor.visitSmootherstepFunc(self) else: return visitor.visitChildren(self) class WhereFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def WHERE(self): return self.getToken(MathExprParser.WHERE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterWhereFunc" ): listener.enterWhereFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitWhereFunc" ): listener.exitWhereFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitWhereFunc" ): return visitor.visitWhereFunc(self) else: return visitor.visitChildren(self) class RgbToOklabFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def RGB_TO_OKLAB(self): return self.getToken(MathExprParser.RGB_TO_OKLAB, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRgbToOklabFunc" ): listener.enterRgbToOklabFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRgbToOklabFunc" ): listener.exitRgbToOklabFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRgbToOklabFunc" ): return visitor.visitRgbToOklabFunc(self) else: return visitor.visitChildren(self) class CielabToRgbFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def CIELAB_TO_RGB(self): return self.getToken(MathExprParser.CIELAB_TO_RGB, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCielabToRgbFunc" ): listener.enterCielabToRgbFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCielabToRgbFunc" ): listener.exitCielabToRgbFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCielabToRgbFunc" ): return visitor.visitCielabToRgbFunc(self) else: return visitor.visitChildren(self) class CubicEaseFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def CUBIC_EASE(self): return self.getToken(MathExprParser.CUBIC_EASE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCubicEaseFunc" ): listener.enterCubicEaseFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCubicEaseFunc" ): listener.exitCubicEaseFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCubicEaseFunc" ): return visitor.visitCubicEaseFunc(self) else: return visitor.visitChildren(self) class HsvToRgbFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def HSV_TO_RGB(self): return self.getToken(MathExprParser.HSV_TO_RGB, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterHsvToRgbFunc" ): listener.enterHsvToRgbFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitHsvToRgbFunc" ): listener.exitHsvToRgbFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitHsvToRgbFunc" ): return visitor.visitHsvToRgbFunc(self) else: return visitor.visitChildren(self) class SmoothstepFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def SMOOTHSTEP(self): return self.getToken(MathExprParser.SMOOTHSTEP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSmoothstepFunc" ): listener.enterSmoothstepFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSmoothstepFunc" ): listener.exitSmoothstepFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSmoothstepFunc" ): return visitor.visitSmoothstepFunc(self) else: return visitor.visitChildren(self) class CoordsFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def COORDS(self): return self.getToken(MathExprParser.COORDS, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCoordsFunc" ): listener.enterCoordsFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCoordsFunc" ): listener.exitCoordsFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCoordsFunc" ): return visitor.visitCoordsFunc(self) else: return visitor.visitChildren(self) class LinspaceFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def LINSPACE(self): return self.getToken(MathExprParser.LINSPACE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLinspaceFunc" ): listener.enterLinspaceFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLinspaceFunc" ): listener.exitLinspaceFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLinspaceFunc" ): return visitor.visitLinspaceFunc(self) else: return visitor.visitChildren(self) class OklabToRgbFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def OKLAB_TO_RGB(self): return self.getToken(MathExprParser.OKLAB_TO_RGB, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterOklabToRgbFunc" ): listener.enterOklabToRgbFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitOklabToRgbFunc" ): listener.exitOklabToRgbFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitOklabToRgbFunc" ): return visitor.visitOklabToRgbFunc(self) else: return visitor.visitChildren(self) class ClampFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def CLAMP(self): return self.getToken(MathExprParser.CLAMP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterClampFunc" ): listener.enterClampFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitClampFunc" ): listener.exitClampFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitClampFunc" ): return visitor.visitClampFunc(self) else: return visitor.visitChildren(self) class SineEaseFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def SINE_EASE(self): return self.getToken(MathExprParser.SINE_EASE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSineEaseFunc" ): listener.enterSineEaseFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSineEaseFunc" ): listener.exitSineEaseFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSineEaseFunc" ): return visitor.visitSineEaseFunc(self) else: return visitor.visitChildren(self) class OverlayFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def OVERLAY(self): return self.getToken(MathExprParser.OVERLAY, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterOverlayFunc" ): listener.enterOverlayFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitOverlayFunc" ): listener.exitOverlayFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitOverlayFunc" ): return visitor.visitOverlayFunc(self) else: return visitor.visitChildren(self) class TextImageFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def TEXT_IMAGE(self): return self.getToken(MathExprParser.TEXT_IMAGE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterTextImageFunc" ): listener.enterTextImageFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitTextImageFunc" ): listener.exitTextImageFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTextImageFunc" ): return visitor.visitTextImageFunc(self) else: return visitor.visitChildren(self) class RollFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def ROLL(self): return self.getToken(MathExprParser.ROLL, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRollFunc" ): listener.enterRollFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRollFunc" ): listener.exitRollFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRollFunc" ): return visitor.visitRollFunc(self) else: return visitor.visitChildren(self) class RgbToCielabFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def RGB_TO_CIELAB(self): return self.getToken(MathExprParser.RGB_TO_CIELAB, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRgbToCielabFunc" ): listener.enterRgbToCielabFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRgbToCielabFunc" ): listener.exitRgbToCielabFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRgbToCielabFunc" ): return visitor.visitRgbToCielabFunc(self) else: return visitor.visitChildren(self) class MomentFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def MOMENT(self): return self.getToken(MathExprParser.MOMENT, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMomentFunc" ): listener.enterMomentFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMomentFunc" ): listener.exitMomentFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMomentFunc" ): return visitor.visitMomentFunc(self) else: return visitor.visitChildren(self) class LerpFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def LERP(self): return self.getToken(MathExprParser.LERP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLerpFunc" ): listener.enterLerpFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLerpFunc" ): listener.exitLerpFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLerpFunc" ): return visitor.visitLerpFunc(self) else: return visitor.visitChildren(self) class RgbToHsvFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def RGB_TO_HSV(self): return self.getToken(MathExprParser.RGB_TO_HSV, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRgbToHsvFunc" ): listener.enterRgbToHsvFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRgbToHsvFunc" ): listener.exitRgbToHsvFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRgbToHsvFunc" ): return visitor.visitRgbToHsvFunc(self) else: return visitor.visitChildren(self) class SifftFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def SIFFT(self): return self.getToken(MathExprParser.SIFFT, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSifftFunc" ): listener.enterSifftFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSifftFunc" ): listener.exitSifftFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSifftFunc" ): return visitor.visitSifftFunc(self) else: return visitor.visitChildren(self) class ElasticEaseFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def ELASTIC_EASE(self): return self.getToken(MathExprParser.ELASTIC_EASE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterElasticEaseFunc" ): listener.enterElasticEaseFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitElasticEaseFunc" ): listener.exitElasticEaseFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitElasticEaseFunc" ): return visitor.visitElasticEaseFunc(self) else: return visitor.visitChildren(self) class RangeFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def RANGE(self): return self.getToken(MathExprParser.RANGE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRangeFunc" ): listener.enterRangeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRangeFunc" ): listener.exitRangeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRangeFunc" ): return visitor.visitRangeFunc(self) else: return visitor.visitChildren(self) class CropFuncContext(Func3Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func3Context super().__init__(parser) self.copyFrom(ctx) def CROP(self): return self.getToken(MathExprParser.CROP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCropFunc" ): listener.enterCropFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCropFunc" ): listener.exitCropFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCropFunc" ): return visitor.visitCropFunc(self) else: return visitor.visitChildren(self) def func3(self): localctx = MathExprParser.Func3Context(self, self._ctx, self.state) self.enterRule(localctx, 52, self.RULE_func3) self._la = 0 # Token type try: self.state = 1431 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.CLAMP]: localctx = MathExprParser.ClampFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 1166 self.match(MathExprParser.CLAMP) self.state = 1167 self.match(MathExprParser.LPAREN) self.state = 1168 self.expr() self.state = 1169 self.match(MathExprParser.COMMA) self.state = 1170 self.expr() self.state = 1171 self.match(MathExprParser.COMMA) self.state = 1172 self.expr() self.state = 1173 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LERP]: localctx = MathExprParser.LerpFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 1175 self.match(MathExprParser.LERP) self.state = 1176 self.match(MathExprParser.LPAREN) self.state = 1177 self.expr() self.state = 1178 self.match(MathExprParser.COMMA) self.state = 1179 self.expr() self.state = 1180 self.match(MathExprParser.COMMA) self.state = 1181 self.expr() self.state = 1182 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SMOOTHSTEP]: localctx = MathExprParser.SmoothstepFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 1184 self.match(MathExprParser.SMOOTHSTEP) self.state = 1185 self.match(MathExprParser.LPAREN) self.state = 1186 self.expr() self.state = 1187 self.match(MathExprParser.COMMA) self.state = 1188 self.expr() self.state = 1189 self.match(MathExprParser.COMMA) self.state = 1190 self.expr() self.state = 1191 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RANGE]: localctx = MathExprParser.RangeFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 1193 self.match(MathExprParser.RANGE) self.state = 1194 self.match(MathExprParser.LPAREN) self.state = 1195 self.expr() self.state = 1196 self.match(MathExprParser.COMMA) self.state = 1197 self.expr() self.state = 1198 self.match(MathExprParser.COMMA) self.state = 1199 self.expr() self.state = 1200 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MOMENT]: localctx = MathExprParser.MomentFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 1202 self.match(MathExprParser.MOMENT) self.state = 1203 self.match(MathExprParser.LPAREN) self.state = 1204 self.expr() self.state = 1205 self.match(MathExprParser.COMMA) self.state = 1206 self.expr() self.state = 1207 self.match(MathExprParser.COMMA) self.state = 1208 self.expr() self.state = 1209 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CUBIC_EASE]: localctx = MathExprParser.CubicEaseFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 1211 self.match(MathExprParser.CUBIC_EASE) self.state = 1212 self.match(MathExprParser.LPAREN) self.state = 1213 self.expr() self.state = 1214 self.match(MathExprParser.COMMA) self.state = 1215 self.expr() self.state = 1216 self.match(MathExprParser.COMMA) self.state = 1217 self.expr() self.state = 1218 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ELASTIC_EASE]: localctx = MathExprParser.ElasticEaseFuncContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 1220 self.match(MathExprParser.ELASTIC_EASE) self.state = 1221 self.match(MathExprParser.LPAREN) self.state = 1222 self.expr() self.state = 1223 self.match(MathExprParser.COMMA) self.state = 1224 self.expr() self.state = 1225 self.match(MathExprParser.COMMA) self.state = 1226 self.expr() self.state = 1227 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SINE_EASE]: localctx = MathExprParser.SineEaseFuncContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 1229 self.match(MathExprParser.SINE_EASE) self.state = 1230 self.match(MathExprParser.LPAREN) self.state = 1231 self.expr() self.state = 1232 self.match(MathExprParser.COMMA) self.state = 1233 self.expr() self.state = 1234 self.match(MathExprParser.COMMA) self.state = 1235 self.expr() self.state = 1236 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SMOOTHERSTEP]: localctx = MathExprParser.SmootherstepFuncContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 1238 self.match(MathExprParser.SMOOTHERSTEP) self.state = 1239 self.match(MathExprParser.LPAREN) self.state = 1240 self.expr() self.state = 1241 self.match(MathExprParser.COMMA) self.state = 1242 self.expr() self.state = 1243 self.match(MathExprParser.COMMA) self.state = 1244 self.expr() self.state = 1245 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CROP]: localctx = MathExprParser.CropFuncContext(self, localctx) self.enterOuterAlt(localctx, 10) self.state = 1247 self.match(MathExprParser.CROP) self.state = 1248 self.match(MathExprParser.LPAREN) self.state = 1249 self.expr() self.state = 1250 self.match(MathExprParser.COMMA) self.state = 1251 self.expr() self.state = 1252 self.match(MathExprParser.COMMA) self.state = 1253 self.expr() self.state = 1254 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SIFFT]: localctx = MathExprParser.SifftFuncContext(self, localctx) self.enterOuterAlt(localctx, 11) self.state = 1256 self.match(MathExprParser.SIFFT) self.state = 1257 self.match(MathExprParser.LPAREN) self.state = 1258 self.expr() self.state = 1261 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1259 self.match(MathExprParser.COMMA) self.state = 1260 self.expr() self.state = 1263 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.OVERLAY]: localctx = MathExprParser.OverlayFuncContext(self, localctx) self.enterOuterAlt(localctx, 12) self.state = 1265 self.match(MathExprParser.OVERLAY) self.state = 1266 self.match(MathExprParser.LPAREN) self.state = 1267 self.expr() self.state = 1268 self.match(MathExprParser.COMMA) self.state = 1269 self.expr() self.state = 1270 self.match(MathExprParser.COMMA) self.state = 1271 self.expr() self.state = 1274 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1272 self.match(MathExprParser.COMMA) self.state = 1273 self.expr() self.state = 1276 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LINSPACE]: localctx = MathExprParser.LinspaceFuncContext(self, localctx) self.enterOuterAlt(localctx, 13) self.state = 1278 self.match(MathExprParser.LINSPACE) self.state = 1279 self.match(MathExprParser.LPAREN) self.state = 1280 self.expr() self.state = 1281 self.match(MathExprParser.COMMA) self.state = 1282 self.expr() self.state = 1283 self.match(MathExprParser.COMMA) self.state = 1284 self.expr() self.state = 1285 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.ROLL]: localctx = MathExprParser.RollFuncContext(self, localctx) self.enterOuterAlt(localctx, 14) self.state = 1287 self.match(MathExprParser.ROLL) self.state = 1288 self.match(MathExprParser.LPAREN) self.state = 1289 self.expr() self.state = 1290 self.match(MathExprParser.COMMA) self.state = 1291 self.expr() self.state = 1294 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1292 self.match(MathExprParser.COMMA) self.state = 1293 self.expr() self.state = 1296 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RGB_TO_OKLAB]: localctx = MathExprParser.RgbToOklabFuncContext(self, localctx) self.enterOuterAlt(localctx, 15) self.state = 1298 self.match(MathExprParser.RGB_TO_OKLAB) self.state = 1299 self.match(MathExprParser.LPAREN) self.state = 1300 self.expr() self.state = 1306 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1301 self.match(MathExprParser.COMMA) self.state = 1302 self.expr() self.state = 1303 self.match(MathExprParser.COMMA) self.state = 1304 self.expr() self.state = 1308 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RGB_TO_CIELAB]: localctx = MathExprParser.RgbToCielabFuncContext(self, localctx) self.enterOuterAlt(localctx, 16) self.state = 1310 self.match(MathExprParser.RGB_TO_CIELAB) self.state = 1311 self.match(MathExprParser.LPAREN) self.state = 1312 self.expr() self.state = 1318 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1313 self.match(MathExprParser.COMMA) self.state = 1314 self.expr() self.state = 1315 self.match(MathExprParser.COMMA) self.state = 1316 self.expr() self.state = 1320 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RGB_TO_HSV]: localctx = MathExprParser.RgbToHsvFuncContext(self, localctx) self.enterOuterAlt(localctx, 17) self.state = 1322 self.match(MathExprParser.RGB_TO_HSV) self.state = 1323 self.match(MathExprParser.LPAREN) self.state = 1324 self.expr() self.state = 1330 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,62,self._ctx) if la_ == 1: self.state = 1325 self.match(MathExprParser.COMMA) self.state = 1326 self.expr() self.state = 1327 self.match(MathExprParser.COMMA) self.state = 1328 self.expr() self.state = 1334 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1332 self.match(MathExprParser.COMMA) self.state = 1333 self.expr() self.state = 1336 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.HSV_TO_RGB]: localctx = MathExprParser.HsvToRgbFuncContext(self, localctx) self.enterOuterAlt(localctx, 18) self.state = 1338 self.match(MathExprParser.HSV_TO_RGB) self.state = 1339 self.match(MathExprParser.LPAREN) self.state = 1340 self.expr() self.state = 1346 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,64,self._ctx) if la_ == 1: self.state = 1341 self.match(MathExprParser.COMMA) self.state = 1342 self.expr() self.state = 1343 self.match(MathExprParser.COMMA) self.state = 1344 self.expr() self.state = 1350 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1348 self.match(MathExprParser.COMMA) self.state = 1349 self.expr() self.state = 1352 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.WHERE]: localctx = MathExprParser.WhereFuncContext(self, localctx) self.enterOuterAlt(localctx, 19) self.state = 1354 self.match(MathExprParser.WHERE) self.state = 1355 self.match(MathExprParser.LPAREN) self.state = 1356 self.expr() self.state = 1357 self.match(MathExprParser.COMMA) self.state = 1358 self.expr() self.state = 1359 self.match(MathExprParser.COMMA) self.state = 1360 self.expr() self.state = 1361 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.OKLAB_TO_RGB]: localctx = MathExprParser.OklabToRgbFuncContext(self, localctx) self.enterOuterAlt(localctx, 20) self.state = 1363 self.match(MathExprParser.OKLAB_TO_RGB) self.state = 1364 self.match(MathExprParser.LPAREN) self.state = 1365 self.expr() self.state = 1371 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1366 self.match(MathExprParser.COMMA) self.state = 1367 self.expr() self.state = 1368 self.match(MathExprParser.COMMA) self.state = 1369 self.expr() self.state = 1373 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CIELAB_TO_RGB]: localctx = MathExprParser.CielabToRgbFuncContext(self, localctx) self.enterOuterAlt(localctx, 21) self.state = 1375 self.match(MathExprParser.CIELAB_TO_RGB) self.state = 1376 self.match(MathExprParser.LPAREN) self.state = 1377 self.expr() self.state = 1383 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1378 self.match(MathExprParser.COMMA) self.state = 1379 self.expr() self.state = 1380 self.match(MathExprParser.COMMA) self.state = 1381 self.expr() self.state = 1385 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.TEXT_IMAGE]: localctx = MathExprParser.TextImageFuncContext(self, localctx) self.enterOuterAlt(localctx, 22) self.state = 1387 self.match(MathExprParser.TEXT_IMAGE) self.state = 1388 self.match(MathExprParser.LPAREN) self.state = 1389 self.expr() self.state = 1390 self.match(MathExprParser.COMMA) self.state = 1391 self.expr() self.state = 1392 self.match(MathExprParser.COMMA) self.state = 1393 self.expr() self.state = 1396 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,68,self._ctx) if la_ == 1: self.state = 1394 self.match(MathExprParser.COMMA) self.state = 1395 self.expr() self.state = 1400 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,69,self._ctx) if la_ == 1: self.state = 1398 self.match(MathExprParser.COMMA) self.state = 1399 self.expr() self.state = 1404 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,70,self._ctx) if la_ == 1: self.state = 1402 self.match(MathExprParser.COMMA) self.state = 1403 self.expr() self.state = 1408 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,71,self._ctx) if la_ == 1: self.state = 1406 self.match(MathExprParser.COMMA) self.state = 1407 self.expr() self.state = 1412 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,72,self._ctx) if la_ == 1: self.state = 1410 self.match(MathExprParser.COMMA) self.state = 1411 self.expr() self.state = 1416 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1414 self.match(MathExprParser.COMMA) self.state = 1415 self.expr() self.state = 1418 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.COORDS]: localctx = MathExprParser.CoordsFuncContext(self, localctx) self.enterOuterAlt(localctx, 23) self.state = 1420 self.match(MathExprParser.COORDS) self.state = 1421 self.match(MathExprParser.LPAREN) self.state = 1422 self.expr() self.state = 1423 self.match(MathExprParser.COMMA) self.state = 1424 self.expr() self.state = 1427 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1425 self.match(MathExprParser.COMMA) self.state = 1426 self.expr() self.state = 1429 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class Func4Context(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_func4 def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class DistFuncContext(Func4Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func4Context super().__init__(parser) self.copyFrom(ctx) def DIST(self): return self.getToken(MathExprParser.DIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterDistFunc" ): listener.enterDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitDistFunc" ): listener.exitDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDistFunc" ): return visitor.visitDistFunc(self) else: return visitor.visitChildren(self) class HistogramFuncContext(Func4Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func4Context super().__init__(parser) self.copyFrom(ctx) def HISTOGRAM(self): return self.getToken(MathExprParser.HISTOGRAM, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterHistogramFunc" ): listener.enterHistogramFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitHistogramFunc" ): listener.exitHistogramFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitHistogramFunc" ): return visitor.visitHistogramFunc(self) else: return visitor.visitChildren(self) class LogspaceFuncContext(Func4Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func4Context super().__init__(parser) self.copyFrom(ctx) def LOGSPACE(self): return self.getToken(MathExprParser.LOGSPACE, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLogspaceFunc" ): listener.enterLogspaceFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLogspaceFunc" ): listener.exitLogspaceFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLogspaceFunc" ): return visitor.visitLogspaceFunc(self) else: return visitor.visitChildren(self) class NvlFuncContext(Func4Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func4Context super().__init__(parser) self.copyFrom(ctx) def NVL(self): return self.getToken(MathExprParser.NVL, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterNvlFunc" ): listener.enterNvlFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitNvlFunc" ): listener.exitNvlFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNvlFunc" ): return visitor.visitNvlFunc(self) else: return visitor.visitChildren(self) class SwapFuncContext(Func4Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func4Context super().__init__(parser) self.copyFrom(ctx) def SWAP(self): return self.getToken(MathExprParser.SWAP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSwapFunc" ): listener.enterSwapFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSwapFunc" ): listener.exitSwapFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSwapFunc" ): return visitor.visitSwapFunc(self) else: return visitor.visitChildren(self) def func4(self): localctx = MathExprParser.Func4Context(self, self._ctx, self.state) self.enterRule(localctx, 54, self.RULE_func4) try: self.state = 1488 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.SWAP]: localctx = MathExprParser.SwapFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 1433 self.match(MathExprParser.SWAP) self.state = 1434 self.match(MathExprParser.LPAREN) self.state = 1435 self.expr() self.state = 1436 self.match(MathExprParser.COMMA) self.state = 1437 self.expr() self.state = 1438 self.match(MathExprParser.COMMA) self.state = 1439 self.expr() self.state = 1440 self.match(MathExprParser.COMMA) self.state = 1441 self.expr() self.state = 1442 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.NVL]: localctx = MathExprParser.NvlFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 1444 self.match(MathExprParser.NVL) self.state = 1445 self.match(MathExprParser.LPAREN) self.state = 1446 self.expr() self.state = 1447 self.match(MathExprParser.COMMA) self.state = 1448 self.expr() self.state = 1449 self.match(MathExprParser.COMMA) self.state = 1450 self.expr() self.state = 1451 self.match(MathExprParser.COMMA) self.state = 1452 self.expr() self.state = 1453 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LOGSPACE]: localctx = MathExprParser.LogspaceFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 1455 self.match(MathExprParser.LOGSPACE) self.state = 1456 self.match(MathExprParser.LPAREN) self.state = 1457 self.expr() self.state = 1458 self.match(MathExprParser.COMMA) self.state = 1459 self.expr() self.state = 1460 self.match(MathExprParser.COMMA) self.state = 1461 self.expr() self.state = 1462 self.match(MathExprParser.COMMA) self.state = 1463 self.expr() self.state = 1464 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.DIST]: localctx = MathExprParser.DistFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 1466 self.match(MathExprParser.DIST) self.state = 1467 self.match(MathExprParser.LPAREN) self.state = 1468 self.expr() self.state = 1469 self.match(MathExprParser.COMMA) self.state = 1470 self.expr() self.state = 1471 self.match(MathExprParser.COMMA) self.state = 1472 self.expr() self.state = 1473 self.match(MathExprParser.COMMA) self.state = 1474 self.expr() self.state = 1475 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.HISTOGRAM]: localctx = MathExprParser.HistogramFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 1477 self.match(MathExprParser.HISTOGRAM) self.state = 1478 self.match(MathExprParser.LPAREN) self.state = 1479 self.expr() self.state = 1480 self.match(MathExprParser.COMMA) self.state = 1481 self.expr() self.state = 1482 self.match(MathExprParser.COMMA) self.state = 1483 self.expr() self.state = 1484 self.match(MathExprParser.COMMA) self.state = 1485 self.expr() self.state = 1486 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class Func5Context(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_func5 def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class DiagonalMatrixFuncContext(Func5Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func5Context super().__init__(parser) self.copyFrom(ctx) def DIAG(self): return self.getToken(MathExprParser.DIAG, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterDiagonalMatrixFunc" ): listener.enterDiagonalMatrixFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitDiagonalMatrixFunc" ): listener.exitDiagonalMatrixFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDiagonalMatrixFunc" ): return visitor.visitDiagonalMatrixFunc(self) else: return visitor.visitChildren(self) class RemapFuncContext(Func5Context): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.Func5Context super().__init__(parser) self.copyFrom(ctx) def REMAP(self): return self.getToken(MathExprParser.REMAP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRemapFunc" ): listener.enterRemapFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRemapFunc" ): listener.exitRemapFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRemapFunc" ): return visitor.visitRemapFunc(self) else: return visitor.visitChildren(self) def func5(self): localctx = MathExprParser.Func5Context(self, self._ctx, self.state) self.enterRule(localctx, 56, self.RULE_func5) self._la = 0 # Token type try: self.state = 1522 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.REMAP]: localctx = MathExprParser.RemapFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 1490 self.match(MathExprParser.REMAP) self.state = 1491 self.match(MathExprParser.LPAREN) self.state = 1492 self.expr() self.state = 1493 self.match(MathExprParser.COMMA) self.state = 1494 self.expr() self.state = 1495 self.match(MathExprParser.COMMA) self.state = 1496 self.expr() self.state = 1497 self.match(MathExprParser.COMMA) self.state = 1498 self.expr() self.state = 1499 self.match(MathExprParser.COMMA) self.state = 1500 self.expr() self.state = 1501 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.DIAG]: localctx = MathExprParser.DiagonalMatrixFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 1503 self.match(MathExprParser.DIAG) self.state = 1504 self.match(MathExprParser.LPAREN) self.state = 1505 self.expr() self.state = 1506 self.match(MathExprParser.COMMA) self.state = 1507 self.expr() self.state = 1518 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1508 self.match(MathExprParser.COMMA) self.state = 1509 self.expr() self.state = 1516 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1510 self.match(MathExprParser.COMMA) self.state = 1511 self.expr() self.state = 1514 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1512 self.match(MathExprParser.COMMA) self.state = 1513 self.expr() self.state = 1520 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class FuncNContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_funcN def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class SMaxFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def SMAX(self): return self.getToken(MathExprParser.SMAX, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSMaxFunc" ): listener.enterSMaxFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSMaxFunc" ): listener.exitSMaxFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSMaxFunc" ): return visitor.visitSMaxFunc(self) else: return visitor.visitChildren(self) class MapFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def MAP(self): return self.getToken(MathExprParser.MAP, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterMapFunc" ): listener.enterMapFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitMapFunc" ): listener.exitMapFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMapFunc" ): return visitor.visitMapFunc(self) else: return visitor.visitChildren(self) class ConcatFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def CONCAT(self): return self.getToken(MathExprParser.CONCAT, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterConcatFunc" ): listener.enterConcatFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitConcatFunc" ): listener.exitConcatFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitConcatFunc" ): return visitor.visitConcatFunc(self) else: return visitor.visitChildren(self) class SqueezeFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def SQUEEZE(self): return self.getToken(MathExprParser.SQUEEZE, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSqueezeFunc" ): listener.enterSqueezeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSqueezeFunc" ): listener.exitSqueezeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSqueezeFunc" ): return visitor.visitSqueezeFunc(self) else: return visitor.visitChildren(self) class EzConvFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def EZCONV(self): return self.getToken(MathExprParser.EZCONV, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterEzConvFunc" ): listener.enterEzConvFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitEzConvFunc" ): listener.exitEzConvFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEzConvFunc" ): return visitor.visitEzConvFunc(self) else: return visitor.visitChildren(self) class ReshapeFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def RESHAPE(self): return self.getToken(MathExprParser.RESHAPE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterReshapeFunc" ): listener.enterReshapeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitReshapeFunc" ): listener.exitReshapeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReshapeFunc" ): return visitor.visitReshapeFunc(self) else: return visitor.visitChildren(self) class UnsqueezeFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def UNSQUEEZE(self): return self.getToken(MathExprParser.UNSQUEEZE, 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 enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterUnsqueezeFunc" ): listener.enterUnsqueezeFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitUnsqueezeFunc" ): listener.exitUnsqueezeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUnsqueezeFunc" ): return visitor.visitUnsqueezeFunc(self) else: return visitor.visitChildren(self) class SMinFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def SMIN(self): return self.getToken(MathExprParser.SMIN, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterSMinFunc" ): listener.enterSMinFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitSMinFunc" ): listener.exitSMinFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSMinFunc" ): return visitor.visitSMinFunc(self) else: return visitor.visitChildren(self) class ConvFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext super().__init__(parser) self.copyFrom(ctx) def CONV(self): return self.getToken(MathExprParser.CONV, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterConvFunc" ): listener.enterConvFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitConvFunc" ): listener.exitConvFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitConvFunc" ): return visitor.visitConvFunc(self) else: return visitor.visitChildren(self) def funcN(self): localctx = MathExprParser.FuncNContext(self, self._ctx, self.state) self.enterRule(localctx, 58, self.RULE_funcN) self._la = 0 # Token type try: self.state = 1615 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.SMIN]: localctx = MathExprParser.SMinFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 1524 self.match(MathExprParser.SMIN) self.state = 1525 self.match(MathExprParser.LPAREN) self.state = 1526 self.expr() self.state = 1531 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 1527 self.match(MathExprParser.COMMA) self.state = 1528 self.expr() self.state = 1533 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 1534 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SMAX]: localctx = MathExprParser.SMaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 1536 self.match(MathExprParser.SMAX) self.state = 1537 self.match(MathExprParser.LPAREN) self.state = 1538 self.expr() self.state = 1543 self._errHandler.sync(self) _la = self._input.LA(1) while _la==MathExprParser.COMMA: self.state = 1539 self.match(MathExprParser.COMMA) self.state = 1540 self.expr() self.state = 1545 self._errHandler.sync(self) _la = self._input.LA(1) self.state = 1546 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.MAP]: localctx = MathExprParser.MapFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 1548 self.match(MathExprParser.MAP) self.state = 1549 self.match(MathExprParser.LPAREN) self.state = 1550 self.expr() self.state = 1553 self._errHandler.sync(self) _la = self._input.LA(1) while True: self.state = 1551 self.match(MathExprParser.COMMA) self.state = 1552 self.expr() self.state = 1555 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==MathExprParser.COMMA): break self.state = 1557 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.EZCONV]: localctx = MathExprParser.EzConvFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 1559 self.match(MathExprParser.EZCONV) self.state = 1560 self.match(MathExprParser.LPAREN) self.state = 1561 self.expr() self.state = 1564 self._errHandler.sync(self) _la = self._input.LA(1) while True: self.state = 1562 self.match(MathExprParser.COMMA) self.state = 1563 self.expr() self.state = 1566 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==MathExprParser.COMMA): break self.state = 1568 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CONV]: localctx = MathExprParser.ConvFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 1570 self.match(MathExprParser.CONV) self.state = 1571 self.match(MathExprParser.LPAREN) self.state = 1572 self.expr() self.state = 1575 self._errHandler.sync(self) _la = self._input.LA(1) while True: self.state = 1573 self.match(MathExprParser.COMMA) self.state = 1574 self.expr() self.state = 1577 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==MathExprParser.COMMA): break self.state = 1579 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RESHAPE]: localctx = MathExprParser.ReshapeFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 1581 self.match(MathExprParser.RESHAPE) self.state = 1582 self.match(MathExprParser.LPAREN) self.state = 1583 self.expr() self.state = 1584 self.match(MathExprParser.COMMA) self.state = 1585 self.expr() self.state = 1586 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.SQUEEZE]: localctx = MathExprParser.SqueezeFuncContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 1588 self.match(MathExprParser.SQUEEZE) self.state = 1589 self.match(MathExprParser.LPAREN) self.state = 1590 self.expr() self.state = 1593 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1591 self.match(MathExprParser.COMMA) self.state = 1592 self.expr() self.state = 1595 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.UNSQUEEZE]: localctx = MathExprParser.UnsqueezeFuncContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 1597 self.match(MathExprParser.UNSQUEEZE) self.state = 1598 self.match(MathExprParser.LPAREN) self.state = 1599 self.expr() self.state = 1600 self.match(MathExprParser.COMMA) self.state = 1601 self.expr() self.state = 1602 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CONCAT]: localctx = MathExprParser.ConcatFuncContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 1604 self.match(MathExprParser.CONCAT) self.state = 1605 self.match(MathExprParser.LPAREN) self.state = 1606 self.expr() self.state = 1609 self._errHandler.sync(self) _la = self._input.LA(1) while True: self.state = 1607 self.match(MathExprParser.COMMA) self.state = 1608 self.expr() self.state = 1611 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==MathExprParser.COMMA): break self.state = 1613 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx class FuncNoiseContext(ParserRuleContext): __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser def getRuleIndex(self): return MathExprParser.RULE_funcNoise def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) class ExponentialFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def EXPONENTIAL(self): return self.getToken(MathExprParser.EXPONENTIAL, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterExponentialFunc" ): listener.enterExponentialFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitExponentialFunc" ): listener.exitExponentialFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExponentialFunc" ): return visitor.visitExponentialFunc(self) else: return visitor.visitChildren(self) class PoissonFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def POISSON(self): return self.getToken(MathExprParser.POISSON, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPoissonFunc" ): listener.enterPoissonFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPoissonFunc" ): listener.exitPoissonFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPoissonFunc" ): return visitor.visitPoissonFunc(self) else: return visitor.visitChildren(self) class LaplaceDistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def LAPLACEDIST(self): return self.getToken(MathExprParser.LAPLACEDIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLaplaceDistFunc" ): listener.enterLaplaceDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLaplaceDistFunc" ): listener.exitLaplaceDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLaplaceDistFunc" ): return visitor.visitLaplaceDistFunc(self) else: return visitor.visitChildren(self) class CellularFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def CELLULAR(self): return self.getToken(MathExprParser.CELLULAR, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCellularFunc" ): listener.enterCellularFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCellularFunc" ): listener.exitCellularFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCellularFunc" ): return visitor.visitCellularFunc(self) else: return visitor.visitChildren(self) class NoiseFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def NOISE(self): return self.getToken(MathExprParser.NOISE, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterNoiseFunc" ): listener.enterNoiseFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitNoiseFunc" ): listener.exitNoiseFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNoiseFunc" ): return visitor.visitNoiseFunc(self) else: return visitor.visitChildren(self) class BetaDistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def BETADIST(self): return self.getToken(MathExprParser.BETADIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBetaDistFunc" ): listener.enterBetaDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBetaDistFunc" ): listener.exitBetaDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBetaDistFunc" ): return visitor.visitBetaDistFunc(self) else: return visitor.visitChildren(self) class BernoulliFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def BERNOULLI(self): return self.getToken(MathExprParser.BERNOULLI, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterBernoulliFunc" ): listener.enterBernoulliFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitBernoulliFunc" ): listener.exitBernoulliFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBernoulliFunc" ): return visitor.visitBernoulliFunc(self) else: return visitor.visitChildren(self) class GammaDistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def GAMMADIST(self): return self.getToken(MathExprParser.GAMMADIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGammaDistFunc" ): listener.enterGammaDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGammaDistFunc" ): listener.exitGammaDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGammaDistFunc" ): return visitor.visitGammaDistFunc(self) else: return visitor.visitChildren(self) class WeibullDistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def WEIBULLDIST(self): return self.getToken(MathExprParser.WEIBULLDIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterWeibullDistFunc" ): listener.enterWeibullDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitWeibullDistFunc" ): listener.exitWeibullDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitWeibullDistFunc" ): return visitor.visitWeibullDistFunc(self) else: return visitor.visitChildren(self) class LogNormalFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def LOGNORMAL(self): return self.getToken(MathExprParser.LOGNORMAL, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterLogNormalFunc" ): listener.enterLogNormalFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitLogNormalFunc" ): listener.exitLogNormalFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLogNormalFunc" ): return visitor.visitLogNormalFunc(self) else: return visitor.visitChildren(self) class PerlinFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def PERLIN(self): return self.getToken(MathExprParser.PERLIN, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPerlinFunc" ): listener.enterPerlinFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPerlinFunc" ): listener.exitPerlinFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPerlinFunc" ): return visitor.visitPerlinFunc(self) else: return visitor.visitChildren(self) class PlasmaFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def PLASMA(self): return self.getToken(MathExprParser.PLASMA, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterPlasmaFunc" ): listener.enterPlasmaFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitPlasmaFunc" ): listener.exitPlasmaFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPlasmaFunc" ): return visitor.visitPlasmaFunc(self) else: return visitor.visitChildren(self) class DomainWarpFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def DOMAIN_WARP(self): return self.getToken(MathExprParser.DOMAIN_WARP, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterDomainWarpFunc" ): listener.enterDomainWarpFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitDomainWarpFunc" ): listener.exitDomainWarpFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDomainWarpFunc" ): return visitor.visitDomainWarpFunc(self) else: return visitor.visitChildren(self) class RidgedFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def RIDGED(self): return self.getToken(MathExprParser.RIDGED, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRidgedFunc" ): listener.enterRidgedFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRidgedFunc" ): listener.exitRidgedFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRidgedFunc" ): return visitor.visitRidgedFunc(self) else: return visitor.visitChildren(self) class GumbelDistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def GUMBELDIST(self): return self.getToken(MathExprParser.GUMBELDIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterGumbelDistFunc" ): listener.enterGumbelDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitGumbelDistFunc" ): listener.exitGumbelDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGumbelDistFunc" ): return visitor.visitGumbelDistFunc(self) else: return visitor.visitChildren(self) class CauchyFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def CAUCHY(self): return self.getToken(MathExprParser.CAUCHY, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterCauchyFunc" ): listener.enterCauchyFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitCauchyFunc" ): listener.exitCauchyFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCauchyFunc" ): return visitor.visitCauchyFunc(self) else: return visitor.visitChildren(self) class StudentTDistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def STUDENTTDIST(self): return self.getToken(MathExprParser.STUDENTTDIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterStudentTDistFunc" ): listener.enterStudentTDistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitStudentTDistFunc" ): listener.exitStudentTDistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStudentTDistFunc" ): return visitor.visitStudentTDistFunc(self) else: return visitor.visitChildren(self) class Chi2DistFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def CHI2DIST(self): return self.getToken(MathExprParser.CHI2DIST, 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, i:int=None): if i is None: return self.getTokens(MathExprParser.COMMA) else: return self.getToken(MathExprParser.COMMA, i) def RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterChi2DistFunc" ): listener.enterChi2DistFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitChi2DistFunc" ): listener.exitChi2DistFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitChi2DistFunc" ): return visitor.visitChi2DistFunc(self) else: return visitor.visitChildren(self) class RandFuncContext(FuncNoiseContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNoiseContext super().__init__(parser) self.copyFrom(ctx) def RAND(self): return self.getToken(MathExprParser.RAND, 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 RPAREN(self): return self.getToken(MathExprParser.RPAREN, 0) def COMMA(self): return self.getToken(MathExprParser.COMMA, 0) def enterRule(self, listener:ParseTreeListener): if hasattr( listener, "enterRandFunc" ): listener.enterRandFunc(self) def exitRule(self, listener:ParseTreeListener): if hasattr( listener, "exitRandFunc" ): listener.exitRandFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRandFunc" ): return visitor.visitRandFunc(self) else: return visitor.visitChildren(self) def funcNoise(self): localctx = MathExprParser.FuncNoiseContext(self, self._ctx, self.state) self.enterRule(localctx, 60, self.RULE_funcNoise) self._la = 0 # Token type try: self.state = 1884 self._errHandler.sync(self) token = self._input.LA(1) if token in [MathExprParser.NOISE]: localctx = MathExprParser.NoiseFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 1617 self.match(MathExprParser.NOISE) self.state = 1618 self.match(MathExprParser.LPAREN) self.state = 1619 self.expr() self.state = 1622 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1620 self.match(MathExprParser.COMMA) self.state = 1621 self.expr() self.state = 1624 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RAND]: localctx = MathExprParser.RandFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 1626 self.match(MathExprParser.RAND) self.state = 1627 self.match(MathExprParser.LPAREN) self.state = 1628 self.expr() self.state = 1631 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1629 self.match(MathExprParser.COMMA) self.state = 1630 self.expr() self.state = 1633 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.EXPONENTIAL]: localctx = MathExprParser.ExponentialFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 1635 self.match(MathExprParser.EXPONENTIAL) self.state = 1636 self.match(MathExprParser.LPAREN) self.state = 1637 self.expr() self.state = 1638 self.match(MathExprParser.COMMA) self.state = 1639 self.expr() self.state = 1642 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1640 self.match(MathExprParser.COMMA) self.state = 1641 self.expr() self.state = 1644 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BERNOULLI]: localctx = MathExprParser.BernoulliFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) self.state = 1646 self.match(MathExprParser.BERNOULLI) self.state = 1647 self.match(MathExprParser.LPAREN) self.state = 1648 self.expr() self.state = 1649 self.match(MathExprParser.COMMA) self.state = 1650 self.expr() self.state = 1653 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1651 self.match(MathExprParser.COMMA) self.state = 1652 self.expr() self.state = 1655 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.POISSON]: localctx = MathExprParser.PoissonFuncContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 1657 self.match(MathExprParser.POISSON) self.state = 1658 self.match(MathExprParser.LPAREN) self.state = 1659 self.expr() self.state = 1660 self.match(MathExprParser.COMMA) self.state = 1661 self.expr() self.state = 1664 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1662 self.match(MathExprParser.COMMA) self.state = 1663 self.expr() self.state = 1666 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CAUCHY]: localctx = MathExprParser.CauchyFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) self.state = 1668 self.match(MathExprParser.CAUCHY) self.state = 1669 self.match(MathExprParser.LPAREN) self.state = 1670 self.expr() self.state = 1671 self.match(MathExprParser.COMMA) self.state = 1672 self.expr() self.state = 1673 self.match(MathExprParser.COMMA) self.state = 1674 self.expr() self.state = 1677 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1675 self.match(MathExprParser.COMMA) self.state = 1676 self.expr() self.state = 1679 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LOGNORMAL]: localctx = MathExprParser.LogNormalFuncContext(self, localctx) self.enterOuterAlt(localctx, 7) self.state = 1681 self.match(MathExprParser.LOGNORMAL) self.state = 1682 self.match(MathExprParser.LPAREN) self.state = 1683 self.expr() self.state = 1684 self.match(MathExprParser.COMMA) self.state = 1685 self.expr() self.state = 1686 self.match(MathExprParser.COMMA) self.state = 1687 self.expr() self.state = 1690 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1688 self.match(MathExprParser.COMMA) self.state = 1689 self.expr() self.state = 1692 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GAMMADIST]: localctx = MathExprParser.GammaDistFuncContext(self, localctx) self.enterOuterAlt(localctx, 8) self.state = 1694 self.match(MathExprParser.GAMMADIST) self.state = 1695 self.match(MathExprParser.LPAREN) self.state = 1696 self.expr() self.state = 1697 self.match(MathExprParser.COMMA) self.state = 1698 self.expr() self.state = 1699 self.match(MathExprParser.COMMA) self.state = 1700 self.expr() self.state = 1703 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1701 self.match(MathExprParser.COMMA) self.state = 1702 self.expr() self.state = 1705 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.BETADIST]: localctx = MathExprParser.BetaDistFuncContext(self, localctx) self.enterOuterAlt(localctx, 9) self.state = 1707 self.match(MathExprParser.BETADIST) self.state = 1708 self.match(MathExprParser.LPAREN) self.state = 1709 self.expr() self.state = 1710 self.match(MathExprParser.COMMA) self.state = 1711 self.expr() self.state = 1712 self.match(MathExprParser.COMMA) self.state = 1713 self.expr() self.state = 1716 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1714 self.match(MathExprParser.COMMA) self.state = 1715 self.expr() self.state = 1718 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.LAPLACEDIST]: localctx = MathExprParser.LaplaceDistFuncContext(self, localctx) self.enterOuterAlt(localctx, 10) self.state = 1720 self.match(MathExprParser.LAPLACEDIST) self.state = 1721 self.match(MathExprParser.LPAREN) self.state = 1722 self.expr() self.state = 1723 self.match(MathExprParser.COMMA) self.state = 1724 self.expr() self.state = 1725 self.match(MathExprParser.COMMA) self.state = 1726 self.expr() self.state = 1729 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1727 self.match(MathExprParser.COMMA) self.state = 1728 self.expr() self.state = 1731 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.GUMBELDIST]: localctx = MathExprParser.GumbelDistFuncContext(self, localctx) self.enterOuterAlt(localctx, 11) self.state = 1733 self.match(MathExprParser.GUMBELDIST) self.state = 1734 self.match(MathExprParser.LPAREN) self.state = 1735 self.expr() self.state = 1736 self.match(MathExprParser.COMMA) self.state = 1737 self.expr() self.state = 1738 self.match(MathExprParser.COMMA) self.state = 1739 self.expr() self.state = 1742 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1740 self.match(MathExprParser.COMMA) self.state = 1741 self.expr() self.state = 1744 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.WEIBULLDIST]: localctx = MathExprParser.WeibullDistFuncContext(self, localctx) self.enterOuterAlt(localctx, 12) self.state = 1746 self.match(MathExprParser.WEIBULLDIST) self.state = 1747 self.match(MathExprParser.LPAREN) self.state = 1748 self.expr() self.state = 1749 self.match(MathExprParser.COMMA) self.state = 1750 self.expr() self.state = 1751 self.match(MathExprParser.COMMA) self.state = 1752 self.expr() self.state = 1755 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1753 self.match(MathExprParser.COMMA) self.state = 1754 self.expr() self.state = 1757 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CHI2DIST]: localctx = MathExprParser.Chi2DistFuncContext(self, localctx) self.enterOuterAlt(localctx, 13) self.state = 1759 self.match(MathExprParser.CHI2DIST) self.state = 1760 self.match(MathExprParser.LPAREN) self.state = 1761 self.expr() self.state = 1762 self.match(MathExprParser.COMMA) self.state = 1763 self.expr() self.state = 1766 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1764 self.match(MathExprParser.COMMA) self.state = 1765 self.expr() self.state = 1768 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.STUDENTTDIST]: localctx = MathExprParser.StudentTDistFuncContext(self, localctx) self.enterOuterAlt(localctx, 14) self.state = 1770 self.match(MathExprParser.STUDENTTDIST) self.state = 1771 self.match(MathExprParser.LPAREN) self.state = 1772 self.expr() self.state = 1773 self.match(MathExprParser.COMMA) self.state = 1774 self.expr() self.state = 1777 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1775 self.match(MathExprParser.COMMA) self.state = 1776 self.expr() self.state = 1779 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PERLIN]: localctx = MathExprParser.PerlinFuncContext(self, localctx) self.enterOuterAlt(localctx, 15) self.state = 1781 self.match(MathExprParser.PERLIN) self.state = 1782 self.match(MathExprParser.LPAREN) self.state = 1783 self.expr() self.state = 1784 self.match(MathExprParser.COMMA) self.state = 1785 self.expr() self.state = 1788 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,103,self._ctx) if la_ == 1: self.state = 1786 self.match(MathExprParser.COMMA) self.state = 1787 self.expr() self.state = 1792 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,104,self._ctx) if la_ == 1: self.state = 1790 self.match(MathExprParser.COMMA) self.state = 1791 self.expr() self.state = 1796 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1794 self.match(MathExprParser.COMMA) self.state = 1795 self.expr() self.state = 1798 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.CELLULAR]: localctx = MathExprParser.CellularFuncContext(self, localctx) self.enterOuterAlt(localctx, 16) self.state = 1800 self.match(MathExprParser.CELLULAR) self.state = 1801 self.match(MathExprParser.LPAREN) self.state = 1802 self.expr() self.state = 1803 self.match(MathExprParser.COMMA) self.state = 1804 self.expr() self.state = 1807 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,106,self._ctx) if la_ == 1: self.state = 1805 self.match(MathExprParser.COMMA) self.state = 1806 self.expr() self.state = 1811 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,107,self._ctx) if la_ == 1: self.state = 1809 self.match(MathExprParser.COMMA) self.state = 1810 self.expr() self.state = 1815 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1813 self.match(MathExprParser.COMMA) self.state = 1814 self.expr() self.state = 1817 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.PLASMA]: localctx = MathExprParser.PlasmaFuncContext(self, localctx) self.enterOuterAlt(localctx, 17) self.state = 1819 self.match(MathExprParser.PLASMA) self.state = 1820 self.match(MathExprParser.LPAREN) self.state = 1821 self.expr() self.state = 1822 self.match(MathExprParser.COMMA) self.state = 1823 self.expr() self.state = 1826 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,109,self._ctx) if la_ == 1: self.state = 1824 self.match(MathExprParser.COMMA) self.state = 1825 self.expr() self.state = 1830 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,110,self._ctx) if la_ == 1: self.state = 1828 self.match(MathExprParser.COMMA) self.state = 1829 self.expr() self.state = 1834 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1832 self.match(MathExprParser.COMMA) self.state = 1833 self.expr() self.state = 1836 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.RIDGED]: localctx = MathExprParser.RidgedFuncContext(self, localctx) self.enterOuterAlt(localctx, 18) self.state = 1838 self.match(MathExprParser.RIDGED) self.state = 1839 self.match(MathExprParser.LPAREN) self.state = 1840 self.expr() self.state = 1841 self.match(MathExprParser.COMMA) self.state = 1842 self.expr() self.state = 1845 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,112,self._ctx) if la_ == 1: self.state = 1843 self.match(MathExprParser.COMMA) self.state = 1844 self.expr() self.state = 1849 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,113,self._ctx) if la_ == 1: self.state = 1847 self.match(MathExprParser.COMMA) self.state = 1848 self.expr() self.state = 1853 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1851 self.match(MathExprParser.COMMA) self.state = 1852 self.expr() self.state = 1855 self.match(MathExprParser.RPAREN) pass elif token in [MathExprParser.DOMAIN_WARP]: localctx = MathExprParser.DomainWarpFuncContext(self, localctx) self.enterOuterAlt(localctx, 19) self.state = 1857 self.match(MathExprParser.DOMAIN_WARP) self.state = 1858 self.match(MathExprParser.LPAREN) self.state = 1859 self.expr() self.state = 1860 self.match(MathExprParser.COMMA) self.state = 1861 self.expr() self.state = 1862 self.match(MathExprParser.COMMA) self.state = 1863 self.expr() self.state = 1864 self.match(MathExprParser.COMMA) self.state = 1865 self.expr() self.state = 1868 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,115,self._ctx) if la_ == 1: self.state = 1866 self.match(MathExprParser.COMMA) self.state = 1867 self.expr() self.state = 1872 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,116,self._ctx) if la_ == 1: self.state = 1870 self.match(MathExprParser.COMMA) self.state = 1871 self.expr() self.state = 1876 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,117,self._ctx) if la_ == 1: self.state = 1874 self.match(MathExprParser.COMMA) self.state = 1875 self.expr() self.state = 1880 self._errHandler.sync(self) _la = self._input.LA(1) if _la==MathExprParser.COMMA: self.state = 1878 self.match(MathExprParser.COMMA) self.state = 1879 self.expr() self.state = 1882 self.match(MathExprParser.RPAREN) pass else: raise NoViableAltException(self) except RecognitionException as re: localctx.exception = re self._errHandler.reportError(self, re) self._errHandler.recover(self, re) finally: self.exitRule() return localctx def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int): if self._predicates == None: self._predicates = dict() self._predicates[14] = self.compExpr_sempred self._predicates[15] = self.addExpr_sempred self._predicates[16] = self.mulExpr_sempred self._predicates[17] = self.shiftExpr_sempred self._predicates[20] = self.indexExpr_sempred pred = self._predicates.get(ruleIndex, None) if pred is None: raise Exception("No predicate with index:" + str(ruleIndex)) else: return pred(localctx, predIndex) 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 shiftExpr_sempred(self, localctx:ShiftExprContext, predIndex:int): if predIndex == 11: return self.precpred(self._ctx, 3) if predIndex == 12: return self.precpred(self._ctx, 2) def indexExpr_sempred(self, localctx:IndexExprContext, predIndex:int): if predIndex == 13: return self.precpred(self._ctx, 2)