# Generated from /home/karol/Desktop/jfk/SimpleLang/SimpleLang.g4 by ANTLR 4.8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys



def serializedATN():
    with StringIO() as buf:
        buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\35")
        buf.write("\u00b0\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\3\2\3\2\3\3\3")
        buf.write("\3\3\3\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\6\7H\n\7\r")
        buf.write("\7\16\7I\3\b\6\bM\n\b\r\b\16\bN\3\b\3\b\7\bS\n\b\f\b\16")
        buf.write("\bV\13\b\3\t\3\t\3\n\3\n\3\13\3\13\3\f\3\f\3\r\3\r\3\r")
        buf.write("\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3")
        buf.write("\16\3\16\3\16\3\17\3\17\3\17\3\20\3\20\3\20\3\20\3\20")
        buf.write("\3\21\3\21\3\21\3\21\3\21\3\21\3\22\3\22\3\22\3\22\3\22")
        buf.write("\3\22\3\23\3\23\3\23\3\23\3\23\3\24\6\24\u008b\n\24\r")
        buf.write("\24\16\24\u008c\3\25\3\25\7\25\u0091\n\25\f\25\16\25\u0094")
        buf.write("\13\25\3\25\3\25\3\26\5\26\u0099\n\26\3\26\3\26\3\27\3")
        buf.write("\27\3\27\3\30\3\30\3\31\3\31\3\31\3\32\3\32\3\33\3\33")
        buf.write("\3\33\3\34\6\34\u00ab\n\34\r\34\16\34\u00ac\3\34\3\34")
        buf.write("\2\2\35\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f")
        buf.write("\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25)\26+\27")
        buf.write("-\30/\31\61\32\63\33\65\34\67\35\3\2\6\3\2\62;\4\2C\\")
        buf.write("c|\4\2$$^^\4\2\13\13\"\"\2\u00b6\2\3\3\2\2\2\2\5\3\2\2")
        buf.write("\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2")
        buf.write("\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27")
        buf.write("\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3")
        buf.write("\2\2\2\2!\3\2\2\2\2#\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\61\3\2\2")
        buf.write("\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\39\3\2\2\2\5")
        buf.write(";\3\2\2\2\7@\3\2\2\2\tB\3\2\2\2\13D\3\2\2\2\rG\3\2\2\2")
        buf.write("\17L\3\2\2\2\21W\3\2\2\2\23Y\3\2\2\2\25[\3\2\2\2\27]\3")
        buf.write("\2\2\2\31_\3\2\2\2\33f\3\2\2\2\35p\3\2\2\2\37s\3\2\2\2")
        buf.write("!x\3\2\2\2#~\3\2\2\2%\u0084\3\2\2\2\'\u008a\3\2\2\2)\u008e")
        buf.write("\3\2\2\2+\u0098\3\2\2\2-\u009c\3\2\2\2/\u009f\3\2\2\2")
        buf.write("\61\u00a1\3\2\2\2\63\u00a4\3\2\2\2\65\u00a6\3\2\2\2\67")
        buf.write("\u00aa\3\2\2\29:\7?\2\2:\4\3\2\2\2;<\7u\2\2<=\7s\2\2=")
        buf.write(">\7t\2\2>?\7v\2\2?\6\3\2\2\2@A\7`\2\2A\b\3\2\2\2BC\7*")
        buf.write("\2\2C\n\3\2\2\2DE\7+\2\2E\f\3\2\2\2FH\t\2\2\2GF\3\2\2")
        buf.write("\2HI\3\2\2\2IG\3\2\2\2IJ\3\2\2\2J\16\3\2\2\2KM\t\2\2\2")
        buf.write("LK\3\2\2\2MN\3\2\2\2NL\3\2\2\2NO\3\2\2\2OP\3\2\2\2PT\7")
        buf.write("\60\2\2QS\t\2\2\2RQ\3\2\2\2SV\3\2\2\2TR\3\2\2\2TU\3\2")
        buf.write("\2\2U\20\3\2\2\2VT\3\2\2\2WX\7,\2\2X\22\3\2\2\2YZ\7\61")
        buf.write("\2\2Z\24\3\2\2\2[\\\7-\2\2\\\26\3\2\2\2]^\7/\2\2^\30\3")
        buf.write("\2\2\2_`\7t\2\2`a\7g\2\2ab\7r\2\2bc\7g\2\2cd\7c\2\2de")
        buf.write("\7v\2\2e\32\3\2\2\2fg\7g\2\2gh\7p\2\2hi\7f\2\2ij\7t\2")
        buf.write("\2jk\7g\2\2kl\7r\2\2lm\7g\2\2mn\7c\2\2no\7v\2\2o\34\3")
        buf.write("\2\2\2pq\7k\2\2qr\7h\2\2r\36\3\2\2\2st\7v\2\2tu\7j\2\2")
        buf.write("uv\7g\2\2vw\7p\2\2w \3\2\2\2xy\7g\2\2yz\7p\2\2z{\7f\2")
        buf.write("\2{|\7k\2\2|}\7h\2\2}\"\3\2\2\2~\177\7r\2\2\177\u0080")
        buf.write("\7t\2\2\u0080\u0081\7k\2\2\u0081\u0082\7p\2\2\u0082\u0083")
        buf.write("\7v\2\2\u0083$\3\2\2\2\u0084\u0085\7t\2\2\u0085\u0086")
        buf.write("\7g\2\2\u0086\u0087\7c\2\2\u0087\u0088\7f\2\2\u0088&\3")
        buf.write("\2\2\2\u0089\u008b\t\3\2\2\u008a\u0089\3\2\2\2\u008b\u008c")
        buf.write("\3\2\2\2\u008c\u008a\3\2\2\2\u008c\u008d\3\2\2\2\u008d")
        buf.write("(\3\2\2\2\u008e\u0092\7$\2\2\u008f\u0091\n\4\2\2\u0090")
        buf.write("\u008f\3\2\2\2\u0091\u0094\3\2\2\2\u0092\u0090\3\2\2\2")
        buf.write("\u0092\u0093\3\2\2\2\u0093\u0095\3\2\2\2\u0094\u0092\3")
        buf.write("\2\2\2\u0095\u0096\7$\2\2\u0096*\3\2\2\2\u0097\u0099\7")
        buf.write("\17\2\2\u0098\u0097\3\2\2\2\u0098\u0099\3\2\2\2\u0099")
        buf.write("\u009a\3\2\2\2\u009a\u009b\7\f\2\2\u009b,\3\2\2\2\u009c")
        buf.write("\u009d\7?\2\2\u009d\u009e\7?\2\2\u009e.\3\2\2\2\u009f")
        buf.write("\u00a0\7>\2\2\u00a0\60\3\2\2\2\u00a1\u00a2\7>\2\2\u00a2")
        buf.write("\u00a3\7?\2\2\u00a3\62\3\2\2\2\u00a4\u00a5\7@\2\2\u00a5")
        buf.write("\64\3\2\2\2\u00a6\u00a7\7@\2\2\u00a7\u00a8\7?\2\2\u00a8")
        buf.write("\66\3\2\2\2\u00a9\u00ab\t\5\2\2\u00aa\u00a9\3\2\2\2\u00ab")
        buf.write("\u00ac\3\2\2\2\u00ac\u00aa\3\2\2\2\u00ac\u00ad\3\2\2\2")
        buf.write("\u00ad\u00ae\3\2\2\2\u00ae\u00af\b\34\2\2\u00af8\3\2\2")
        buf.write("\2\n\2INT\u008c\u0092\u0098\u00ac\3\b\2\2")
        return buf.getvalue()


class SimpleLangLexer(Lexer):

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

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

    T__0 = 1
    T__1 = 2
    T__2 = 3
    T__3 = 4
    T__4 = 5
    INT = 6
    FLOAT = 7
    MUL = 8
    DIV = 9
    ADD = 10
    SUB = 11
    REPEAT = 12
    ENDREPEAT = 13
    IF = 14
    THEN = 15
    ENDIF = 16
    PRINT = 17
    READ = 18
    ID = 19
    STRING = 20
    NEWLINE = 21
    EQ = 22
    LT = 23
    LTE = 24
    GT = 25
    GTE = 26
    WS = 27

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

    modeNames = [ "DEFAULT_MODE" ]

    literalNames = [ "<INVALID>",
            "'='", "'sqrt'", "'^'", "'('", "')'", "'*'", "'/'", "'+'", "'-'", 
            "'repeat'", "'endrepeat'", "'if'", "'then'", "'endif'", "'print'", 
            "'read'", "'=='", "'<'", "'<='", "'>'", "'>='" ]

    symbolicNames = [ "<INVALID>",
            "INT", "FLOAT", "MUL", "DIV", "ADD", "SUB", "REPEAT", "ENDREPEAT", 
            "IF", "THEN", "ENDIF", "PRINT", "READ", "ID", "STRING", "NEWLINE", 
            "EQ", "LT", "LTE", "GT", "GTE", "WS" ]

    ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "INT", "FLOAT", 
                  "MUL", "DIV", "ADD", "SUB", "REPEAT", "ENDREPEAT", "IF", 
                  "THEN", "ENDIF", "PRINT", "READ", "ID", "STRING", "NEWLINE", 
                  "EQ", "LT", "LTE", "GT", "GTE", "WS" ]

    grammarFileName = "SimpleLang.g4"

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


