# Generated from /Users/chengzhifan/Documents/1 Study/3 UBC/CPSC 410 Advanced Software Engineering/Project1Group3_EasyCircuit/src/grammar/EasyCircuitLexer.g4 by ANTLR 4.9.1
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\26")
        buf.write("\u0093\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\3\2\3\2\3\2\3\2\3\2\3\2\3\2")
        buf.write("\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3")
        buf.write("\b\3\t\3\t\3\n\3\n\3\n\3\n\5\nG\n\n\3\13\3\13\3\f\3\f")
        buf.write("\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3")
        buf.write("\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\5\re\n\r\3")
        buf.write("\16\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3\17")
        buf.write("\3\17\3\17\3\17\3\20\3\20\3\20\3\20\3\21\3\21\3\21\3\21")
        buf.write("\3\21\3\22\3\22\3\22\3\22\3\22\3\22\3\23\6\23\u0085\n")
        buf.write("\23\r\23\16\23\u0086\3\24\3\24\7\24\u008b\n\24\f\24\16")
        buf.write("\24\u008e\13\24\3\25\3\25\3\25\3\25\2\2\26\3\3\5\4\7\5")
        buf.write("\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35")
        buf.write("\20\37\21!\22#\23%\24\'\25)\26\3\2\6\3\2\62;\5\2C\\aa")
        buf.write("c|\6\2\62;C\\aac|\5\2\13\f\17\17\"\"\2\u0099\2\3\3\2\2")
        buf.write("\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2")
        buf.write("\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25")
        buf.write("\3\2\2\2\2\27\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3")
        buf.write("\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2")
        buf.write("\'\3\2\2\2\2)\3\2\2\2\3+\3\2\2\2\5\64\3\2\2\2\7\66\3\2")
        buf.write("\2\2\t8\3\2\2\2\13:\3\2\2\2\r<\3\2\2\2\17>\3\2\2\2\21")
        buf.write("@\3\2\2\2\23F\3\2\2\2\25H\3\2\2\2\27J\3\2\2\2\31d\3\2")
        buf.write("\2\2\33f\3\2\2\2\35l\3\2\2\2\37t\3\2\2\2!x\3\2\2\2#}\3")
        buf.write("\2\2\2%\u0084\3\2\2\2\'\u0088\3\2\2\2)\u008f\3\2\2\2+")
        buf.write(",\7E\2\2,-\7K\2\2-.\7T\2\2./\7E\2\2/\60\7W\2\2\60\61\7")
        buf.write("K\2\2\61\62\7V\2\2\62\63\7\"\2\2\63\4\3\2\2\2\64\65\7")
        buf.write("}\2\2\65\6\3\2\2\2\66\67\7\177\2\2\67\b\3\2\2\289\7*\2")
        buf.write("\29\n\3\2\2\2:;\7+\2\2;\f\3\2\2\2<=\7]\2\2=\16\3\2\2\2")
        buf.write(">?\7_\2\2?\20\3\2\2\2@A\7=\2\2A\22\3\2\2\2BC\7/\2\2CG")
        buf.write("\7@\2\2DE\7?\2\2EG\7@\2\2FB\3\2\2\2FD\3\2\2\2G\24\3\2")
        buf.write("\2\2HI\7.\2\2I\26\3\2\2\2JK\7?\2\2K\30\3\2\2\2LM\7K\2")
        buf.write("\2MN\7P\2\2NO\7R\2\2OP\7W\2\2PQ\7V\2\2Qe\7\"\2\2RS\7Q")
        buf.write("\2\2ST\7W\2\2TU\7V\2\2UV\7R\2\2VW\7W\2\2WX\7V\2\2Xe\7")
        buf.write("\"\2\2YZ\7C\2\2Z[\7P\2\2[\\\7F\2\2\\e\7\"\2\2]^\7Q\2\2")
        buf.write("^_\7T\2\2_e\7\"\2\2`a\7Z\2\2ab\7Q\2\2bc\7T\2\2ce\7\"\2")
        buf.write("\2dL\3\2\2\2dR\3\2\2\2dY\3\2\2\2d]\3\2\2\2d`\3\2\2\2e")
        buf.write("\32\3\2\2\2fg\7f\2\2gh\7t\2\2hi\7c\2\2ij\7y\2\2jk\7\"")
        buf.write("\2\2k\34\3\2\2\2lm\7q\2\2mn\7w\2\2no\7v\2\2op\7r\2\2p")
        buf.write("q\7w\2\2qr\7v\2\2rs\7\"\2\2s\36\3\2\2\2tu\7k\2\2uv\7h")
        buf.write("\2\2vw\7\"\2\2w \3\2\2\2xy\7g\2\2yz\7n\2\2z{\7u\2\2{|")
        buf.write("\7g\2\2|\"\3\2\2\2}~\7n\2\2~\177\7q\2\2\177\u0080\7q\2")
        buf.write("\2\u0080\u0081\7r\2\2\u0081\u0082\7\"\2\2\u0082$\3\2\2")
        buf.write("\2\u0083\u0085\t\2\2\2\u0084\u0083\3\2\2\2\u0085\u0086")
        buf.write("\3\2\2\2\u0086\u0084\3\2\2\2\u0086\u0087\3\2\2\2\u0087")
        buf.write("&\3\2\2\2\u0088\u008c\t\3\2\2\u0089\u008b\t\4\2\2\u008a")
        buf.write("\u0089\3\2\2\2\u008b\u008e\3\2\2\2\u008c\u008a\3\2\2\2")
        buf.write("\u008c\u008d\3\2\2\2\u008d(\3\2\2\2\u008e\u008c\3\2\2")
        buf.write("\2\u008f\u0090\t\5\2\2\u0090\u0091\3\2\2\2\u0091\u0092")
        buf.write("\b\25\2\2\u0092*\3\2\2\2\7\2Fd\u0086\u008c\3\2\3\2")
        return buf.getvalue()


class EasyCircuitLexer(Lexer):

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

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

    CIRCUIT_START = 1
    LEFT_BRACKET = 2
    RIGHT_BRACKET = 3
    LEFT_PAREN = 4
    RIGHT_PAREN = 5
    LEFT_SQUARE_BRACKET = 6
    RIGHT_SQUARE_BRACKET = 7
    SEMICOLON = 8
    ARROW = 9
    COMMA = 10
    EQ = 11
    TYPE = 12
    DRAW_START = 13
    OUTPUT_START = 14
    IF = 15
    ELSE = 16
    LOOP_START = 17
    NUM = 18
    ID = 19
    WS = 20

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

    modeNames = [ "DEFAULT_MODE" ]

    literalNames = [ "<INVALID>",
            "'CIRCUIT '", "'{'", "'}'", "'('", "')'", "'['", "']'", "';'", 
            "','", "'='", "'draw '", "'output '", "'if '", "'else'", "'loop '" ]

    symbolicNames = [ "<INVALID>",
            "CIRCUIT_START", "LEFT_BRACKET", "RIGHT_BRACKET", "LEFT_PAREN", 
            "RIGHT_PAREN", "LEFT_SQUARE_BRACKET", "RIGHT_SQUARE_BRACKET", 
            "SEMICOLON", "ARROW", "COMMA", "EQ", "TYPE", "DRAW_START", "OUTPUT_START", 
            "IF", "ELSE", "LOOP_START", "NUM", "ID", "WS" ]

    ruleNames = [ "CIRCUIT_START", "LEFT_BRACKET", "RIGHT_BRACKET", "LEFT_PAREN", 
                  "RIGHT_PAREN", "LEFT_SQUARE_BRACKET", "RIGHT_SQUARE_BRACKET", 
                  "SEMICOLON", "ARROW", "COMMA", "EQ", "TYPE", "DRAW_START", 
                  "OUTPUT_START", "IF", "ELSE", "LOOP_START", "NUM", "ID", 
                  "WS" ]

    grammarFileName = "EasyCircuitLexer.g4"

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



# Generated from /Users/chengzhifan/Documents/1 Study/3 UBC/CPSC 410 Advanced Software Engineering/Project1Group3_EasyCircuit/src/grammar/EasyCircuitLexer.g4 by ANTLR 4.9.1
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\26")
        buf.write("\u0093\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\3\2\3\2\3\2\3\2\3\2\3\2\3\2")
        buf.write("\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3")
        buf.write("\b\3\t\3\t\3\n\3\n\3\n\3\n\5\nG\n\n\3\13\3\13\3\f\3\f")
        buf.write("\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3")
        buf.write("\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\5\re\n\r\3")
        buf.write("\16\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3\17")
        buf.write("\3\17\3\17\3\17\3\20\3\20\3\20\3\20\3\21\3\21\3\21\3\21")
        buf.write("\3\21\3\22\3\22\3\22\3\22\3\22\3\22\3\23\6\23\u0085\n")
        buf.write("\23\r\23\16\23\u0086\3\24\3\24\7\24\u008b\n\24\f\24\16")
        buf.write("\24\u008e\13\24\3\25\3\25\3\25\3\25\2\2\26\3\3\5\4\7\5")
        buf.write("\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35")
        buf.write("\20\37\21!\22#\23%\24\'\25)\26\3\2\6\3\2\62;\5\2C\\aa")
        buf.write("c|\6\2\62;C\\aac|\5\2\13\f\17\17\"\"\2\u0099\2\3\3\2\2")
        buf.write("\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2")
        buf.write("\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25")
        buf.write("\3\2\2\2\2\27\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3")
        buf.write("\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2")
        buf.write("\'\3\2\2\2\2)\3\2\2\2\3+\3\2\2\2\5\64\3\2\2\2\7\66\3\2")
        buf.write("\2\2\t8\3\2\2\2\13:\3\2\2\2\r<\3\2\2\2\17>\3\2\2\2\21")
        buf.write("@\3\2\2\2\23F\3\2\2\2\25H\3\2\2\2\27J\3\2\2\2\31d\3\2")
        buf.write("\2\2\33f\3\2\2\2\35l\3\2\2\2\37t\3\2\2\2!x\3\2\2\2#}\3")
        buf.write("\2\2\2%\u0084\3\2\2\2\'\u0088\3\2\2\2)\u008f\3\2\2\2+")
        buf.write(",\7E\2\2,-\7K\2\2-.\7T\2\2./\7E\2\2/\60\7W\2\2\60\61\7")
        buf.write("K\2\2\61\62\7V\2\2\62\63\7\"\2\2\63\4\3\2\2\2\64\65\7")
        buf.write("}\2\2\65\6\3\2\2\2\66\67\7\177\2\2\67\b\3\2\2\289\7*\2")
        buf.write("\29\n\3\2\2\2:;\7+\2\2;\f\3\2\2\2<=\7]\2\2=\16\3\2\2\2")
        buf.write(">?\7_\2\2?\20\3\2\2\2@A\7=\2\2A\22\3\2\2\2BC\7/\2\2CG")
        buf.write("\7@\2\2DE\7?\2\2EG\7@\2\2FB\3\2\2\2FD\3\2\2\2G\24\3\2")
        buf.write("\2\2HI\7.\2\2I\26\3\2\2\2JK\7?\2\2K\30\3\2\2\2LM\7K\2")
        buf.write("\2MN\7P\2\2NO\7R\2\2OP\7W\2\2PQ\7V\2\2Qe\7\"\2\2RS\7Q")
        buf.write("\2\2ST\7W\2\2TU\7V\2\2UV\7R\2\2VW\7W\2\2WX\7V\2\2Xe\7")
        buf.write("\"\2\2YZ\7C\2\2Z[\7P\2\2[\\\7F\2\2\\e\7\"\2\2]^\7Q\2\2")
        buf.write("^_\7T\2\2_e\7\"\2\2`a\7Z\2\2ab\7Q\2\2bc\7T\2\2ce\7\"\2")
        buf.write("\2dL\3\2\2\2dR\3\2\2\2dY\3\2\2\2d]\3\2\2\2d`\3\2\2\2e")
        buf.write("\32\3\2\2\2fg\7f\2\2gh\7t\2\2hi\7c\2\2ij\7y\2\2jk\7\"")
        buf.write("\2\2k\34\3\2\2\2lm\7q\2\2mn\7w\2\2no\7v\2\2op\7r\2\2p")
        buf.write("q\7w\2\2qr\7v\2\2rs\7\"\2\2s\36\3\2\2\2tu\7k\2\2uv\7h")
        buf.write("\2\2vw\7\"\2\2w \3\2\2\2xy\7g\2\2yz\7n\2\2z{\7u\2\2{|")
        buf.write("\7g\2\2|\"\3\2\2\2}~\7n\2\2~\177\7q\2\2\177\u0080\7q\2")
        buf.write("\2\u0080\u0081\7r\2\2\u0081\u0082\7\"\2\2\u0082$\3\2\2")
        buf.write("\2\u0083\u0085\t\2\2\2\u0084\u0083\3\2\2\2\u0085\u0086")
        buf.write("\3\2\2\2\u0086\u0084\3\2\2\2\u0086\u0087\3\2\2\2\u0087")
        buf.write("&\3\2\2\2\u0088\u008c\t\3\2\2\u0089\u008b\t\4\2\2\u008a")
        buf.write("\u0089\3\2\2\2\u008b\u008e\3\2\2\2\u008c\u008a\3\2\2\2")
        buf.write("\u008c\u008d\3\2\2\2\u008d(\3\2\2\2\u008e\u008c\3\2\2")
        buf.write("\2\u008f\u0090\t\5\2\2\u0090\u0091\3\2\2\2\u0091\u0092")
        buf.write("\b\25\2\2\u0092*\3\2\2\2\7\2Fd\u0086\u008c\3\2\3\2")
        return buf.getvalue()


class EasyCircuitLexer(Lexer):

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

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

    CIRCUIT_START = 1
    LEFT_BRACKET = 2
    RIGHT_BRACKET = 3
    LEFT_PAREN = 4
    RIGHT_PAREN = 5
    LEFT_SQUARE_BRACKET = 6
    RIGHT_SQUARE_BRACKET = 7
    SEMICOLON = 8
    ARROW = 9
    COMMA = 10
    EQ = 11
    TYPE = 12
    DRAW_START = 13
    OUTPUT_START = 14
    IF = 15
    ELSE = 16
    LOOP_START = 17
    NUM = 18
    ID = 19
    WS = 20

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

    modeNames = [ "DEFAULT_MODE" ]

    literalNames = [ "<INVALID>",
            "'CIRCUIT '", "'{'", "'}'", "'('", "')'", "'['", "']'", "';'", 
            "','", "'='", "'draw '", "'output '", "'if '", "'else'", "'loop '" ]

    symbolicNames = [ "<INVALID>",
            "CIRCUIT_START", "LEFT_BRACKET", "RIGHT_BRACKET", "LEFT_PAREN", 
            "RIGHT_PAREN", "LEFT_SQUARE_BRACKET", "RIGHT_SQUARE_BRACKET", 
            "SEMICOLON", "ARROW", "COMMA", "EQ", "TYPE", "DRAW_START", "OUTPUT_START", 
            "IF", "ELSE", "LOOP_START", "NUM", "ID", "WS" ]

    ruleNames = [ "CIRCUIT_START", "LEFT_BRACKET", "RIGHT_BRACKET", "LEFT_PAREN", 
                  "RIGHT_PAREN", "LEFT_SQUARE_BRACKET", "RIGHT_SQUARE_BRACKET", 
                  "SEMICOLON", "ARROW", "COMMA", "EQ", "TYPE", "DRAW_START", 
                  "OUTPUT_START", "IF", "ELSE", "LOOP_START", "NUM", "ID", 
                  "WS" ]

    grammarFileName = "EasyCircuitLexer.g4"

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



# Generated from /Users/chengzhifan/Documents/1 Study/3 UBC/CPSC 410 Advanced Software Engineering/Project1Group3_EasyCircuit/src/grammar/EasyCircuitLexer.g4 by ANTLR 4.9.1 #\23%\24\'\25)\26\3\2\6\3\2\62;\5\2C\\aa") #\3\2\2\2\2%\3\2\2\2\2") #}\3")