# Generated from knaps.g 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\24")
        buf.write("\u0086\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\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\6\3\6")
        buf.write("\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\7\3\7\3\7\3\7\3")
        buf.write("\7\3\7\3\7\3\7\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b")
        buf.write("\3\b\3\b\3\t\6\tR\n\t\r\t\16\tS\3\n\3\n\3\n\3\n\3\n\3")
        buf.write("\n\3\n\3\n\3\13\3\13\3\f\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3")
        buf.write("\r\3\r\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3")
        buf.write("\17\3\17\3\17\3\17\3\20\3\20\3\21\6\21z\n\21\r\21\16\21")
        buf.write("{\3\22\3\22\3\22\5\22\u0081\n\22\3\23\3\23\3\23\3\23\2")
        buf.write("\2\24\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27")
        buf.write("\r\31\16\33\17\35\20\37\21!\22#\23%\24\3\2\b\4\2RRrr\4")
        buf.write("\2YYyy\3\2\62;\4\2C\\c|\4\2\f\f\17\17\5\2\13\13\16\16")
        buf.write("\"\"\2\u0088\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3")
        buf.write("\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2")
        buf.write("\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3\2\2")
        buf.write("\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2")
        buf.write("#\3\2\2\2\2%\3\2\2\2\3\'\3\2\2\2\5)\3\2\2\2\7+\3\2\2\2")
        buf.write("\t-\3\2\2\2\13/\3\2\2\2\r<\3\2\2\2\17G\3\2\2\2\21Q\3\2")
        buf.write("\2\2\23U\3\2\2\2\25]\3\2\2\2\27_\3\2\2\2\31c\3\2\2\2\33")
        buf.write("i\3\2\2\2\35n\3\2\2\2\37v\3\2\2\2!y\3\2\2\2#\u0080\3\2")
        buf.write("\2\2%\u0082\3\2\2\2\'(\7\60\2\2(\4\3\2\2\2)*\7*\2\2*\6")
        buf.write("\3\2\2\2+,\7+\2\2,\b\3\2\2\2-.\7?\2\2.\n\3\2\2\2/\60\t")
        buf.write("\2\2\2\60\61\7t\2\2\61\62\7|\2\2\62\63\7g\2\2\63\64\7")
        buf.write("f\2\2\64\65\7o\2\2\65\66\7k\2\2\66\67\7q\2\2\678\7v\2")
        buf.write("\289\7{\2\29:\3\2\2\2:;\7<\2\2;\f\3\2\2\2<=\t\3\2\2=>")
        buf.write("\7c\2\2>?\7t\2\2?@\7v\2\2@A\7q\2\2AB\7u\2\2BC\7e\2\2C")
        buf.write("D\7k\2\2DE\3\2\2\2EF\7<\2\2F\16\3\2\2\2GH\t\2\2\2HI\7")
        buf.write("n\2\2IJ\7g\2\2JK\7e\2\2KL\7c\2\2LM\7m\2\2MN\3\2\2\2NO")
        buf.write("\7<\2\2O\20\3\2\2\2PR\t\4\2\2QP\3\2\2\2RS\3\2\2\2SQ\3")
        buf.write("\2\2\2ST\3\2\2\2T\22\3\2\2\2UV\7y\2\2VW\7c\2\2WX\7t\2")
        buf.write("\2XY\7v\2\2YZ\7q\2\2Z[\7u\2\2[\\\7e\2\2\\\24\3\2\2\2]")
        buf.write("^\7k\2\2^\26\3\2\2\2_`\7n\2\2`a\7w\2\2ab\7d\2\2b\30\3")
        buf.write("\2\2\2cd\7l\2\2de\7g\2\2ef\7u\2\2fg\7n\2\2gh\7k\2\2h\32")
        buf.write("\3\2\2\2ij\7l\2\2jk\7g\2\2kl\7u\2\2lm\7v\2\2m\34\3\2\2")
        buf.write("\2no\7k\2\2op\7p\2\2pq\7c\2\2qr\7e\2\2rs\7|\2\2st\7g\2")
        buf.write("\2tu\7l\2\2u\36\3\2\2\2vw\7.\2\2w \3\2\2\2xz\t\5\2\2y")
        buf.write("x\3\2\2\2z{\3\2\2\2{y\3\2\2\2{|\3\2\2\2|\"\3\2\2\2}~\7")
        buf.write("\17\2\2~\u0081\7\f\2\2\177\u0081\t\6\2\2\u0080}\3\2\2")
        buf.write("\2\u0080\177\3\2\2\2\u0081$\3\2\2\2\u0082\u0083\t\7\2")
        buf.write("\2\u0083\u0084\3\2\2\2\u0084\u0085\b\23\2\2\u0085&\3\2")
        buf.write("\2\2\6\2S{\u0080\3\b\2\2")
        return buf.getvalue()


class knapsLexer(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
    PRZEDMIOTY = 5
    WARTOSCI = 6
    PLECAK = 7
    NUMBER = 8
    WART = 9
    I = 10
    LUB = 11
    JESLI = 12
    JEST = 13
    INACZEJ = 14
    COMMA = 15
    ID = 16
    NEWLINE = 17
    WHITESPACE = 18

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

    modeNames = [ "DEFAULT_MODE" ]

    literalNames = [ "<INVALID>",
            "'.'", "'('", "')'", "'='", "'wartosc'", "'i'", "'lub'", "'jesli'", 
            "'jest'", "'inaczej'", "','" ]

    symbolicNames = [ "<INVALID>",
            "PRZEDMIOTY", "WARTOSCI", "PLECAK", "NUMBER", "WART", "I", "LUB", 
            "JESLI", "JEST", "INACZEJ", "COMMA", "ID", "NEWLINE", "WHITESPACE" ]

    ruleNames = [ "T__0", "T__1", "T__2", "T__3", "PRZEDMIOTY", "WARTOSCI", 
                  "PLECAK", "NUMBER", "WART", "I", "LUB", "JESLI", "JEST", 
                  "INACZEJ", "COMMA", "ID", "NEWLINE", "WHITESPACE" ]

    grammarFileName = "knaps.g"

    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


        global data
        # dicts are mutable in Python, which allows referencing this var via parser
        data = {}


