# Generated from jac.g4 by ANTLR 4.9.2
# 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\3W")
        buf.write("\u0372\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 \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\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t\64")
        buf.write("\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t")
        buf.write(";\4<\t<\4=\t=\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\t")
        buf.write("D\4E\tE\4F\tF\4G\tG\4H\tH\4I\tI\4J\tJ\4K\tK\4L\tL\4M\t")
        buf.write("M\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\3\2\5\2\u00a8\n")
        buf.write("\2\3\2\6\2\u00ab\n\2\r\2\16\2\u00ac\3\2\3\2\3\3\3\3\3")
        buf.write("\3\3\3\3\4\3\4\5\4\u00b7\n\4\3\5\3\5\3\5\3\5\5\5\u00bd")
        buf.write("\n\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\5\5\u00c6\n\5\3\6\3\6")
        buf.write("\3\6\3\6\3\6\7\6\u00cd\n\6\f\6\16\6\u00d0\13\6\3\6\5\6")
        buf.write("\u00d3\n\6\3\6\3\6\7\6\u00d7\n\6\f\6\16\6\u00da\13\6\3")
        buf.write("\6\5\6\u00dd\n\6\3\6\3\6\3\7\3\7\3\7\3\7\7\7\u00e5\n\7")
        buf.write("\f\7\16\7\u00e8\13\7\3\7\5\7\u00eb\n\7\3\b\3\b\3\b\3\b")
        buf.write("\3\t\3\t\3\t\3\t\3\n\3\n\3\n\3\n\3\13\3\13\7\13\u00fb")
        buf.write("\n\13\f\13\16\13\u00fe\13\13\3\13\3\13\3\13\3\13\5\13")
        buf.write("\u0104\n\13\3\f\3\f\5\f\u0108\n\f\3\r\3\r\5\r\u010c\n")
        buf.write("\r\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3")
        buf.write("\16\3\16\5\16\u011a\n\16\3\17\3\17\3\17\3\17\3\17\3\17")
        buf.write("\3\17\3\17\3\17\3\17\5\17\u0126\n\17\3\20\3\20\3\20\3")
        buf.write("\20\3\20\3\21\3\21\5\21\u012f\n\21\3\21\5\21\u0132\n\21")
        buf.write("\3\21\3\21\3\21\7\21\u0137\n\21\f\21\16\21\u013a\13\21")
        buf.write("\3\21\3\21\3\22\3\22\3\22\3\22\5\22\u0142\n\22\3\23\3")
        buf.write("\23\3\23\5\23\u0147\n\23\3\23\5\23\u014a\n\23\3\23\3\23")
        buf.write("\3\23\5\23\u014f\n\23\3\23\5\23\u0152\n\23\7\23\u0154")
        buf.write("\n\23\f\23\16\23\u0157\13\23\3\23\3\23\3\23\3\23\3\23")
        buf.write("\5\23\u015e\n\23\3\23\5\23\u0161\n\23\3\24\3\24\3\24\3")
        buf.write("\25\3\25\3\25\3\25\7\25\u016a\n\25\f\25\16\25\u016d\13")
        buf.write("\25\3\25\3\25\3\25\5\25\u0172\n\25\3\26\3\26\3\26\7\26")
        buf.write("\u0177\n\26\f\26\16\26\u017a\13\26\3\27\3\27\7\27\u017e")
        buf.write("\n\27\f\27\16\27\u0181\13\27\3\27\3\27\3\27\5\27\u0186")
        buf.write("\n\27\3\30\3\30\3\30\7\30\u018b\n\30\f\30\16\30\u018e")
        buf.write("\13\30\3\30\3\30\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3")
        buf.write("\31\3\31\3\31\3\31\3\31\3\31\5\31\u019f\n\31\3\32\3\32")
        buf.write("\3\32\3\32\7\32\u01a5\n\32\f\32\16\32\u01a8\13\32\3\32")
        buf.write("\5\32\u01ab\n\32\3\33\3\33\3\33\3\33\3\34\3\34\3\34\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\5\35\u01c2\n\35\3\36\3\36\3\36\3\36\3")
        buf.write("\37\3\37\3 \3 \3 \3 \3!\3!\3!\3!\3!\5!\u01d3\n!\3\"\3")
        buf.write("\"\3\"\3\"\3#\3#\3#\3#\5#\u01dd\n#\3$\3$\3$\3$\3%\3%\5")
        buf.write("%\u01e5\n%\3&\3&\7&\u01e9\n&\f&\16&\u01ec\13&\3&\3&\3")
        buf.write("&\3&\3&\5&\u01f3\n&\3\'\3\'\7\'\u01f7\n\'\f\'\16\'\u01fa")
        buf.write("\13\'\3\'\3\'\3\'\3(\3(\7(\u0201\n(\f(\16(\u0204\13(\3")
        buf.write("(\3(\3(\3)\3)\5)\u020b\n)\3)\3)\3)\5)\u0210\n)\3*\3*\3")
        buf.write("*\7*\u0215\n*\f*\16*\u0218\13*\3+\3+\3+\3+\3+\3+\3+\3")
        buf.write("+\3+\3+\3+\5+\u0225\n+\3+\7+\u0228\n+\f+\16+\u022b\13")
        buf.write("+\5+\u022d\n+\3,\3,\3,\3-\3-\3-\7-\u0235\n-\f-\16-\u0238")
        buf.write("\13-\3.\3.\3.\7.\u023d\n.\f.\16.\u0240\13.\3/\3/\3/\5")
        buf.write("/\u0245\n/\3\60\3\60\3\60\7\60\u024a\n\60\f\60\16\60\u024d")
        buf.write("\13\60\3\60\3\60\6\60\u0251\n\60\r\60\16\60\u0252\5\60")
        buf.write("\u0255\n\60\3\61\3\61\3\61\3\61\3\61\7\61\u025c\n\61\f")
        buf.write("\61\16\61\u025f\13\61\5\61\u0261\n\61\3\61\5\61\u0264")
        buf.write("\n\61\3\61\3\61\3\61\3\61\3\61\5\61\u026b\n\61\3\61\3")
        buf.write("\61\3\61\5\61\u0270\n\61\5\61\u0272\n\61\3\62\3\62\3\62")
        buf.write("\3\62\3\62\3\62\3\62\3\62\3\62\3\62\5\62\u027e\n\62\3")
        buf.write("\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63")
        buf.write("\3\63\3\63\3\63\3\63\5\63\u028f\n\63\3\64\3\64\3\64\5")
        buf.write("\64\u0294\n\64\5\64\u0296\n\64\3\65\3\65\3\65\3\65\3\66")
        buf.write("\3\66\3\66\3\66\3\67\3\67\3\67\3\67\38\38\38\58\u02a7")
        buf.write("\n8\39\39\39\39\39\59\u02ae\n9\39\59\u02b1\n9\3:\3:\3")
        buf.write(":\3:\3:\5:\u02b8\n:\3:\5:\u02bb\n:\3;\3;\3;\3;\3;\5;\u02c2")
        buf.write("\n;\3;\5;\u02c5\n;\3<\3<\3<\3<\7<\u02cb\n<\f<\16<\u02ce")
        buf.write("\13<\5<\u02d0\n<\3<\3<\3=\3=\3=\3=\3>\3>\3>\3>\7>\u02dc")
        buf.write("\n>\f>\16>\u02df\13>\5>\u02e1\n>\3>\3>\3?\3?\3?\3?\3@")
        buf.write("\3@\5@\u02eb\n@\3@\3@\3A\3A\3A\5A\u02f2\nA\3B\5B\u02f5")
        buf.write("\nB\3B\3B\5B\u02f9\nB\3C\3C\3C\3D\3D\5D\u0300\nD\3E\3")
        buf.write("E\3E\3E\7E\u0306\nE\fE\16E\u0309\13E\5E\u030b\nE\3E\3")
        buf.write("E\3F\5F\u0310\nF\3F\3F\5F\u0314\nF\3F\3F\3F\3F\3G\3G\5")
        buf.write("G\u031c\nG\7G\u031e\nG\fG\16G\u0321\13G\3H\3H\3H\3H\3")
        buf.write("H\3H\3H\3H\5H\u032b\nH\3I\3I\3I\3J\3J\5J\u0332\nJ\3J\6")
        buf.write("J\u0335\nJ\rJ\16J\u0336\3K\3K\3K\5K\u033c\nK\3K\5K\u033f")
        buf.write("\nK\6K\u0341\nK\rK\16K\u0342\3L\3L\5L\u0347\nL\3L\3L\5")
        buf.write("L\u034b\nL\3M\3M\3M\5M\u0350\nM\6M\u0352\nM\rM\16M\u0353")
        buf.write("\3N\3N\3O\3O\5O\u035a\nO\3P\3P\5P\u035e\nP\3Q\3Q\3Q\3")
        buf.write("Q\5Q\u0364\nQ\3R\3R\5R\u0368\nR\5R\u036a\nR\3R\3R\3R\3")
        buf.write("R\3S\3S\3S\2\2T\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36")
        buf.write(" \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprt")
        buf.write("vxz|~\u0080\u0082\u0084\u0086\u0088\u008a\u008c\u008e")
        buf.write("\u0090\u0092\u0094\u0096\u0098\u009a\u009c\u009e\u00a0")
        buf.write("\u00a2\u00a4\2\f\4\2\23\24\27\27\4\2/\60\62\62\3\2!$\3")
        buf.write("\2&\'\3\2DE\3\2FH\4\2\n\n\f\f\5\2\n\n\16\16\35\35\4\2")
        buf.write("\5\5\t\t\7\2\n\n\16\16\35\35NOQR\2\u03ae\2\u00a7\3\2\2")
        buf.write("\2\4\u00b0\3\2\2\2\6\u00b6\3\2\2\2\b\u00c5\3\2\2\2\n\u00c7")
        buf.write("\3\2\2\2\f\u00ea\3\2\2\2\16\u00ec\3\2\2\2\20\u00f0\3\2")
        buf.write("\2\2\22\u00f4\3\2\2\2\24\u0103\3\2\2\2\26\u0107\3\2\2")
        buf.write("\2\30\u010b\3\2\2\2\32\u0119\3\2\2\2\34\u0125\3\2\2\2")
        buf.write("\36\u0127\3\2\2\2 \u012c\3\2\2\2\"\u0141\3\2\2\2$\u0160")
        buf.write("\3\2\2\2&\u0162\3\2\2\2(\u0165\3\2\2\2*\u0173\3\2\2\2")
        buf.write(",\u0185\3\2\2\2.\u0187\3\2\2\2\60\u019e\3\2\2\2\62\u01a0")
        buf.write("\3\2\2\2\64\u01ac\3\2\2\2\66\u01b0\3\2\2\28\u01c1\3\2")
        buf.write("\2\2:\u01c3\3\2\2\2<\u01c7\3\2\2\2>\u01c9\3\2\2\2@\u01d2")
        buf.write("\3\2\2\2B\u01d4\3\2\2\2D\u01d8\3\2\2\2F\u01de\3\2\2\2")
        buf.write("H\u01e4\3\2\2\2J\u01f2\3\2\2\2L\u01f4\3\2\2\2N\u01fe\3")
        buf.write("\2\2\2P\u0208\3\2\2\2R\u0211\3\2\2\2T\u022c\3\2\2\2V\u022e")
        buf.write("\3\2\2\2X\u0231\3\2\2\2Z\u0239\3\2\2\2\\\u0244\3\2\2\2")
        buf.write("^\u0254\3\2\2\2`\u0271\3\2\2\2b\u027d\3\2\2\2d\u028e\3")
        buf.write("\2\2\2f\u0295\3\2\2\2h\u0297\3\2\2\2j\u029b\3\2\2\2l\u029f")
        buf.write("\3\2\2\2n\u02a6\3\2\2\2p\u02b0\3\2\2\2r\u02ba\3\2\2\2")
        buf.write("t\u02c4\3\2\2\2v\u02c6\3\2\2\2x\u02d3\3\2\2\2z\u02d7\3")
        buf.write("\2\2\2|\u02e4\3\2\2\2~\u02e8\3\2\2\2\u0080\u02f1\3\2\2")
        buf.write("\2\u0082\u02f4\3\2\2\2\u0084\u02fa\3\2\2\2\u0086\u02fd")
        buf.write("\3\2\2\2\u0088\u0301\3\2\2\2\u008a\u030f\3\2\2\2\u008c")
        buf.write("\u031f\3\2\2\2\u008e\u032a\3\2\2\2\u0090\u032c\3\2\2\2")
        buf.write("\u0092\u0334\3\2\2\2\u0094\u0340\3\2\2\2\u0096\u0346\3")
        buf.write("\2\2\2\u0098\u0351\3\2\2\2\u009a\u0355\3\2\2\2\u009c\u0357")
        buf.write("\3\2\2\2\u009e\u035b\3\2\2\2\u00a0\u035f\3\2\2\2\u00a2")
        buf.write("\u0369\3\2\2\2\u00a4\u036f\3\2\2\2\u00a6\u00a8\5\4\3\2")
        buf.write("\u00a7\u00a6\3\2\2\2\u00a7\u00a8\3\2\2\2\u00a8\u00aa\3")
        buf.write("\2\2\2\u00a9\u00ab\5\6\4\2\u00aa\u00a9\3\2\2\2\u00ab\u00ac")
        buf.write("\3\2\2\2\u00ac\u00aa\3\2\2\2\u00ac\u00ad\3\2\2\2\u00ad")
        buf.write("\u00ae\3\2\2\2\u00ae\u00af\7\2\2\3\u00af\3\3\2\2\2\u00b0")
        buf.write("\u00b1\7\3\2\2\u00b1\u00b2\7\30\2\2\u00b2\u00b3\7O\2\2")
        buf.write("\u00b3\5\3\2\2\2\u00b4\u00b7\5\b\5\2\u00b5\u00b7\5\n\6")
        buf.write("\2\u00b6\u00b4\3\2\2\2\u00b6\u00b5\3\2\2\2\u00b7\7\3\2")
        buf.write("\2\2\u00b8\u00b9\7\16\2\2\u00b9\u00bc\7R\2\2\u00ba\u00bb")
        buf.write("\7\30\2\2\u00bb\u00bd\7Q\2\2\u00bc\u00ba\3\2\2\2\u00bc")
        buf.write("\u00bd\3\2\2\2\u00bd\u00be\3\2\2\2\u00be\u00c6\5\24\13")
        buf.write("\2\u00bf\u00c0\7\35\2\2\u00c0\u00c1\7R\2\2\u00c1\u00c6")
        buf.write("\5\24\13\2\u00c2\u00c3\7\n\2\2\u00c3\u00c4\7R\2\2\u00c4")
        buf.write("\u00c6\5\30\r\2\u00c5\u00b8\3\2\2\2\u00c5\u00bf\3\2\2")
        buf.write("\2\u00c5\u00c2\3\2\2\2\u00c6\t\3\2\2\2\u00c7\u00c8\7\36")
        buf.write("\2\2\u00c8\u00c9\7R\2\2\u00c9\u00ca\5\f\7\2\u00ca\u00ce")
        buf.write("\7\33\2\2\u00cb\u00cd\5\26\f\2\u00cc\u00cb\3\2\2\2\u00cd")
        buf.write("\u00d0\3\2\2\2\u00ce\u00cc\3\2\2\2\u00ce\u00cf\3\2\2\2")
        buf.write("\u00cf\u00d2\3\2\2\2\u00d0\u00ce\3\2\2\2\u00d1\u00d3\5")
        buf.write("\16\b\2\u00d2\u00d1\3\2\2\2\u00d2\u00d3\3\2\2\2\u00d3")
        buf.write("\u00d8\3\2\2\2\u00d4\u00d7\5\60\31\2\u00d5\u00d7\5\22")
        buf.write("\n\2\u00d6\u00d4\3\2\2\2\u00d6\u00d5\3\2\2\2\u00d7\u00da")
        buf.write("\3\2\2\2\u00d8\u00d6\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9")
        buf.write("\u00dc\3\2\2\2\u00da\u00d8\3\2\2\2\u00db\u00dd\5\20\t")
        buf.write("\2\u00dc\u00db\3\2\2\2\u00dc\u00dd\3\2\2\2\u00dd\u00de")
        buf.write("\3\2\2\2\u00de\u00df\7\34\2\2\u00df\13\3\2\2\2\u00e0\u00e1")
        buf.write("\7\30\2\2\u00e1\u00e6\7R\2\2\u00e2\u00e3\7B\2\2\u00e3")
        buf.write("\u00e5\7R\2\2\u00e4\u00e2\3\2\2\2\u00e5\u00e8\3\2\2\2")
        buf.write("\u00e6\u00e4\3\2\2\2\u00e6\u00e7\3\2\2\2\u00e7\u00eb\3")
        buf.write("\2\2\2\u00e8\u00e6\3\2\2\2\u00e9\u00eb\3\2\2\2\u00ea\u00e0")
        buf.write("\3\2\2\2\u00ea\u00e9\3\2\2\2\u00eb\r\3\2\2\2\u00ec\u00ed")
        buf.write("\7\22\2\2\u00ed\u00ee\7\23\2\2\u00ee\u00ef\5,\27\2\u00ef")
        buf.write("\17\3\2\2\2\u00f0\u00f1\7\22\2\2\u00f1\u00f2\7\24\2\2")
        buf.write("\u00f2\u00f3\5,\27\2\u00f3\21\3\2\2\2\u00f4\u00f5\7\22")
        buf.write("\2\2\u00f5\u00f6\7\27\2\2\u00f6\u00f7\5,\27\2\u00f7\23")
        buf.write("\3\2\2\2\u00f8\u00fc\7\33\2\2\u00f9\u00fb\5\26\f\2\u00fa")
        buf.write("\u00f9\3\2\2\2\u00fb\u00fe\3\2\2\2\u00fc\u00fa\3\2\2\2")
        buf.write("\u00fc\u00fd\3\2\2\2\u00fd\u00ff\3\2\2\2\u00fe\u00fc\3")
        buf.write("\2\2\2\u00ff\u0104\7\34\2\2\u0100\u0101\7\30\2\2\u0101")
        buf.write("\u0104\5\26\f\2\u0102\u0104\7\37\2\2\u0103\u00f8\3\2\2")
        buf.write("\2\u0103\u0100\3\2\2\2\u0103\u0102\3\2\2\2\u0104\25\3")
        buf.write("\2\2\2\u0105\u0108\5 \21\2\u0106\u0108\5$\23\2\u0107\u0105")
        buf.write("\3\2\2\2\u0107\u0106\3\2\2\2\u0108\27\3\2\2\2\u0109\u010c")
        buf.write("\5\32\16\2\u010a\u010c\5\34\17\2\u010b\u0109\3\2\2\2\u010b")
        buf.write("\u010a\3\2\2\2\u010c\31\3\2\2\2\u010d\u010e\7\33\2\2\u010e")
        buf.write("\u010f\5\36\20\2\u010f\u0110\7\21\2\2\u0110\u0111\5,\27")
        buf.write("\2\u0111\u0112\7\34\2\2\u0112\u011a\3\2\2\2\u0113\u0114")
        buf.write("\7\30\2\2\u0114\u0115\5\36\20\2\u0115\u0116\7\21\2\2\u0116")
        buf.write("\u0117\5,\27\2\u0117\u0118\7\37\2\2\u0118\u011a\3\2\2")
        buf.write("\2\u0119\u010d\3\2\2\2\u0119\u0113\3\2\2\2\u011a\33\3")
        buf.write("\2\2\2\u011b\u011c\7\33\2\2\u011c\u011d\5\36\20\2\u011d")
        buf.write("\u011e\5\u008aF\2\u011e\u011f\7\34\2\2\u011f\u0126\3\2")
        buf.write("\2\2\u0120\u0121\7\30\2\2\u0121\u0122\5\36\20\2\u0122")
        buf.write("\u0123\5\u008aF\2\u0123\u0124\7\37\2\2\u0124\u0126\3\2")
        buf.write("\2\2\u0125\u011b\3\2\2\2\u0125\u0120\3\2\2\2\u0126\35")
        buf.write("\3\2\2\2\u0127\u0128\7@\2\2\u0128\u0129\7?\2\2\u0129\u012a")
        buf.write("\7R\2\2\u012a\u012b\7\37\2\2\u012b\37\3\2\2\2\u012c\u012e")
        buf.write("\7@\2\2\u012d\u012f\7A\2\2\u012e\u012d\3\2\2\2\u012e\u012f")
        buf.write("\3\2\2\2\u012f\u0131\3\2\2\2\u0130\u0132\7?\2\2\u0131")
        buf.write("\u0130\3\2\2\2\u0131\u0132\3\2\2\2\u0132\u0133\3\2\2\2")
        buf.write("\u0133\u0138\5\"\22\2\u0134\u0135\7B\2\2\u0135\u0137\5")
        buf.write("\"\22\2\u0136\u0134\3\2\2\2\u0137\u013a\3\2\2\2\u0138")
        buf.write("\u0136\3\2\2\2\u0138\u0139\3\2\2\2\u0139\u013b\3\2\2\2")
        buf.write("\u013a\u0138\3\2\2\2\u013b\u013c\7\37\2\2\u013c!\3\2\2")
        buf.write("\2\u013d\u0142\7R\2\2\u013e\u013f\7R\2\2\u013f\u0140\7")
        buf.write(" \2\2\u0140\u0142\5H%\2\u0141\u013d\3\2\2\2\u0141\u013e")
        buf.write("\3\2\2\2\u0142#\3\2\2\2\u0143\u0144\7C\2\2\u0144\u0146")
        buf.write("\5*\26\2\u0145\u0147\5(\25\2\u0146\u0145\3\2\2\2\u0146")
        buf.write("\u0147\3\2\2\2\u0147\u0149\3\2\2\2\u0148\u014a\5&\24\2")
        buf.write("\u0149\u0148\3\2\2\2\u0149\u014a\3\2\2\2\u014a\u0155\3")
        buf.write("\2\2\2\u014b\u014c\7B\2\2\u014c\u014e\5*\26\2\u014d\u014f")
        buf.write("\5(\25\2\u014e\u014d\3\2\2\2\u014e\u014f\3\2\2\2\u014f")
        buf.write("\u0151\3\2\2\2\u0150\u0152\5&\24\2\u0151\u0150\3\2\2\2")
        buf.write("\u0151\u0152\3\2\2\2\u0152\u0154\3\2\2\2\u0153\u014b\3")
        buf.write("\2\2\2\u0154\u0157\3\2\2\2\u0155\u0153\3\2\2\2\u0155\u0156")
        buf.write("\3\2\2\2\u0156\u0158\3\2\2\2\u0157\u0155\3\2\2\2\u0158")
        buf.write("\u0159\7\37\2\2\u0159\u0161\3\2\2\2\u015a\u015b\7C\2\2")
        buf.write("\u015b\u015d\7R\2\2\u015c\u015e\5&\24\2\u015d\u015c\3")
        buf.write("\2\2\2\u015d\u015e\3\2\2\2\u015e\u015f\3\2\2\2\u015f\u0161")
        buf.write("\5,\27\2\u0160\u0143\3\2\2\2\u0160\u015a\3\2\2\2\u0161")
        buf.write("%\3\2\2\2\u0162\u0163\7\22\2\2\u0163\u0164\t\2\2\2\u0164")
        buf.write("\'\3\2\2\2\u0165\u0166\7\31\2\2\u0166\u016b\7R\2\2\u0167")
        buf.write("\u0168\7B\2\2\u0168\u016a\7R\2\2\u0169\u0167\3\2\2\2\u016a")
        buf.write("\u016d\3\2\2\2\u016b\u0169\3\2\2\2\u016b\u016c\3\2\2\2")
        buf.write("\u016c\u0171\3\2\2\2\u016d\u016b\3\2\2\2\u016e\u0172\7")
        buf.write("\31\2\2\u016f\u0170\7\32\2\2\u0170\u0172\7R\2\2\u0171")
        buf.write("\u016e\3\2\2\2\u0171\u016f\3\2\2\2\u0171\u0172\3\2\2\2")
        buf.write("\u0172)\3\2\2\2\u0173\u0178\7R\2\2\u0174\u0175\7\66\2")
        buf.write("\2\u0175\u0177\7R\2\2\u0176\u0174\3\2\2\2\u0177\u017a")
        buf.write("\3\2\2\2\u0178\u0176\3\2\2\2\u0178\u0179\3\2\2\2\u0179")
        buf.write("+\3\2\2\2\u017a\u0178\3\2\2\2\u017b\u017f\7\33\2\2\u017c")
        buf.write("\u017e\5\60\31\2\u017d\u017c\3\2\2\2\u017e\u0181\3\2\2")
        buf.write("\2\u017f\u017d\3\2\2\2\u017f\u0180\3\2\2\2\u0180\u0182")
        buf.write("\3\2\2\2\u0181\u017f\3\2\2\2\u0182\u0186\7\34\2\2\u0183")
        buf.write("\u0184\7\30\2\2\u0184\u0186\5\60\31\2\u0185\u017b\3\2")
        buf.write("\2\2\u0185\u0183\3\2\2\2\u0186-\3\2\2\2\u0187\u018c\7")
        buf.write("R\2\2\u0188\u0189\7B\2\2\u0189\u018b\7R\2\2\u018a\u0188")
        buf.write("\3\2\2\2\u018b\u018e\3\2\2\2\u018c\u018a\3\2\2\2\u018c")
        buf.write("\u018d\3\2\2\2\u018d\u018f\3\2\2\2\u018e\u018c\3\2\2\2")
        buf.write("\u018f\u0190\5,\27\2\u0190/\3\2\2\2\u0191\u019f\5,\27")
        buf.write("\2\u0192\u019f\5.\30\2\u0193\u0194\5H%\2\u0194\u0195\7")
        buf.write("\37\2\2\u0195\u019f\3\2\2\2\u0196\u019f\5\62\32\2\u0197")
        buf.write("\u019f\58\35\2\u0198\u019f\5:\36\2\u0199\u019a\5<\37\2")
        buf.write("\u019a\u019b\7\37\2\2\u019b\u019f\3\2\2\2\u019c\u019f")
        buf.write("\5> \2\u019d\u019f\5@!\2\u019e\u0191\3\2\2\2\u019e\u0192")
        buf.write("\3\2\2\2\u019e\u0193\3\2\2\2\u019e\u0196\3\2\2\2\u019e")
        buf.write("\u0197\3\2\2\2\u019e\u0198\3\2\2\2\u019e\u0199\3\2\2\2")
        buf.write("\u019e\u019c\3\2\2\2\u019e\u019d\3\2\2\2\u019f\61\3\2")
        buf.write("\2\2\u01a0\u01a1\7(\2\2\u01a1\u01a2\5H%\2\u01a2\u01a6")
        buf.write("\5,\27\2\u01a3\u01a5\5\64\33\2\u01a4\u01a3\3\2\2\2\u01a5")
        buf.write("\u01a8\3\2\2\2\u01a6\u01a4\3\2\2\2\u01a6\u01a7\3\2\2\2")
        buf.write("\u01a7\u01aa\3\2\2\2\u01a8\u01a6\3\2\2\2\u01a9\u01ab\5")
        buf.write("\66\34\2\u01aa\u01a9\3\2\2\2\u01aa\u01ab\3\2\2\2\u01ab")
        buf.write("\63\3\2\2\2\u01ac\u01ad\7)\2\2\u01ad\u01ae\5H%\2\u01ae")
        buf.write("\u01af\5,\27\2\u01af\65\3\2\2\2\u01b0\u01b1\7*\2\2\u01b1")
        buf.write("\u01b2\5,\27\2\u01b2\67\3\2\2\2\u01b3\u01b4\7+\2\2\u01b4")
        buf.write("\u01b5\5H%\2\u01b5\u01b6\7,\2\2\u01b6\u01b7\5H%\2\u01b7")
        buf.write("\u01b8\7-\2\2\u01b8\u01b9\5H%\2\u01b9\u01ba\5,\27\2\u01ba")
        buf.write("\u01c2\3\2\2\2\u01bb\u01bc\7+\2\2\u01bc\u01bd\7R\2\2\u01bd")
        buf.write("\u01be\7>\2\2\u01be\u01bf\5H%\2\u01bf\u01c0\5,\27\2\u01c0")
        buf.write("\u01c2\3\2\2\2\u01c1\u01b3\3\2\2\2\u01c1\u01bb\3\2\2\2")
        buf.write("\u01c29\3\2\2\2\u01c3\u01c4\7.\2\2\u01c4\u01c5\5H%\2\u01c5")
        buf.write("\u01c6\5,\27\2\u01c6;\3\2\2\2\u01c7\u01c8\t\3\2\2\u01c8")
        buf.write("=\3\2\2\2\u01c9\u01ca\7\63\2\2\u01ca\u01cb\5H%\2\u01cb")
        buf.write("\u01cc\7\37\2\2\u01cc?\3\2\2\2\u01cd\u01d3\5B\"\2\u01ce")
        buf.write("\u01d3\5D#\2\u01cf\u01d3\5F$\2\u01d0\u01d1\7\61\2\2\u01d1")
        buf.write("\u01d3\7\37\2\2\u01d2\u01cd\3\2\2\2\u01d2\u01ce\3\2\2")
        buf.write("\2\u01d2\u01cf\3\2\2\2\u01d2\u01d0\3\2\2\2\u01d3A\3\2")
        buf.write("\2\2\u01d4\u01d5\7\17\2\2\u01d5\u01d6\5H%\2\u01d6\u01d7")
        buf.write("\7\37\2\2\u01d7C\3\2\2\2\u01d8\u01d9\7\20\2\2\u01d9\u01dc")
        buf.write("\5H%\2\u01da\u01dd\7\37\2\2\u01db\u01dd\5\66\34\2\u01dc")
        buf.write("\u01da\3\2\2\2\u01dc\u01db\3\2\2\2\u01ddE\3\2\2\2\u01de")
        buf.write("\u01df\7\64\2\2\u01df\u01e0\5H%\2\u01e0\u01e1\7\37\2\2")
        buf.write("\u01e1G\3\2\2\2\u01e2\u01e5\5J&\2\u01e3\u01e5\5P)\2\u01e4")
        buf.write("\u01e2\3\2\2\2\u01e4\u01e3\3\2\2\2\u01e5I\3\2\2\2\u01e6")
        buf.write("\u01ea\5*\26\2\u01e7\u01e9\5x=\2\u01e8\u01e7\3\2\2\2\u01e9")
        buf.write("\u01ec\3\2\2\2\u01ea\u01e8\3\2\2\2\u01ea\u01eb\3\2\2\2")
        buf.write("\u01eb\u01ed\3\2\2\2\u01ec\u01ea\3\2\2\2\u01ed\u01ee\7")
        buf.write(" \2\2\u01ee\u01ef\5H%\2\u01ef\u01f3\3\2\2\2\u01f0\u01f3")
        buf.write("\5L\'\2\u01f1\u01f3\5N(\2\u01f2\u01e6\3\2\2\2\u01f2\u01f0")
        buf.write("\3\2\2\2\u01f2\u01f1\3\2\2\2\u01f3K\3\2\2\2\u01f4\u01f8")
        buf.write("\5*\26\2\u01f5\u01f7\5x=\2\u01f6\u01f5\3\2\2\2\u01f7\u01fa")
        buf.write("\3\2\2\2\u01f8\u01f6\3\2\2\2\u01f8\u01f9\3\2\2\2\u01f9")
        buf.write("\u01fb\3\2\2\2\u01fa\u01f8\3\2\2\2\u01fb\u01fc\t\4\2\2")
        buf.write("\u01fc\u01fd\5H%\2\u01fdM\3\2\2\2\u01fe\u0202\5*\26\2")
        buf.write("\u01ff\u0201\5x=\2\u0200\u01ff\3\2\2\2\u0201\u0204\3\2")
        buf.write("\2\2\u0202\u0200\3\2\2\2\u0202\u0203\3\2\2\2\u0203\u0205")
        buf.write("\3\2\2\2\u0204\u0202\3\2\2\2\u0205\u0206\7%\2\2\u0206")
        buf.write("\u0207\5H%\2\u0207O\3\2\2\2\u0208\u020f\5R*\2\u0209\u020b")
        buf.write("\7\67\2\2\u020a\u0209\3\2\2\2\u020a\u020b\3\2\2\2\u020b")
        buf.write("\u020c\3\2\2\2\u020c\u020d\5n8\2\u020d\u020e\5H%\2\u020e")
        buf.write("\u0210\3\2\2\2\u020f\u020a\3\2\2\2\u020f\u0210\3\2\2\2")
        buf.write("\u0210Q\3\2\2\2\u0211\u0216\5T+\2\u0212\u0213\t\5\2\2")
        buf.write("\u0213\u0215\5T+\2\u0214\u0212\3\2\2\2\u0215\u0218\3\2")
        buf.write("\2\2\u0216\u0214\3\2\2\2\u0216\u0217\3\2\2\2\u0217S\3")
        buf.write("\2\2\2\u0218\u0216\3\2\2\2\u0219\u021a\7\67\2\2\u021a")
        buf.write("\u022d\5T+\2\u021b\u0229\5X-\2\u021c\u0225\78\2\2\u021d")
        buf.write("\u0225\79\2\2\u021e\u0225\7:\2\2\u021f\u0225\7;\2\2\u0220")
        buf.write("\u0225\7<\2\2\u0221\u0225\7=\2\2\u0222\u0225\7>\2\2\u0223")
        buf.write("\u0225\5V,\2\u0224\u021c\3\2\2\2\u0224\u021d\3\2\2\2\u0224")
        buf.write("\u021e\3\2\2\2\u0224\u021f\3\2\2\2\u0224\u0220\3\2\2\2")
        buf.write("\u0224\u0221\3\2\2\2\u0224\u0222\3\2\2\2\u0224\u0223\3")
        buf.write("\2\2\2\u0225\u0226\3\2\2\2\u0226\u0228\5X-\2\u0227\u0224")
        buf.write("\3\2\2\2\u0228\u022b\3\2\2\2\u0229\u0227\3\2\2\2\u0229")
        buf.write("\u022a\3\2\2\2\u022a\u022d\3\2\2\2\u022b\u0229\3\2\2\2")
        buf.write("\u022c\u0219\3\2\2\2\u022c\u021b\3\2\2\2\u022dU\3\2\2")
        buf.write("\2\u022e\u022f\7\67\2\2\u022f\u0230\7>\2\2\u0230W\3\2")
        buf.write("\2\2\u0231\u0236\5Z.\2\u0232\u0233\t\6\2\2\u0233\u0235")
        buf.write("\5Z.\2\u0234\u0232\3\2\2\2\u0235\u0238\3\2\2\2\u0236\u0234")
        buf.write("\3\2\2\2\u0236\u0237\3\2\2\2\u0237Y\3\2\2\2\u0238\u0236")
        buf.write("\3\2\2\2\u0239\u023e\5\\/\2\u023a\u023b\t\7\2\2\u023b")
        buf.write("\u023d\5\\/\2\u023c\u023a\3\2\2\2\u023d\u0240\3\2\2\2")
        buf.write("\u023e\u023c\3\2\2\2\u023e\u023f\3\2\2\2\u023f[\3\2\2")
        buf.write("\2\u0240\u023e\3\2\2\2\u0241\u0242\t\6\2\2\u0242\u0245")
        buf.write("\5\\/\2\u0243\u0245\5^\60\2\u0244\u0241\3\2\2\2\u0244")
        buf.write("\u0243\3\2\2\2\u0245]\3\2\2\2\u0246\u024b\5`\61\2\u0247")
        buf.write("\u0248\7I\2\2\u0248\u024a\5\\/\2\u0249\u0247\3\2\2\2\u024a")
        buf.write("\u024d\3\2\2\2\u024b\u0249\3\2\2\2\u024b\u024c\3\2\2\2")
        buf.write("\u024c\u0255\3\2\2\2\u024d\u024b\3\2\2\2\u024e\u0250\5")
        buf.write("`\61\2\u024f\u0251\5x=\2\u0250\u024f\3\2\2\2\u0251\u0252")
        buf.write("\3\2\2\2\u0252\u0250\3\2\2\2\u0252\u0253\3\2\2\2\u0253")
        buf.write("\u0255\3\2\2\2\u0254\u0246\3\2\2\2\u0254\u024e\3\2\2\2")
        buf.write("\u0255_\3\2\2\2\u0256\u0263\5d\63\2\u0257\u0260\7J\2\2")
        buf.write("\u0258\u025d\5H%\2\u0259\u025a\7B\2\2\u025a\u025c\5H%")
        buf.write("\2\u025b\u0259\3\2\2\2\u025c\u025f\3\2\2\2\u025d\u025b")
        buf.write("\3\2\2\2\u025d\u025e\3\2\2\2\u025e\u0261\3\2\2\2\u025f")
        buf.write("\u025d\3\2\2\2\u0260\u0258\3\2\2\2\u0260\u0261\3\2\2\2")
        buf.write("\u0261\u0262\3\2\2\2\u0262\u0264\7K\2\2\u0263\u0257\3")
        buf.write("\2\2\2\u0263\u0264\3\2\2\2\u0264\u0272\3\2\2\2\u0265\u0266")
        buf.write("\5d\63\2\u0266\u0267\7\66\2\2\u0267\u0268\5b\62\2\u0268")
        buf.write("\u0272\3\2\2\2\u0269\u026b\5d\63\2\u026a\u0269\3\2\2\2")
        buf.write("\u026a\u026b\3\2\2\2\u026b\u026c\3\2\2\2\u026c\u026d\7")
        buf.write("\31\2\2\u026d\u026f\7R\2\2\u026e\u0270\5\u0088E\2\u026f")
        buf.write("\u026e\3\2\2\2\u026f\u0270\3\2\2\2\u0270\u0272\3\2\2\2")
        buf.write("\u0271\u0256\3\2\2\2\u0271\u0265\3\2\2\2\u0271\u026a\3")
        buf.write("\2\2\2\u0272a\3\2\2\2\u0273\u027e\3\2\2\2\u0274\u027e")
        buf.write("\7\25\2\2\u0275\u027e\7\26\2\2\u0276\u027e\7\35\2\2\u0277")
        buf.write("\u027e\7\16\2\2\u0278\u0279\7\64\2\2\u0279\u027a\7J\2")
        buf.write("\2\u027a\u027b\5H%\2\u027b\u027c\7K\2\2\u027c\u027e\3")
        buf.write("\2\2\2\u027d\u0273\3\2\2\2\u027d\u0274\3\2\2\2\u027d\u0275")
        buf.write("\3\2\2\2\u027d\u0276\3\2\2\2\u027d\u0277\3\2\2\2\u027d")
        buf.write("\u0278\3\2\2\2\u027ec\3\2\2\2\u027f\u028f\7Q\2\2\u0280")
        buf.write("\u028f\7N\2\2\u0281\u028f\7O\2\2\u0282\u028f\7P\2\2\u0283")
        buf.write("\u028f\5f\64\2\u0284\u028f\5v<\2\u0285\u028f\5z>\2\u0286")
        buf.write("\u028f\5*\26\2\u0287\u0288\7J\2\2\u0288\u0289\5H%\2\u0289")
        buf.write("\u028a\7K\2\2\u028a\u028f\3\2\2\2\u028b\u028f\5~@\2\u028c")
        buf.write("\u028d\7\65\2\2\u028d\u028f\5H%\2\u028e\u027f\3\2\2\2")
        buf.write("\u028e\u0280\3\2\2\2\u028e\u0281\3\2\2\2\u028e\u0282\3")
        buf.write("\2\2\2\u028e\u0283\3\2\2\2\u028e\u0284\3\2\2\2\u028e\u0285")
        buf.write("\3\2\2\2\u028e\u0286\3\2\2\2\u028e\u0287\3\2\2\2\u028e")
        buf.write("\u028b\3\2\2\2\u028e\u028c\3\2\2\2\u028fe\3\2\2\2\u0290")
        buf.write("\u0296\5h\65\2\u0291\u0293\5n8\2\u0292\u0294\5h\65\2\u0293")
        buf.write("\u0292\3\2\2\2\u0293\u0294\3\2\2\2\u0294\u0296\3\2\2\2")
        buf.write("\u0295\u0290\3\2\2\2\u0295\u0291\3\2\2\2\u0296g\3\2\2")
        buf.write("\2\u0297\u0298\7\16\2\2\u0298\u0299\7\31\2\2\u0299\u029a")
        buf.write("\7R\2\2\u029ai\3\2\2\2\u029b\u029c\7\36\2\2\u029c\u029d")
        buf.write("\7\31\2\2\u029d\u029e\7R\2\2\u029ek\3\2\2\2\u029f\u02a0")
        buf.write("\7\n\2\2\u02a0\u02a1\7\31\2\2\u02a1\u02a2\7R\2\2\u02a2")
        buf.write("m\3\2\2\2\u02a3\u02a7\5p9\2\u02a4\u02a7\5r:\2\u02a5\u02a7")
        buf.write("\5t;\2\u02a6\u02a3\3\2\2\2\u02a6\u02a4\3\2\2\2\u02a6\u02a5")
        buf.write("\3\2\2\2\u02a7o\3\2\2\2\u02a8\u02b1\7\4\2\2\u02a9\u02ad")
        buf.write("\7E\2\2\u02aa\u02ab\7L\2\2\u02ab\u02ac\7R\2\2\u02ac\u02ae")
        buf.write("\7M\2\2\u02ad\u02aa\3\2\2\2\u02ad\u02ae\3\2\2\2\u02ae")
        buf.write("\u02af\3\2\2\2\u02af\u02b1\7\5\2\2\u02b0\u02a8\3\2\2\2")
        buf.write("\u02b0\u02a9\3\2\2\2\u02b1q\3\2\2\2\u02b2\u02bb\7\6\2")
        buf.write("\2\u02b3\u02b7\7\7\2\2\u02b4\u02b5\7L\2\2\u02b5\u02b6")
        buf.write("\7R\2\2\u02b6\u02b8\7M\2\2\u02b7\u02b4\3\2\2\2\u02b7\u02b8")
        buf.write("\3\2\2\2\u02b8\u02b9\3\2\2\2\u02b9\u02bb\7E\2\2\u02ba")
        buf.write("\u02b2\3\2\2\2\u02ba\u02b3\3\2\2\2\u02bbs\3\2\2\2\u02bc")
        buf.write("\u02c5\7\b\2\2\u02bd\u02c1\7\7\2\2\u02be\u02bf\7L\2\2")
        buf.write("\u02bf\u02c0\7R\2\2\u02c0\u02c2\7M\2\2\u02c1\u02be\3\2")
        buf.write("\2\2\u02c1\u02c2\3\2\2\2\u02c2\u02c3\3\2\2\2\u02c3\u02c5")
        buf.write("\7\5\2\2\u02c4\u02bc\3\2\2\2\u02c4\u02bd\3\2\2\2\u02c5")
        buf.write("u\3\2\2\2\u02c6\u02cf\7L\2\2\u02c7\u02cc\5H%\2\u02c8\u02c9")
        buf.write("\7B\2\2\u02c9\u02cb\5H%\2\u02ca\u02c8\3\2\2\2\u02cb\u02ce")
        buf.write("\3\2\2\2\u02cc\u02ca\3\2\2\2\u02cc\u02cd\3\2\2\2\u02cd")
        buf.write("\u02d0\3\2\2\2\u02ce\u02cc\3\2\2\2\u02cf\u02c7\3\2\2\2")
        buf.write("\u02cf\u02d0\3\2\2\2\u02d0\u02d1\3\2\2\2\u02d1\u02d2\7")
        buf.write("M\2\2\u02d2w\3\2\2\2\u02d3\u02d4\7L\2\2\u02d4\u02d5\5")
        buf.write("H%\2\u02d5\u02d6\7M\2\2\u02d6y\3\2\2\2\u02d7\u02e0\7\33")
        buf.write("\2\2\u02d8\u02dd\5|?\2\u02d9\u02da\7B\2\2\u02da\u02dc")
        buf.write("\5|?\2\u02db\u02d9\3\2\2\2\u02dc\u02df\3\2\2\2\u02dd\u02db")
        buf.write("\3\2\2\2\u02dd\u02de\3\2\2\2\u02de\u02e1\3\2\2\2\u02df")
        buf.write("\u02dd\3\2\2\2\u02e0\u02d8\3\2\2\2\u02e0\u02e1\3\2\2\2")
        buf.write("\u02e1\u02e2\3\2\2\2\u02e2\u02e3\7\34\2\2\u02e3{\3\2\2")
        buf.write("\2\u02e4\u02e5\7O\2\2\u02e5\u02e6\7\30\2\2\u02e6\u02e7")
        buf.write("\5H%\2\u02e7}\3\2\2\2\u02e8\u02ea\7\21\2\2\u02e9\u02eb")
        buf.write("\5H%\2\u02ea\u02e9\3\2\2\2\u02ea\u02eb\3\2\2\2\u02eb\u02ec")
        buf.write("\3\2\2\2\u02ec\u02ed\5\u0080A\2\u02ed\177\3\2\2\2\u02ee")
        buf.write("\u02f2\5\u0082B\2\u02ef\u02f2\5\u0086D\2\u02f0\u02f2\5")
        buf.write("\u0084C\2\u02f1\u02ee\3\2\2\2\u02f1\u02ef\3\2\2\2\u02f1")
        buf.write("\u02f0\3\2\2\2\u02f2\u0081\3\2\2\2\u02f3\u02f5\5n8\2\u02f4")
        buf.write("\u02f3\3\2\2\2\u02f4\u02f5\3\2\2\2\u02f5\u02f6\3\2\2\2")
        buf.write("\u02f6\u02f8\5h\65\2\u02f7\u02f9\5\u0088E\2\u02f8\u02f7")
        buf.write("\3\2\2\2\u02f8\u02f9\3\2\2\2\u02f9\u0083\3\2\2\2\u02fa")
        buf.write("\u02fb\5n8\2\u02fb\u02fc\5l\67\2\u02fc\u0085\3\2\2\2\u02fd")
        buf.write("\u02ff\5j\66\2\u02fe\u0300\5\u0088E\2\u02ff\u02fe\3\2")
        buf.write("\2\2\u02ff\u0300\3\2\2\2\u0300\u0087\3\2\2\2\u0301\u030a")
        buf.write("\7J\2\2\u0302\u0307\5J&\2\u0303\u0304\7B\2\2\u0304\u0306")
        buf.write("\5J&\2\u0305\u0303\3\2\2\2\u0306\u0309\3\2\2\2\u0307\u0305")
        buf.write("\3\2\2\2\u0307\u0308\3\2\2\2\u0308\u030b\3\2\2\2\u0309")
        buf.write("\u0307\3\2\2\2\u030a\u0302\3\2\2\2\u030a\u030b\3\2\2\2")
        buf.write("\u030b\u030c\3\2\2\2\u030c\u030d\7K\2\2\u030d\u0089\3")
        buf.write("\2\2\2\u030e\u0310\7\13\2\2\u030f\u030e\3\2\2\2\u030f")
        buf.write("\u0310\3\2\2\2\u0310\u0311\3\2\2\2\u0311\u0313\t\b\2\2")
        buf.write("\u0312\u0314\5\u00a4S\2\u0313\u0312\3\2\2\2\u0313\u0314")
        buf.write("\3\2\2\2\u0314\u0315\3\2\2\2\u0315\u0316\7\33\2\2\u0316")
        buf.write("\u0317\5\u008cG\2\u0317\u0318\7\34\2\2\u0318\u008b\3\2")
        buf.write("\2\2\u0319\u031b\5\u008eH\2\u031a\u031c\7\37\2\2\u031b")
        buf.write("\u031a\3\2\2\2\u031b\u031c\3\2\2\2\u031c\u031e\3\2\2\2")
        buf.write("\u031d\u0319\3\2\2\2\u031e\u0321\3\2\2\2\u031f\u031d\3")
        buf.write("\2\2\2\u031f\u0320\3\2\2\2\u0320\u008d\3\2\2\2\u0321\u031f")
        buf.write("\3\2\2\2\u0322\u032b\5\u009cO\2\u0323\u032b\5\u0096L\2")
        buf.write("\u0324\u032b\5\u0090I\2\u0325\u0326\5\u00a4S\2\u0326\u0327")
        buf.write("\7 \2\2\u0327\u0328\5\u00a4S\2\u0328\u032b\3\2\2\2\u0329")
        buf.write("\u032b\5\u00a2R\2\u032a\u0322\3\2\2\2\u032a\u0323\3\2")
        buf.write("\2\2\u032a\u0324\3\2\2\2\u032a\u0325\3\2\2\2\u032a\u0329")
        buf.write("\3\2\2\2\u032b\u008f\3\2\2\2\u032c\u032d\t\t\2\2\u032d")
        buf.write("\u032e\5\u0092J\2\u032e\u0091\3\2\2\2\u032f\u0331\7L\2")
        buf.write("\2\u0330\u0332\5\u0094K\2\u0331\u0330\3\2\2\2\u0331\u0332")
        buf.write("\3\2\2\2\u0332\u0333\3\2\2\2\u0333\u0335\7M\2\2\u0334")
        buf.write("\u032f\3\2\2\2\u0335\u0336\3\2\2\2\u0336\u0334\3\2\2\2")
        buf.write("\u0336\u0337\3\2\2\2\u0337\u0093\3\2\2\2\u0338\u033b\5")
        buf.write("\u00a4S\2\u0339\u033a\7 \2\2\u033a\u033c\5\u00a4S\2\u033b")
        buf.write("\u0339\3\2\2\2\u033b\u033c\3\2\2\2\u033c\u033e\3\2\2\2")
        buf.write("\u033d\u033f\7B\2\2\u033e\u033d\3\2\2\2\u033e\u033f\3")
        buf.write("\2\2\2\u033f\u0341\3\2\2\2\u0340\u0338\3\2\2\2\u0341\u0342")
        buf.write("\3\2\2\2\u0342\u0340\3\2\2\2\u0342\u0343\3\2\2\2\u0343")
        buf.write("\u0095\3\2\2\2\u0344\u0347\5\u009eP\2\u0345\u0347\5\u00a2")
        buf.write("R\2\u0346\u0344\3\2\2\2\u0346\u0345\3\2\2\2\u0347\u0348")
        buf.write("\3\2\2\2\u0348\u034a\5\u0098M\2\u0349\u034b\5\u0092J\2")
        buf.write("\u034a\u0349\3\2\2\2\u034a\u034b\3\2\2\2\u034b\u0097\3")
        buf.write("\2\2\2\u034c\u034f\5\u009aN\2\u034d\u0350\5\u009eP\2\u034e")
        buf.write("\u0350\5\u00a2R\2\u034f\u034d\3\2\2\2\u034f\u034e\3\2")
        buf.write("\2\2\u0350\u0352\3\2\2\2\u0351\u034c\3\2\2\2\u0352\u0353")
        buf.write("\3\2\2\2\u0353\u0351\3\2\2\2\u0353\u0354\3\2\2\2\u0354")
        buf.write("\u0099\3\2\2\2\u0355\u0356\t\n\2\2\u0356\u009b\3\2\2\2")
        buf.write("\u0357\u0359\5\u009eP\2\u0358\u035a\5\u0092J\2\u0359\u0358")
        buf.write("\3\2\2\2\u0359\u035a\3\2\2\2\u035a\u009d\3\2\2\2\u035b")
        buf.write("\u035d\5\u00a4S\2\u035c\u035e\5\u00a0Q\2\u035d\u035c\3")
        buf.write("\2\2\2\u035d\u035e\3\2\2\2\u035e\u009f\3\2\2\2\u035f\u0360")
        buf.write("\7\30\2\2\u0360\u0363\5\u00a4S\2\u0361\u0362\7\30\2\2")
        buf.write("\u0362\u0364\5\u00a4S\2\u0363\u0361\3\2\2\2\u0363\u0364")
        buf.write("\3\2\2\2\u0364\u00a1\3\2\2\2\u0365\u0367\7\r\2\2\u0366")
        buf.write("\u0368\5\u00a4S\2\u0367\u0366\3\2\2\2\u0367\u0368\3\2")
        buf.write("\2\2\u0368\u036a\3\2\2\2\u0369\u0365\3\2\2\2\u0369\u036a")
        buf.write("\3\2\2\2\u036a\u036b\3\2\2\2\u036b\u036c\7\33\2\2\u036c")
        buf.write("\u036d\5\u008cG\2\u036d\u036e\7\34\2\2\u036e\u00a3\3\2")
        buf.write("\2\2\u036f\u0370\t\13\2\2\u0370\u00a5\3\2\2\2k\u00a7\u00ac")
        buf.write("\u00b6\u00bc\u00c5\u00ce\u00d2\u00d6\u00d8\u00dc\u00e6")
        buf.write("\u00ea\u00fc\u0103\u0107\u010b\u0119\u0125\u012e\u0131")
        buf.write("\u0138\u0141\u0146\u0149\u014e\u0151\u0155\u015d\u0160")
        buf.write("\u016b\u0171\u0178\u017f\u0185\u018c\u019e\u01a6\u01aa")
        buf.write("\u01c1\u01d2\u01dc\u01e4\u01ea\u01f2\u01f8\u0202\u020a")
        buf.write("\u020f\u0216\u0224\u0229\u022c\u0236\u023e\u0244\u024b")
        buf.write("\u0252\u0254\u025d\u0260\u0263\u026a\u026f\u0271\u027d")
        buf.write("\u028e\u0293\u0295\u02a6\u02ad\u02b0\u02b7\u02ba\u02c1")
        buf.write("\u02c4\u02cc\u02cf\u02dd\u02e0\u02ea\u02f1\u02f4\u02f8")
        buf.write("\u02ff\u0307\u030a\u030f\u0313\u031b\u031f\u032a\u0331")
        buf.write("\u0336\u033b\u033e\u0342\u0346\u034a\u034f\u0353\u0359")
        buf.write("\u035d\u0363\u0367\u0369")
        return buf.getvalue()


class jacParser ( Parser ):

    grammarFileName = "jac.g4"

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

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

    sharedContextCache = PredictionContextCache()

    literalNames = [ "<INVALID>", "'version'", "'-->'", "'->'", "'<--'", 
                     "'<-'", "'<-->'", "'--'", "'graph'", "'strict'", "'digraph'", 
                     "'subgraph'", "'node'", "'ignore'", "'take'", "'spawn'", 
                     "'with'", "'entry'", "'exit'", "'length'", "'keys'", 
                     "'activity'", "':'", "'::'", "'::>'", "'{'", "'}'", 
                     "'edge'", "'walker'", "';'", "'='", "'+='", "'-='", 
                     "'*='", "'/='", "':='", "<INVALID>", "<INVALID>", "'if'", 
                     "'elif'", "'else'", "'for'", "'to'", "'by'", "'while'", 
                     "'continue'", "'break'", "'disengage'", "'skip'", "'report'", 
                     "'destroy'", "'&'", "'.'", "<INVALID>", "'=='", "'<'", 
                     "'>'", "'<='", "'>='", "'!='", "'in'", "'anchor'", 
                     "'has'", "'private'", "','", "'can'", "'+'", "'-'", 
                     "'*'", "'/'", "'%'", "'^'", "'('", "')'", "'['", "']'" ]

    symbolicNames = [ "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                      "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                      "KW_GRAPH", "KW_STRICT", "KW_DIGRAPH", "KW_SUBGRAPH", 
                      "KW_NODE", "KW_IGNORE", "KW_TAKE", "KW_SPAWN", "KW_WITH", 
                      "KW_ENTRY", "KW_EXIT", "KW_LENGTH", "KW_KEYS", "KW_ACTIVITY", 
                      "COLON", "DBL_COLON", "COLON_OUT", "LBRACE", "RBRACE", 
                      "KW_EDGE", "KW_WALKER", "SEMI", "EQ", "PEQ", "MEQ", 
                      "TEQ", "DEQ", "CPY_EQ", "KW_AND", "KW_OR", "KW_IF", 
                      "KW_ELIF", "KW_ELSE", "KW_FOR", "KW_TO", "KW_BY", 
                      "KW_WHILE", "KW_CONTINUE", "KW_BREAK", "KW_DISENGAGE", 
                      "KW_SKIP", "KW_REPORT", "KW_DESTROY", "DEREF", "DOT", 
                      "NOT", "EE", "LT", "GT", "LTE", "GTE", "NE", "KW_IN", 
                      "KW_ANCHOR", "KW_HAS", "KW_PRIVATE", "COMMA", "KW_CAN", 
                      "PLUS", "MINUS", "MUL", "DIV", "MOD", "POW", "LPAREN", 
                      "RPAREN", "LSQUARE", "RSQUARE", "FLOAT", "STRING", 
                      "BOOL", "INT", "NAME", "COMMENT", "LINE_COMMENT", 
                      "PY_COMMENT", "WS", "ErrorChar" ]

    RULE_start = 0
    RULE_ver_label = 1
    RULE_element = 2
    RULE_architype = 3
    RULE_walker = 4
    RULE_namespace_list = 5
    RULE_walk_entry_block = 6
    RULE_walk_exit_block = 7
    RULE_walk_activity_block = 8
    RULE_attr_block = 9
    RULE_attr_stmt = 10
    RULE_graph_block = 11
    RULE_graph_block_spawn = 12
    RULE_graph_block_dot = 13
    RULE_has_root = 14
    RULE_has_stmt = 15
    RULE_has_assign = 16
    RULE_can_stmt = 17
    RULE_event_clause = 18
    RULE_preset_in_out = 19
    RULE_dotted_name = 20
    RULE_code_block = 21
    RULE_node_ctx_block = 22
    RULE_statement = 23
    RULE_if_stmt = 24
    RULE_elif_stmt = 25
    RULE_else_stmt = 26
    RULE_for_stmt = 27
    RULE_while_stmt = 28
    RULE_ctrl_stmt = 29
    RULE_report_action = 30
    RULE_walker_action = 31
    RULE_ignore_action = 32
    RULE_take_action = 33
    RULE_destroy_action = 34
    RULE_expression = 35
    RULE_assignment = 36
    RULE_inc_assign = 37
    RULE_copy_assign = 38
    RULE_connect = 39
    RULE_logical = 40
    RULE_compare = 41
    RULE_nin = 42
    RULE_arithmetic = 43
    RULE_term = 44
    RULE_factor = 45
    RULE_power = 46
    RULE_func_call = 47
    RULE_func_built_in = 48
    RULE_atom = 49
    RULE_node_edge_ref = 50
    RULE_node_ref = 51
    RULE_walker_ref = 52
    RULE_graph_ref = 53
    RULE_edge_ref = 54
    RULE_edge_to = 55
    RULE_edge_from = 56
    RULE_edge_any = 57
    RULE_list_val = 58
    RULE_index = 59
    RULE_dict_val = 60
    RULE_kv_pair = 61
    RULE_spawn = 62
    RULE_spawn_object = 63
    RULE_node_spawn = 64
    RULE_graph_spawn = 65
    RULE_walker_spawn = 66
    RULE_spawn_ctx = 67
    RULE_dot_graph = 68
    RULE_dot_stmt_list = 69
    RULE_dot_stmt = 70
    RULE_dot_attr_stmt = 71
    RULE_dot_attr_list = 72
    RULE_dot_a_list = 73
    RULE_dot_edge_stmt = 74
    RULE_dot_edgeRHS = 75
    RULE_dot_edgeop = 76
    RULE_dot_node_stmt = 77
    RULE_dot_node_id = 78
    RULE_dot_port = 79
    RULE_dot_subgraph = 80
    RULE_dot_id = 81

    ruleNames =  [ "start", "ver_label", "element", "architype", "walker", 
                   "namespace_list", "walk_entry_block", "walk_exit_block", 
                   "walk_activity_block", "attr_block", "attr_stmt", "graph_block", 
                   "graph_block_spawn", "graph_block_dot", "has_root", "has_stmt", 
                   "has_assign", "can_stmt", "event_clause", "preset_in_out", 
                   "dotted_name", "code_block", "node_ctx_block", "statement", 
                   "if_stmt", "elif_stmt", "else_stmt", "for_stmt", "while_stmt", 
                   "ctrl_stmt", "report_action", "walker_action", "ignore_action", 
                   "take_action", "destroy_action", "expression", "assignment", 
                   "inc_assign", "copy_assign", "connect", "logical", "compare", 
                   "nin", "arithmetic", "term", "factor", "power", "func_call", 
                   "func_built_in", "atom", "node_edge_ref", "node_ref", 
                   "walker_ref", "graph_ref", "edge_ref", "edge_to", "edge_from", 
                   "edge_any", "list_val", "index", "dict_val", "kv_pair", 
                   "spawn", "spawn_object", "node_spawn", "graph_spawn", 
                   "walker_spawn", "spawn_ctx", "dot_graph", "dot_stmt_list", 
                   "dot_stmt", "dot_attr_stmt", "dot_attr_list", "dot_a_list", 
                   "dot_edge_stmt", "dot_edgeRHS", "dot_edgeop", "dot_node_stmt", 
                   "dot_node_id", "dot_port", "dot_subgraph", "dot_id" ]

    EOF = Token.EOF
    T__0=1
    T__1=2
    T__2=3
    T__3=4
    T__4=5
    T__5=6
    T__6=7
    KW_GRAPH=8
    KW_STRICT=9
    KW_DIGRAPH=10
    KW_SUBGRAPH=11
    KW_NODE=12
    KW_IGNORE=13
    KW_TAKE=14
    KW_SPAWN=15
    KW_WITH=16
    KW_ENTRY=17
    KW_EXIT=18
    KW_LENGTH=19
    KW_KEYS=20
    KW_ACTIVITY=21
    COLON=22
    DBL_COLON=23
    COLON_OUT=24
    LBRACE=25
    RBRACE=26
    KW_EDGE=27
    KW_WALKER=28
    SEMI=29
    EQ=30
    PEQ=31
    MEQ=32
    TEQ=33
    DEQ=34
    CPY_EQ=35
    KW_AND=36
    KW_OR=37
    KW_IF=38
    KW_ELIF=39
    KW_ELSE=40
    KW_FOR=41
    KW_TO=42
    KW_BY=43
    KW_WHILE=44
    KW_CONTINUE=45
    KW_BREAK=46
    KW_DISENGAGE=47
    KW_SKIP=48
    KW_REPORT=49
    KW_DESTROY=50
    DEREF=51
    DOT=52
    NOT=53
    EE=54
    LT=55
    GT=56
    LTE=57
    GTE=58
    NE=59
    KW_IN=60
    KW_ANCHOR=61
    KW_HAS=62
    KW_PRIVATE=63
    COMMA=64
    KW_CAN=65
    PLUS=66
    MINUS=67
    MUL=68
    DIV=69
    MOD=70
    POW=71
    LPAREN=72
    RPAREN=73
    LSQUARE=74
    RSQUARE=75
    FLOAT=76
    STRING=77
    BOOL=78
    INT=79
    NAME=80
    COMMENT=81
    LINE_COMMENT=82
    PY_COMMENT=83
    WS=84
    ErrorChar=85

    def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
        super().__init__(input, output)
        self.checkVersion("4.9.2")
        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 EOF(self):
            return self.getToken(jacParser.EOF, 0)

        def ver_label(self):
            return self.getTypedRuleContext(jacParser.Ver_labelContext,0)


        def element(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.ElementContext)
            else:
                return self.getTypedRuleContext(jacParser.ElementContext,i)


        def getRuleIndex(self):
            return jacParser.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 start(self):

        localctx = jacParser.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 = 165
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.T__0:
                self.state = 164
                self.ver_label()


            self.state = 168 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 167
                self.element()
                self.state = 170 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE) | (1 << jacParser.KW_WALKER))) != 0)):
                    break

            self.state = 172
            self.match(jacParser.EOF)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Ver_labelContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def STRING(self):
            return self.getToken(jacParser.STRING, 0)

        def getRuleIndex(self):
            return jacParser.RULE_ver_label

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterVer_label" ):
                listener.enterVer_label(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitVer_label" ):
                listener.exitVer_label(self)




    def ver_label(self):

        localctx = jacParser.Ver_labelContext(self, self._ctx, self.state)
        self.enterRule(localctx, 2, self.RULE_ver_label)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 174
            self.match(jacParser.T__0)
            self.state = 175
            self.match(jacParser.COLON)
            self.state = 176
            self.match(jacParser.STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ElementContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def architype(self):
            return self.getTypedRuleContext(jacParser.ArchitypeContext,0)


        def walker(self):
            return self.getTypedRuleContext(jacParser.WalkerContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_element

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterElement" ):
                listener.enterElement(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitElement" ):
                listener.exitElement(self)




    def element(self):

        localctx = jacParser.ElementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 4, self.RULE_element)
        try:
            self.state = 180
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.KW_GRAPH, jacParser.KW_NODE, jacParser.KW_EDGE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 178
                self.architype()
                pass
            elif token in [jacParser.KW_WALKER]:
                self.enterOuterAlt(localctx, 2)
                self.state = 179
                self.walker()
                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 ArchitypeContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_NODE(self):
            return self.getToken(jacParser.KW_NODE, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def attr_block(self):
            return self.getTypedRuleContext(jacParser.Attr_blockContext,0)


        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def INT(self):
            return self.getToken(jacParser.INT, 0)

        def KW_EDGE(self):
            return self.getToken(jacParser.KW_EDGE, 0)

        def KW_GRAPH(self):
            return self.getToken(jacParser.KW_GRAPH, 0)

        def graph_block(self):
            return self.getTypedRuleContext(jacParser.Graph_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_architype

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterArchitype" ):
                listener.enterArchitype(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitArchitype" ):
                listener.exitArchitype(self)




    def architype(self):

        localctx = jacParser.ArchitypeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 6, self.RULE_architype)
        try:
            self.state = 195
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.KW_NODE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 182
                self.match(jacParser.KW_NODE)
                self.state = 183
                self.match(jacParser.NAME)
                self.state = 186
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,3,self._ctx)
                if la_ == 1:
                    self.state = 184
                    self.match(jacParser.COLON)
                    self.state = 185
                    self.match(jacParser.INT)


                self.state = 188
                self.attr_block()
                pass
            elif token in [jacParser.KW_EDGE]:
                self.enterOuterAlt(localctx, 2)
                self.state = 189
                self.match(jacParser.KW_EDGE)
                self.state = 190
                self.match(jacParser.NAME)
                self.state = 191
                self.attr_block()
                pass
            elif token in [jacParser.KW_GRAPH]:
                self.enterOuterAlt(localctx, 3)
                self.state = 192
                self.match(jacParser.KW_GRAPH)
                self.state = 193
                self.match(jacParser.NAME)
                self.state = 194
                self.graph_block()
                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 WalkerContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WALKER(self):
            return self.getToken(jacParser.KW_WALKER, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def namespace_list(self):
            return self.getTypedRuleContext(jacParser.Namespace_listContext,0)


        def LBRACE(self):
            return self.getToken(jacParser.LBRACE, 0)

        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def attr_stmt(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Attr_stmtContext)
            else:
                return self.getTypedRuleContext(jacParser.Attr_stmtContext,i)


        def walk_entry_block(self):
            return self.getTypedRuleContext(jacParser.Walk_entry_blockContext,0)


        def statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.StatementContext)
            else:
                return self.getTypedRuleContext(jacParser.StatementContext,i)


        def walk_activity_block(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Walk_activity_blockContext)
            else:
                return self.getTypedRuleContext(jacParser.Walk_activity_blockContext,i)


        def walk_exit_block(self):
            return self.getTypedRuleContext(jacParser.Walk_exit_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_walker

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalker" ):
                listener.enterWalker(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalker" ):
                listener.exitWalker(self)




    def walker(self):

        localctx = jacParser.WalkerContext(self, self._ctx, self.state)
        self.enterRule(localctx, 8, self.RULE_walker)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 197
            self.match(jacParser.KW_WALKER)
            self.state = 198
            self.match(jacParser.NAME)
            self.state = 199
            self.namespace_list()
            self.state = 200
            self.match(jacParser.LBRACE)
            self.state = 204
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==jacParser.KW_HAS or _la==jacParser.KW_CAN:
                self.state = 201
                self.attr_stmt()
                self.state = 206
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 208
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,6,self._ctx)
            if la_ == 1:
                self.state = 207
                self.walk_entry_block()


            self.state = 214
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,8,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 212
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [jacParser.T__1, jacParser.T__3, jacParser.T__4, jacParser.T__5, jacParser.KW_NODE, jacParser.KW_IGNORE, jacParser.KW_TAKE, jacParser.KW_SPAWN, jacParser.COLON, jacParser.DBL_COLON, jacParser.LBRACE, jacParser.KW_IF, jacParser.KW_FOR, jacParser.KW_WHILE, jacParser.KW_CONTINUE, jacParser.KW_BREAK, jacParser.KW_DISENGAGE, jacParser.KW_SKIP, jacParser.KW_REPORT, jacParser.KW_DESTROY, jacParser.DEREF, jacParser.NOT, jacParser.PLUS, jacParser.MINUS, jacParser.LPAREN, jacParser.LSQUARE, jacParser.FLOAT, jacParser.STRING, jacParser.BOOL, jacParser.INT, jacParser.NAME]:
                        self.state = 210
                        self.statement()
                        pass
                    elif token in [jacParser.KW_WITH]:
                        self.state = 211
                        self.walk_activity_block()
                        pass
                    else:
                        raise NoViableAltException(self)
             
                self.state = 216
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,8,self._ctx)

            self.state = 218
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.KW_WITH:
                self.state = 217
                self.walk_exit_block()


            self.state = 220
            self.match(jacParser.RBRACE)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Namespace_listContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def NAME(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.NAME)
            else:
                return self.getToken(jacParser.NAME, i)

        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_namespace_list

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterNamespace_list" ):
                listener.enterNamespace_list(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitNamespace_list" ):
                listener.exitNamespace_list(self)




    def namespace_list(self):

        localctx = jacParser.Namespace_listContext(self, self._ctx, self.state)
        self.enterRule(localctx, 10, self.RULE_namespace_list)
        self._la = 0 # Token type
        try:
            self.state = 232
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.COLON]:
                self.enterOuterAlt(localctx, 1)
                self.state = 222
                self.match(jacParser.COLON)
                self.state = 223
                self.match(jacParser.NAME)
                self.state = 228
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.COMMA:
                    self.state = 224
                    self.match(jacParser.COMMA)
                    self.state = 225
                    self.match(jacParser.NAME)
                    self.state = 230
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            elif token in [jacParser.LBRACE]:
                self.enterOuterAlt(localctx, 2)

                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 Walk_entry_blockContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WITH(self):
            return self.getToken(jacParser.KW_WITH, 0)

        def KW_ENTRY(self):
            return self.getToken(jacParser.KW_ENTRY, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_walk_entry_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalk_entry_block" ):
                listener.enterWalk_entry_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalk_entry_block" ):
                listener.exitWalk_entry_block(self)




    def walk_entry_block(self):

        localctx = jacParser.Walk_entry_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 12, self.RULE_walk_entry_block)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 234
            self.match(jacParser.KW_WITH)
            self.state = 235
            self.match(jacParser.KW_ENTRY)
            self.state = 236
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Walk_exit_blockContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WITH(self):
            return self.getToken(jacParser.KW_WITH, 0)

        def KW_EXIT(self):
            return self.getToken(jacParser.KW_EXIT, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_walk_exit_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalk_exit_block" ):
                listener.enterWalk_exit_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalk_exit_block" ):
                listener.exitWalk_exit_block(self)




    def walk_exit_block(self):

        localctx = jacParser.Walk_exit_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 14, self.RULE_walk_exit_block)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 238
            self.match(jacParser.KW_WITH)
            self.state = 239
            self.match(jacParser.KW_EXIT)
            self.state = 240
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Walk_activity_blockContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WITH(self):
            return self.getToken(jacParser.KW_WITH, 0)

        def KW_ACTIVITY(self):
            return self.getToken(jacParser.KW_ACTIVITY, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_walk_activity_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalk_activity_block" ):
                listener.enterWalk_activity_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalk_activity_block" ):
                listener.exitWalk_activity_block(self)




    def walk_activity_block(self):

        localctx = jacParser.Walk_activity_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 16, self.RULE_walk_activity_block)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 242
            self.match(jacParser.KW_WITH)
            self.state = 243
            self.match(jacParser.KW_ACTIVITY)
            self.state = 244
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Attr_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(jacParser.LBRACE, 0)

        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def attr_stmt(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Attr_stmtContext)
            else:
                return self.getTypedRuleContext(jacParser.Attr_stmtContext,i)


        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_attr_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterAttr_block" ):
                listener.enterAttr_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitAttr_block" ):
                listener.exitAttr_block(self)




    def attr_block(self):

        localctx = jacParser.Attr_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 18, self.RULE_attr_block)
        self._la = 0 # Token type
        try:
            self.state = 257
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.LBRACE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 246
                self.match(jacParser.LBRACE)
                self.state = 250
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.KW_HAS or _la==jacParser.KW_CAN:
                    self.state = 247
                    self.attr_stmt()
                    self.state = 252
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                self.state = 253
                self.match(jacParser.RBRACE)
                pass
            elif token in [jacParser.COLON]:
                self.enterOuterAlt(localctx, 2)
                self.state = 254
                self.match(jacParser.COLON)
                self.state = 255
                self.attr_stmt()
                pass
            elif token in [jacParser.SEMI]:
                self.enterOuterAlt(localctx, 3)
                self.state = 256
                self.match(jacParser.SEMI)
                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 Attr_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def has_stmt(self):
            return self.getTypedRuleContext(jacParser.Has_stmtContext,0)


        def can_stmt(self):
            return self.getTypedRuleContext(jacParser.Can_stmtContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_attr_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterAttr_stmt" ):
                listener.enterAttr_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitAttr_stmt" ):
                listener.exitAttr_stmt(self)




    def attr_stmt(self):

        localctx = jacParser.Attr_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 20, self.RULE_attr_stmt)
        try:
            self.state = 261
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.KW_HAS]:
                self.enterOuterAlt(localctx, 1)
                self.state = 259
                self.has_stmt()
                pass
            elif token in [jacParser.KW_CAN]:
                self.enterOuterAlt(localctx, 2)
                self.state = 260
                self.can_stmt()
                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 Graph_blockContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def graph_block_spawn(self):
            return self.getTypedRuleContext(jacParser.Graph_block_spawnContext,0)


        def graph_block_dot(self):
            return self.getTypedRuleContext(jacParser.Graph_block_dotContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_graph_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterGraph_block" ):
                listener.enterGraph_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitGraph_block" ):
                listener.exitGraph_block(self)




    def graph_block(self):

        localctx = jacParser.Graph_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 22, self.RULE_graph_block)
        try:
            self.state = 265
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,15,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 263
                self.graph_block_spawn()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 264
                self.graph_block_dot()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Graph_block_spawnContext(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(jacParser.LBRACE, 0)

        def has_root(self):
            return self.getTypedRuleContext(jacParser.Has_rootContext,0)


        def KW_SPAWN(self):
            return self.getToken(jacParser.KW_SPAWN, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_graph_block_spawn

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterGraph_block_spawn" ):
                listener.enterGraph_block_spawn(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitGraph_block_spawn" ):
                listener.exitGraph_block_spawn(self)




    def graph_block_spawn(self):

        localctx = jacParser.Graph_block_spawnContext(self, self._ctx, self.state)
        self.enterRule(localctx, 24, self.RULE_graph_block_spawn)
        try:
            self.state = 279
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.LBRACE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 267
                self.match(jacParser.LBRACE)
                self.state = 268
                self.has_root()
                self.state = 269
                self.match(jacParser.KW_SPAWN)
                self.state = 270
                self.code_block()
                self.state = 271
                self.match(jacParser.RBRACE)
                pass
            elif token in [jacParser.COLON]:
                self.enterOuterAlt(localctx, 2)
                self.state = 273
                self.match(jacParser.COLON)
                self.state = 274
                self.has_root()
                self.state = 275
                self.match(jacParser.KW_SPAWN)
                self.state = 276
                self.code_block()
                self.state = 277
                self.match(jacParser.SEMI)
                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 Graph_block_dotContext(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(jacParser.LBRACE, 0)

        def has_root(self):
            return self.getTypedRuleContext(jacParser.Has_rootContext,0)


        def dot_graph(self):
            return self.getTypedRuleContext(jacParser.Dot_graphContext,0)


        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_graph_block_dot

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterGraph_block_dot" ):
                listener.enterGraph_block_dot(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitGraph_block_dot" ):
                listener.exitGraph_block_dot(self)




    def graph_block_dot(self):

        localctx = jacParser.Graph_block_dotContext(self, self._ctx, self.state)
        self.enterRule(localctx, 26, self.RULE_graph_block_dot)
        try:
            self.state = 291
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.LBRACE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 281
                self.match(jacParser.LBRACE)
                self.state = 282
                self.has_root()
                self.state = 283
                self.dot_graph()
                self.state = 284
                self.match(jacParser.RBRACE)
                pass
            elif token in [jacParser.COLON]:
                self.enterOuterAlt(localctx, 2)
                self.state = 286
                self.match(jacParser.COLON)
                self.state = 287
                self.has_root()
                self.state = 288
                self.dot_graph()
                self.state = 289
                self.match(jacParser.SEMI)
                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 Has_rootContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_HAS(self):
            return self.getToken(jacParser.KW_HAS, 0)

        def KW_ANCHOR(self):
            return self.getToken(jacParser.KW_ANCHOR, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_has_root

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterHas_root" ):
                listener.enterHas_root(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitHas_root" ):
                listener.exitHas_root(self)




    def has_root(self):

        localctx = jacParser.Has_rootContext(self, self._ctx, self.state)
        self.enterRule(localctx, 28, self.RULE_has_root)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 293
            self.match(jacParser.KW_HAS)
            self.state = 294
            self.match(jacParser.KW_ANCHOR)
            self.state = 295
            self.match(jacParser.NAME)
            self.state = 296
            self.match(jacParser.SEMI)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Has_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_HAS(self):
            return self.getToken(jacParser.KW_HAS, 0)

        def has_assign(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Has_assignContext)
            else:
                return self.getTypedRuleContext(jacParser.Has_assignContext,i)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def KW_PRIVATE(self):
            return self.getToken(jacParser.KW_PRIVATE, 0)

        def KW_ANCHOR(self):
            return self.getToken(jacParser.KW_ANCHOR, 0)

        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_has_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterHas_stmt" ):
                listener.enterHas_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitHas_stmt" ):
                listener.exitHas_stmt(self)




    def has_stmt(self):

        localctx = jacParser.Has_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 30, self.RULE_has_stmt)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 298
            self.match(jacParser.KW_HAS)
            self.state = 300
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.KW_PRIVATE:
                self.state = 299
                self.match(jacParser.KW_PRIVATE)


            self.state = 303
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.KW_ANCHOR:
                self.state = 302
                self.match(jacParser.KW_ANCHOR)


            self.state = 305
            self.has_assign()
            self.state = 310
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==jacParser.COMMA:
                self.state = 306
                self.match(jacParser.COMMA)
                self.state = 307
                self.has_assign()
                self.state = 312
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 313
            self.match(jacParser.SEMI)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Has_assignContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def EQ(self):
            return self.getToken(jacParser.EQ, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_has_assign

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterHas_assign" ):
                listener.enterHas_assign(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitHas_assign" ):
                listener.exitHas_assign(self)




    def has_assign(self):

        localctx = jacParser.Has_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 32, self.RULE_has_assign)
        try:
            self.state = 319
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,21,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 315
                self.match(jacParser.NAME)
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 316
                self.match(jacParser.NAME)
                self.state = 317
                self.match(jacParser.EQ)
                self.state = 318
                self.expression()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Can_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_CAN(self):
            return self.getToken(jacParser.KW_CAN, 0)

        def dotted_name(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dotted_nameContext)
            else:
                return self.getTypedRuleContext(jacParser.Dotted_nameContext,i)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def preset_in_out(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Preset_in_outContext)
            else:
                return self.getTypedRuleContext(jacParser.Preset_in_outContext,i)


        def event_clause(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Event_clauseContext)
            else:
                return self.getTypedRuleContext(jacParser.Event_clauseContext,i)


        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_can_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterCan_stmt" ):
                listener.enterCan_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitCan_stmt" ):
                listener.exitCan_stmt(self)




    def can_stmt(self):

        localctx = jacParser.Can_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 34, self.RULE_can_stmt)
        self._la = 0 # Token type
        try:
            self.state = 350
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,28,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 321
                self.match(jacParser.KW_CAN)
                self.state = 322
                self.dotted_name()
                self.state = 324
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.DBL_COLON:
                    self.state = 323
                    self.preset_in_out()


                self.state = 327
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.KW_WITH:
                    self.state = 326
                    self.event_clause()


                self.state = 339
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.COMMA:
                    self.state = 329
                    self.match(jacParser.COMMA)
                    self.state = 330
                    self.dotted_name()
                    self.state = 332
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==jacParser.DBL_COLON:
                        self.state = 331
                        self.preset_in_out()


                    self.state = 335
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==jacParser.KW_WITH:
                        self.state = 334
                        self.event_clause()


                    self.state = 341
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                self.state = 342
                self.match(jacParser.SEMI)
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 344
                self.match(jacParser.KW_CAN)
                self.state = 345
                self.match(jacParser.NAME)
                self.state = 347
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.KW_WITH:
                    self.state = 346
                    self.event_clause()


                self.state = 349
                self.code_block()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Event_clauseContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WITH(self):
            return self.getToken(jacParser.KW_WITH, 0)

        def KW_ENTRY(self):
            return self.getToken(jacParser.KW_ENTRY, 0)

        def KW_EXIT(self):
            return self.getToken(jacParser.KW_EXIT, 0)

        def KW_ACTIVITY(self):
            return self.getToken(jacParser.KW_ACTIVITY, 0)

        def getRuleIndex(self):
            return jacParser.RULE_event_clause

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterEvent_clause" ):
                listener.enterEvent_clause(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitEvent_clause" ):
                listener.exitEvent_clause(self)




    def event_clause(self):

        localctx = jacParser.Event_clauseContext(self, self._ctx, self.state)
        self.enterRule(localctx, 36, self.RULE_event_clause)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 352
            self.match(jacParser.KW_WITH)
            self.state = 353
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_ENTRY) | (1 << jacParser.KW_EXIT) | (1 << jacParser.KW_ACTIVITY))) != 0)):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Preset_in_outContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def DBL_COLON(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.DBL_COLON)
            else:
                return self.getToken(jacParser.DBL_COLON, i)

        def NAME(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.NAME)
            else:
                return self.getToken(jacParser.NAME, i)

        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def COLON_OUT(self):
            return self.getToken(jacParser.COLON_OUT, 0)

        def getRuleIndex(self):
            return jacParser.RULE_preset_in_out

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterPreset_in_out" ):
                listener.enterPreset_in_out(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitPreset_in_out" ):
                listener.exitPreset_in_out(self)




    def preset_in_out(self):

        localctx = jacParser.Preset_in_outContext(self, self._ctx, self.state)
        self.enterRule(localctx, 38, self.RULE_preset_in_out)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 355
            self.match(jacParser.DBL_COLON)
            self.state = 356
            self.match(jacParser.NAME)
            self.state = 361
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,29,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 357
                    self.match(jacParser.COMMA)
                    self.state = 358
                    self.match(jacParser.NAME) 
                self.state = 363
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,29,self._ctx)

            self.state = 367
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.DBL_COLON]:
                self.state = 364
                self.match(jacParser.DBL_COLON)
                pass
            elif token in [jacParser.COLON_OUT]:
                self.state = 365
                self.match(jacParser.COLON_OUT)
                self.state = 366
                self.match(jacParser.NAME)
                pass
            elif token in [jacParser.KW_WITH, jacParser.SEMI, jacParser.COMMA]:
                pass
            else:
                pass
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dotted_nameContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def NAME(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.NAME)
            else:
                return self.getToken(jacParser.NAME, i)

        def DOT(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.DOT)
            else:
                return self.getToken(jacParser.DOT, i)

        def getRuleIndex(self):
            return jacParser.RULE_dotted_name

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDotted_name" ):
                listener.enterDotted_name(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDotted_name" ):
                listener.exitDotted_name(self)




    def dotted_name(self):

        localctx = jacParser.Dotted_nameContext(self, self._ctx, self.state)
        self.enterRule(localctx, 40, self.RULE_dotted_name)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 369
            self.match(jacParser.NAME)
            self.state = 374
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,31,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 370
                    self.match(jacParser.DOT)
                    self.state = 371
                    self.match(jacParser.NAME) 
                self.state = 376
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,31,self._ctx)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Code_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(jacParser.LBRACE, 0)

        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.StatementContext)
            else:
                return self.getTypedRuleContext(jacParser.StatementContext,i)


        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def getRuleIndex(self):
            return jacParser.RULE_code_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterCode_block" ):
                listener.enterCode_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitCode_block" ):
                listener.exitCode_block(self)




    def code_block(self):

        localctx = jacParser.Code_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 42, self.RULE_code_block)
        self._la = 0 # Token type
        try:
            self.state = 387
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.LBRACE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 377
                self.match(jacParser.LBRACE)
                self.state = 381
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.T__1) | (1 << jacParser.T__3) | (1 << jacParser.T__4) | (1 << jacParser.T__5) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_IGNORE) | (1 << jacParser.KW_TAKE) | (1 << jacParser.KW_SPAWN) | (1 << jacParser.COLON) | (1 << jacParser.DBL_COLON) | (1 << jacParser.LBRACE) | (1 << jacParser.KW_IF) | (1 << jacParser.KW_FOR) | (1 << jacParser.KW_WHILE) | (1 << jacParser.KW_CONTINUE) | (1 << jacParser.KW_BREAK) | (1 << jacParser.KW_DISENGAGE) | (1 << jacParser.KW_SKIP) | (1 << jacParser.KW_REPORT) | (1 << jacParser.KW_DESTROY) | (1 << jacParser.DEREF) | (1 << jacParser.NOT))) != 0) or ((((_la - 66)) & ~0x3f) == 0 and ((1 << (_la - 66)) & ((1 << (jacParser.PLUS - 66)) | (1 << (jacParser.MINUS - 66)) | (1 << (jacParser.LPAREN - 66)) | (1 << (jacParser.LSQUARE - 66)) | (1 << (jacParser.FLOAT - 66)) | (1 << (jacParser.STRING - 66)) | (1 << (jacParser.BOOL - 66)) | (1 << (jacParser.INT - 66)) | (1 << (jacParser.NAME - 66)))) != 0):
                    self.state = 378
                    self.statement()
                    self.state = 383
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                self.state = 384
                self.match(jacParser.RBRACE)
                pass
            elif token in [jacParser.COLON]:
                self.enterOuterAlt(localctx, 2)
                self.state = 385
                self.match(jacParser.COLON)
                self.state = 386
                self.statement()
                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 Node_ctx_blockContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def NAME(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.NAME)
            else:
                return self.getToken(jacParser.NAME, i)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_node_ctx_block

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterNode_ctx_block" ):
                listener.enterNode_ctx_block(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitNode_ctx_block" ):
                listener.exitNode_ctx_block(self)




    def node_ctx_block(self):

        localctx = jacParser.Node_ctx_blockContext(self, self._ctx, self.state)
        self.enterRule(localctx, 44, self.RULE_node_ctx_block)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 389
            self.match(jacParser.NAME)
            self.state = 394
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==jacParser.COMMA:
                self.state = 390
                self.match(jacParser.COMMA)
                self.state = 391
                self.match(jacParser.NAME)
                self.state = 396
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 397
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class StatementContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def node_ctx_block(self):
            return self.getTypedRuleContext(jacParser.Node_ctx_blockContext,0)


        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def if_stmt(self):
            return self.getTypedRuleContext(jacParser.If_stmtContext,0)


        def for_stmt(self):
            return self.getTypedRuleContext(jacParser.For_stmtContext,0)


        def while_stmt(self):
            return self.getTypedRuleContext(jacParser.While_stmtContext,0)


        def ctrl_stmt(self):
            return self.getTypedRuleContext(jacParser.Ctrl_stmtContext,0)


        def report_action(self):
            return self.getTypedRuleContext(jacParser.Report_actionContext,0)


        def walker_action(self):
            return self.getTypedRuleContext(jacParser.Walker_actionContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_statement

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterStatement" ):
                listener.enterStatement(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitStatement" ):
                listener.exitStatement(self)




    def statement(self):

        localctx = jacParser.StatementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 46, self.RULE_statement)
        try:
            self.state = 412
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,35,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 399
                self.code_block()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 400
                self.node_ctx_block()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 401
                self.expression()
                self.state = 402
                self.match(jacParser.SEMI)
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 404
                self.if_stmt()
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 405
                self.for_stmt()
                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 406
                self.while_stmt()
                pass

            elif la_ == 7:
                self.enterOuterAlt(localctx, 7)
                self.state = 407
                self.ctrl_stmt()
                self.state = 408
                self.match(jacParser.SEMI)
                pass

            elif la_ == 8:
                self.enterOuterAlt(localctx, 8)
                self.state = 410
                self.report_action()
                pass

            elif la_ == 9:
                self.enterOuterAlt(localctx, 9)
                self.state = 411
                self.walker_action()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class If_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_IF(self):
            return self.getToken(jacParser.KW_IF, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def elif_stmt(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Elif_stmtContext)
            else:
                return self.getTypedRuleContext(jacParser.Elif_stmtContext,i)


        def else_stmt(self):
            return self.getTypedRuleContext(jacParser.Else_stmtContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_if_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterIf_stmt" ):
                listener.enterIf_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitIf_stmt" ):
                listener.exitIf_stmt(self)




    def if_stmt(self):

        localctx = jacParser.If_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 48, self.RULE_if_stmt)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 414
            self.match(jacParser.KW_IF)
            self.state = 415
            self.expression()
            self.state = 416
            self.code_block()
            self.state = 420
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,36,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 417
                    self.elif_stmt() 
                self.state = 422
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,36,self._ctx)

            self.state = 424
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,37,self._ctx)
            if la_ == 1:
                self.state = 423
                self.else_stmt()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Elif_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_ELIF(self):
            return self.getToken(jacParser.KW_ELIF, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_elif_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterElif_stmt" ):
                listener.enterElif_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitElif_stmt" ):
                listener.exitElif_stmt(self)




    def elif_stmt(self):

        localctx = jacParser.Elif_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 50, self.RULE_elif_stmt)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 426
            self.match(jacParser.KW_ELIF)
            self.state = 427
            self.expression()
            self.state = 428
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Else_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_ELSE(self):
            return self.getToken(jacParser.KW_ELSE, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_else_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterElse_stmt" ):
                listener.enterElse_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitElse_stmt" ):
                listener.exitElse_stmt(self)




    def else_stmt(self):

        localctx = jacParser.Else_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 52, self.RULE_else_stmt)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 430
            self.match(jacParser.KW_ELSE)
            self.state = 431
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class For_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_FOR(self):
            return self.getToken(jacParser.KW_FOR, 0)

        def expression(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.ExpressionContext)
            else:
                return self.getTypedRuleContext(jacParser.ExpressionContext,i)


        def KW_TO(self):
            return self.getToken(jacParser.KW_TO, 0)

        def KW_BY(self):
            return self.getToken(jacParser.KW_BY, 0)

        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def KW_IN(self):
            return self.getToken(jacParser.KW_IN, 0)

        def getRuleIndex(self):
            return jacParser.RULE_for_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterFor_stmt" ):
                listener.enterFor_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitFor_stmt" ):
                listener.exitFor_stmt(self)




    def for_stmt(self):

        localctx = jacParser.For_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 54, self.RULE_for_stmt)
        try:
            self.state = 447
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,38,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 433
                self.match(jacParser.KW_FOR)
                self.state = 434
                self.expression()
                self.state = 435
                self.match(jacParser.KW_TO)
                self.state = 436
                self.expression()
                self.state = 437
                self.match(jacParser.KW_BY)
                self.state = 438
                self.expression()
                self.state = 439
                self.code_block()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 441
                self.match(jacParser.KW_FOR)
                self.state = 442
                self.match(jacParser.NAME)
                self.state = 443
                self.match(jacParser.KW_IN)
                self.state = 444
                self.expression()
                self.state = 445
                self.code_block()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class While_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WHILE(self):
            return self.getToken(jacParser.KW_WHILE, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def code_block(self):
            return self.getTypedRuleContext(jacParser.Code_blockContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_while_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWhile_stmt" ):
                listener.enterWhile_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWhile_stmt" ):
                listener.exitWhile_stmt(self)




    def while_stmt(self):

        localctx = jacParser.While_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 56, self.RULE_while_stmt)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 449
            self.match(jacParser.KW_WHILE)
            self.state = 450
            self.expression()
            self.state = 451
            self.code_block()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Ctrl_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_CONTINUE(self):
            return self.getToken(jacParser.KW_CONTINUE, 0)

        def KW_BREAK(self):
            return self.getToken(jacParser.KW_BREAK, 0)

        def KW_SKIP(self):
            return self.getToken(jacParser.KW_SKIP, 0)

        def getRuleIndex(self):
            return jacParser.RULE_ctrl_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterCtrl_stmt" ):
                listener.enterCtrl_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitCtrl_stmt" ):
                listener.exitCtrl_stmt(self)




    def ctrl_stmt(self):

        localctx = jacParser.Ctrl_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 58, self.RULE_ctrl_stmt)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 453
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_CONTINUE) | (1 << jacParser.KW_BREAK) | (1 << jacParser.KW_SKIP))) != 0)):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Report_actionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_REPORT(self):
            return self.getToken(jacParser.KW_REPORT, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_report_action

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterReport_action" ):
                listener.enterReport_action(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitReport_action" ):
                listener.exitReport_action(self)




    def report_action(self):

        localctx = jacParser.Report_actionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 60, self.RULE_report_action)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 455
            self.match(jacParser.KW_REPORT)
            self.state = 456
            self.expression()
            self.state = 457
            self.match(jacParser.SEMI)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Walker_actionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def ignore_action(self):
            return self.getTypedRuleContext(jacParser.Ignore_actionContext,0)


        def take_action(self):
            return self.getTypedRuleContext(jacParser.Take_actionContext,0)


        def destroy_action(self):
            return self.getTypedRuleContext(jacParser.Destroy_actionContext,0)


        def KW_DISENGAGE(self):
            return self.getToken(jacParser.KW_DISENGAGE, 0)

        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_walker_action

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalker_action" ):
                listener.enterWalker_action(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalker_action" ):
                listener.exitWalker_action(self)




    def walker_action(self):

        localctx = jacParser.Walker_actionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 62, self.RULE_walker_action)
        try:
            self.state = 464
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.KW_IGNORE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 459
                self.ignore_action()
                pass
            elif token in [jacParser.KW_TAKE]:
                self.enterOuterAlt(localctx, 2)
                self.state = 460
                self.take_action()
                pass
            elif token in [jacParser.KW_DESTROY]:
                self.enterOuterAlt(localctx, 3)
                self.state = 461
                self.destroy_action()
                pass
            elif token in [jacParser.KW_DISENGAGE]:
                self.enterOuterAlt(localctx, 4)
                self.state = 462
                self.match(jacParser.KW_DISENGAGE)
                self.state = 463
                self.match(jacParser.SEMI)
                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 Ignore_actionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_IGNORE(self):
            return self.getToken(jacParser.KW_IGNORE, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_ignore_action

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterIgnore_action" ):
                listener.enterIgnore_action(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitIgnore_action" ):
                listener.exitIgnore_action(self)




    def ignore_action(self):

        localctx = jacParser.Ignore_actionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 64, self.RULE_ignore_action)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 466
            self.match(jacParser.KW_IGNORE)
            self.state = 467
            self.expression()
            self.state = 468
            self.match(jacParser.SEMI)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Take_actionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_TAKE(self):
            return self.getToken(jacParser.KW_TAKE, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def else_stmt(self):
            return self.getTypedRuleContext(jacParser.Else_stmtContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_take_action

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterTake_action" ):
                listener.enterTake_action(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitTake_action" ):
                listener.exitTake_action(self)




    def take_action(self):

        localctx = jacParser.Take_actionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 66, self.RULE_take_action)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 470
            self.match(jacParser.KW_TAKE)
            self.state = 471
            self.expression()
            self.state = 474
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.SEMI]:
                self.state = 472
                self.match(jacParser.SEMI)
                pass
            elif token in [jacParser.KW_ELSE]:
                self.state = 473
                self.else_stmt()
                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 Destroy_actionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_DESTROY(self):
            return self.getToken(jacParser.KW_DESTROY, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def SEMI(self):
            return self.getToken(jacParser.SEMI, 0)

        def getRuleIndex(self):
            return jacParser.RULE_destroy_action

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDestroy_action" ):
                listener.enterDestroy_action(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDestroy_action" ):
                listener.exitDestroy_action(self)




    def destroy_action(self):

        localctx = jacParser.Destroy_actionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 68, self.RULE_destroy_action)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 476
            self.match(jacParser.KW_DESTROY)
            self.state = 477
            self.expression()
            self.state = 478
            self.match(jacParser.SEMI)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ExpressionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def assignment(self):
            return self.getTypedRuleContext(jacParser.AssignmentContext,0)


        def connect(self):
            return self.getTypedRuleContext(jacParser.ConnectContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_expression

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterExpression" ):
                listener.enterExpression(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitExpression" ):
                listener.exitExpression(self)




    def expression(self):

        localctx = jacParser.ExpressionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 70, self.RULE_expression)
        try:
            self.state = 482
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,41,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 480
                self.assignment()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 481
                self.connect()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class AssignmentContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dotted_name(self):
            return self.getTypedRuleContext(jacParser.Dotted_nameContext,0)


        def EQ(self):
            return self.getToken(jacParser.EQ, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def index(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.IndexContext)
            else:
                return self.getTypedRuleContext(jacParser.IndexContext,i)


        def inc_assign(self):
            return self.getTypedRuleContext(jacParser.Inc_assignContext,0)


        def copy_assign(self):
            return self.getTypedRuleContext(jacParser.Copy_assignContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_assignment

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterAssignment" ):
                listener.enterAssignment(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitAssignment" ):
                listener.exitAssignment(self)




    def assignment(self):

        localctx = jacParser.AssignmentContext(self, self._ctx, self.state)
        self.enterRule(localctx, 72, self.RULE_assignment)
        self._la = 0 # Token type
        try:
            self.state = 496
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,43,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 484
                self.dotted_name()
                self.state = 488
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.LSQUARE:
                    self.state = 485
                    self.index()
                    self.state = 490
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                self.state = 491
                self.match(jacParser.EQ)
                self.state = 492
                self.expression()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 494
                self.inc_assign()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 495
                self.copy_assign()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Inc_assignContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dotted_name(self):
            return self.getTypedRuleContext(jacParser.Dotted_nameContext,0)


        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def PEQ(self):
            return self.getToken(jacParser.PEQ, 0)

        def MEQ(self):
            return self.getToken(jacParser.MEQ, 0)

        def TEQ(self):
            return self.getToken(jacParser.TEQ, 0)

        def DEQ(self):
            return self.getToken(jacParser.DEQ, 0)

        def index(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.IndexContext)
            else:
                return self.getTypedRuleContext(jacParser.IndexContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_inc_assign

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterInc_assign" ):
                listener.enterInc_assign(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitInc_assign" ):
                listener.exitInc_assign(self)




    def inc_assign(self):

        localctx = jacParser.Inc_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 74, self.RULE_inc_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 498
            self.dotted_name()
            self.state = 502
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==jacParser.LSQUARE:
                self.state = 499
                self.index()
                self.state = 504
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 505
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.PEQ) | (1 << jacParser.MEQ) | (1 << jacParser.TEQ) | (1 << jacParser.DEQ))) != 0)):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 506
            self.expression()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Copy_assignContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dotted_name(self):
            return self.getTypedRuleContext(jacParser.Dotted_nameContext,0)


        def CPY_EQ(self):
            return self.getToken(jacParser.CPY_EQ, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def index(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.IndexContext)
            else:
                return self.getTypedRuleContext(jacParser.IndexContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_copy_assign

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterCopy_assign" ):
                listener.enterCopy_assign(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitCopy_assign" ):
                listener.exitCopy_assign(self)




    def copy_assign(self):

        localctx = jacParser.Copy_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 76, self.RULE_copy_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 508
            self.dotted_name()
            self.state = 512
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==jacParser.LSQUARE:
                self.state = 509
                self.index()
                self.state = 514
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 515
            self.match(jacParser.CPY_EQ)
            self.state = 516
            self.expression()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def logical(self):
            return self.getTypedRuleContext(jacParser.LogicalContext,0)


        def edge_ref(self):
            return self.getTypedRuleContext(jacParser.Edge_refContext,0)


        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def NOT(self):
            return self.getToken(jacParser.NOT, 0)

        def getRuleIndex(self):
            return jacParser.RULE_connect

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterConnect" ):
                listener.enterConnect(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitConnect" ):
                listener.exitConnect(self)




    def connect(self):

        localctx = jacParser.ConnectContext(self, self._ctx, self.state)
        self.enterRule(localctx, 78, self.RULE_connect)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 518
            self.logical()
            self.state = 525
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,47,self._ctx)
            if la_ == 1:
                self.state = 520
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.NOT:
                    self.state = 519
                    self.match(jacParser.NOT)


                self.state = 522
                self.edge_ref()
                self.state = 523
                self.expression()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class LogicalContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def compare(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.CompareContext)
            else:
                return self.getTypedRuleContext(jacParser.CompareContext,i)


        def KW_AND(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.KW_AND)
            else:
                return self.getToken(jacParser.KW_AND, i)

        def KW_OR(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.KW_OR)
            else:
                return self.getToken(jacParser.KW_OR, i)

        def getRuleIndex(self):
            return jacParser.RULE_logical

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterLogical" ):
                listener.enterLogical(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitLogical" ):
                listener.exitLogical(self)




    def logical(self):

        localctx = jacParser.LogicalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 80, self.RULE_logical)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 527
            self.compare()
            self.state = 532
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,48,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 528
                    _la = self._input.LA(1)
                    if not(_la==jacParser.KW_AND or _la==jacParser.KW_OR):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 529
                    self.compare() 
                self.state = 534
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,48,self._ctx)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class CompareContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def NOT(self):
            return self.getToken(jacParser.NOT, 0)

        def compare(self):
            return self.getTypedRuleContext(jacParser.CompareContext,0)


        def arithmetic(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.ArithmeticContext)
            else:
                return self.getTypedRuleContext(jacParser.ArithmeticContext,i)


        def EE(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.EE)
            else:
                return self.getToken(jacParser.EE, i)

        def LT(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.LT)
            else:
                return self.getToken(jacParser.LT, i)

        def GT(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.GT)
            else:
                return self.getToken(jacParser.GT, i)

        def LTE(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.LTE)
            else:
                return self.getToken(jacParser.LTE, i)

        def GTE(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.GTE)
            else:
                return self.getToken(jacParser.GTE, i)

        def NE(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.NE)
            else:
                return self.getToken(jacParser.NE, i)

        def KW_IN(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.KW_IN)
            else:
                return self.getToken(jacParser.KW_IN, i)

        def nin(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.NinContext)
            else:
                return self.getTypedRuleContext(jacParser.NinContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_compare

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterCompare" ):
                listener.enterCompare(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitCompare" ):
                listener.exitCompare(self)




    def compare(self):

        localctx = jacParser.CompareContext(self, self._ctx, self.state)
        self.enterRule(localctx, 82, self.RULE_compare)
        try:
            self.state = 554
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.NOT]:
                self.enterOuterAlt(localctx, 1)
                self.state = 535
                self.match(jacParser.NOT)
                self.state = 536
                self.compare()
                pass
            elif token in [jacParser.T__1, jacParser.T__3, jacParser.T__4, jacParser.T__5, jacParser.KW_NODE, jacParser.KW_SPAWN, jacParser.DBL_COLON, jacParser.LBRACE, jacParser.DEREF, jacParser.PLUS, jacParser.MINUS, jacParser.LPAREN, jacParser.LSQUARE, jacParser.FLOAT, jacParser.STRING, jacParser.BOOL, jacParser.INT, jacParser.NAME]:
                self.enterOuterAlt(localctx, 2)
                self.state = 537
                self.arithmetic()
                self.state = 551
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,50,self._ctx)
                while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                    if _alt==1:
                        self.state = 546
                        self._errHandler.sync(self)
                        token = self._input.LA(1)
                        if token in [jacParser.EE]:
                            self.state = 538
                            self.match(jacParser.EE)
                            pass
                        elif token in [jacParser.LT]:
                            self.state = 539
                            self.match(jacParser.LT)
                            pass
                        elif token in [jacParser.GT]:
                            self.state = 540
                            self.match(jacParser.GT)
                            pass
                        elif token in [jacParser.LTE]:
                            self.state = 541
                            self.match(jacParser.LTE)
                            pass
                        elif token in [jacParser.GTE]:
                            self.state = 542
                            self.match(jacParser.GTE)
                            pass
                        elif token in [jacParser.NE]:
                            self.state = 543
                            self.match(jacParser.NE)
                            pass
                        elif token in [jacParser.KW_IN]:
                            self.state = 544
                            self.match(jacParser.KW_IN)
                            pass
                        elif token in [jacParser.NOT]:
                            self.state = 545
                            self.nin()
                            pass
                        else:
                            raise NoViableAltException(self)

                        self.state = 548
                        self.arithmetic() 
                    self.state = 553
                    self._errHandler.sync(self)
                    _alt = self._interp.adaptivePredict(self._input,50,self._ctx)

                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 NinContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def NOT(self):
            return self.getToken(jacParser.NOT, 0)

        def KW_IN(self):
            return self.getToken(jacParser.KW_IN, 0)

        def getRuleIndex(self):
            return jacParser.RULE_nin

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterNin" ):
                listener.enterNin(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitNin" ):
                listener.exitNin(self)




    def nin(self):

        localctx = jacParser.NinContext(self, self._ctx, self.state)
        self.enterRule(localctx, 84, self.RULE_nin)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 556
            self.match(jacParser.NOT)
            self.state = 557
            self.match(jacParser.KW_IN)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ArithmeticContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def term(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.TermContext)
            else:
                return self.getTypedRuleContext(jacParser.TermContext,i)


        def PLUS(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.PLUS)
            else:
                return self.getToken(jacParser.PLUS, i)

        def MINUS(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.MINUS)
            else:
                return self.getToken(jacParser.MINUS, i)

        def getRuleIndex(self):
            return jacParser.RULE_arithmetic

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterArithmetic" ):
                listener.enterArithmetic(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitArithmetic" ):
                listener.exitArithmetic(self)




    def arithmetic(self):

        localctx = jacParser.ArithmeticContext(self, self._ctx, self.state)
        self.enterRule(localctx, 86, self.RULE_arithmetic)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 559
            self.term()
            self.state = 564
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,52,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 560
                    _la = self._input.LA(1)
                    if not(_la==jacParser.PLUS or _la==jacParser.MINUS):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 561
                    self.term() 
                self.state = 566
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,52,self._ctx)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class TermContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def factor(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.FactorContext)
            else:
                return self.getTypedRuleContext(jacParser.FactorContext,i)


        def MUL(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.MUL)
            else:
                return self.getToken(jacParser.MUL, i)

        def DIV(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.DIV)
            else:
                return self.getToken(jacParser.DIV, i)

        def MOD(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.MOD)
            else:
                return self.getToken(jacParser.MOD, i)

        def getRuleIndex(self):
            return jacParser.RULE_term

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterTerm" ):
                listener.enterTerm(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitTerm" ):
                listener.exitTerm(self)




    def term(self):

        localctx = jacParser.TermContext(self, self._ctx, self.state)
        self.enterRule(localctx, 88, self.RULE_term)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 567
            self.factor()
            self.state = 572
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,53,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 568
                    _la = self._input.LA(1)
                    if not(((((_la - 68)) & ~0x3f) == 0 and ((1 << (_la - 68)) & ((1 << (jacParser.MUL - 68)) | (1 << (jacParser.DIV - 68)) | (1 << (jacParser.MOD - 68)))) != 0)):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 569
                    self.factor() 
                self.state = 574
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,53,self._ctx)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class FactorContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def factor(self):
            return self.getTypedRuleContext(jacParser.FactorContext,0)


        def PLUS(self):
            return self.getToken(jacParser.PLUS, 0)

        def MINUS(self):
            return self.getToken(jacParser.MINUS, 0)

        def power(self):
            return self.getTypedRuleContext(jacParser.PowerContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_factor

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterFactor" ):
                listener.enterFactor(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitFactor" ):
                listener.exitFactor(self)




    def factor(self):

        localctx = jacParser.FactorContext(self, self._ctx, self.state)
        self.enterRule(localctx, 90, self.RULE_factor)
        self._la = 0 # Token type
        try:
            self.state = 578
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,54,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 575
                _la = self._input.LA(1)
                if not(_la==jacParser.PLUS or _la==jacParser.MINUS):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 576
                self.factor()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 577
                self.power()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class PowerContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def func_call(self):
            return self.getTypedRuleContext(jacParser.Func_callContext,0)


        def POW(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.POW)
            else:
                return self.getToken(jacParser.POW, i)

        def factor(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.FactorContext)
            else:
                return self.getTypedRuleContext(jacParser.FactorContext,i)


        def index(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.IndexContext)
            else:
                return self.getTypedRuleContext(jacParser.IndexContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_power

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterPower" ):
                listener.enterPower(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitPower" ):
                listener.exitPower(self)




    def power(self):

        localctx = jacParser.PowerContext(self, self._ctx, self.state)
        self.enterRule(localctx, 92, self.RULE_power)
        try:
            self.state = 594
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,57,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 580
                self.func_call()
                self.state = 585
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,55,self._ctx)
                while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                    if _alt==1:
                        self.state = 581
                        self.match(jacParser.POW)
                        self.state = 582
                        self.factor() 
                    self.state = 587
                    self._errHandler.sync(self)
                    _alt = self._interp.adaptivePredict(self._input,55,self._ctx)

                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 588
                self.func_call()
                self.state = 590 
                self._errHandler.sync(self)
                _alt = 1
                while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                    if _alt == 1:
                        self.state = 589
                        self.index()

                    else:
                        raise NoViableAltException(self)
                    self.state = 592 
                    self._errHandler.sync(self)
                    _alt = self._interp.adaptivePredict(self._input,56,self._ctx)

                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Func_callContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def atom(self):
            return self.getTypedRuleContext(jacParser.AtomContext,0)


        def LPAREN(self):
            return self.getToken(jacParser.LPAREN, 0)

        def RPAREN(self):
            return self.getToken(jacParser.RPAREN, 0)

        def expression(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.ExpressionContext)
            else:
                return self.getTypedRuleContext(jacParser.ExpressionContext,i)


        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def DOT(self):
            return self.getToken(jacParser.DOT, 0)

        def func_built_in(self):
            return self.getTypedRuleContext(jacParser.Func_built_inContext,0)


        def DBL_COLON(self):
            return self.getToken(jacParser.DBL_COLON, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def spawn_ctx(self):
            return self.getTypedRuleContext(jacParser.Spawn_ctxContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_func_call

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterFunc_call" ):
                listener.enterFunc_call(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitFunc_call" ):
                listener.exitFunc_call(self)




    def func_call(self):

        localctx = jacParser.Func_callContext(self, self._ctx, self.state)
        self.enterRule(localctx, 94, self.RULE_func_call)
        self._la = 0 # Token type
        try:
            self.state = 623
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,63,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 596
                self.atom()
                self.state = 609
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,60,self._ctx)
                if la_ == 1:
                    self.state = 597
                    self.match(jacParser.LPAREN)
                    self.state = 606
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.T__1) | (1 << jacParser.T__3) | (1 << jacParser.T__4) | (1 << jacParser.T__5) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_SPAWN) | (1 << jacParser.DBL_COLON) | (1 << jacParser.LBRACE) | (1 << jacParser.DEREF) | (1 << jacParser.NOT))) != 0) or ((((_la - 66)) & ~0x3f) == 0 and ((1 << (_la - 66)) & ((1 << (jacParser.PLUS - 66)) | (1 << (jacParser.MINUS - 66)) | (1 << (jacParser.LPAREN - 66)) | (1 << (jacParser.LSQUARE - 66)) | (1 << (jacParser.FLOAT - 66)) | (1 << (jacParser.STRING - 66)) | (1 << (jacParser.BOOL - 66)) | (1 << (jacParser.INT - 66)) | (1 << (jacParser.NAME - 66)))) != 0):
                        self.state = 598
                        self.expression()
                        self.state = 603
                        self._errHandler.sync(self)
                        _la = self._input.LA(1)
                        while _la==jacParser.COMMA:
                            self.state = 599
                            self.match(jacParser.COMMA)
                            self.state = 600
                            self.expression()
                            self.state = 605
                            self._errHandler.sync(self)
                            _la = self._input.LA(1)



                    self.state = 608
                    self.match(jacParser.RPAREN)


                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 611
                self.atom()
                self.state = 612
                self.match(jacParser.DOT)
                self.state = 613
                self.func_built_in()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 616
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.T__1) | (1 << jacParser.T__3) | (1 << jacParser.T__4) | (1 << jacParser.T__5) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_SPAWN) | (1 << jacParser.LBRACE) | (1 << jacParser.DEREF))) != 0) or ((((_la - 67)) & ~0x3f) == 0 and ((1 << (_la - 67)) & ((1 << (jacParser.MINUS - 67)) | (1 << (jacParser.LPAREN - 67)) | (1 << (jacParser.LSQUARE - 67)) | (1 << (jacParser.FLOAT - 67)) | (1 << (jacParser.STRING - 67)) | (1 << (jacParser.BOOL - 67)) | (1 << (jacParser.INT - 67)) | (1 << (jacParser.NAME - 67)))) != 0):
                    self.state = 615
                    self.atom()


                self.state = 618
                self.match(jacParser.DBL_COLON)
                self.state = 619
                self.match(jacParser.NAME)
                self.state = 621
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,62,self._ctx)
                if la_ == 1:
                    self.state = 620
                    self.spawn_ctx()


                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Func_built_inContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_LENGTH(self):
            return self.getToken(jacParser.KW_LENGTH, 0)

        def KW_KEYS(self):
            return self.getToken(jacParser.KW_KEYS, 0)

        def KW_EDGE(self):
            return self.getToken(jacParser.KW_EDGE, 0)

        def KW_NODE(self):
            return self.getToken(jacParser.KW_NODE, 0)

        def KW_DESTROY(self):
            return self.getToken(jacParser.KW_DESTROY, 0)

        def LPAREN(self):
            return self.getToken(jacParser.LPAREN, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def RPAREN(self):
            return self.getToken(jacParser.RPAREN, 0)

        def getRuleIndex(self):
            return jacParser.RULE_func_built_in

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterFunc_built_in" ):
                listener.enterFunc_built_in(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitFunc_built_in" ):
                listener.exitFunc_built_in(self)




    def func_built_in(self):

        localctx = jacParser.Func_built_inContext(self, self._ctx, self.state)
        self.enterRule(localctx, 96, self.RULE_func_built_in)
        try:
            self.state = 635
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,64,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)

                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 626
                self.match(jacParser.KW_LENGTH)
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 627
                self.match(jacParser.KW_KEYS)
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 628
                self.match(jacParser.KW_EDGE)
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 629
                self.match(jacParser.KW_NODE)
                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 630
                self.match(jacParser.KW_DESTROY)
                self.state = 631
                self.match(jacParser.LPAREN)
                self.state = 632
                self.expression()
                self.state = 633
                self.match(jacParser.RPAREN)
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        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 INT(self):
            return self.getToken(jacParser.INT, 0)

        def FLOAT(self):
            return self.getToken(jacParser.FLOAT, 0)

        def STRING(self):
            return self.getToken(jacParser.STRING, 0)

        def BOOL(self):
            return self.getToken(jacParser.BOOL, 0)

        def node_edge_ref(self):
            return self.getTypedRuleContext(jacParser.Node_edge_refContext,0)


        def list_val(self):
            return self.getTypedRuleContext(jacParser.List_valContext,0)


        def dict_val(self):
            return self.getTypedRuleContext(jacParser.Dict_valContext,0)


        def dotted_name(self):
            return self.getTypedRuleContext(jacParser.Dotted_nameContext,0)


        def LPAREN(self):
            return self.getToken(jacParser.LPAREN, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def RPAREN(self):
            return self.getToken(jacParser.RPAREN, 0)

        def spawn(self):
            return self.getTypedRuleContext(jacParser.SpawnContext,0)


        def DEREF(self):
            return self.getToken(jacParser.DEREF, 0)

        def getRuleIndex(self):
            return jacParser.RULE_atom

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterAtom" ):
                listener.enterAtom(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitAtom" ):
                listener.exitAtom(self)




    def atom(self):

        localctx = jacParser.AtomContext(self, self._ctx, self.state)
        self.enterRule(localctx, 98, self.RULE_atom)
        try:
            self.state = 652
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.INT]:
                self.enterOuterAlt(localctx, 1)
                self.state = 637
                self.match(jacParser.INT)
                pass
            elif token in [jacParser.FLOAT]:
                self.enterOuterAlt(localctx, 2)
                self.state = 638
                self.match(jacParser.FLOAT)
                pass
            elif token in [jacParser.STRING]:
                self.enterOuterAlt(localctx, 3)
                self.state = 639
                self.match(jacParser.STRING)
                pass
            elif token in [jacParser.BOOL]:
                self.enterOuterAlt(localctx, 4)
                self.state = 640
                self.match(jacParser.BOOL)
                pass
            elif token in [jacParser.T__1, jacParser.T__3, jacParser.T__4, jacParser.T__5, jacParser.KW_NODE, jacParser.MINUS]:
                self.enterOuterAlt(localctx, 5)
                self.state = 641
                self.node_edge_ref()
                pass
            elif token in [jacParser.LSQUARE]:
                self.enterOuterAlt(localctx, 6)
                self.state = 642
                self.list_val()
                pass
            elif token in [jacParser.LBRACE]:
                self.enterOuterAlt(localctx, 7)
                self.state = 643
                self.dict_val()
                pass
            elif token in [jacParser.NAME]:
                self.enterOuterAlt(localctx, 8)
                self.state = 644
                self.dotted_name()
                pass
            elif token in [jacParser.LPAREN]:
                self.enterOuterAlt(localctx, 9)
                self.state = 645
                self.match(jacParser.LPAREN)
                self.state = 646
                self.expression()
                self.state = 647
                self.match(jacParser.RPAREN)
                pass
            elif token in [jacParser.KW_SPAWN]:
                self.enterOuterAlt(localctx, 10)
                self.state = 649
                self.spawn()
                pass
            elif token in [jacParser.DEREF]:
                self.enterOuterAlt(localctx, 11)
                self.state = 650
                self.match(jacParser.DEREF)
                self.state = 651
                self.expression()
                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 Node_edge_refContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def node_ref(self):
            return self.getTypedRuleContext(jacParser.Node_refContext,0)


        def edge_ref(self):
            return self.getTypedRuleContext(jacParser.Edge_refContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_node_edge_ref

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterNode_edge_ref" ):
                listener.enterNode_edge_ref(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitNode_edge_ref" ):
                listener.exitNode_edge_ref(self)




    def node_edge_ref(self):

        localctx = jacParser.Node_edge_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 100, self.RULE_node_edge_ref)
        try:
            self.state = 659
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.KW_NODE]:
                self.enterOuterAlt(localctx, 1)
                self.state = 654
                self.node_ref()
                pass
            elif token in [jacParser.T__1, jacParser.T__3, jacParser.T__4, jacParser.T__5, jacParser.MINUS]:
                self.enterOuterAlt(localctx, 2)
                self.state = 655
                self.edge_ref()
                self.state = 657
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,66,self._ctx)
                if la_ == 1:
                    self.state = 656
                    self.node_ref()


                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 Node_refContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_NODE(self):
            return self.getToken(jacParser.KW_NODE, 0)

        def DBL_COLON(self):
            return self.getToken(jacParser.DBL_COLON, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def getRuleIndex(self):
            return jacParser.RULE_node_ref

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterNode_ref" ):
                listener.enterNode_ref(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitNode_ref" ):
                listener.exitNode_ref(self)




    def node_ref(self):

        localctx = jacParser.Node_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 102, self.RULE_node_ref)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 661
            self.match(jacParser.KW_NODE)
            self.state = 662
            self.match(jacParser.DBL_COLON)
            self.state = 663
            self.match(jacParser.NAME)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Walker_refContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_WALKER(self):
            return self.getToken(jacParser.KW_WALKER, 0)

        def DBL_COLON(self):
            return self.getToken(jacParser.DBL_COLON, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def getRuleIndex(self):
            return jacParser.RULE_walker_ref

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalker_ref" ):
                listener.enterWalker_ref(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalker_ref" ):
                listener.exitWalker_ref(self)




    def walker_ref(self):

        localctx = jacParser.Walker_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 104, self.RULE_walker_ref)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 665
            self.match(jacParser.KW_WALKER)
            self.state = 666
            self.match(jacParser.DBL_COLON)
            self.state = 667
            self.match(jacParser.NAME)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Graph_refContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_GRAPH(self):
            return self.getToken(jacParser.KW_GRAPH, 0)

        def DBL_COLON(self):
            return self.getToken(jacParser.DBL_COLON, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def getRuleIndex(self):
            return jacParser.RULE_graph_ref

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterGraph_ref" ):
                listener.enterGraph_ref(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitGraph_ref" ):
                listener.exitGraph_ref(self)




    def graph_ref(self):

        localctx = jacParser.Graph_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 106, self.RULE_graph_ref)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 669
            self.match(jacParser.KW_GRAPH)
            self.state = 670
            self.match(jacParser.DBL_COLON)
            self.state = 671
            self.match(jacParser.NAME)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Edge_refContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def edge_to(self):
            return self.getTypedRuleContext(jacParser.Edge_toContext,0)


        def edge_from(self):
            return self.getTypedRuleContext(jacParser.Edge_fromContext,0)


        def edge_any(self):
            return self.getTypedRuleContext(jacParser.Edge_anyContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_edge_ref

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterEdge_ref" ):
                listener.enterEdge_ref(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitEdge_ref" ):
                listener.exitEdge_ref(self)




    def edge_ref(self):

        localctx = jacParser.Edge_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 108, self.RULE_edge_ref)
        try:
            self.state = 676
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,68,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 673
                self.edge_to()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 674
                self.edge_from()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 675
                self.edge_any()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Edge_toContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def MINUS(self):
            return self.getToken(jacParser.MINUS, 0)

        def LSQUARE(self):
            return self.getToken(jacParser.LSQUARE, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def RSQUARE(self):
            return self.getToken(jacParser.RSQUARE, 0)

        def getRuleIndex(self):
            return jacParser.RULE_edge_to

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterEdge_to" ):
                listener.enterEdge_to(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitEdge_to" ):
                listener.exitEdge_to(self)




    def edge_to(self):

        localctx = jacParser.Edge_toContext(self, self._ctx, self.state)
        self.enterRule(localctx, 110, self.RULE_edge_to)
        self._la = 0 # Token type
        try:
            self.state = 686
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.T__1]:
                self.enterOuterAlt(localctx, 1)
                self.state = 678
                self.match(jacParser.T__1)
                pass
            elif token in [jacParser.MINUS]:
                self.enterOuterAlt(localctx, 2)
                self.state = 679
                self.match(jacParser.MINUS)
                self.state = 683
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.LSQUARE:
                    self.state = 680
                    self.match(jacParser.LSQUARE)
                    self.state = 681
                    self.match(jacParser.NAME)
                    self.state = 682
                    self.match(jacParser.RSQUARE)


                self.state = 685
                self.match(jacParser.T__2)
                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 Edge_fromContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def MINUS(self):
            return self.getToken(jacParser.MINUS, 0)

        def LSQUARE(self):
            return self.getToken(jacParser.LSQUARE, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def RSQUARE(self):
            return self.getToken(jacParser.RSQUARE, 0)

        def getRuleIndex(self):
            return jacParser.RULE_edge_from

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterEdge_from" ):
                listener.enterEdge_from(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitEdge_from" ):
                listener.exitEdge_from(self)




    def edge_from(self):

        localctx = jacParser.Edge_fromContext(self, self._ctx, self.state)
        self.enterRule(localctx, 112, self.RULE_edge_from)
        self._la = 0 # Token type
        try:
            self.state = 696
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.T__3]:
                self.enterOuterAlt(localctx, 1)
                self.state = 688
                self.match(jacParser.T__3)
                pass
            elif token in [jacParser.T__4]:
                self.enterOuterAlt(localctx, 2)
                self.state = 689
                self.match(jacParser.T__4)
                self.state = 693
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.LSQUARE:
                    self.state = 690
                    self.match(jacParser.LSQUARE)
                    self.state = 691
                    self.match(jacParser.NAME)
                    self.state = 692
                    self.match(jacParser.RSQUARE)


                self.state = 695
                self.match(jacParser.MINUS)
                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 Edge_anyContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LSQUARE(self):
            return self.getToken(jacParser.LSQUARE, 0)

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def RSQUARE(self):
            return self.getToken(jacParser.RSQUARE, 0)

        def getRuleIndex(self):
            return jacParser.RULE_edge_any

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterEdge_any" ):
                listener.enterEdge_any(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitEdge_any" ):
                listener.exitEdge_any(self)




    def edge_any(self):

        localctx = jacParser.Edge_anyContext(self, self._ctx, self.state)
        self.enterRule(localctx, 114, self.RULE_edge_any)
        self._la = 0 # Token type
        try:
            self.state = 706
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.T__5]:
                self.enterOuterAlt(localctx, 1)
                self.state = 698
                self.match(jacParser.T__5)
                pass
            elif token in [jacParser.T__4]:
                self.enterOuterAlt(localctx, 2)
                self.state = 699
                self.match(jacParser.T__4)
                self.state = 703
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.LSQUARE:
                    self.state = 700
                    self.match(jacParser.LSQUARE)
                    self.state = 701
                    self.match(jacParser.NAME)
                    self.state = 702
                    self.match(jacParser.RSQUARE)


                self.state = 705
                self.match(jacParser.T__2)
                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 List_valContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LSQUARE(self):
            return self.getToken(jacParser.LSQUARE, 0)

        def RSQUARE(self):
            return self.getToken(jacParser.RSQUARE, 0)

        def expression(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.ExpressionContext)
            else:
                return self.getTypedRuleContext(jacParser.ExpressionContext,i)


        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_list_val

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterList_val" ):
                listener.enterList_val(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitList_val" ):
                listener.exitList_val(self)




    def list_val(self):

        localctx = jacParser.List_valContext(self, self._ctx, self.state)
        self.enterRule(localctx, 116, self.RULE_list_val)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 708
            self.match(jacParser.LSQUARE)
            self.state = 717
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.T__1) | (1 << jacParser.T__3) | (1 << jacParser.T__4) | (1 << jacParser.T__5) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_SPAWN) | (1 << jacParser.DBL_COLON) | (1 << jacParser.LBRACE) | (1 << jacParser.DEREF) | (1 << jacParser.NOT))) != 0) or ((((_la - 66)) & ~0x3f) == 0 and ((1 << (_la - 66)) & ((1 << (jacParser.PLUS - 66)) | (1 << (jacParser.MINUS - 66)) | (1 << (jacParser.LPAREN - 66)) | (1 << (jacParser.LSQUARE - 66)) | (1 << (jacParser.FLOAT - 66)) | (1 << (jacParser.STRING - 66)) | (1 << (jacParser.BOOL - 66)) | (1 << (jacParser.INT - 66)) | (1 << (jacParser.NAME - 66)))) != 0):
                self.state = 709
                self.expression()
                self.state = 714
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.COMMA:
                    self.state = 710
                    self.match(jacParser.COMMA)
                    self.state = 711
                    self.expression()
                    self.state = 716
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)



            self.state = 719
            self.match(jacParser.RSQUARE)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class IndexContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LSQUARE(self):
            return self.getToken(jacParser.LSQUARE, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def RSQUARE(self):
            return self.getToken(jacParser.RSQUARE, 0)

        def getRuleIndex(self):
            return jacParser.RULE_index

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterIndex" ):
                listener.enterIndex(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitIndex" ):
                listener.exitIndex(self)




    def index(self):

        localctx = jacParser.IndexContext(self, self._ctx, self.state)
        self.enterRule(localctx, 118, self.RULE_index)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 721
            self.match(jacParser.LSQUARE)
            self.state = 722
            self.expression()
            self.state = 723
            self.match(jacParser.RSQUARE)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dict_valContext(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(jacParser.LBRACE, 0)

        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def kv_pair(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Kv_pairContext)
            else:
                return self.getTypedRuleContext(jacParser.Kv_pairContext,i)


        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_dict_val

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDict_val" ):
                listener.enterDict_val(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDict_val" ):
                listener.exitDict_val(self)




    def dict_val(self):

        localctx = jacParser.Dict_valContext(self, self._ctx, self.state)
        self.enterRule(localctx, 120, self.RULE_dict_val)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 725
            self.match(jacParser.LBRACE)
            self.state = 734
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.STRING:
                self.state = 726
                self.kv_pair()
                self.state = 731
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.COMMA:
                    self.state = 727
                    self.match(jacParser.COMMA)
                    self.state = 728
                    self.kv_pair()
                    self.state = 733
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)



            self.state = 736
            self.match(jacParser.RBRACE)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Kv_pairContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def STRING(self):
            return self.getToken(jacParser.STRING, 0)

        def COLON(self):
            return self.getToken(jacParser.COLON, 0)

        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_kv_pair

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterKv_pair" ):
                listener.enterKv_pair(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitKv_pair" ):
                listener.exitKv_pair(self)




    def kv_pair(self):

        localctx = jacParser.Kv_pairContext(self, self._ctx, self.state)
        self.enterRule(localctx, 122, self.RULE_kv_pair)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 738
            self.match(jacParser.STRING)
            self.state = 739
            self.match(jacParser.COLON)
            self.state = 740
            self.expression()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SpawnContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def KW_SPAWN(self):
            return self.getToken(jacParser.KW_SPAWN, 0)

        def spawn_object(self):
            return self.getTypedRuleContext(jacParser.Spawn_objectContext,0)


        def expression(self):
            return self.getTypedRuleContext(jacParser.ExpressionContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_spawn

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterSpawn" ):
                listener.enterSpawn(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitSpawn" ):
                listener.exitSpawn(self)




    def spawn(self):

        localctx = jacParser.SpawnContext(self, self._ctx, self.state)
        self.enterRule(localctx, 124, self.RULE_spawn)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 742
            self.match(jacParser.KW_SPAWN)
            self.state = 744
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,79,self._ctx)
            if la_ == 1:
                self.state = 743
                self.expression()


            self.state = 746
            self.spawn_object()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Spawn_objectContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def node_spawn(self):
            return self.getTypedRuleContext(jacParser.Node_spawnContext,0)


        def walker_spawn(self):
            return self.getTypedRuleContext(jacParser.Walker_spawnContext,0)


        def graph_spawn(self):
            return self.getTypedRuleContext(jacParser.Graph_spawnContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_spawn_object

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterSpawn_object" ):
                listener.enterSpawn_object(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitSpawn_object" ):
                listener.exitSpawn_object(self)




    def spawn_object(self):

        localctx = jacParser.Spawn_objectContext(self, self._ctx, self.state)
        self.enterRule(localctx, 126, self.RULE_spawn_object)
        try:
            self.state = 751
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,80,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 748
                self.node_spawn()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 749
                self.walker_spawn()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 750
                self.graph_spawn()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Node_spawnContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def node_ref(self):
            return self.getTypedRuleContext(jacParser.Node_refContext,0)


        def edge_ref(self):
            return self.getTypedRuleContext(jacParser.Edge_refContext,0)


        def spawn_ctx(self):
            return self.getTypedRuleContext(jacParser.Spawn_ctxContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_node_spawn

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterNode_spawn" ):
                listener.enterNode_spawn(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitNode_spawn" ):
                listener.exitNode_spawn(self)




    def node_spawn(self):

        localctx = jacParser.Node_spawnContext(self, self._ctx, self.state)
        self.enterRule(localctx, 128, self.RULE_node_spawn)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 754
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.T__1) | (1 << jacParser.T__3) | (1 << jacParser.T__4) | (1 << jacParser.T__5))) != 0) or _la==jacParser.MINUS:
                self.state = 753
                self.edge_ref()


            self.state = 756
            self.node_ref()
            self.state = 758
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,82,self._ctx)
            if la_ == 1:
                self.state = 757
                self.spawn_ctx()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Graph_spawnContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def edge_ref(self):
            return self.getTypedRuleContext(jacParser.Edge_refContext,0)


        def graph_ref(self):
            return self.getTypedRuleContext(jacParser.Graph_refContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_graph_spawn

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterGraph_spawn" ):
                listener.enterGraph_spawn(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitGraph_spawn" ):
                listener.exitGraph_spawn(self)




    def graph_spawn(self):

        localctx = jacParser.Graph_spawnContext(self, self._ctx, self.state)
        self.enterRule(localctx, 130, self.RULE_graph_spawn)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 760
            self.edge_ref()
            self.state = 761
            self.graph_ref()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Walker_spawnContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def walker_ref(self):
            return self.getTypedRuleContext(jacParser.Walker_refContext,0)


        def spawn_ctx(self):
            return self.getTypedRuleContext(jacParser.Spawn_ctxContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_walker_spawn

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterWalker_spawn" ):
                listener.enterWalker_spawn(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitWalker_spawn" ):
                listener.exitWalker_spawn(self)




    def walker_spawn(self):

        localctx = jacParser.Walker_spawnContext(self, self._ctx, self.state)
        self.enterRule(localctx, 132, self.RULE_walker_spawn)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 763
            self.walker_ref()
            self.state = 765
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,83,self._ctx)
            if la_ == 1:
                self.state = 764
                self.spawn_ctx()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Spawn_ctxContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LPAREN(self):
            return self.getToken(jacParser.LPAREN, 0)

        def RPAREN(self):
            return self.getToken(jacParser.RPAREN, 0)

        def assignment(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.AssignmentContext)
            else:
                return self.getTypedRuleContext(jacParser.AssignmentContext,i)


        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_spawn_ctx

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterSpawn_ctx" ):
                listener.enterSpawn_ctx(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitSpawn_ctx" ):
                listener.exitSpawn_ctx(self)




    def spawn_ctx(self):

        localctx = jacParser.Spawn_ctxContext(self, self._ctx, self.state)
        self.enterRule(localctx, 134, self.RULE_spawn_ctx)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 767
            self.match(jacParser.LPAREN)
            self.state = 776
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.NAME:
                self.state = 768
                self.assignment()
                self.state = 773
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==jacParser.COMMA:
                    self.state = 769
                    self.match(jacParser.COMMA)
                    self.state = 770
                    self.assignment()
                    self.state = 775
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)



            self.state = 778
            self.match(jacParser.RPAREN)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_graphContext(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(jacParser.LBRACE, 0)

        def dot_stmt_list(self):
            return self.getTypedRuleContext(jacParser.Dot_stmt_listContext,0)


        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def KW_GRAPH(self):
            return self.getToken(jacParser.KW_GRAPH, 0)

        def KW_DIGRAPH(self):
            return self.getToken(jacParser.KW_DIGRAPH, 0)

        def KW_STRICT(self):
            return self.getToken(jacParser.KW_STRICT, 0)

        def dot_id(self):
            return self.getTypedRuleContext(jacParser.Dot_idContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_dot_graph

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_graph" ):
                listener.enterDot_graph(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_graph" ):
                listener.exitDot_graph(self)




    def dot_graph(self):

        localctx = jacParser.Dot_graphContext(self, self._ctx, self.state)
        self.enterRule(localctx, 136, self.RULE_dot_graph)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 781
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.KW_STRICT:
                self.state = 780
                self.match(jacParser.KW_STRICT)


            self.state = 783
            _la = self._input.LA(1)
            if not(_la==jacParser.KW_GRAPH or _la==jacParser.KW_DIGRAPH):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 785
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE))) != 0) or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & ((1 << (jacParser.FLOAT - 76)) | (1 << (jacParser.STRING - 76)) | (1 << (jacParser.INT - 76)) | (1 << (jacParser.NAME - 76)))) != 0):
                self.state = 784
                self.dot_id()


            self.state = 787
            self.match(jacParser.LBRACE)
            self.state = 788
            self.dot_stmt_list()
            self.state = 789
            self.match(jacParser.RBRACE)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_stmt_listContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_stmt(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_stmtContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_stmtContext,i)


        def SEMI(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.SEMI)
            else:
                return self.getToken(jacParser.SEMI, i)

        def getRuleIndex(self):
            return jacParser.RULE_dot_stmt_list

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_stmt_list" ):
                listener.enterDot_stmt_list(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_stmt_list" ):
                listener.exitDot_stmt_list(self)




    def dot_stmt_list(self):

        localctx = jacParser.Dot_stmt_listContext(self, self._ctx, self.state)
        self.enterRule(localctx, 138, self.RULE_dot_stmt_list)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 797
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_SUBGRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.LBRACE) | (1 << jacParser.KW_EDGE))) != 0) or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & ((1 << (jacParser.FLOAT - 76)) | (1 << (jacParser.STRING - 76)) | (1 << (jacParser.INT - 76)) | (1 << (jacParser.NAME - 76)))) != 0):
                self.state = 791
                self.dot_stmt()
                self.state = 793
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.SEMI:
                    self.state = 792
                    self.match(jacParser.SEMI)


                self.state = 799
                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 Dot_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_node_stmt(self):
            return self.getTypedRuleContext(jacParser.Dot_node_stmtContext,0)


        def dot_edge_stmt(self):
            return self.getTypedRuleContext(jacParser.Dot_edge_stmtContext,0)


        def dot_attr_stmt(self):
            return self.getTypedRuleContext(jacParser.Dot_attr_stmtContext,0)


        def dot_id(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_idContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_idContext,i)


        def EQ(self):
            return self.getToken(jacParser.EQ, 0)

        def dot_subgraph(self):
            return self.getTypedRuleContext(jacParser.Dot_subgraphContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_dot_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_stmt" ):
                listener.enterDot_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_stmt" ):
                listener.exitDot_stmt(self)




    def dot_stmt(self):

        localctx = jacParser.Dot_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 140, self.RULE_dot_stmt)
        try:
            self.state = 808
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,90,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 800
                self.dot_node_stmt()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 801
                self.dot_edge_stmt()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 802
                self.dot_attr_stmt()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 803
                self.dot_id()
                self.state = 804
                self.match(jacParser.EQ)
                self.state = 805
                self.dot_id()
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 807
                self.dot_subgraph()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_attr_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_attr_list(self):
            return self.getTypedRuleContext(jacParser.Dot_attr_listContext,0)


        def KW_GRAPH(self):
            return self.getToken(jacParser.KW_GRAPH, 0)

        def KW_NODE(self):
            return self.getToken(jacParser.KW_NODE, 0)

        def KW_EDGE(self):
            return self.getToken(jacParser.KW_EDGE, 0)

        def getRuleIndex(self):
            return jacParser.RULE_dot_attr_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_attr_stmt" ):
                listener.enterDot_attr_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_attr_stmt" ):
                listener.exitDot_attr_stmt(self)




    def dot_attr_stmt(self):

        localctx = jacParser.Dot_attr_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 142, self.RULE_dot_attr_stmt)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 810
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE))) != 0)):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 811
            self.dot_attr_list()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_attr_listContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LSQUARE(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.LSQUARE)
            else:
                return self.getToken(jacParser.LSQUARE, i)

        def RSQUARE(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.RSQUARE)
            else:
                return self.getToken(jacParser.RSQUARE, i)

        def dot_a_list(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_a_listContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_a_listContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_dot_attr_list

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_attr_list" ):
                listener.enterDot_attr_list(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_attr_list" ):
                listener.exitDot_attr_list(self)




    def dot_attr_list(self):

        localctx = jacParser.Dot_attr_listContext(self, self._ctx, self.state)
        self.enterRule(localctx, 144, self.RULE_dot_attr_list)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 818 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 813
                self.match(jacParser.LSQUARE)
                self.state = 815
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE))) != 0) or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & ((1 << (jacParser.FLOAT - 76)) | (1 << (jacParser.STRING - 76)) | (1 << (jacParser.INT - 76)) | (1 << (jacParser.NAME - 76)))) != 0):
                    self.state = 814
                    self.dot_a_list()


                self.state = 817
                self.match(jacParser.RSQUARE)
                self.state = 820 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==jacParser.LSQUARE):
                    break

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_a_listContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_id(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_idContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_idContext,i)


        def EQ(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.EQ)
            else:
                return self.getToken(jacParser.EQ, i)

        def COMMA(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COMMA)
            else:
                return self.getToken(jacParser.COMMA, i)

        def getRuleIndex(self):
            return jacParser.RULE_dot_a_list

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_a_list" ):
                listener.enterDot_a_list(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_a_list" ):
                listener.exitDot_a_list(self)




    def dot_a_list(self):

        localctx = jacParser.Dot_a_listContext(self, self._ctx, self.state)
        self.enterRule(localctx, 146, self.RULE_dot_a_list)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 830 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 822
                self.dot_id()
                self.state = 825
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.EQ:
                    self.state = 823
                    self.match(jacParser.EQ)
                    self.state = 824
                    self.dot_id()


                self.state = 828
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==jacParser.COMMA:
                    self.state = 827
                    self.match(jacParser.COMMA)


                self.state = 832 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE))) != 0) or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & ((1 << (jacParser.FLOAT - 76)) | (1 << (jacParser.STRING - 76)) | (1 << (jacParser.INT - 76)) | (1 << (jacParser.NAME - 76)))) != 0)):
                    break

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_edge_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_edgeRHS(self):
            return self.getTypedRuleContext(jacParser.Dot_edgeRHSContext,0)


        def dot_node_id(self):
            return self.getTypedRuleContext(jacParser.Dot_node_idContext,0)


        def dot_subgraph(self):
            return self.getTypedRuleContext(jacParser.Dot_subgraphContext,0)


        def dot_attr_list(self):
            return self.getTypedRuleContext(jacParser.Dot_attr_listContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_dot_edge_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_edge_stmt" ):
                listener.enterDot_edge_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_edge_stmt" ):
                listener.exitDot_edge_stmt(self)




    def dot_edge_stmt(self):

        localctx = jacParser.Dot_edge_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 148, self.RULE_dot_edge_stmt)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 836
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [jacParser.KW_GRAPH, jacParser.KW_NODE, jacParser.KW_EDGE, jacParser.FLOAT, jacParser.STRING, jacParser.INT, jacParser.NAME]:
                self.state = 834
                self.dot_node_id()
                pass
            elif token in [jacParser.KW_SUBGRAPH, jacParser.LBRACE]:
                self.state = 835
                self.dot_subgraph()
                pass
            else:
                raise NoViableAltException(self)

            self.state = 838
            self.dot_edgeRHS()
            self.state = 840
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.LSQUARE:
                self.state = 839
                self.dot_attr_list()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_edgeRHSContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_edgeop(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_edgeopContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_edgeopContext,i)


        def dot_node_id(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_node_idContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_node_idContext,i)


        def dot_subgraph(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_subgraphContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_subgraphContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_dot_edgeRHS

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_edgeRHS" ):
                listener.enterDot_edgeRHS(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_edgeRHS" ):
                listener.exitDot_edgeRHS(self)




    def dot_edgeRHS(self):

        localctx = jacParser.Dot_edgeRHSContext(self, self._ctx, self.state)
        self.enterRule(localctx, 150, self.RULE_dot_edgeRHS)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 847 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 842
                self.dot_edgeop()
                self.state = 845
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [jacParser.KW_GRAPH, jacParser.KW_NODE, jacParser.KW_EDGE, jacParser.FLOAT, jacParser.STRING, jacParser.INT, jacParser.NAME]:
                    self.state = 843
                    self.dot_node_id()
                    pass
                elif token in [jacParser.KW_SUBGRAPH, jacParser.LBRACE]:
                    self.state = 844
                    self.dot_subgraph()
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 849 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==jacParser.T__2 or _la==jacParser.T__6):
                    break

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_edgeopContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser


        def getRuleIndex(self):
            return jacParser.RULE_dot_edgeop

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_edgeop" ):
                listener.enterDot_edgeop(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_edgeop" ):
                listener.exitDot_edgeop(self)




    def dot_edgeop(self):

        localctx = jacParser.Dot_edgeopContext(self, self._ctx, self.state)
        self.enterRule(localctx, 152, self.RULE_dot_edgeop)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 851
            _la = self._input.LA(1)
            if not(_la==jacParser.T__2 or _la==jacParser.T__6):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_node_stmtContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_node_id(self):
            return self.getTypedRuleContext(jacParser.Dot_node_idContext,0)


        def dot_attr_list(self):
            return self.getTypedRuleContext(jacParser.Dot_attr_listContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_dot_node_stmt

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_node_stmt" ):
                listener.enterDot_node_stmt(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_node_stmt" ):
                listener.exitDot_node_stmt(self)




    def dot_node_stmt(self):

        localctx = jacParser.Dot_node_stmtContext(self, self._ctx, self.state)
        self.enterRule(localctx, 154, self.RULE_dot_node_stmt)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 853
            self.dot_node_id()
            self.state = 855
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.LSQUARE:
                self.state = 854
                self.dot_attr_list()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_node_idContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def dot_id(self):
            return self.getTypedRuleContext(jacParser.Dot_idContext,0)


        def dot_port(self):
            return self.getTypedRuleContext(jacParser.Dot_portContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_dot_node_id

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_node_id" ):
                listener.enterDot_node_id(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_node_id" ):
                listener.exitDot_node_id(self)




    def dot_node_id(self):

        localctx = jacParser.Dot_node_idContext(self, self._ctx, self.state)
        self.enterRule(localctx, 156, self.RULE_dot_node_id)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 857
            self.dot_id()
            self.state = 859
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.COLON:
                self.state = 858
                self.dot_port()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_portContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def COLON(self, i:int=None):
            if i is None:
                return self.getTokens(jacParser.COLON)
            else:
                return self.getToken(jacParser.COLON, i)

        def dot_id(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(jacParser.Dot_idContext)
            else:
                return self.getTypedRuleContext(jacParser.Dot_idContext,i)


        def getRuleIndex(self):
            return jacParser.RULE_dot_port

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_port" ):
                listener.enterDot_port(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_port" ):
                listener.exitDot_port(self)




    def dot_port(self):

        localctx = jacParser.Dot_portContext(self, self._ctx, self.state)
        self.enterRule(localctx, 158, self.RULE_dot_port)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 861
            self.match(jacParser.COLON)
            self.state = 862
            self.dot_id()
            self.state = 865
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.COLON:
                self.state = 863
                self.match(jacParser.COLON)
                self.state = 864
                self.dot_id()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_subgraphContext(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(jacParser.LBRACE, 0)

        def dot_stmt_list(self):
            return self.getTypedRuleContext(jacParser.Dot_stmt_listContext,0)


        def RBRACE(self):
            return self.getToken(jacParser.RBRACE, 0)

        def KW_SUBGRAPH(self):
            return self.getToken(jacParser.KW_SUBGRAPH, 0)

        def dot_id(self):
            return self.getTypedRuleContext(jacParser.Dot_idContext,0)


        def getRuleIndex(self):
            return jacParser.RULE_dot_subgraph

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_subgraph" ):
                listener.enterDot_subgraph(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_subgraph" ):
                listener.exitDot_subgraph(self)




    def dot_subgraph(self):

        localctx = jacParser.Dot_subgraphContext(self, self._ctx, self.state)
        self.enterRule(localctx, 160, self.RULE_dot_subgraph)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 871
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==jacParser.KW_SUBGRAPH:
                self.state = 867
                self.match(jacParser.KW_SUBGRAPH)
                self.state = 869
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE))) != 0) or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & ((1 << (jacParser.FLOAT - 76)) | (1 << (jacParser.STRING - 76)) | (1 << (jacParser.INT - 76)) | (1 << (jacParser.NAME - 76)))) != 0):
                    self.state = 868
                    self.dot_id()




            self.state = 873
            self.match(jacParser.LBRACE)
            self.state = 874
            self.dot_stmt_list()
            self.state = 875
            self.match(jacParser.RBRACE)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dot_idContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def NAME(self):
            return self.getToken(jacParser.NAME, 0)

        def STRING(self):
            return self.getToken(jacParser.STRING, 0)

        def INT(self):
            return self.getToken(jacParser.INT, 0)

        def FLOAT(self):
            return self.getToken(jacParser.FLOAT, 0)

        def KW_GRAPH(self):
            return self.getToken(jacParser.KW_GRAPH, 0)

        def KW_NODE(self):
            return self.getToken(jacParser.KW_NODE, 0)

        def KW_EDGE(self):
            return self.getToken(jacParser.KW_EDGE, 0)

        def getRuleIndex(self):
            return jacParser.RULE_dot_id

        def enterRule(self, listener:ParseTreeListener):
            if hasattr( listener, "enterDot_id" ):
                listener.enterDot_id(self)

        def exitRule(self, listener:ParseTreeListener):
            if hasattr( listener, "exitDot_id" ):
                listener.exitDot_id(self)




    def dot_id(self):

        localctx = jacParser.Dot_idContext(self, self._ctx, self.state)
        self.enterRule(localctx, 162, self.RULE_dot_id)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 877
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << jacParser.KW_GRAPH) | (1 << jacParser.KW_NODE) | (1 << jacParser.KW_EDGE))) != 0) or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & ((1 << (jacParser.FLOAT - 76)) | (1 << (jacParser.STRING - 76)) | (1 << (jacParser.INT - 76)) | (1 << (jacParser.NAME - 76)))) != 0)):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx





