# Generated from javaToPython.g4 by ANTLR 4.9.2
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\2\65")
        buf.write("\u0133\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7")
        buf.write("\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r")
        buf.write("\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23")
        buf.write("\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30")
        buf.write("\4\31\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36")
        buf.write("\t\36\4\37\t\37\4 \t \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%")
        buf.write("\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4,\t,\4-\t-\4.")
        buf.write("\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64")
        buf.write("\t\64\3\2\3\2\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6")
        buf.write("\3\7\3\7\3\b\3\b\3\t\3\t\3\n\3\n\3\13\3\13\3\13\3\f\3")
        buf.write("\f\3\f\3\r\3\r\3\r\3\16\3\16\3\16\3\17\3\17\3\17\3\20")
        buf.write("\3\20\3\20\3\21\3\21\3\22\3\22\3\22\3\23\3\23\3\23\3\24")
        buf.write("\3\24\3\25\3\25\3\26\3\26\3\27\3\27\3\30\3\30\3\31\3\31")
        buf.write("\3\32\3\32\3\33\3\33\3\34\3\34\3\35\3\35\3\36\3\36\3\37")
        buf.write("\3\37\3\37\3\37\3 \3 \3 \3 \3 \3 \3!\3!\3!\3\"\3\"\3\"")
        buf.write("\3\"\3\"\3#\3#\3#\3#\3#\3#\3#\3#\3$\3$\3$\3$\3$\3$\3%")
        buf.write("\3%\3%\3%\3%\3%\3%\3%\3%\3&\3&\3&\3&\3&\3&\3&\3\'\3\'")
        buf.write("\3\'\3\'\3\'\3(\3(\3(\3(\3)\3)\3)\3)\3)\3)\3*\3*\3*\3")
        buf.write("*\3*\3+\3+\3+\3+\3+\3+\3+\3,\3,\3,\3,\3,\3,\3,\3,\3-\3")
        buf.write("-\3-\3-\3-\3.\3.\3.\3.\3.\3.\3/\3/\7/\u010e\n/\f/\16/")
        buf.write("\u0111\13/\3\60\6\60\u0114\n\60\r\60\16\60\u0115\3\61")
        buf.write("\6\61\u0119\n\61\r\61\16\61\u011a\3\61\3\61\6\61\u011f")
        buf.write("\n\61\r\61\16\61\u0120\3\62\3\62\7\62\u0125\n\62\f\62")
        buf.write("\16\62\u0128\13\62\3\62\3\62\3\63\3\63\3\63\3\63\3\64")
        buf.write("\3\64\5\64\u0132\n\64\2\2\65\3\3\5\4\7\5\t\6\13\7\r\b")
        buf.write("\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22")
        buf.write("#\23%\24\'\25)\26+\27-\30/\31\61\32\63\33\65\34\67\35")
        buf.write("9\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]\60_\61a\62")
        buf.write("c\63e\64g\65\3\2\b\5\2\13\f\17\17\"\"\4\2C\\c|\6\2\62")
        buf.write(";C\\aac|\3\2\62;\6\2\f\f$$^^tt\6\2\f\f))^^tt\2\u0138\2")
        buf.write("\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3")
        buf.write("\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2")
        buf.write("\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2")
        buf.write("\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%")
        buf.write("\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2")
        buf.write("\2/\3\2\2\2\2\61\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67")
        buf.write("\3\2\2\2\29\3\2\2\2\2;\3\2\2\2\2=\3\2\2\2\2?\3\2\2\2\2")
        buf.write("A\3\2\2\2\2C\3\2\2\2\2E\3\2\2\2\2G\3\2\2\2\2I\3\2\2\2")
        buf.write("\2K\3\2\2\2\2M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2")
        buf.write("\2\2U\3\2\2\2\2W\3\2\2\2\2Y\3\2\2\2\2[\3\2\2\2\2]\3\2")
        buf.write("\2\2\2_\3\2\2\2\2a\3\2\2\2\2c\3\2\2\2\2e\3\2\2\2\2g\3")
        buf.write("\2\2\2\3i\3\2\2\2\5m\3\2\2\2\7o\3\2\2\2\tq\3\2\2\2\13")
        buf.write("s\3\2\2\2\ru\3\2\2\2\17w\3\2\2\2\21y\3\2\2\2\23{\3\2\2")
        buf.write("\2\25}\3\2\2\2\27\u0080\3\2\2\2\31\u0083\3\2\2\2\33\u0086")
        buf.write("\3\2\2\2\35\u0089\3\2\2\2\37\u008c\3\2\2\2!\u008f\3\2")
        buf.write("\2\2#\u0091\3\2\2\2%\u0094\3\2\2\2\'\u0097\3\2\2\2)\u0099")
        buf.write("\3\2\2\2+\u009b\3\2\2\2-\u009d\3\2\2\2/\u009f\3\2\2\2")
        buf.write("\61\u00a1\3\2\2\2\63\u00a3\3\2\2\2\65\u00a5\3\2\2\2\67")
        buf.write("\u00a7\3\2\2\29\u00a9\3\2\2\2;\u00ab\3\2\2\2=\u00ad\3")
        buf.write("\2\2\2?\u00b1\3\2\2\2A\u00b7\3\2\2\2C\u00ba\3\2\2\2E\u00bf")
        buf.write("\3\2\2\2G\u00c7\3\2\2\2I\u00cd\3\2\2\2K\u00d6\3\2\2\2")
        buf.write("M\u00dd\3\2\2\2O\u00e2\3\2\2\2Q\u00e6\3\2\2\2S\u00ec\3")
        buf.write("\2\2\2U\u00f1\3\2\2\2W\u00f8\3\2\2\2Y\u0100\3\2\2\2[\u0105")
        buf.write("\3\2\2\2]\u010b\3\2\2\2_\u0113\3\2\2\2a\u0118\3\2\2\2")
        buf.write("c\u0122\3\2\2\2e\u012b\3\2\2\2g\u0131\3\2\2\2ij\t\2\2")
        buf.write("\2jk\3\2\2\2kl\b\2\2\2l\4\3\2\2\2mn\7-\2\2n\6\3\2\2\2")
        buf.write("op\7/\2\2p\b\3\2\2\2qr\7,\2\2r\n\3\2\2\2st\7\61\2\2t\f")
        buf.write("\3\2\2\2uv\7\'\2\2v\16\3\2\2\2wx\7?\2\2x\20\3\2\2\2yz")
        buf.write("\7@\2\2z\22\3\2\2\2{|\7>\2\2|\24\3\2\2\2}~\7?\2\2~\177")
        buf.write("\7?\2\2\177\26\3\2\2\2\u0080\u0081\7@\2\2\u0081\u0082")
        buf.write("\7?\2\2\u0082\30\3\2\2\2\u0083\u0084\7>\2\2\u0084\u0085")
        buf.write("\7?\2\2\u0085\32\3\2\2\2\u0086\u0087\7#\2\2\u0087\u0088")
        buf.write("\7?\2\2\u0088\34\3\2\2\2\u0089\u008a\7(\2\2\u008a\u008b")
        buf.write("\7(\2\2\u008b\36\3\2\2\2\u008c\u008d\7~\2\2\u008d\u008e")
        buf.write("\7~\2\2\u008e \3\2\2\2\u008f\u0090\7#\2\2\u0090\"\3\2")
        buf.write("\2\2\u0091\u0092\7-\2\2\u0092\u0093\7-\2\2\u0093$\3\2")
        buf.write("\2\2\u0094\u0095\7/\2\2\u0095\u0096\7/\2\2\u0096&\3\2")
        buf.write("\2\2\u0097\u0098\7*\2\2\u0098(\3\2\2\2\u0099\u009a\7+")
        buf.write("\2\2\u009a*\3\2\2\2\u009b\u009c\7]\2\2\u009c,\3\2\2\2")
        buf.write("\u009d\u009e\7_\2\2\u009e.\3\2\2\2\u009f\u00a0\7}\2\2")
        buf.write("\u00a0\60\3\2\2\2\u00a1\u00a2\7\177\2\2\u00a2\62\3\2\2")
        buf.write("\2\u00a3\u00a4\7=\2\2\u00a4\64\3\2\2\2\u00a5\u00a6\7.")
        buf.write("\2\2\u00a6\66\3\2\2\2\u00a7\u00a8\7\60\2\2\u00a88\3\2")
        buf.write("\2\2\u00a9\u00aa\7)\2\2\u00aa:\3\2\2\2\u00ab\u00ac\7$")
        buf.write("\2\2\u00ac<\3\2\2\2\u00ad\u00ae\7h\2\2\u00ae\u00af\7q")
        buf.write("\2\2\u00af\u00b0\7t\2\2\u00b0>\3\2\2\2\u00b1\u00b2\7y")
        buf.write("\2\2\u00b2\u00b3\7j\2\2\u00b3\u00b4\7k\2\2\u00b4\u00b5")
        buf.write("\7n\2\2\u00b5\u00b6\7g\2\2\u00b6@\3\2\2\2\u00b7\u00b8")
        buf.write("\7k\2\2\u00b8\u00b9\7h\2\2\u00b9B\3\2\2\2\u00ba\u00bb")
        buf.write("\7g\2\2\u00bb\u00bc\7n\2\2\u00bc\u00bd\7u\2\2\u00bd\u00be")
        buf.write("\7g\2\2\u00beD\3\2\2\2\u00bf\u00c0\7g\2\2\u00c0\u00c1")
        buf.write("\7n\2\2\u00c1\u00c2\7u\2\2\u00c2\u00c3\7g\2\2\u00c3\u00c4")
        buf.write("\7\"\2\2\u00c4\u00c5\7k\2\2\u00c5\u00c6\7h\2\2\u00c6F")
        buf.write("\3\2\2\2\u00c7\u00c8\7d\2\2\u00c8\u00c9\7t\2\2\u00c9\u00ca")
        buf.write("\7g\2\2\u00ca\u00cb\7c\2\2\u00cb\u00cc\7m\2\2\u00ccH\3")
        buf.write("\2\2\2\u00cd\u00ce\7h\2\2\u00ce\u00cf\7w\2\2\u00cf\u00d0")
        buf.write("\7p\2\2\u00d0\u00d1\7e\2\2\u00d1\u00d2\7v\2\2\u00d2\u00d3")
        buf.write("\7k\2\2\u00d3\u00d4\7q\2\2\u00d4\u00d5\7p\2\2\u00d5J\3")
        buf.write("\2\2\2\u00d6\u00d7\7t\2\2\u00d7\u00d8\7g\2\2\u00d8\u00d9")
        buf.write("\7v\2\2\u00d9\u00da\7w\2\2\u00da\u00db\7t\2\2\u00db\u00dc")
        buf.write("\7p\2\2\u00dcL\3\2\2\2\u00dd\u00de\7x\2\2\u00de\u00df")
        buf.write("\7q\2\2\u00df\u00e0\7k\2\2\u00e0\u00e1\7f\2\2\u00e1N\3")
        buf.write("\2\2\2\u00e2\u00e3\7k\2\2\u00e3\u00e4\7p\2\2\u00e4\u00e5")
        buf.write("\7v\2\2\u00e5P\3\2\2\2\u00e6\u00e7\7h\2\2\u00e7\u00e8")
        buf.write("\7n\2\2\u00e8\u00e9\7q\2\2\u00e9\u00ea\7c\2\2\u00ea\u00eb")
        buf.write("\7v\2\2\u00ebR\3\2\2\2\u00ec\u00ed\7e\2\2\u00ed\u00ee")
        buf.write("\7j\2\2\u00ee\u00ef\7c\2\2\u00ef\u00f0\7t\2\2\u00f0T\3")
        buf.write("\2\2\2\u00f1\u00f2\7u\2\2\u00f2\u00f3\7v\2\2\u00f3\u00f4")
        buf.write("\7t\2\2\u00f4\u00f5\7k\2\2\u00f5\u00f6\7p\2\2\u00f6\u00f7")
        buf.write("\7i\2\2\u00f7V\3\2\2\2\u00f8\u00f9\7d\2\2\u00f9\u00fa")
        buf.write("\7q\2\2\u00fa\u00fb\7q\2\2\u00fb\u00fc\7n\2\2\u00fc\u00fd")
        buf.write("\7g\2\2\u00fd\u00fe\7c\2\2\u00fe\u00ff\7p\2\2\u00ffX\3")
        buf.write("\2\2\2\u0100\u0101\7v\2\2\u0101\u0102\7t\2\2\u0102\u0103")
        buf.write("\7w\2\2\u0103\u0104\7g\2\2\u0104Z\3\2\2\2\u0105\u0106")
        buf.write("\7h\2\2\u0106\u0107\7c\2\2\u0107\u0108\7n\2\2\u0108\u0109")
        buf.write("\7u\2\2\u0109\u010a\7g\2\2\u010a\\\3\2\2\2\u010b\u010f")
        buf.write("\t\3\2\2\u010c\u010e\t\4\2\2\u010d\u010c\3\2\2\2\u010e")
        buf.write("\u0111\3\2\2\2\u010f\u010d\3\2\2\2\u010f\u0110\3\2\2\2")
        buf.write("\u0110^\3\2\2\2\u0111\u010f\3\2\2\2\u0112\u0114\t\5\2")
        buf.write("\2\u0113\u0112\3\2\2\2\u0114\u0115\3\2\2\2\u0115\u0113")
        buf.write("\3\2\2\2\u0115\u0116\3\2\2\2\u0116`\3\2\2\2\u0117\u0119")
        buf.write("\t\5\2\2\u0118\u0117\3\2\2\2\u0119\u011a\3\2\2\2\u011a")
        buf.write("\u0118\3\2\2\2\u011a\u011b\3\2\2\2\u011b\u011c\3\2\2\2")
        buf.write("\u011c\u011e\7\60\2\2\u011d\u011f\t\5\2\2\u011e\u011d")
        buf.write("\3\2\2\2\u011f\u0120\3\2\2\2\u0120\u011e\3\2\2\2\u0120")
        buf.write("\u0121\3\2\2\2\u0121b\3\2\2\2\u0122\u0126\7$\2\2\u0123")
        buf.write("\u0125\n\6\2\2\u0124\u0123\3\2\2\2\u0125\u0128\3\2\2\2")
        buf.write("\u0126\u0124\3\2\2\2\u0126\u0127\3\2\2\2\u0127\u0129\3")
        buf.write("\2\2\2\u0128\u0126\3\2\2\2\u0129\u012a\7$\2\2\u012ad\3")
        buf.write("\2\2\2\u012b\u012c\7)\2\2\u012c\u012d\n\7\2\2\u012d\u012e")
        buf.write("\7)\2\2\u012ef\3\2\2\2\u012f\u0132\5Y-\2\u0130\u0132\5")
        buf.write("[.\2\u0131\u012f\3\2\2\2\u0131\u0130\3\2\2\2\u0132h\3")
        buf.write("\2\2\2\t\2\u010f\u0115\u011a\u0120\u0126\u0131\3\b\2\2")
        return buf.getvalue()


class gramLexer(Lexer):

    atn = ATNDeserializer().deserialize(serializedATN())

    decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]

    WHITESPACE = 1
    PLUS = 2
    MINUS = 3
    MUL = 4
    DIV = 5
    MOD = 6
    ASSIGN = 7
    GT = 8
    LT = 9
    EQ = 10
    GT_EQ = 11
    LT_EQ = 12
    NEQ = 13
    AND = 14
    OR = 15
    NOT = 16
    INCR = 17
    DECR = 18
    L_PAREN = 19
    R_PAREN = 20
    L_BRACKET = 21
    R_BRACKET = 22
    L_BRACE = 23
    R_BRACE = 24
    SEMICOLON = 25
    COMMA = 26
    DOT = 27
    QUOTE1 = 28
    QUOTE2 = 29
    FOR = 30
    WHILE = 31
    IF = 32
    ELSE = 33
    ELSEIF = 34
    BREAK = 35
    FUNCTION = 36
    RETURN = 37
    VOID = 38
    INT = 39
    FLOAT = 40
    CHAR = 41
    STRING = 42
    BOOLEAN = 43
    TRUE = 44
    FALSE = 45
    ID = 46
    INT_VAL = 47
    FLOAT_VAL = 48
    STRING_VAL = 49
    CHAR_VAL = 50
    BOOLEAN_VAL = 51

    channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]

    modeNames = [ "DEFAULT_MODE" ]

    literalNames = [ "<INVALID>",
            "'+'", "'-'", "'*'", "'/'", "'%'", "'='", "'>'", "'<'", "'=='", 
            "'>='", "'<='", "'!='", "'&&'", "'||'", "'!'", "'++'", "'--'", 
            "'('", "')'", "'['", "']'", "'{'", "'}'", "';'", "','", "'.'", 
            "'''", "'\"'", "'for'", "'while'", "'if'", "'else'", "'else if'", 
            "'break'", "'function'", "'return'", "'void'", "'int'", "'float'", 
            "'char'", "'string'", "'boolean'", "'true'", "'false'" ]

    symbolicNames = [ "<INVALID>",
            "WHITESPACE", "PLUS", "MINUS", "MUL", "DIV", "MOD", "ASSIGN", 
            "GT", "LT", "EQ", "GT_EQ", "LT_EQ", "NEQ", "AND", "OR", "NOT", 
            "INCR", "DECR", "L_PAREN", "R_PAREN", "L_BRACKET", "R_BRACKET", 
            "L_BRACE", "R_BRACE", "SEMICOLON", "COMMA", "DOT", "QUOTE1", 
            "QUOTE2", "FOR", "WHILE", "IF", "ELSE", "ELSEIF", "BREAK", "FUNCTION", 
            "RETURN", "VOID", "INT", "FLOAT", "CHAR", "STRING", "BOOLEAN", 
            "TRUE", "FALSE", "ID", "INT_VAL", "FLOAT_VAL", "STRING_VAL", 
            "CHAR_VAL", "BOOLEAN_VAL" ]

    ruleNames = [ "WHITESPACE", "PLUS", "MINUS", "MUL", "DIV", "MOD", "ASSIGN", 
                  "GT", "LT", "EQ", "GT_EQ", "LT_EQ", "NEQ", "AND", "OR", 
                  "NOT", "INCR", "DECR", "L_PAREN", "R_PAREN", "L_BRACKET", 
                  "R_BRACKET", "L_BRACE", "R_BRACE", "SEMICOLON", "COMMA", 
                  "DOT", "QUOTE1", "QUOTE2", "FOR", "WHILE", "IF", "ELSE", 
                  "ELSEIF", "BREAK", "FUNCTION", "RETURN", "VOID", "INT", 
                  "FLOAT", "CHAR", "STRING", "BOOLEAN", "TRUE", "FALSE", 
                  "ID", "INT_VAL", "FLOAT_VAL", "STRING_VAL", "CHAR_VAL", 
                  "BOOLEAN_VAL" ]

    grammarFileName = "javaToPython.g4"

    def __init__(self, input=None, output:TextIO = sys.stdout):
        super().__init__(input, output)
        self.checkVersion("4.9.2")
        self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
        self._actions = None
        self._predicates = None


