# Generated from CnsMRParser.g4 by ANTLR 4.9
# 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\3\u009a")
        buf.write("\u0503\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\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3")
        buf.write("\2\3\2\3\2\3\2\7\2y\n\2\f\2\16\2|\13\2\3\2\7\2\177\n\2")
        buf.write("\f\2\16\2\u0082\13\2\3\2\7\2\u0085\n\2\f\2\16\2\u0088")
        buf.write("\13\2\3\2\7\2\u008b\n\2\f\2\16\2\u008e\13\2\3\2\7\2\u0091")
        buf.write("\n\2\f\2\16\2\u0094\13\2\3\2\7\2\u0097\n\2\f\2\16\2\u009a")
        buf.write("\13\2\3\2\3\2\3\3\3\3\7\3\u00a0\n\3\f\3\16\3\u00a3\13")
        buf.write("\3\3\3\3\3\3\4\3\4\3\4\7\4\u00aa\n\4\f\4\16\4\u00ad\13")
        buf.write("\4\3\4\3\4\3\5\3\5\3\5\7\5\u00b4\n\5\f\5\16\5\u00b7\13")
        buf.write("\5\3\5\3\5\3\6\3\6\3\6\7\6\u00be\n\6\f\6\16\6\u00c1\13")
        buf.write("\6\3\6\3\6\3\7\3\7\7\7\u00c7\n\7\f\7\16\7\u00ca\13\7\3")
        buf.write("\7\3\7\3\b\3\b\7\b\u00d0\n\b\f\b\16\b\u00d3\13\b\3\b\3")
        buf.write("\b\3\t\3\t\3\t\3\t\3\n\3\n\3\n\3\n\3\13\3\13\7\13\u00e1")
        buf.write("\n\13\f\13\16\13\u00e4\13\13\3\13\3\13\3\f\3\f\7\f\u00ea")
        buf.write("\n\f\f\f\16\f\u00ed\13\f\3\f\3\f\3\r\3\r\7\r\u00f3\n\r")
        buf.write("\f\r\16\r\u00f6\13\r\3\r\3\r\3\16\3\16\7\16\u00fc\n\16")
        buf.write("\f\16\16\16\u00ff\13\16\3\16\3\16\3\17\3\17\5\17\u0105")
        buf.write("\n\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17")
        buf.write("\3\17\3\17\3\17\5\17\u0114\n\17\3\17\3\17\3\17\5\17\u0119")
        buf.write("\n\17\3\17\3\17\3\17\3\17\3\17\5\17\u0120\n\17\3\17\3")
        buf.write("\17\3\17\3\17\3\17\3\17\3\17\5\17\u0129\n\17\3\17\3\17")
        buf.write("\3\17\5\17\u012e\n\17\3\17\3\17\3\17\3\17\3\17\3\17\3")
        buf.write("\17\7\17\u0137\n\17\f\17\16\17\u013a\13\17\3\17\3\17\3")
        buf.write("\17\3\17\3\17\3\17\3\17\3\17\3\17\5\17\u0145\n\17\3\17")
        buf.write("\3\17\3\17\3\17\5\17\u014b\n\17\3\17\3\17\3\17\3\17\3")
        buf.write("\17\3\17\3\17\3\17\3\17\3\17\3\17\5\17\u0158\n\17\3\17")
        buf.write("\3\17\3\17\7\17\u015d\n\17\f\17\16\17\u0160\13\17\3\17")
        buf.write("\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17")
        buf.write("\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\7\17")
        buf.write("\u0178\n\17\f\17\16\17\u017b\13\17\3\17\3\17\3\17\5\17")
        buf.write("\u0180\n\17\3\17\5\17\u0183\n\17\3\20\3\20\3\20\3\20\3")
        buf.write("\20\3\20\3\20\3\20\3\20\3\20\7\20\u018f\n\20\f\20\16\20")
        buf.write("\u0192\13\20\3\21\3\21\5\21\u0196\n\21\3\21\3\21\3\21")
        buf.write("\5\21\u019b\n\21\3\21\3\21\3\21\3\21\3\21\5\21\u01a2\n")
        buf.write("\21\3\22\3\22\3\22\5\22\u01a7\n\22\3\22\3\22\3\22\5\22")
        buf.write("\u01ac\n\22\3\22\3\22\3\22\5\22\u01b1\n\22\3\22\3\22\3")
        buf.write("\22\3\22\5\22\u01b7\n\22\3\22\3\22\5\22\u01bb\n\22\3\23")
        buf.write("\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\24\3\24")
        buf.write("\3\24\3\24\5\24\u01cb\n\24\3\25\3\25\5\25\u01cf\n\25\3")
        buf.write("\25\3\25\3\25\5\25\u01d4\n\25\3\25\5\25\u01d7\n\25\3\26")
        buf.write("\3\26\5\26\u01db\n\26\3\26\3\26\3\26\5\26\u01e0\n\26\3")
        buf.write("\26\3\26\3\26\5\26\u01e5\n\26\3\26\3\26\5\26\u01e9\n\26")
        buf.write("\3\26\3\26\3\26\3\26\5\26\u01ef\n\26\3\26\3\26\5\26\u01f3")
        buf.write("\n\26\3\26\3\26\5\26\u01f7\n\26\3\26\5\26\u01fa\n\26\5")
        buf.write("\26\u01fc\n\26\3\26\3\26\5\26\u0200\n\26\3\27\3\27\3\27")
        buf.write("\5\27\u0205\n\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3")
        buf.write("\27\5\27\u020f\n\27\3\27\3\27\3\27\5\27\u0214\n\27\3\27")
        buf.write("\3\27\3\27\5\27\u0219\n\27\3\27\3\27\3\27\3\27\3\27\5")
        buf.write("\27\u0220\n\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30")
        buf.write("\3\30\3\30\5\30\u022c\n\30\3\31\3\31\3\31\5\31\u0231\n")
        buf.write("\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\5\31")
        buf.write("\u023c\n\31\3\31\3\31\3\31\3\31\5\31\u0242\n\31\3\31\3")
        buf.write("\31\5\31\u0246\n\31\3\31\3\31\3\31\5\31\u024b\n\31\3\31")
        buf.write("\3\31\3\31\5\31\u0250\n\31\3\31\3\31\3\31\3\31\3\31\3")
        buf.write("\31\3\31\5\31\u0259\n\31\3\31\5\31\u025c\n\31\3\31\5\31")
        buf.write("\u025f\n\31\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3")
        buf.write("\32\3\32\5\32\u026b\n\32\3\32\3\32\3\32\3\32\3\32\5\32")
        buf.write("\u0272\n\32\3\33\3\33\3\33\5\33\u0277\n\33\3\33\3\33\3")
        buf.write("\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\5\33\u0283\n\33")
        buf.write("\3\33\3\33\3\33\5\33\u0288\n\33\3\33\3\33\3\33\5\33\u028d")
        buf.write("\n\33\3\33\3\33\3\33\5\33\u0292\n\33\3\33\3\33\3\33\5")
        buf.write("\33\u0297\n\33\3\33\3\33\3\33\3\33\3\33\7\33\u029e\n\33")
        buf.write("\f\33\16\33\u02a1\13\33\3\33\3\33\5\33\u02a5\n\33\3\34")
        buf.write("\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\35\3\35\3\35")
        buf.write("\3\35\3\35\3\36\7\36\u02b6\n\36\f\36\16\36\u02b9\13\36")
        buf.write("\3\36\7\36\u02bc\n\36\f\36\16\36\u02bf\13\36\3\36\7\36")
        buf.write("\u02c2\n\36\f\36\16\36\u02c5\13\36\3\36\7\36\u02c8\n\36")
        buf.write("\f\36\16\36\u02cb\13\36\3\36\7\36\u02ce\n\36\f\36\16\36")
        buf.write("\u02d1\13\36\3\36\7\36\u02d4\n\36\f\36\16\36\u02d7\13")
        buf.write("\36\3\36\7\36\u02da\n\36\f\36\16\36\u02dd\13\36\3\36\7")
        buf.write("\36\u02e0\n\36\f\36\16\36\u02e3\13\36\3\36\7\36\u02e6")
        buf.write("\n\36\f\36\16\36\u02e9\13\36\3\36\3\36\5\36\u02ed\n\36")
        buf.write("\3\36\3\36\3\36\5\36\u02f2\n\36\3\36\3\36\3\36\3\36\5")
        buf.write("\36\u02f8\n\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36\3\36")
        buf.write("\5\36\u0302\n\36\3\36\5\36\u0305\n\36\3\36\3\36\3\36\5")
        buf.write("\36\u030a\n\36\3\37\3\37\3\37\5\37\u030f\n\37\3\37\3\37")
        buf.write("\5\37\u0313\n\37\3 \3 \3 \3 \3!\3!\3!\3!\3!\3!\5!\u031f")
        buf.write("\n!\3!\3!\3\"\3\"\3\"\3#\3#\3#\3$\3$\3$\3%\3%\3%\3&\3")
        buf.write("&\3&\3&\3&\3&\3&\3&\5&\u0337\n&\3\'\3\'\3\'\3(\3(\3(\5")
        buf.write("(\u033f\n(\3(\3(\3(\3(\3(\5(\u0346\n(\3(\5(\u0349\n(\3")
        buf.write("(\5(\u034c\n(\3(\3(\3(\5(\u0351\n(\3(\3(\3(\5(\u0356\n")
        buf.write("(\3(\3(\3(\5(\u035b\n(\3(\3(\3(\3(\3(\3(\3(\3(\5(\u0365")
        buf.write("\n(\3(\3(\3(\5(\u036a\n(\3(\3(\3(\5(\u036f\n(\3(\3(\5")
        buf.write("(\u0373\n(\3(\3(\3(\3(\3(\3(\3(\5(\u037c\n(\3(\5(\u037f")
        buf.write("\n(\3(\3(\3(\3(\3(\5(\u0386\n(\3(\5(\u0389\n(\3(\5(\u038c")
        buf.write("\n(\3(\5(\u038f\n(\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\5)\u039b")
        buf.write("\n)\3)\3)\3)\3)\3)\5)\u03a2\n)\3)\3)\3)\3)\3)\5)\u03a9")
        buf.write("\n)\3*\3*\3*\5*\u03ae\n*\3*\3*\3*\3*\3*\3*\3*\3*\3*\3")
        buf.write("*\5*\u03ba\n*\3*\3*\3*\5*\u03bf\n*\3*\3*\3*\5*\u03c4\n")
        buf.write("*\3*\3*\3*\3*\3*\5*\u03cb\n*\3+\3+\3+\3+\3+\3+\3+\3+\3")
        buf.write("+\3+\3,\3,\3,\5,\u03da\n,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3")
        buf.write(",\3,\3,\5,\u03e8\n,\3,\3,\3,\5,\u03ed\n,\3,\3,\3,\5,\u03f2")
        buf.write("\n,\3,\3,\3,\3,\3,\5,\u03f9\n,\3-\3-\3-\3-\3-\3-\3-\3")
        buf.write("-\3-\3-\3-\3-\3.\3.\3.\5.\u040a\n.\3.\3.\3.\5.\u040f\n")
        buf.write(".\3.\3.\3.\3.\3.\3.\3.\5.\u0418\n.\3.\3.\3.\5.\u041d\n")
        buf.write(".\3.\3.\3.\5.\u0422\n.\3.\3.\3.\5.\u0427\n.\3.\3.\3.\3")
        buf.write(".\3.\3.\3.\5.\u0430\n.\3.\5.\u0433\n.\3.\3.\3.\3.\3.\3")
        buf.write(".\5.\u043b\n.\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\5")
        buf.write("/\u044a\n/\3\60\3\60\3\60\3\60\3\61\3\61\3\61\7\61\u0453")
        buf.write("\n\61\f\61\16\61\u0456\13\61\3\62\3\62\3\62\7\62\u045b")
        buf.write("\n\62\f\62\16\62\u045e\13\62\3\63\3\63\3\63\3\63\3\63")
        buf.write("\3\63\3\63\3\63\3\63\3\63\3\63\3\63\5\63\u046c\n\63\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\5\63\u047c\n\63\5\63\u047e\n\63\3\63\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\3\63\5\63\u0491\n\63\5\63\u0493\n")
        buf.write("\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\5\63\u049c\n\63")
        buf.write("\3\63\3\63\5\63\u04a0\n\63\3\63\3\63\3\63\3\63\3\63\3")
        buf.write("\63\3\63\3\63\3\63\5\63\u04ab\n\63\3\63\3\63\5\63\u04af")
        buf.write("\n\63\3\63\3\63\5\63\u04b3\n\63\3\63\5\63\u04b6\n\63\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("\5\63\u04c3\n\63\5\63\u04c5\n\63\3\63\3\63\3\63\3\63\3")
        buf.write("\63\5\63\u04cc\n\63\5\63\u04ce\n\63\3\63\3\63\3\63\3\63")
        buf.write("\3\63\5\63\u04d5\n\63\3\63\3\63\3\63\5\63\u04da\n\63\5")
        buf.write("\63\u04dc\n\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\3\63\3\63\3\63\3\63\3\63\3\63\5\63")
        buf.write("\u04f0\n\63\3\63\3\63\3\63\3\63\3\63\3\63\7\63\u04f8\n")
        buf.write("\63\f\63\16\63\u04fb\13\63\3\64\3\64\3\65\3\65\3\66\3")
        buf.write("\66\3\66\5\u0138\u015e\u0179\3d\67\2\4\6\b\n\f\16\20\22")
        buf.write("\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPR")
        buf.write("TVXZ\\^`bdfhj\2\5\3\2\u0087\u0088\4\2\u0083\u0083\u0089")
        buf.write("\u0089\4\2\u0083\u0083\u0085\u0085\2\u0603\2z\3\2\2\2")
        buf.write("\4\u009d\3\2\2\2\6\u00a6\3\2\2\2\b\u00b0\3\2\2\2\n\u00ba")
        buf.write("\3\2\2\2\f\u00c4\3\2\2\2\16\u00cd\3\2\2\2\20\u00d6\3\2")
        buf.write("\2\2\22\u00da\3\2\2\2\24\u00de\3\2\2\2\26\u00e7\3\2\2")
        buf.write("\2\30\u00f0\3\2\2\2\32\u00f9\3\2\2\2\34\u0182\3\2\2\2")
        buf.write("\36\u0184\3\2\2\2 \u01a1\3\2\2\2\"\u01ba\3\2\2\2$\u01bc")
        buf.write("\3\2\2\2&\u01ca\3\2\2\2(\u01d6\3\2\2\2*\u01ff\3\2\2\2")
        buf.write(",\u021f\3\2\2\2.\u0221\3\2\2\2\60\u025e\3\2\2\2\62\u0260")
        buf.write("\3\2\2\2\64\u02a4\3\2\2\2\66\u02a6\3\2\2\28\u02af\3\2")
        buf.write("\2\2:\u0309\3\2\2\2<\u030b\3\2\2\2>\u0314\3\2\2\2@\u0318")
        buf.write("\3\2\2\2B\u0322\3\2\2\2D\u0325\3\2\2\2F\u0328\3\2\2\2")
        buf.write("H\u032b\3\2\2\2J\u032e\3\2\2\2L\u0338\3\2\2\2N\u038e\3")
        buf.write("\2\2\2P\u0390\3\2\2\2R\u03ca\3\2\2\2T\u03cc\3\2\2\2V\u03f8")
        buf.write("\3\2\2\2X\u03fa\3\2\2\2Z\u043a\3\2\2\2\\\u043c\3\2\2\2")
        buf.write("^\u044b\3\2\2\2`\u044f\3\2\2\2b\u0457\3\2\2\2d\u04ef\3")
        buf.write("\2\2\2f\u04fc\3\2\2\2h\u04fe\3\2\2\2j\u0500\3\2\2\2ly")
        buf.write("\5\4\3\2my\5\6\4\2ny\5\b\5\2oy\5\n\6\2py\5\f\7\2qy\5\16")
        buf.write("\b\2ry\5\20\t\2sy\5\22\n\2ty\5\24\13\2uy\5\26\f\2vy\5")
        buf.write("\30\r\2wy\5\32\16\2xl\3\2\2\2xm\3\2\2\2xn\3\2\2\2xo\3")
        buf.write("\2\2\2xp\3\2\2\2xq\3\2\2\2xr\3\2\2\2xs\3\2\2\2xt\3\2\2")
        buf.write("\2xu\3\2\2\2xv\3\2\2\2xw\3\2\2\2y|\3\2\2\2zx\3\2\2\2z")
        buf.write("{\3\2\2\2{\u0080\3\2\2\2|z\3\2\2\2}\177\5\36\20\2~}\3")
        buf.write("\2\2\2\177\u0082\3\2\2\2\u0080~\3\2\2\2\u0080\u0081\3")
        buf.write("\2\2\2\u0081\u0086\3\2\2\2\u0082\u0080\3\2\2\2\u0083\u0085")
        buf.write("\5$\23\2\u0084\u0083\3\2\2\2\u0085\u0088\3\2\2\2\u0086")
        buf.write("\u0084\3\2\2\2\u0086\u0087\3\2\2\2\u0087\u008c\3\2\2\2")
        buf.write("\u0088\u0086\3\2\2\2\u0089\u008b\5.\30\2\u008a\u0089\3")
        buf.write("\2\2\2\u008b\u008e\3\2\2\2\u008c\u008a\3\2\2\2\u008c\u008d")
        buf.write("\3\2\2\2\u008d\u0092\3\2\2\2\u008e\u008c\3\2\2\2\u008f")
        buf.write("\u0091\5&\24\2\u0090\u008f\3\2\2\2\u0091\u0094\3\2\2\2")
        buf.write("\u0092\u0090\3\2\2\2\u0092\u0093\3\2\2\2\u0093\u0098\3")
        buf.write("\2\2\2\u0094\u0092\3\2\2\2\u0095\u0097\5\62\32\2\u0096")
        buf.write("\u0095\3\2\2\2\u0097\u009a\3\2\2\2\u0098\u0096\3\2\2\2")
        buf.write("\u0098\u0099\3\2\2\2\u0099\u009b\3\2\2\2\u009a\u0098\3")
        buf.write("\2\2\2\u009b\u009c\7\2\2\3\u009c\3\3\2\2\2\u009d\u00a1")
        buf.write("\7\5\2\2\u009e\u00a0\5\34\17\2\u009f\u009e\3\2\2\2\u00a0")
        buf.write("\u00a3\3\2\2\2\u00a1\u009f\3\2\2\2\u00a1\u00a2\3\2\2\2")
        buf.write("\u00a2\u00a4\3\2\2\2\u00a3\u00a1\3\2\2\2\u00a4\u00a5\7")
        buf.write("\4\2\2\u00a5\5\3\2\2\2\u00a6\u00a7\7\60\2\2\u00a7\u00ab")
        buf.write("\7\61\2\2\u00a8\u00aa\5\"\22\2\u00a9\u00a8\3\2\2\2\u00aa")
        buf.write("\u00ad\3\2\2\2\u00ab\u00a9\3\2\2\2\u00ab\u00ac\3\2\2\2")
        buf.write("\u00ac\u00ae\3\2\2\2\u00ad\u00ab\3\2\2\2\u00ae\u00af\7")
        buf.write("\4\2\2\u00af\7\3\2\2\2\u00b0\u00b1\7\60\2\2\u00b1\u00b5")
        buf.write("\7\64\2\2\u00b2\u00b4\5&\24\2\u00b3\u00b2\3\2\2\2\u00b4")
        buf.write("\u00b7\3\2\2\2\u00b5\u00b3\3\2\2\2\u00b5\u00b6\3\2\2\2")
        buf.write("\u00b6\u00b8\3\2\2\2\u00b7\u00b5\3\2\2\2\u00b8\u00b9\7")
        buf.write("\4\2\2\u00b9\t\3\2\2\2\u00ba\u00bb\7\60\2\2\u00bb\u00bf")
        buf.write("\78\2\2\u00bc\u00be\5*\26\2\u00bd\u00bc\3\2\2\2\u00be")
        buf.write("\u00c1\3\2\2\2\u00bf\u00bd\3\2\2\2\u00bf\u00c0\3\2\2\2")
        buf.write("\u00c0\u00c2\3\2\2\2\u00c1\u00bf\3\2\2\2\u00c2\u00c3\7")
        buf.write("\4\2\2\u00c3\13\3\2\2\2\u00c4\u00c8\7;\2\2\u00c5\u00c7")
        buf.write("\5,\27\2\u00c6\u00c5\3\2\2\2\u00c7\u00ca\3\2\2\2\u00c8")
        buf.write("\u00c6\3\2\2\2\u00c8\u00c9\3\2\2\2\u00c9\u00cb\3\2\2\2")
        buf.write("\u00ca\u00c8\3\2\2\2\u00cb\u00cc\7\4\2\2\u00cc\r\3\2\2")
        buf.write("\2\u00cd\u00d1\7?\2\2\u00ce\u00d0\5\60\31\2\u00cf\u00ce")
        buf.write("\3\2\2\2\u00d0\u00d3\3\2\2\2\u00d1\u00cf\3\2\2\2\u00d1")
        buf.write("\u00d2\3\2\2\2\u00d2\u00d4\3\2\2\2\u00d3\u00d1\3\2\2\2")
        buf.write("\u00d4\u00d5\7\4\2\2\u00d5\17\3\2\2\2\u00d6\u00d7\7A\2")
        buf.write("\2\u00d7\u00d8\5\64\33\2\u00d8\u00d9\7\4\2\2\u00d9\21")
        buf.write("\3\2\2\2\u00da\u00db\7G\2\2\u00db\u00dc\5:\36\2\u00dc")
        buf.write("\u00dd\7\4\2\2\u00dd\23\3\2\2\2\u00de\u00e2\7Q\2\2\u00df")
        buf.write("\u00e1\5N(\2\u00e0\u00df\3\2\2\2\u00e1\u00e4\3\2\2\2\u00e2")
        buf.write("\u00e0\3\2\2\2\u00e2\u00e3\3\2\2\2\u00e3\u00e5\3\2\2\2")
        buf.write("\u00e4\u00e2\3\2\2\2\u00e5\u00e6\7\4\2\2\u00e6\25\3\2")
        buf.write("\2\2\u00e7\u00eb\7V\2\2\u00e8\u00ea\5R*\2\u00e9\u00e8")
        buf.write("\3\2\2\2\u00ea\u00ed\3\2\2\2\u00eb\u00e9\3\2\2\2\u00eb")
        buf.write("\u00ec\3\2\2\2\u00ec\u00ee\3\2\2\2\u00ed\u00eb\3\2\2\2")
        buf.write("\u00ee\u00ef\7\4\2\2\u00ef\27\3\2\2\2\u00f0\u00f4\7W\2")
        buf.write("\2\u00f1\u00f3\5V,\2\u00f2\u00f1\3\2\2\2\u00f3\u00f6\3")
        buf.write("\2\2\2\u00f4\u00f2\3\2\2\2\u00f4\u00f5\3\2\2\2\u00f5\u00f7")
        buf.write("\3\2\2\2\u00f6\u00f4\3\2\2\2\u00f7\u00f8\7\4\2\2\u00f8")
        buf.write("\31\3\2\2\2\u00f9\u00fd\7X\2\2\u00fa\u00fc\5Z.\2\u00fb")
        buf.write("\u00fa\3\2\2\2\u00fc\u00ff\3\2\2\2\u00fd\u00fb\3\2\2\2")
        buf.write("\u00fd\u00fe\3\2\2\2\u00fe\u0100\3\2\2\2\u00ff\u00fd\3")
        buf.write("\2\2\2\u0100\u0101\7\4\2\2\u0101\33\3\2\2\2\u0102\u0104")
        buf.write("\7\6\2\2\u0103\u0105\7\u008d\2\2\u0104\u0103\3\2\2\2\u0104")
        buf.write("\u0105\3\2\2\2\u0105\u0106\3\2\2\2\u0106\u0183\7%\2\2")
        buf.write("\u0107\u0183\5\36\20\2\u0108\u0109\7\b\2\2\u0109\u010a")
        buf.write("\7\u0087\2\2\u010a\u0183\5j\66\2\u010b\u010c\7\t\2\2\u010c")
        buf.write("\u010d\7\u0087\2\2\u010d\u0183\7*\2\2\u010e\u010f\7\n")
        buf.write("\2\2\u010f\u0110\7\u0087\2\2\u0110\u0183\5j\66\2\u0111")
        buf.write("\u0113\7\13\2\2\u0112\u0114\7\u008d\2\2\u0113\u0112\3")
        buf.write("\2\2\2\u0113\u0114\3\2\2\2\u0114\u0115\3\2\2\2\u0115\u0183")
        buf.write("\5j\66\2\u0116\u0118\7\f\2\2\u0117\u0119\7\u008d\2\2\u0118")
        buf.write("\u0117\3\2\2\2\u0118\u0119\3\2\2\2\u0119\u011a\3\2\2\2")
        buf.write("\u011a\u0183\7\u0087\2\2\u011b\u011c\7\r\2\2\u011c\u0183")
        buf.write("\7\u0087\2\2\u011d\u011f\7\16\2\2\u011e\u0120\7\u008d")
        buf.write("\2\2\u011f\u011e\3\2\2\2\u011f\u0120\3\2\2\2\u0120\u0121")
        buf.write("\3\2\2\2\u0121\u0183\7\u0083\2\2\u0122\u0123\7\17\2\2")
        buf.write("\u0123\u0183\7&\2\2\u0124\u0125\7\17\2\2\u0125\u0126\7")
        buf.write("\'\2\2\u0126\u0128\7(\2\2\u0127\u0129\7\u008d\2\2\u0128")
        buf.write("\u0127\3\2\2\2\u0128\u0129\3\2\2\2\u0129\u012a\3\2\2\2")
        buf.write("\u012a\u012b\5j\66\2\u012b\u012d\7)\2\2\u012c\u012e\7")
        buf.write("\u008d\2\2\u012d\u012c\3\2\2\2\u012d\u012e\3\2\2\2\u012e")
        buf.write("\u012f\3\2\2\2\u012f\u0130\5j\66\2\u0130\u0183\3\2\2\2")
        buf.write("\u0131\u0132\7\20\2\2\u0132\u0133\7\u0087\2\2\u0133\u0134")
        buf.write("\7\u0087\2\2\u0134\u0183\5j\66\2\u0135\u0137\7\21\2\2")
        buf.write("\u0136\u0135\3\2\2\2\u0137\u013a\3\2\2\2\u0138\u0139\3")
        buf.write("\2\2\2\u0138\u0136\3\2\2\2\u0139\u013b\3\2\2\2\u013a\u0138")
        buf.write("\3\2\2\2\u013b\u0183\7\4\2\2\u013c\u013d\7\22\2\2\u013d")
        buf.write("\u013e\7\u0087\2\2\u013e\u0183\7\u0083\2\2\u013f\u0140")
        buf.write("\7\23\2\2\u0140\u0141\7\u0087\2\2\u0141\u0183\7\u0083")
        buf.write("\2\2\u0142\u0144\7\24\2\2\u0143\u0145\7\u008d\2\2\u0144")
        buf.write("\u0143\3\2\2\2\u0144\u0145\3\2\2\2\u0145\u0146\3\2\2\2")
        buf.write("\u0146\u0183\7\u0083\2\2\u0147\u0183\7\25\2\2\u0148\u014a")
        buf.write("\7\26\2\2\u0149\u014b\7\u008d\2\2\u014a\u0149\3\2\2\2")
        buf.write("\u014a\u014b\3\2\2\2\u014b\u014c\3\2\2\2\u014c\u0183\7")
        buf.write("\u0083\2\2\u014d\u014e\7\27\2\2\u014e\u014f\7\u0087\2")
        buf.write("\2\u014f\u0183\7+\2\2\u0150\u0151\7\30\2\2\u0151\u0152")
        buf.write("\5 \21\2\u0152\u0153\7\4\2\2\u0153\u0183\3\2\2\2\u0154")
        buf.write("\u0155\7\31\2\2\u0155\u0157\7\33\2\2\u0156\u0158\7\u008d")
        buf.write("\2\2\u0157\u0156\3\2\2\2\u0157\u0158\3\2\2\2\u0158\u0159")
        buf.write("\3\2\2\2\u0159\u0183\5j\66\2\u015a\u015e\7\32\2\2\u015b")
        buf.write("\u015d\7\u0087\2\2\u015c\u015b\3\2\2\2\u015d\u0160\3\2")
        buf.write("\2\2\u015e\u015f\3\2\2\2\u015e\u015c\3\2\2\2\u015f\u0161")
        buf.write("\3\2\2\2\u0160\u015e\3\2\2\2\u0161\u0183\7\4\2\2\u0162")
        buf.write("\u0183\7\34\2\2\u0163\u0164\7\35\2\2\u0164\u0165\7\u0087")
        buf.write("\2\2\u0165\u0183\5j\66\2\u0166\u0167\7\36\2\2\u0167\u0168")
        buf.write("\7\u0087\2\2\u0168\u0183\5j\66\2\u0169\u016a\7\37\2\2")
        buf.write("\u016a\u016b\7\u0087\2\2\u016b\u0183\5j\66\2\u016c\u016d")
        buf.write("\7 \2\2\u016d\u016e\7\u0087\2\2\u016e\u0183\5j\66\2\u016f")
        buf.write("\u0170\7!\2\2\u0170\u0171\7\u0087\2\2\u0171\u0183\5j\66")
        buf.write("\2\u0172\u0173\7\"\2\2\u0173\u0174\7\u0087\2\2\u0174\u0183")
        buf.write("\5j\66\2\u0175\u0179\7#\2\2\u0176\u0178\7\u0087\2\2\u0177")
        buf.write("\u0176\3\2\2\2\u0178\u017b\3\2\2\2\u0179\u017a\3\2\2\2")
        buf.write("\u0179\u0177\3\2\2\2\u017a\u017c\3\2\2\2\u017b\u0179\3")
        buf.write("\2\2\2\u017c\u0183\7\4\2\2\u017d\u017f\7$\2\2\u017e\u0180")
        buf.write("\7\u008d\2\2\u017f\u017e\3\2\2\2\u017f\u0180\3\2\2\2\u0180")
        buf.write("\u0181\3\2\2\2\u0181\u0183\5j\66\2\u0182\u0102\3\2\2\2")
        buf.write("\u0182\u0107\3\2\2\2\u0182\u0108\3\2\2\2\u0182\u010b\3")
        buf.write("\2\2\2\u0182\u010e\3\2\2\2\u0182\u0111\3\2\2\2\u0182\u0116")
        buf.write("\3\2\2\2\u0182\u011b\3\2\2\2\u0182\u011d\3\2\2\2\u0182")
        buf.write("\u0122\3\2\2\2\u0182\u0124\3\2\2\2\u0182\u0131\3\2\2\2")
        buf.write("\u0182\u0138\3\2\2\2\u0182\u013c\3\2\2\2\u0182\u013f\3")
        buf.write("\2\2\2\u0182\u0142\3\2\2\2\u0182\u0147\3\2\2\2\u0182\u0148")
        buf.write("\3\2\2\2\u0182\u014d\3\2\2\2\u0182\u0150\3\2\2\2\u0182")
        buf.write("\u0154\3\2\2\2\u0182\u015a\3\2\2\2\u0182\u0162\3\2\2\2")
        buf.write("\u0182\u0163\3\2\2\2\u0182\u0166\3\2\2\2\u0182\u0169\3")
        buf.write("\2\2\2\u0182\u016c\3\2\2\2\u0182\u016f\3\2\2\2\u0182\u0172")
        buf.write("\3\2\2\2\u0182\u0175\3\2\2\2\u0182\u017d\3\2\2\2\u0183")
        buf.write("\35\3\2\2\2\u0184\u0185\7\7\2\2\u0185\u0186\5^\60\2\u0186")
        buf.write("\u0187\5^\60\2\u0187\u0188\5f\64\2\u0188\u0189\5f\64\2")
        buf.write("\u0189\u0190\5f\64\2\u018a\u018b\7~\2\2\u018b\u018c\5")
        buf.write("^\60\2\u018c\u018d\5^\60\2\u018d\u018f\3\2\2\2\u018e\u018a")
        buf.write("\3\2\2\2\u018f\u0192\3\2\2\2\u0190\u018e\3\2\2\2\u0190")
        buf.write("\u0191\3\2\2\2\u0191\37\3\2\2\2\u0192\u0190\3\2\2\2\u0193")
        buf.write("\u0195\7,\2\2\u0194\u0196\7\u008d\2\2\u0195\u0194\3\2")
        buf.write("\2\2\u0195\u0196\3\2\2\2\u0196\u0197\3\2\2\2\u0197\u01a2")
        buf.write("\5j\66\2\u0198\u019a\7-\2\2\u0199\u019b\7\u008d\2\2\u019a")
        buf.write("\u0199\3\2\2\2\u019a\u019b\3\2\2\2\u019b\u019c\3\2\2\2")
        buf.write("\u019c\u01a2\5j\66\2\u019d\u019e\7.\2\2\u019e\u01a2\5")
        buf.write("^\60\2\u019f\u01a0\7/\2\2\u01a0\u01a2\5^\60\2\u01a1\u0193")
        buf.write("\3\2\2\2\u01a1\u0198\3\2\2\2\u01a1\u019d\3\2\2\2\u01a1")
        buf.write("\u019f\3\2\2\2\u01a2!\3\2\2\2\u01a3\u01bb\5$\23\2\u01a4")
        buf.write("\u01a6\7\16\2\2\u01a5\u01a7\7\u008d\2\2\u01a6\u01a5\3")
        buf.write("\2\2\2\u01a6\u01a7\3\2\2\2\u01a7\u01a8\3\2\2\2\u01a8\u01bb")
        buf.write("\7\u0083\2\2\u01a9\u01ab\7\62\2\2\u01aa\u01ac\7\u008d")
        buf.write("\2\2\u01ab\u01aa\3\2\2\2\u01ab\u01ac\3\2\2\2\u01ac\u01ad")
        buf.write("\3\2\2\2\u01ad\u01bb\7\u0083\2\2\u01ae\u01b0\7\26\2\2")
        buf.write("\u01af\u01b1\7\u008d\2\2\u01b0\u01af\3\2\2\2\u01b0\u01b1")
        buf.write("\3\2\2\2\u01b1\u01b2\3\2\2\2\u01b2\u01bb\7\u0083\2\2\u01b3")
        buf.write("\u01bb\7\34\2\2\u01b4\u01b6\7\36\2\2\u01b5\u01b7\7\u008d")
        buf.write("\2\2\u01b6\u01b5\3\2\2\2\u01b6\u01b7\3\2\2\2\u01b7\u01b8")
        buf.write("\3\2\2\2\u01b8\u01bb\5j\66\2\u01b9\u01bb\7\63\2\2\u01ba")
        buf.write("\u01a3\3\2\2\2\u01ba\u01a4\3\2\2\2\u01ba\u01a9\3\2\2\2")
        buf.write("\u01ba\u01ae\3\2\2\2\u01ba\u01b3\3\2\2\2\u01ba\u01b4\3")
        buf.write("\2\2\2\u01ba\u01b9\3\2\2\2\u01bb#\3\2\2\2\u01bc\u01bd")
        buf.write("\7\7\2\2\u01bd\u01be\5^\60\2\u01be\u01bf\5^\60\2\u01bf")
        buf.write("\u01c0\5^\60\2\u01c0\u01c1\5^\60\2\u01c1\u01c2\5f\64\2")
        buf.write("\u01c2\u01c3\5f\64\2\u01c3\u01c4\5f\64\2\u01c4\u01c5\7")
        buf.write("\u0083\2\2\u01c5%\3\2\2\2\u01c6\u01c7\7\65\2\2\u01c7\u01cb")
        buf.write("\5(\25\2\u01c8\u01cb\7&\2\2\u01c9\u01cb\7\63\2\2\u01ca")
        buf.write("\u01c6\3\2\2\2\u01ca\u01c8\3\2\2\2\u01ca\u01c9\3\2\2\2")
        buf.write("\u01cb\'\3\2\2\2\u01cc\u01ce\7\66\2\2\u01cd\u01cf\7\u008d")
        buf.write("\2\2\u01ce\u01cd\3\2\2\2\u01ce\u01cf\3\2\2\2\u01cf\u01d0")
        buf.write("\3\2\2\2\u01d0\u01d7\5^\60\2\u01d1\u01d3\7\67\2\2\u01d2")
        buf.write("\u01d4\7\u008d\2\2\u01d3\u01d2\3\2\2\2\u01d3\u01d4\3\2")
        buf.write("\2\2\u01d4\u01d5\3\2\2\2\u01d5\u01d7\5j\66\2\u01d6\u01cc")
        buf.write("\3\2\2\2\u01d6\u01d1\3\2\2\2\u01d7)\3\2\2\2\u01d8\u01da")
        buf.write("\79\2\2\u01d9\u01db\7\u008d\2\2\u01da\u01d9\3\2\2\2\u01da")
        buf.write("\u01db\3\2\2\2\u01db\u01dc\3\2\2\2\u01dc\u0200\7\u0083")
        buf.write("\2\2\u01dd\u01df\7:\2\2\u01de\u01e0\7\u008d\2\2\u01df")
        buf.write("\u01de\3\2\2\2\u01df\u01e0\3\2\2\2\u01e0\u01e1\3\2\2\2")
        buf.write("\u01e1\u01fb\7\u008a\2\2\u01e2\u01e4\5j\66\2\u01e3\u01e5")
        buf.write("\7\u0081\2\2\u01e4\u01e3\3\2\2\2\u01e4\u01e5\3\2\2\2\u01e5")
        buf.write("\u01e6\3\2\2\2\u01e6\u01e8\5j\66\2\u01e7\u01e9\7\u0081")
        buf.write("\2\2\u01e8\u01e7\3\2\2\2\u01e8\u01e9\3\2\2\2\u01e9\u01ea")
        buf.write("\3\2\2\2\u01ea\u01eb\5j\66\2\u01eb\u01fc\3\2\2\2\u01ec")
        buf.write("\u01ee\7|\2\2\u01ed\u01ef\7\u008d\2\2\u01ee\u01ed\3\2")
        buf.write("\2\2\u01ee\u01ef\3\2\2\2\u01ef\u01f0\3\2\2\2\u01f0\u01f2")
        buf.write("\5^\60\2\u01f1\u01f3\7\u0081\2\2\u01f2\u01f1\3\2\2\2\u01f2")
        buf.write("\u01f3\3\2\2\2\u01f3\u01f9\3\2\2\2\u01f4\u01f6\7}\2\2")
        buf.write("\u01f5\u01f7\7\u008d\2\2\u01f6\u01f5\3\2\2\2\u01f6\u01f7")
        buf.write("\3\2\2\2\u01f7\u01f8\3\2\2\2\u01f8\u01fa\5^\60\2\u01f9")
        buf.write("\u01f4\3\2\2\2\u01f9\u01fa\3\2\2\2\u01fa\u01fc\3\2\2\2")
        buf.write("\u01fb\u01e2\3\2\2\2\u01fb\u01ec\3\2\2\2\u01fc\u01fd\3")
        buf.write("\2\2\2\u01fd\u01fe\7\u008b\2\2\u01fe\u0200\3\2\2\2\u01ff")
        buf.write("\u01d8\3\2\2\2\u01ff\u01dd\3\2\2\2\u0200+\3\2\2\2\u0201")
        buf.write("\u0220\5.\30\2\u0202\u0204\7\f\2\2\u0203\u0205\7\u008d")
        buf.write("\2\2\u0204\u0203\3\2\2\2\u0204\u0205\3\2\2\2\u0205\u0206")
        buf.write("\3\2\2\2\u0206\u0220\7\u0087\2\2\u0207\u0208\7<\2\2\u0208")
        buf.write("\u0209\5j\66\2\u0209\u020a\5j\66\2\u020a\u020b\5j\66\2")
        buf.write("\u020b\u0220\3\2\2\2\u020c\u020e\7=\2\2\u020d\u020f\7")
        buf.write("\u008d\2\2\u020e\u020d\3\2\2\2\u020e\u020f\3\2\2\2\u020f")
        buf.write("\u0210\3\2\2\2\u0210\u0220\5j\66\2\u0211\u0213\7\24\2")
        buf.write("\2\u0212\u0214\7\u008d\2\2\u0213\u0212\3\2\2\2\u0213\u0214")
        buf.write("\3\2\2\2\u0214\u0215\3\2\2\2\u0215\u0220\7\u0083\2\2\u0216")
        buf.write("\u0218\7\27\2\2\u0217\u0219\7\u008d\2\2\u0218\u0217\3")
        buf.write("\2\2\2\u0218\u0219\3\2\2\2\u0219\u021a\3\2\2\2\u021a\u0220")
        buf.write("\7>\2\2\u021b\u021c\7\31\2\2\u021c\u021d\7\33\2\2\u021d")
        buf.write("\u0220\5j\66\2\u021e\u0220\7\34\2\2\u021f\u0201\3\2\2")
        buf.write("\2\u021f\u0202\3\2\2\2\u021f\u0207\3\2\2\2\u021f\u020c")
        buf.write("\3\2\2\2\u021f\u0211\3\2\2\2\u021f\u0216\3\2\2\2\u021f")
        buf.write("\u021b\3\2\2\2\u021f\u021e\3\2\2\2\u0220-\3\2\2\2\u0221")
        buf.write("\u0222\7\7\2\2\u0222\u0223\5^\60\2\u0223\u0224\5^\60\2")
        buf.write("\u0224\u0225\5^\60\2\u0225\u0226\5^\60\2\u0226\u0227\5")
        buf.write("^\60\2\u0227\u0228\5^\60\2\u0228\u0229\5f\64\2\u0229\u022b")
        buf.write("\5f\64\2\u022a\u022c\5f\64\2\u022b\u022a\3\2\2\2\u022b")
        buf.write("\u022c\3\2\2\2\u022c/\3\2\2\2\u022d\u025f\5\62\32\2\u022e")
        buf.write("\u0230\7\f\2\2\u022f\u0231\7\u008d\2\2\u0230\u022f\3\2")
        buf.write("\2\2\u0230\u0231\3\2\2\2\u0231\u0232\3\2\2\2\u0232\u025f")
        buf.write("\7\u0087\2\2\u0233\u0234\7<\2\2\u0234\u0235\5j\66\2\u0235")
        buf.write("\u0236\5j\66\2\u0236\u0237\5j\66\2\u0237\u0238\5j\66\2")
        buf.write("\u0238\u025f\3\2\2\2\u0239\u023b\7\16\2\2\u023a\u023c")
        buf.write("\7\u008d\2\2\u023b\u023a\3\2\2\2\u023b\u023c\3\2\2\2\u023c")
        buf.write("\u023d\3\2\2\2\u023d\u025f\7\u0083\2\2\u023e\u023f\7=")
        buf.write("\2\2\u023f\u0241\5j\66\2\u0240\u0242\5j\66\2\u0241\u0240")
        buf.write("\3\2\2\2\u0241\u0242\3\2\2\2\u0242\u025f\3\2\2\2\u0243")
        buf.write("\u0245\7\24\2\2\u0244\u0246\7\u008d\2\2\u0245\u0244\3")
        buf.write("\2\2\2\u0245\u0246\3\2\2\2\u0246\u0247\3\2\2\2\u0247\u025f")
        buf.write("\7\u0083\2\2\u0248\u024a\7\26\2\2\u0249\u024b\7\u008d")
        buf.write("\2\2\u024a\u0249\3\2\2\2\u024a\u024b\3\2\2\2\u024b\u024c")
        buf.write("\3\2\2\2\u024c\u025f\7\u0083\2\2\u024d\u024f\7\27\2\2")
        buf.write("\u024e\u0250\7\u008d\2\2\u024f\u024e\3\2\2\2\u024f\u0250")
        buf.write("\3\2\2\2\u0250\u0251\3\2\2\2\u0251\u025f\7@\2\2\u0252")
        buf.write("\u0253\7\31\2\2\u0253\u0254\7\33\2\2\u0254\u025b\5j\66")
        buf.write("\2\u0255\u025c\7[\2\2\u0256\u0258\7\f\2\2\u0257\u0259")
        buf.write("\7\u008d\2\2\u0258\u0257\3\2\2\2\u0258\u0259\3\2\2\2\u0259")
        buf.write("\u025a\3\2\2\2\u025a\u025c\7\u0087\2\2\u025b\u0255\3\2")
        buf.write("\2\2\u025b\u0256\3\2\2\2\u025c\u025f\3\2\2\2\u025d\u025f")
        buf.write("\7\34\2\2\u025e\u022d\3\2\2\2\u025e\u022e\3\2\2\2\u025e")
        buf.write("\u0233\3\2\2\2\u025e\u0239\3\2\2\2\u025e\u023e\3\2\2\2")
        buf.write("\u025e\u0243\3\2\2\2\u025e\u0248\3\2\2\2\u025e\u024d\3")
        buf.write("\2\2\2\u025e\u0252\3\2\2\2\u025e\u025d\3\2\2\2\u025f\61")
        buf.write("\3\2\2\2\u0260\u0261\7\7\2\2\u0261\u0262\5^\60\2\u0262")
        buf.write("\u0263\5^\60\2\u0263\u0264\5^\60\2\u0264\u026a\5^\60\2")
        buf.write("\u0265\u0266\5^\60\2\u0266\u0267\5^\60\2\u0267\u0268\5")
        buf.write("^\60\2\u0268\u0269\5^\60\2\u0269\u026b\3\2\2\2\u026a\u0265")
        buf.write("\3\2\2\2\u026a\u026b\3\2\2\2\u026b\u026c\3\2\2\2\u026c")
        buf.write("\u026d\5f\64\2\u026d\u0271\5f\64\2\u026e\u026f\5f\64\2")
        buf.write("\u026f\u0270\5f\64\2\u0270\u0272\3\2\2\2\u0271\u026e\3")
        buf.write("\2\2\2\u0271\u0272\3\2\2\2\u0272\63\3\2\2\2\u0273\u02a5")
        buf.write("\5\66\34\2\u0274\u0276\7\f\2\2\u0275\u0277\7\u008d\2\2")
        buf.write("\u0276\u0275\3\2\2\2\u0276\u0277\3\2\2\2\u0277\u0278\3")
        buf.write("\2\2\2\u0278\u02a5\7\u0087\2\2\u0279\u027a\7B\2\2\u027a")
        buf.write("\u027b\7\u0083\2\2\u027b\u027c\7\u0083\2\2\u027c\u027d")
        buf.write("\5j\66\2\u027d\u027e\5j\66\2\u027e\u027f\5j\66\2\u027f")
        buf.write("\u02a5\3\2\2\2\u0280\u0282\7=\2\2\u0281\u0283\7\u008d")
        buf.write("\2\2\u0282\u0281\3\2\2\2\u0282\u0283\3\2\2\2\u0283\u0284")
        buf.write("\3\2\2\2\u0284\u02a5\5j\66\2\u0285\u0287\7\24\2\2\u0286")
        buf.write("\u0288\7\u008d\2\2\u0287\u0286\3\2\2\2\u0287\u0288\3\2")
        buf.write("\2\2\u0288\u0289\3\2\2\2\u0289\u02a5\7\u0083\2\2\u028a")
        buf.write("\u028c\7C\2\2\u028b\u028d\7\u008d\2\2\u028c\u028b\3\2")
        buf.write("\2\2\u028c\u028d\3\2\2\2\u028d\u028e\3\2\2\2\u028e\u02a5")
        buf.write("\5j\66\2\u028f\u0291\7D\2\2\u0290\u0292\7\u008d\2\2\u0291")
        buf.write("\u0290\3\2\2\2\u0291\u0292\3\2\2\2\u0292\u0293\3\2\2\2")
        buf.write("\u0293\u02a5\5j\66\2\u0294\u0296\7\27\2\2\u0295\u0297")
        buf.write("\7\u008d\2\2\u0296\u0295\3\2\2\2\u0296\u0297\3\2\2\2\u0297")
        buf.write("\u0298\3\2\2\2\u0298\u02a5\7>\2\2\u0299\u029a\7\31\2\2")
        buf.write("\u029a\u029b\7\33\2\2\u029b\u02a5\5j\66\2\u029c\u029e")
        buf.write("\58\35\2\u029d\u029c\3\2\2\2\u029e\u02a1\3\2\2\2\u029f")
        buf.write("\u029d\3\2\2\2\u029f\u02a0\3\2\2\2\u02a0\u02a5\3\2\2\2")
        buf.write("\u02a1\u029f\3\2\2\2\u02a2\u02a5\7\34\2\2\u02a3\u02a5")
        buf.write("\7F\2\2\u02a4\u0273\3\2\2\2\u02a4\u0274\3\2\2\2\u02a4")
        buf.write("\u0279\3\2\2\2\u02a4\u0280\3\2\2\2\u02a4\u0285\3\2\2\2")
        buf.write("\u02a4\u028a\3\2\2\2\u02a4\u028f\3\2\2\2\u02a4\u0294\3")
        buf.write("\2\2\2\u02a4\u0299\3\2\2\2\u02a4\u029f\3\2\2\2\u02a4\u02a2")
        buf.write("\3\2\2\2\u02a4\u02a3\3\2\2\2\u02a5\65\3\2\2\2\u02a6\u02a7")
        buf.write("\7\7\2\2\u02a7\u02a8\5^\60\2\u02a8\u02a9\5^\60\2\u02a9")
        buf.write("\u02aa\5^\60\2\u02aa\u02ab\5^\60\2\u02ab\u02ac\5^\60\2")
        buf.write("\u02ac\u02ad\5f\64\2\u02ad\u02ae\5f\64\2\u02ae\67\3\2")
        buf.write("\2\2\u02af\u02b0\7E\2\2\u02b0\u02b1\5^\60\2\u02b1\u02b2")
        buf.write("\5j\66\2\u02b2\u02b3\5j\66\2\u02b39\3\2\2\2\u02b4\u02b6")
        buf.write("\5<\37\2\u02b5\u02b4\3\2\2\2\u02b6\u02b9\3\2\2\2\u02b7")
        buf.write("\u02b5\3\2\2\2\u02b7\u02b8\3\2\2\2\u02b8\u030a\3\2\2\2")
        buf.write("\u02b9\u02b7\3\2\2\2\u02ba\u02bc\5> \2\u02bb\u02ba\3\2")
        buf.write("\2\2\u02bc\u02bf\3\2\2\2\u02bd\u02bb\3\2\2\2\u02bd\u02be")
        buf.write("\3\2\2\2\u02be\u030a\3\2\2\2\u02bf\u02bd\3\2\2\2\u02c0")
        buf.write("\u02c2\5@!\2\u02c1\u02c0\3\2\2\2\u02c2\u02c5\3\2\2\2\u02c3")
        buf.write("\u02c1\3\2\2\2\u02c3\u02c4\3\2\2\2\u02c4\u030a\3\2\2\2")
        buf.write("\u02c5\u02c3\3\2\2\2\u02c6\u02c8\5B\"\2\u02c7\u02c6\3")
        buf.write("\2\2\2\u02c8\u02cb\3\2\2\2\u02c9\u02c7\3\2\2\2\u02c9\u02ca")
        buf.write("\3\2\2\2\u02ca\u030a\3\2\2\2\u02cb\u02c9\3\2\2\2\u02cc")
        buf.write("\u02ce\5D#\2\u02cd\u02cc\3\2\2\2\u02ce\u02d1\3\2\2\2\u02cf")
        buf.write("\u02cd\3\2\2\2\u02cf\u02d0\3\2\2\2\u02d0\u030a\3\2\2\2")
        buf.write("\u02d1\u02cf\3\2\2\2\u02d2\u02d4\5F$\2\u02d3\u02d2\3\2")
        buf.write("\2\2\u02d4\u02d7\3\2\2\2\u02d5\u02d3\3\2\2\2\u02d5\u02d6")
        buf.write("\3\2\2\2\u02d6\u030a\3\2\2\2\u02d7\u02d5\3\2\2\2\u02d8")
        buf.write("\u02da\5H%\2\u02d9\u02d8\3\2\2\2\u02da\u02dd\3\2\2\2\u02db")
        buf.write("\u02d9\3\2\2\2\u02db\u02dc\3\2\2\2\u02dc\u030a\3\2\2\2")
        buf.write("\u02dd\u02db\3\2\2\2\u02de\u02e0\5J&\2\u02df\u02de\3\2")
        buf.write("\2\2\u02e0\u02e3\3\2\2\2\u02e1\u02df\3\2\2\2\u02e1\u02e2")
        buf.write("\3\2\2\2\u02e2\u030a\3\2\2\2\u02e3\u02e1\3\2\2\2\u02e4")
        buf.write("\u02e6\5L\'\2\u02e5\u02e4\3\2\2\2\u02e6\u02e9\3\2\2\2")
        buf.write("\u02e7\u02e5\3\2\2\2\u02e7\u02e8\3\2\2\2\u02e8\u030a\3")
        buf.write("\2\2\2\u02e9\u02e7\3\2\2\2\u02ea\u02ec\7\f\2\2\u02eb\u02ed")
        buf.write("\7\u008d\2\2\u02ec\u02eb\3\2\2\2\u02ec\u02ed\3\2\2\2\u02ed")
        buf.write("\u02ee\3\2\2\2\u02ee\u030a\7\u0087\2\2\u02ef\u02f1\7P")
        buf.write("\2\2\u02f0\u02f2\7\u008d\2\2\u02f1\u02f0\3\2\2\2\u02f1")
        buf.write("\u02f2\3\2\2\2\u02f2\u02f3\3\2\2\2\u02f3\u030a\5j\66\2")
        buf.write("\u02f4\u02f5\7=\2\2\u02f5\u02f7\5j\66\2\u02f6\u02f8\5")
        buf.write("j\66\2\u02f7\u02f6\3\2\2\2\u02f7\u02f8\3\2\2\2\u02f8\u030a")
        buf.write("\3\2\2\2\u02f9\u02fa\7\27\2\2\u02fa\u030a\7@\2\2\u02fb")
        buf.write("\u02fc\7\31\2\2\u02fc\u02fd\7\33\2\2\u02fd\u0304\5j\66")
        buf.write("\2\u02fe\u0305\7[\2\2\u02ff\u0301\7\f\2\2\u0300\u0302")
        buf.write("\7\u008d\2\2\u0301\u0300\3\2\2\2\u0301\u0302\3\2\2\2\u0302")
        buf.write("\u0303\3\2\2\2\u0303\u0305\7\u0087\2\2\u0304\u02fe\3\2")
        buf.write("\2\2\u0304\u02ff\3\2\2\2\u0305\u0306\3\2\2\2\u0306\u0307")
        buf.write("\7\u0087\2\2\u0307\u030a\3\2\2\2\u0308\u030a\7\34\2\2")
        buf.write("\u0309\u02b7\3\2\2\2\u0309\u02bd\3\2\2\2\u0309\u02c3\3")
        buf.write("\2\2\2\u0309\u02c9\3\2\2\2\u0309\u02cf\3\2\2\2\u0309\u02d5")
        buf.write("\3\2\2\2\u0309\u02db\3\2\2\2\u0309\u02e1\3\2\2\2\u0309")
        buf.write("\u02e7\3\2\2\2\u0309\u02ea\3\2\2\2\u0309\u02ef\3\2\2\2")
        buf.write("\u0309\u02f4\3\2\2\2\u0309\u02f9\3\2\2\2\u0309\u02fb\3")
        buf.write("\2\2\2\u0309\u0308\3\2\2\2\u030a;\3\2\2\2\u030b\u030c")
        buf.write("\7H\2\2\u030c\u030e\5^\60\2\u030d\u030f\5^\60\2\u030e")
        buf.write("\u030d\3\2\2\2\u030e\u030f\3\2\2\2\u030f\u0310\3\2\2\2")
        buf.write("\u0310\u0312\5j\66\2\u0311\u0313\5j\66\2\u0312\u0311\3")
        buf.write("\2\2\2\u0312\u0313\3\2\2\2\u0313=\3\2\2\2\u0314\u0315")
        buf.write("\7E\2\2\u0315\u0316\5^\60\2\u0316\u0317\5j\66\2\u0317")
        buf.write("?\3\2\2\2\u0318\u0319\7I\2\2\u0319\u031a\5^\60\2\u031a")
        buf.write("\u031b\5^\60\2\u031b\u031c\5^\60\2\u031c\u031e\7\u0087")
        buf.write("\2\2\u031d\u031f\7\u0084\2\2\u031e\u031d\3\2\2\2\u031e")
        buf.write("\u031f\3\2\2\2\u031f\u0320\3\2\2\2\u0320\u0321\7\u0087")
        buf.write("\2\2\u0321A\3\2\2\2\u0322\u0323\7J\2\2\u0323\u0324\5^")
        buf.write("\60\2\u0324C\3\2\2\2\u0325\u0326\7K\2\2\u0326\u0327\5")
        buf.write("^\60\2\u0327E\3\2\2\2\u0328\u0329\7L\2\2\u0329\u032a\5")
        buf.write("^\60\2\u032aG\3\2\2\2\u032b\u032c\7M\2\2\u032c\u032d\5")
        buf.write("^\60\2\u032dI\3\2\2\2\u032e\u032f\7N\2\2\u032f\u0330\7")
        buf.write("\u0087\2\2\u0330\u0331\5^\60\2\u0331\u0332\5^\60\2\u0332")
        buf.write("\u0333\5^\60\2\u0333\u0334\5^\60\2\u0334\u0336\5^\60\2")
        buf.write("\u0335\u0337\5^\60\2\u0336\u0335\3\2\2\2\u0336\u0337\3")
        buf.write("\2\2\2\u0337K\3\2\2\2\u0338\u0339\7O\2\2\u0339\u033a\5")
        buf.write("^\60\2\u033aM\3\2\2\2\u033b\u038f\5P)\2\u033c\u033e\7")
        buf.write("\f\2\2\u033d\u033f\7\u008d\2\2\u033e\u033d\3\2\2\2\u033e")
        buf.write("\u033f\3\2\2\2\u033f\u0340\3\2\2\2\u0340\u038f\7\u0087")
        buf.write("\2\2\u0341\u038f\7R\2\2\u0342\u0343\7B\2\2\u0343\u0345")
        buf.write("\7\u0083\2\2\u0344\u0346\7\u0083\2\2\u0345\u0344\3\2\2")
        buf.write("\2\u0345\u0346\3\2\2\2\u0346\u0348\3\2\2\2\u0347\u0349")
        buf.write("\7\u0083\2\2\u0348\u0347\3\2\2\2\u0348\u0349\3\2\2\2\u0349")
        buf.write("\u034b\3\2\2\2\u034a\u034c\7\u0083\2\2\u034b\u034a\3\2")
        buf.write("\2\2\u034b\u034c\3\2\2\2\u034c\u034d\3\2\2\2\u034d\u038f")
        buf.write("\5j\66\2\u034e\u0350\7P\2\2\u034f\u0351\7\u008d\2\2\u0350")
        buf.write("\u034f\3\2\2\2\u0350\u0351\3\2\2\2\u0351\u0352\3\2\2\2")
        buf.write("\u0352\u038f\5j\66\2\u0353\u0355\7=\2\2\u0354\u0356\7")
        buf.write("\u008d\2\2\u0355\u0354\3\2\2\2\u0355\u0356\3\2\2\2\u0356")
        buf.write("\u0357\3\2\2\2\u0357\u038f\5j\66\2\u0358\u035a\7\24\2")
        buf.write("\2\u0359\u035b\7\u008d\2\2\u035a\u0359\3\2\2\2\u035a\u035b")
        buf.write("\3\2\2\2\u035b\u035c\3\2\2\2\u035c\u038f\7\u0083\2\2\u035d")
        buf.write("\u035e\7S\2\2\u035e\u035f\7\u0083\2\2\u035f\u0360\7\u0083")
        buf.write("\2\2\u0360\u0364\7\u0083\2\2\u0361\u0362\7\u0083\2\2\u0362")
        buf.write("\u0363\7\u0083\2\2\u0363\u0365\7\u0083\2\2\u0364\u0361")
        buf.write("\3\2\2\2\u0364\u0365\3\2\2\2\u0365\u0369\3\2\2\2\u0366")
        buf.write("\u0367\7\u0083\2\2\u0367\u0368\7\u0083\2\2\u0368\u036a")
        buf.write("\7\u0083\2\2\u0369\u0366\3\2\2\2\u0369\u036a\3\2\2\2\u036a")
        buf.write("\u036e\3\2\2\2\u036b\u036c\7\u0083\2\2\u036c\u036d\7\u0083")
        buf.write("\2\2\u036d\u036f\7\u0083\2\2\u036e\u036b\3\2\2\2\u036e")
        buf.write("\u036f\3\2\2\2\u036f\u038f\3\2\2\2\u0370\u0372\7\27\2")
        buf.write("\2\u0371\u0373\7\u008d\2\2\u0372\u0371\3\2\2\2\u0372\u0373")
        buf.write("\3\2\2\2\u0373\u0374\3\2\2\2\u0374\u038f\7>\2\2\u0375")
        buf.write("\u0376\7\31\2\2\u0376\u0377\7\33\2\2\u0377\u037e\5j\66")
        buf.write("\2\u0378\u037f\7[\2\2\u0379\u037b\7\f\2\2\u037a\u037c")
        buf.write("\7\u008d\2\2\u037b\u037a\3\2\2\2\u037b\u037c\3\2\2\2\u037c")
        buf.write("\u037d\3\2\2\2\u037d\u037f\7\u0087\2\2\u037e\u0378\3\2")
        buf.write("\2\2\u037e\u0379\3\2\2\2\u037f\u038f\3\2\2\2\u0380\u038f")
        buf.write("\7\34\2\2\u0381\u0382\7T\2\2\u0382\u0383\7U\2\2\u0383")
        buf.write("\u0385\7\u0083\2\2\u0384\u0386\7\u0083\2\2\u0385\u0384")
        buf.write("\3\2\2\2\u0385\u0386\3\2\2\2\u0386\u0388\3\2\2\2\u0387")
        buf.write("\u0389\7\u0083\2\2\u0388\u0387\3\2\2\2\u0388\u0389\3\2")
        buf.write("\2\2\u0389\u038b\3\2\2\2\u038a\u038c\7\u0083\2\2\u038b")
        buf.write("\u038a\3\2\2\2\u038b\u038c\3\2\2\2\u038c\u038f\3\2\2\2")
        buf.write("\u038d\u038f\7F\2\2\u038e\u033b\3\2\2\2\u038e\u033c\3")
        buf.write("\2\2\2\u038e\u0341\3\2\2\2\u038e\u0342\3\2\2\2\u038e\u034e")
        buf.write("\3\2\2\2\u038e\u0353\3\2\2\2\u038e\u0358\3\2\2\2\u038e")
        buf.write("\u035d\3\2\2\2\u038e\u0370\3\2\2\2\u038e\u0375\3\2\2\2")
        buf.write("\u038e\u0380\3\2\2\2\u038e\u0381\3\2\2\2\u038e\u038d\3")
        buf.write("\2\2\2\u038fO\3\2\2\2\u0390\u0391\7\7\2\2\u0391\u0392")
        buf.write("\5^\60\2\u0392\u0393\5^\60\2\u0393\u0394\5^\60\2\u0394")
        buf.write("\u039a\5^\60\2\u0395\u0396\5^\60\2\u0396\u0397\5^\60\2")
        buf.write("\u0397\u0398\5^\60\2\u0398\u0399\5^\60\2\u0399\u039b\3")
        buf.write("\2\2\2\u039a\u0395\3\2\2\2\u039a\u039b\3\2\2\2\u039b\u03a1")
        buf.write("\3\2\2\2\u039c\u039d\5^\60\2\u039d\u039e\5^\60\2\u039e")
        buf.write("\u039f\5^\60\2\u039f\u03a0\5^\60\2\u03a0\u03a2\3\2\2\2")
        buf.write("\u03a1\u039c\3\2\2\2\u03a1\u03a2\3\2\2\2\u03a2\u03a8\3")
        buf.write("\2\2\2\u03a3\u03a4\5^\60\2\u03a4\u03a5\5^\60\2\u03a5\u03a6")
        buf.write("\5^\60\2\u03a6\u03a7\5^\60\2\u03a7\u03a9\3\2\2\2\u03a8")
        buf.write("\u03a3\3\2\2\2\u03a8\u03a9\3\2\2\2\u03a9Q\3\2\2\2\u03aa")
        buf.write("\u03cb\5T+\2\u03ab\u03ad\7\f\2\2\u03ac\u03ae\7\u008d\2")
        buf.write("\2\u03ad\u03ac\3\2\2\2\u03ad\u03ae\3\2\2\2\u03ae\u03af")
        buf.write("\3\2\2\2\u03af\u03cb\7\u0087\2\2\u03b0\u03b1\7<\2\2\u03b1")
        buf.write("\u03b2\5j\66\2\u03b2\u03b3\5j\66\2\u03b3\u03b4\5j\66\2")
        buf.write("\u03b4\u03b5\5j\66\2\u03b5\u03b6\5j\66\2\u03b6\u03cb\3")
        buf.write("\2\2\2\u03b7\u03b9\7=\2\2\u03b8\u03ba\7\u008d\2\2\u03b9")
        buf.write("\u03b8\3\2\2\2\u03b9\u03ba\3\2\2\2\u03ba\u03bb\3\2\2\2")
        buf.write("\u03bb\u03cb\5j\66\2\u03bc\u03be\7\24\2\2\u03bd\u03bf")
        buf.write("\7\u008d\2\2\u03be\u03bd\3\2\2\2\u03be\u03bf\3\2\2\2\u03bf")
        buf.write("\u03c0\3\2\2\2\u03c0\u03cb\7\u0083\2\2\u03c1\u03c3\7\27")
        buf.write("\2\2\u03c2\u03c4\7\u008d\2\2\u03c3\u03c2\3\2\2\2\u03c3")
        buf.write("\u03c4\3\2\2\2\u03c4\u03c5\3\2\2\2\u03c5\u03cb\7>\2\2")
        buf.write("\u03c6\u03c7\7\31\2\2\u03c7\u03c8\7\33\2\2\u03c8\u03cb")
        buf.write("\5j\66\2\u03c9\u03cb\7\34\2\2\u03ca\u03aa\3\2\2\2\u03ca")
        buf.write("\u03ab\3\2\2\2\u03ca\u03b0\3\2\2\2\u03ca\u03b7\3\2\2\2")
        buf.write("\u03ca\u03bc\3\2\2\2\u03ca\u03c1\3\2\2\2\u03ca\u03c6\3")
        buf.write("\2\2\2\u03ca\u03c9\3\2\2\2\u03cbS\3\2\2\2\u03cc\u03cd")
        buf.write("\7\7\2\2\u03cd\u03ce\5^\60\2\u03ce\u03cf\5^\60\2\u03cf")
        buf.write("\u03d0\5^\60\2\u03d0\u03d1\5^\60\2\u03d1\u03d2\5^\60\2")
        buf.write("\u03d2\u03d3\5^\60\2\u03d3\u03d4\5f\64\2\u03d4\u03d5\5")
        buf.write("f\64\2\u03d5U\3\2\2\2\u03d6\u03f9\5X-\2\u03d7\u03d9\7")
        buf.write("\f\2\2\u03d8\u03da\7\u008d\2\2\u03d9\u03d8\3\2\2\2\u03d9")
        buf.write("\u03da\3\2\2\2\u03da\u03db\3\2\2\2\u03db\u03f9\7\u0087")
        buf.write("\2\2\u03dc\u03dd\7<\2\2\u03dd\u03de\5j\66\2\u03de\u03df")
        buf.write("\5j\66\2\u03df\u03e0\5j\66\2\u03e0\u03e1\5j\66\2\u03e1")
        buf.write("\u03e2\5j\66\2\u03e2\u03e3\5j\66\2\u03e3\u03e4\5j\66\2")
        buf.write("\u03e4\u03f9\3\2\2\2\u03e5\u03e7\7=\2\2\u03e6\u03e8\7")
        buf.write("\u008d\2\2\u03e7\u03e6\3\2\2\2\u03e7\u03e8\3\2\2\2\u03e8")
        buf.write("\u03e9\3\2\2\2\u03e9\u03f9\5j\66\2\u03ea\u03ec\7\24\2")
        buf.write("\2\u03eb\u03ed\7\u008d\2\2\u03ec\u03eb\3\2\2\2\u03ec\u03ed")
        buf.write("\3\2\2\2\u03ed\u03ee\3\2\2\2\u03ee\u03f9\7\u0083\2\2\u03ef")
        buf.write("\u03f1\7\27\2\2\u03f0\u03f2\7\u008d\2\2\u03f1\u03f0\3")
        buf.write("\2\2\2\u03f1\u03f2\3\2\2\2\u03f2\u03f3\3\2\2\2\u03f3\u03f9")
        buf.write("\7>\2\2\u03f4\u03f5\7\31\2\2\u03f5\u03f6\7\33\2\2\u03f6")
        buf.write("\u03f9\5j\66\2\u03f7\u03f9\7\34\2\2\u03f8\u03d6\3\2\2")
        buf.write("\2\u03f8\u03d7\3\2\2\2\u03f8\u03dc\3\2\2\2\u03f8\u03e5")
        buf.write("\3\2\2\2\u03f8\u03ea\3\2\2\2\u03f8\u03ef\3\2\2\2\u03f8")
        buf.write("\u03f4\3\2\2\2\u03f8\u03f7\3\2\2\2\u03f9W\3\2\2\2\u03fa")
        buf.write("\u03fb\7\7\2\2\u03fb\u03fc\5^\60\2\u03fc\u03fd\5^\60\2")
        buf.write("\u03fd\u03fe\5^\60\2\u03fe\u03ff\5^\60\2\u03ff\u0400\5")
        buf.write("^\60\2\u0400\u0401\5^\60\2\u0401\u0402\5^\60\2\u0402\u0403")
        buf.write("\5^\60\2\u0403\u0404\5f\64\2\u0404\u0405\5f\64\2\u0405")
        buf.write("Y\3\2\2\2\u0406\u043b\5\\/\2\u0407\u0409\7\f\2\2\u0408")
        buf.write("\u040a\7\u008d\2\2\u0409\u0408\3\2\2\2\u0409\u040a\3\2")
        buf.write("\2\2\u040a\u040b\3\2\2\2\u040b\u043b\7\u0087\2\2\u040c")
        buf.write("\u040e\7Y\2\2\u040d\u040f\7\u008d\2\2\u040e\u040d\3\2")
        buf.write("\2\2\u040e\u040f\3\2\2\2\u040f\u0410\3\2\2\2\u0410\u043b")
        buf.write("\7\u0087\2\2\u0411\u0412\7B\2\2\u0412\u0413\7\u0083\2")
        buf.write("\2\u0413\u0414\7\u0083\2\2\u0414\u043b\5j\66\2\u0415\u0417")
        buf.write("\7P\2\2\u0416\u0418\7\u008d\2\2\u0417\u0416\3\2\2\2\u0417")
        buf.write("\u0418\3\2\2\2\u0418\u0419\3\2\2\2\u0419\u043b\5j\66\2")
        buf.write("\u041a\u041c\7=\2\2\u041b\u041d\7\u008d\2\2\u041c\u041b")
        buf.write("\3\2\2\2\u041c\u041d\3\2\2\2\u041d\u041e\3\2\2\2\u041e")
        buf.write("\u043b\5j\66\2\u041f\u0421\7\24\2\2\u0420\u0422\7\u008d")
        buf.write("\2\2\u0421\u0420\3\2\2\2\u0421\u0422\3\2\2\2\u0422\u0423")
        buf.write("\3\2\2\2\u0423\u043b\7\u0083\2\2\u0424\u0426\7\27\2\2")
        buf.write("\u0425\u0427\7\u008d\2\2\u0426\u0425\3\2\2\2\u0426\u0427")
        buf.write("\3\2\2\2\u0427\u0428\3\2\2\2\u0428\u043b\7>\2\2\u0429")
        buf.write("\u042a\7\31\2\2\u042a\u042b\7\33\2\2\u042b\u0432\5j\66")
        buf.write("\2\u042c\u0433\7[\2\2\u042d\u042f\7\f\2\2\u042e\u0430")
        buf.write("\7\u008d\2\2\u042f\u042e\3\2\2\2\u042f\u0430\3\2\2\2\u0430")
        buf.write("\u0431\3\2\2\2\u0431\u0433\7\u0087\2\2\u0432\u042c\3\2")
        buf.write("\2\2\u0432\u042d\3\2\2\2\u0433\u043b\3\2\2\2\u0434\u043b")
        buf.write("\7\34\2\2\u0435\u0436\7T\2\2\u0436\u0437\7Z\2\2\u0437")
        buf.write("\u0438\7\u0083\2\2\u0438\u043b\7\u0083\2\2\u0439\u043b")
        buf.write("\7F\2\2\u043a\u0406\3\2\2\2\u043a\u0407\3\2\2\2\u043a")
        buf.write("\u040c\3\2\2\2\u043a\u0411\3\2\2\2\u043a\u0415\3\2\2\2")
        buf.write("\u043a\u041a\3\2\2\2\u043a\u041f\3\2\2\2\u043a\u0424\3")
        buf.write("\2\2\2\u043a\u0429\3\2\2\2\u043a\u0434\3\2\2\2\u043a\u0435")
        buf.write("\3\2\2\2\u043a\u0439\3\2\2\2\u043b[\3\2\2\2\u043c\u043d")
        buf.write("\7\7\2\2\u043d\u043e\5^\60\2\u043e\u043f\5^\60\2\u043f")
        buf.write("\u0440\5^\60\2\u0440\u0441\5^\60\2\u0441\u0442\5^\60\2")
        buf.write("\u0442\u0443\5^\60\2\u0443\u0444\5^\60\2\u0444\u0445\5")
        buf.write("^\60\2\u0445\u0446\5^\60\2\u0446\u0447\5^\60\2\u0447\u0449")
        buf.write("\5^\60\2\u0448\u044a\5^\60\2\u0449\u0448\3\2\2\2\u0449")
        buf.write("\u044a\3\2\2\2\u044a]\3\2\2\2\u044b\u044c\7\u008a\2\2")
        buf.write("\u044c\u044d\5`\61\2\u044d\u044e\7\u008b\2\2\u044e_\3")
        buf.write("\2\2\2\u044f\u0454\5b\62\2\u0450\u0451\7~\2\2\u0451\u0453")
        buf.write("\5b\62\2\u0452\u0450\3\2\2\2\u0453\u0456\3\2\2\2\u0454")
        buf.write("\u0452\3\2\2\2\u0454\u0455\3\2\2\2\u0455a\3\2\2\2\u0456")
        buf.write("\u0454\3\2\2\2\u0457\u045c\5d\63\2\u0458\u0459\7\177\2")
        buf.write("\2\u0459\u045b\5d\63\2\u045a\u0458\3\2\2\2\u045b\u045e")
        buf.write("\3\2\2\2\u045c\u045a\3\2\2\2\u045c\u045d\3\2\2\2\u045d")
        buf.write("c\3\2\2\2\u045e\u045c\3\2\2\2\u045f\u0460\b\63\1\2\u0460")
        buf.write("\u0461\7\u008a\2\2\u0461\u0462\5`\61\2\u0462\u0463\7\u008b")
        buf.write("\2\2\u0463\u04f0\3\2\2\2\u0464\u04f0\7[\2\2\u0465\u0466")
        buf.write("\7]\2\2\u0466\u0467\t\2\2\2\u0467\u0468\t\3\2\2\u0468")
        buf.write("\u04f0\t\2\2\2\u0469\u046b\7^\2\2\u046a\u046c\7\u0097")
        buf.write("\2\2\u046b\u046a\3\2\2\2\u046b\u046c\3\2\2\2\u046c\u046d")
        buf.write("\3\2\2\2\u046d\u046e\7\u0098\2\2\u046e\u046f\7\u0099\2")
        buf.write("\2\u046f\u04f0\5h\65\2\u0470\u0471\7_\2\2\u0471\u04f0")
        buf.write("\5d\63 \u0472\u0473\7`\2\2\u0473\u04f0\5d\63\37\u0474")
        buf.write("\u0475\7a\2\2\u0475\u04f0\5d\63\36\u0476\u047d\7b\2\2")
        buf.write("\u0477\u047e\7\u0088\2\2\u0478\u047b\7\u0087\2\2\u0479")
        buf.write("\u047a\7\u008c\2\2\u047a\u047c\7\u0087\2\2\u047b\u0479")
        buf.write("\3\2\2\2\u047b\u047c\3\2\2\2\u047c\u047e\3\2\2\2\u047d")
        buf.write("\u0477\3\2\2\2\u047d\u0478\3\2\2\2\u047e\u04f0\3\2\2\2")
        buf.write("\u047f\u0480\7c\2\2\u0480\u0481\5h\65\2\u0481\u0482\5")
        buf.write("h\65\2\u0482\u0483\5h\65\2\u0483\u0484\5h\65\2\u0484\u0485")
        buf.write("\5h\65\2\u0485\u0486\5h\65\2\u0486\u04f0\3\2\2\2\u0487")
        buf.write("\u04f0\7d\2\2\u0488\u0489\7e\2\2\u0489\u04f0\7\u0083\2")
        buf.write("\2\u048a\u04f0\7f\2\2\u048b\u0492\7g\2\2\u048c\u0493\7")
        buf.write("\u0088\2\2\u048d\u0490\7\u0087\2\2\u048e\u048f\7\u008c")
        buf.write("\2\2\u048f\u0491\7\u0087\2\2\u0490\u048e\3\2\2\2\u0490")
        buf.write("\u0491\3\2\2\2\u0491\u0493\3\2\2\2\u0492\u048c\3\2\2\2")
        buf.write("\u0492\u048d\3\2\2\2\u0493\u04f0\3\2\2\2\u0494\u04f0\7")
        buf.write("h\2\2\u0495\u0496\7\u0080\2\2\u0496\u04f0\5d\63\26\u0497")
        buf.write("\u0498\7i\2\2\u0498\u0499\7\u008a\2\2\u0499\u049b\5h\65")
        buf.write("\2\u049a\u049c\7\u0081\2\2\u049b\u049a\3\2\2\2\u049b\u049c")
        buf.write("\3\2\2\2\u049c\u049d\3\2\2\2\u049d\u049f\5h\65\2\u049e")
        buf.write("\u04a0\7\u0081\2\2\u049f\u049e\3\2\2\2\u049f\u04a0\3\2")
        buf.write("\2\2\u04a0\u04a1\3\2\2\2\u04a1\u04a2\5h\65\2\u04a2\u04a3")
        buf.write("\7\u008b\2\2\u04a3\u04a4\7j\2\2\u04a4\u04a5\5h\65\2\u04a5")
        buf.write("\u04f0\3\2\2\2\u04a6\u04a7\7i\2\2\u04a7\u04a8\7\u008a")
        buf.write("\2\2\u04a8\u04aa\7|\2\2\u04a9\u04ab\7\u008d\2\2\u04aa")
        buf.write("\u04a9\3\2\2\2\u04aa\u04ab\3\2\2\2\u04ab\u04ac\3\2\2\2")
        buf.write("\u04ac\u04ae\5^\60\2\u04ad\u04af\7\u0081\2\2\u04ae\u04ad")
        buf.write("\3\2\2\2\u04ae\u04af\3\2\2\2\u04af\u04b5\3\2\2\2\u04b0")
        buf.write("\u04b2\7}\2\2\u04b1\u04b3\7\u008d\2\2\u04b2\u04b1\3\2")
        buf.write("\2\2\u04b2\u04b3\3\2\2\2\u04b3\u04b4\3\2\2\2\u04b4\u04b6")
        buf.write("\5^\60\2\u04b5\u04b0\3\2\2\2\u04b5\u04b6\3\2\2\2\u04b6")
        buf.write("\u04b7\3\2\2\2\u04b7\u04b8\7\u008b\2\2\u04b8\u04b9\7j")
        buf.write("\2\2\u04b9\u04ba\5h\65\2\u04ba\u04f0\3\2\2\2\u04bb\u04f0")
        buf.write("\7k\2\2\u04bc\u04f0\7l\2\2\u04bd\u04c4\7m\2\2\u04be\u04c5")
        buf.write("\7\u0089\2\2\u04bf\u04c2\7\u0083\2\2\u04c0\u04c1\7\u008c")
        buf.write("\2\2\u04c1\u04c3\7\u0083\2\2\u04c2\u04c0\3\2\2\2\u04c2")
        buf.write("\u04c3\3\2\2\2\u04c3\u04c5\3\2\2\2\u04c4\u04be\3\2\2\2")
        buf.write("\u04c4\u04bf\3\2\2\2\u04c5\u04f0\3\2\2\2\u04c6\u04cd\7")
        buf.write("n\2\2\u04c7\u04ce\7\u0088\2\2\u04c8\u04cb\7\u0087\2\2")
        buf.write("\u04c9\u04ca\7\u008c\2\2\u04ca\u04cc\7\u0087\2\2\u04cb")
        buf.write("\u04c9\3\2\2\2\u04cb\u04cc\3\2\2\2\u04cc\u04ce\3\2\2\2")
        buf.write("\u04cd\u04c7\3\2\2\2\u04cd\u04c8\3\2\2\2\u04ce\u04f0\3")
        buf.write("\2\2\2\u04cf\u04db\7p\2\2\u04d0\u04dc\7\u0088\2\2\u04d1")
        buf.write("\u04d4\7\u0087\2\2\u04d2\u04d3\7\u008c\2\2\u04d3\u04d5")
        buf.write("\7\u0087\2\2\u04d4\u04d2\3\2\2\2\u04d4\u04d5\3\2\2\2\u04d5")
        buf.write("\u04dc\3\2\2\2\u04d6\u04d9\7\u0086\2\2\u04d7\u04d8\7\u008c")
        buf.write("\2\2\u04d8\u04da\7\u0086\2\2\u04d9\u04d7\3\2\2\2\u04d9")
        buf.write("\u04da\3\2\2\2\u04da\u04dc\3\2\2\2\u04db\u04d0\3\2\2\2")
        buf.write("\u04db\u04d1\3\2\2\2\u04db\u04d6\3\2\2\2\u04dc\u04f0\3")
        buf.write("\2\2\2\u04dd\u04de\7q\2\2\u04de\u04df\5h\65\2\u04df\u04e0")
        buf.write("\5h\65\2\u04e0\u04e1\5h\65\2\u04e1\u04e2\5h\65\2\u04e2")
        buf.write("\u04e3\5h\65\2\u04e3\u04e4\5h\65\2\u04e4\u04f0\3\2\2\2")
        buf.write("\u04e5\u04f0\7r\2\2\u04e6\u04f0\7s\2\2\u04e7\u04f0\7t")
        buf.write("\2\2\u04e8\u04f0\7u\2\2\u04e9\u04f0\7v\2\2\u04ea\u04f0")
        buf.write("\7w\2\2\u04eb\u04f0\7x\2\2\u04ec\u04f0\7y\2\2\u04ed\u04f0")
        buf.write("\7z\2\2\u04ee\u04f0\7{\2\2\u04ef\u045f\3\2\2\2\u04ef\u0464")
        buf.write("\3\2\2\2\u04ef\u0465\3\2\2\2\u04ef\u0469\3\2\2\2\u04ef")
        buf.write("\u0470\3\2\2\2\u04ef\u0472\3\2\2\2\u04ef\u0474\3\2\2\2")
        buf.write("\u04ef\u0476\3\2\2\2\u04ef\u047f\3\2\2\2\u04ef\u0487\3")
        buf.write("\2\2\2\u04ef\u0488\3\2\2\2\u04ef\u048a\3\2\2\2\u04ef\u048b")
        buf.write("\3\2\2\2\u04ef\u0494\3\2\2\2\u04ef\u0495\3\2\2\2\u04ef")
        buf.write("\u0497\3\2\2\2\u04ef\u04a6\3\2\2\2\u04ef\u04bb\3\2\2\2")
        buf.write("\u04ef\u04bc\3\2\2\2\u04ef\u04bd\3\2\2\2\u04ef\u04c6\3")
        buf.write("\2\2\2\u04ef\u04cf\3\2\2\2\u04ef\u04dd\3\2\2\2\u04ef\u04e5")
        buf.write("\3\2\2\2\u04ef\u04e6\3\2\2\2\u04ef\u04e7\3\2\2\2\u04ef")
        buf.write("\u04e8\3\2\2\2\u04ef\u04e9\3\2\2\2\u04ef\u04ea\3\2\2\2")
        buf.write("\u04ef\u04eb\3\2\2\2\u04ef\u04ec\3\2\2\2\u04ef\u04ed\3")
        buf.write("\2\2\2\u04ef\u04ee\3\2\2\2\u04f0\u04f9\3\2\2\2\u04f1\u04f2")
        buf.write("\f#\2\2\u04f2\u04f3\7\\\2\2\u04f3\u04f8\5h\65\2\u04f4")
        buf.write("\u04f5\f\17\2\2\u04f5\u04f6\7o\2\2\u04f6\u04f8\5h\65\2")
        buf.write("\u04f7\u04f1\3\2\2\2\u04f7\u04f4\3\2\2\2\u04f8\u04fb\3")
        buf.write("\2\2\2\u04f9\u04f7\3\2\2\2\u04f9\u04fa\3\2\2\2\u04fae")
        buf.write("\3\2\2\2\u04fb\u04f9\3\2\2\2\u04fc\u04fd\t\4\2\2\u04fd")
        buf.write("g\3\2\2\2\u04fe\u04ff\t\4\2\2\u04ffi\3\2\2\2\u0500\u0501")
        buf.write("\t\4\2\2\u0501k\3\2\2\2\u00a3xz\u0080\u0086\u008c\u0092")
        buf.write("\u0098\u00a1\u00ab\u00b5\u00bf\u00c8\u00d1\u00e2\u00eb")
        buf.write("\u00f4\u00fd\u0104\u0113\u0118\u011f\u0128\u012d\u0138")
        buf.write("\u0144\u014a\u0157\u015e\u0179\u017f\u0182\u0190\u0195")
        buf.write("\u019a\u01a1\u01a6\u01ab\u01b0\u01b6\u01ba\u01ca\u01ce")
        buf.write("\u01d3\u01d6\u01da\u01df\u01e4\u01e8\u01ee\u01f2\u01f6")
        buf.write("\u01f9\u01fb\u01ff\u0204\u020e\u0213\u0218\u021f\u022b")
        buf.write("\u0230\u023b\u0241\u0245\u024a\u024f\u0258\u025b\u025e")
        buf.write("\u026a\u0271\u0276\u0282\u0287\u028c\u0291\u0296\u029f")
        buf.write("\u02a4\u02b7\u02bd\u02c3\u02c9\u02cf\u02d5\u02db\u02e1")
        buf.write("\u02e7\u02ec\u02f1\u02f7\u0301\u0304\u0309\u030e\u0312")
        buf.write("\u031e\u0336\u033e\u0345\u0348\u034b\u0350\u0355\u035a")
        buf.write("\u0364\u0369\u036e\u0372\u037b\u037e\u0385\u0388\u038b")
        buf.write("\u038e\u039a\u03a1\u03a8\u03ad\u03b9\u03be\u03c3\u03ca")
        buf.write("\u03d9\u03e7\u03ec\u03f1\u03f8\u0409\u040e\u0417\u041c")
        buf.write("\u0421\u0426\u042f\u0432\u043a\u0449\u0454\u045c\u046b")
        buf.write("\u047b\u047d\u0490\u0492\u049b\u049f\u04aa\u04ae\u04b2")
        buf.write("\u04b5\u04c2\u04c4\u04cb\u04cd\u04d4\u04d9\u04db\u04ef")
        buf.write("\u04f7\u04f9")
        return buf.getvalue()


class CnsMRParser ( Parser ):

    grammarFileName = "CnsMRParser.g4"

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

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

    sharedContextCache = PredictionContextCache()

    literalNames = [ "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'?'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "','", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'('", "')'", "':'", "'='", 
                     "'<'", "'>'", "'<='", "'>='", "'#'" ]

    symbolicNames = [ "<INVALID>", "Set", "End", "Noe", "Analysis", "Assign", 
                      "Asymptote", "Averaging", "Bgig", "Ceiling", "Classification", 
                      "CountViol", "Cv", "Den", "Distribute", "Ensemble", 
                      "Monomers", "Ncount", "Nrestraints", "Outd", "Partition", 
                      "Potential", "Predict", "Print", "Raverage", "Threshold", 
                      "Reset", "Rswitch", "Scale", "SoExponent", "SqConstant", 
                      "SqExponent", "SqOffset", "Taverage", "Temperature", 
                      "Noe_analysis", "Initialize", "Update", "Gamma", "Kappa", 
                      "Noe_avr_methods", "Noe_potential", "Cutoff", "Cuton", 
                      "From", "To", "Restraints", "Dihedral", "Nassign", 
                      "Print_any", "Plane", "Group", "Selection", "Weight", 
                      "Harmonic", "Exponent", "Normal", "Sanisotropy", "Coefficients", 
                      "ForceConstant", "Rdc_potential", "Coupling", "Coupling_potential", 
                      "Carbon", "Expectation", "PhiStep", "PsiStep", "Rcoil", 
                      "Zero", "Proton", "Observed", "Anisotropy", "Amides", 
                      "Carbons", "Nitrogens", "Oxygens", "RingAtoms", "AlphasAndAmides", 
                      "Error", "Conformation", "Compressed", "Phase", "Size", 
                      "Dimensions", "Danisotropy", "OneBond", "AngleDb", 
                      "DerivFlag", "Angle_dihedral", "All", "Around", "Atom", 
                      "Attribute", "BondedTo", "ByGroup", "ByRes", "Chemical", 
                      "Fbox", "Hydrogen", "Id", "Known", "Name", "NONE", 
                      "Point", "Cut", "Previous", "Pseudo", "Residue", "Resname", 
                      "Saround", "SegIdentifier", "Sfbox", "Store_1", "Store_2", 
                      "Store_3", "Store_4", "Store_5", "Store_6", "Store_7", 
                      "Store_8", "Store_9", "Tag", "Tail", "Head", "Or_op", 
                      "And_op", "Not_op", "Comma", "Complex", "Integer", 
                      "Logical", "Real", "Double_quote_string", "Simple_name", 
                      "Simple_names", "Integers", "L_paren", "R_paren", 
                      "Colon", "Equ_op", "Lt_op", "Gt_op", "Leq_op", "Geq_op", 
                      "Neq_op", "SPACE", "COMMENT", "LINE_COMMENT", "SET_VARIABLE", 
                      "Abs", "Attr_properties", "Comparison_ops", "SPACE_ATTR" ]

    RULE_cns_mr = 0
    RULE_distance_restraint = 1
    RULE_dihedral_angle_restraint = 2
    RULE_plane_restraint = 3
    RULE_harmonic_restraint = 4
    RULE_rdc_restraint = 5
    RULE_coupling_restraint = 6
    RULE_carbon_shift_restraint = 7
    RULE_proton_shift_restraint = 8
    RULE_conformation_db_restraint = 9
    RULE_diffusion_anisotropy_restraint = 10
    RULE_one_bond_coupling_restraint = 11
    RULE_angle_db_restraint = 12
    RULE_noe_statement = 13
    RULE_noe_assign = 14
    RULE_predict_statement = 15
    RULE_dihedral_statement = 16
    RULE_dihedral_assign = 17
    RULE_plane_statement = 18
    RULE_group_statement = 19
    RULE_harmonic_statement = 20
    RULE_sani_statement = 21
    RULE_sani_assign = 22
    RULE_coupling_statement = 23
    RULE_coup_assign = 24
    RULE_carbon_shift_statement = 25
    RULE_carbon_shift_assign = 26
    RULE_carbon_shift_rcoil = 27
    RULE_proton_shift_statement = 28
    RULE_observed = 29
    RULE_proton_shift_rcoil = 30
    RULE_proton_shift_anisotropy = 31
    RULE_proton_shift_amides = 32
    RULE_proton_shift_carbons = 33
    RULE_proton_shift_nitrogens = 34
    RULE_proton_shift_oxygens = 35
    RULE_proton_shift_ring_atoms = 36
    RULE_proton_shift_alphas_and_amides = 37
    RULE_conformation_statement = 38
    RULE_conf_assign = 39
    RULE_diffusion_statement = 40
    RULE_dani_assign = 41
    RULE_one_bond_coupling_statement = 42
    RULE_one_bond_assign = 43
    RULE_angle_db_statement = 44
    RULE_angle_db_assign = 45
    RULE_selection = 46
    RULE_selection_expression = 47
    RULE_term = 48
    RULE_factor = 49
    RULE_number = 50
    RULE_number_f = 51
    RULE_number_s = 52

    ruleNames =  [ "cns_mr", "distance_restraint", "dihedral_angle_restraint", 
                   "plane_restraint", "harmonic_restraint", "rdc_restraint", 
                   "coupling_restraint", "carbon_shift_restraint", "proton_shift_restraint", 
                   "conformation_db_restraint", "diffusion_anisotropy_restraint", 
                   "one_bond_coupling_restraint", "angle_db_restraint", 
                   "noe_statement", "noe_assign", "predict_statement", "dihedral_statement", 
                   "dihedral_assign", "plane_statement", "group_statement", 
                   "harmonic_statement", "sani_statement", "sani_assign", 
                   "coupling_statement", "coup_assign", "carbon_shift_statement", 
                   "carbon_shift_assign", "carbon_shift_rcoil", "proton_shift_statement", 
                   "observed", "proton_shift_rcoil", "proton_shift_anisotropy", 
                   "proton_shift_amides", "proton_shift_carbons", "proton_shift_nitrogens", 
                   "proton_shift_oxygens", "proton_shift_ring_atoms", "proton_shift_alphas_and_amides", 
                   "conformation_statement", "conf_assign", "diffusion_statement", 
                   "dani_assign", "one_bond_coupling_statement", "one_bond_assign", 
                   "angle_db_statement", "angle_db_assign", "selection", 
                   "selection_expression", "term", "factor", "number", "number_f", 
                   "number_s" ]

    EOF = Token.EOF
    Set=1
    End=2
    Noe=3
    Analysis=4
    Assign=5
    Asymptote=6
    Averaging=7
    Bgig=8
    Ceiling=9
    Classification=10
    CountViol=11
    Cv=12
    Den=13
    Distribute=14
    Ensemble=15
    Monomers=16
    Ncount=17
    Nrestraints=18
    Outd=19
    Partition=20
    Potential=21
    Predict=22
    Print=23
    Raverage=24
    Threshold=25
    Reset=26
    Rswitch=27
    Scale=28
    SoExponent=29
    SqConstant=30
    SqExponent=31
    SqOffset=32
    Taverage=33
    Temperature=34
    Noe_analysis=35
    Initialize=36
    Update=37
    Gamma=38
    Kappa=39
    Noe_avr_methods=40
    Noe_potential=41
    Cutoff=42
    Cuton=43
    From=44
    To=45
    Restraints=46
    Dihedral=47
    Nassign=48
    Print_any=49
    Plane=50
    Group=51
    Selection=52
    Weight=53
    Harmonic=54
    Exponent=55
    Normal=56
    Sanisotropy=57
    Coefficients=58
    ForceConstant=59
    Rdc_potential=60
    Coupling=61
    Coupling_potential=62
    Carbon=63
    Expectation=64
    PhiStep=65
    PsiStep=66
    Rcoil=67
    Zero=68
    Proton=69
    Observed=70
    Anisotropy=71
    Amides=72
    Carbons=73
    Nitrogens=74
    Oxygens=75
    RingAtoms=76
    AlphasAndAmides=77
    Error=78
    Conformation=79
    Compressed=80
    Phase=81
    Size=82
    Dimensions=83
    Danisotropy=84
    OneBond=85
    AngleDb=86
    DerivFlag=87
    Angle_dihedral=88
    All=89
    Around=90
    Atom=91
    Attribute=92
    BondedTo=93
    ByGroup=94
    ByRes=95
    Chemical=96
    Fbox=97
    Hydrogen=98
    Id=99
    Known=100
    Name=101
    NONE=102
    Point=103
    Cut=104
    Previous=105
    Pseudo=106
    Residue=107
    Resname=108
    Saround=109
    SegIdentifier=110
    Sfbox=111
    Store_1=112
    Store_2=113
    Store_3=114
    Store_4=115
    Store_5=116
    Store_6=117
    Store_7=118
    Store_8=119
    Store_9=120
    Tag=121
    Tail=122
    Head=123
    Or_op=124
    And_op=125
    Not_op=126
    Comma=127
    Complex=128
    Integer=129
    Logical=130
    Real=131
    Double_quote_string=132
    Simple_name=133
    Simple_names=134
    Integers=135
    L_paren=136
    R_paren=137
    Colon=138
    Equ_op=139
    Lt_op=140
    Gt_op=141
    Leq_op=142
    Geq_op=143
    Neq_op=144
    SPACE=145
    COMMENT=146
    LINE_COMMENT=147
    SET_VARIABLE=148
    Abs=149
    Attr_properties=150
    Comparison_ops=151
    SPACE_ATTR=152

    def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
        super().__init__(input, output)
        self.checkVersion("4.9")
        self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
        self._predicates = None




    class Cns_mrContext(ParserRuleContext):

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

        def EOF(self):
            return self.getToken(CnsMRParser.EOF, 0)

        def distance_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Distance_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Distance_restraintContext,i)


        def dihedral_angle_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Dihedral_angle_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Dihedral_angle_restraintContext,i)


        def plane_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Plane_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Plane_restraintContext,i)


        def harmonic_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Harmonic_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Harmonic_restraintContext,i)


        def rdc_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Rdc_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Rdc_restraintContext,i)


        def coupling_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Coupling_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Coupling_restraintContext,i)


        def carbon_shift_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Carbon_shift_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Carbon_shift_restraintContext,i)


        def proton_shift_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_restraintContext,i)


        def conformation_db_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Conformation_db_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Conformation_db_restraintContext,i)


        def diffusion_anisotropy_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Diffusion_anisotropy_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Diffusion_anisotropy_restraintContext,i)


        def one_bond_coupling_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.One_bond_coupling_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.One_bond_coupling_restraintContext,i)


        def angle_db_restraint(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Angle_db_restraintContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Angle_db_restraintContext,i)


        def noe_assign(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Noe_assignContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Noe_assignContext,i)


        def dihedral_assign(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Dihedral_assignContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Dihedral_assignContext,i)


        def sani_assign(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Sani_assignContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Sani_assignContext,i)


        def plane_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Plane_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Plane_statementContext,i)


        def coup_assign(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Coup_assignContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Coup_assignContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_cns_mr

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

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




    def cns_mr(self):

        localctx = CnsMRParser.Cns_mrContext(self, self._ctx, self.state)
        self.enterRule(localctx, 0, self.RULE_cns_mr)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 120
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Noe) | (1 << CnsMRParser.Restraints) | (1 << CnsMRParser.Sanisotropy) | (1 << CnsMRParser.Coupling) | (1 << CnsMRParser.Carbon))) != 0) or ((((_la - 69)) & ~0x3f) == 0 and ((1 << (_la - 69)) & ((1 << (CnsMRParser.Proton - 69)) | (1 << (CnsMRParser.Conformation - 69)) | (1 << (CnsMRParser.Danisotropy - 69)) | (1 << (CnsMRParser.OneBond - 69)) | (1 << (CnsMRParser.AngleDb - 69)))) != 0):
                self.state = 118
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,0,self._ctx)
                if la_ == 1:
                    self.state = 106
                    self.distance_restraint()
                    pass

                elif la_ == 2:
                    self.state = 107
                    self.dihedral_angle_restraint()
                    pass

                elif la_ == 3:
                    self.state = 108
                    self.plane_restraint()
                    pass

                elif la_ == 4:
                    self.state = 109
                    self.harmonic_restraint()
                    pass

                elif la_ == 5:
                    self.state = 110
                    self.rdc_restraint()
                    pass

                elif la_ == 6:
                    self.state = 111
                    self.coupling_restraint()
                    pass

                elif la_ == 7:
                    self.state = 112
                    self.carbon_shift_restraint()
                    pass

                elif la_ == 8:
                    self.state = 113
                    self.proton_shift_restraint()
                    pass

                elif la_ == 9:
                    self.state = 114
                    self.conformation_db_restraint()
                    pass

                elif la_ == 10:
                    self.state = 115
                    self.diffusion_anisotropy_restraint()
                    pass

                elif la_ == 11:
                    self.state = 116
                    self.one_bond_coupling_restraint()
                    pass

                elif la_ == 12:
                    self.state = 117
                    self.angle_db_restraint()
                    pass


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

            self.state = 126
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,2,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 123
                    self.noe_assign() 
                self.state = 128
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,2,self._ctx)

            self.state = 132
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,3,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 129
                    self.dihedral_assign() 
                self.state = 134
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,3,self._ctx)

            self.state = 138
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,4,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 135
                    self.sani_assign() 
                self.state = 140
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,4,self._ctx)

            self.state = 144
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Initialize) | (1 << CnsMRParser.Print_any) | (1 << CnsMRParser.Group))) != 0):
                self.state = 141
                self.plane_statement()
                self.state = 146
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 150
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==CnsMRParser.Assign:
                self.state = 147
                self.coup_assign()
                self.state = 152
                self._errHandler.sync(self)
                _la = self._input.LA(1)

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


    class Distance_restraintContext(ParserRuleContext):

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

        def Noe(self):
            return self.getToken(CnsMRParser.Noe, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def noe_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Noe_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Noe_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_distance_restraint

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

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




    def distance_restraint(self):

        localctx = CnsMRParser.Distance_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 2, self.RULE_distance_restraint)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 155
            self.match(CnsMRParser.Noe)
            self.state = 159
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,7,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 156
                    self.noe_statement() 
                self.state = 161
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,7,self._ctx)

            self.state = 162
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Dihedral_angle_restraintContext(ParserRuleContext):

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

        def Restraints(self):
            return self.getToken(CnsMRParser.Restraints, 0)

        def Dihedral(self):
            return self.getToken(CnsMRParser.Dihedral, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def dihedral_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Dihedral_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Dihedral_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_dihedral_angle_restraint

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

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




    def dihedral_angle_restraint(self):

        localctx = CnsMRParser.Dihedral_angle_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 4, self.RULE_dihedral_angle_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 164
            self.match(CnsMRParser.Restraints)
            self.state = 165
            self.match(CnsMRParser.Dihedral)
            self.state = 169
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Cv) | (1 << CnsMRParser.Partition) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.Scale) | (1 << CnsMRParser.Nassign) | (1 << CnsMRParser.Print_any))) != 0):
                self.state = 166
                self.dihedral_statement()
                self.state = 171
                self._errHandler.sync(self)
                _la = self._input.LA(1)

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


    class Plane_restraintContext(ParserRuleContext):

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

        def Restraints(self):
            return self.getToken(CnsMRParser.Restraints, 0)

        def Plane(self):
            return self.getToken(CnsMRParser.Plane, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def plane_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Plane_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Plane_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_plane_restraint

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

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




    def plane_restraint(self):

        localctx = CnsMRParser.Plane_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 6, self.RULE_plane_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 174
            self.match(CnsMRParser.Restraints)
            self.state = 175
            self.match(CnsMRParser.Plane)
            self.state = 179
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Initialize) | (1 << CnsMRParser.Print_any) | (1 << CnsMRParser.Group))) != 0):
                self.state = 176
                self.plane_statement()
                self.state = 181
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 182
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Harmonic_restraintContext(ParserRuleContext):

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

        def Restraints(self):
            return self.getToken(CnsMRParser.Restraints, 0)

        def Harmonic(self):
            return self.getToken(CnsMRParser.Harmonic, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def harmonic_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Harmonic_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Harmonic_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_harmonic_restraint

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

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




    def harmonic_restraint(self):

        localctx = CnsMRParser.Harmonic_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 8, self.RULE_harmonic_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 184
            self.match(CnsMRParser.Restraints)
            self.state = 185
            self.match(CnsMRParser.Harmonic)
            self.state = 189
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==CnsMRParser.Exponent or _la==CnsMRParser.Normal:
                self.state = 186
                self.harmonic_statement()
                self.state = 191
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 192
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Rdc_restraintContext(ParserRuleContext):

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

        def Sanisotropy(self):
            return self.getToken(CnsMRParser.Sanisotropy, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def sani_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Sani_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Sani_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_rdc_restraint

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

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




    def rdc_restraint(self):

        localctx = CnsMRParser.Rdc_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 10, self.RULE_rdc_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 194
            self.match(CnsMRParser.Sanisotropy)
            self.state = 198
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Classification) | (1 << CnsMRParser.Nrestraints) | (1 << CnsMRParser.Potential) | (1 << CnsMRParser.Print) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.Coefficients) | (1 << CnsMRParser.ForceConstant))) != 0):
                self.state = 195
                self.sani_statement()
                self.state = 200
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 201
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Coupling_restraintContext(ParserRuleContext):

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

        def Coupling(self):
            return self.getToken(CnsMRParser.Coupling, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def coupling_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Coupling_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Coupling_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_coupling_restraint

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

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




    def coupling_restraint(self):

        localctx = CnsMRParser.Coupling_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 12, self.RULE_coupling_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 203
            self.match(CnsMRParser.Coupling)
            self.state = 207
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Classification) | (1 << CnsMRParser.Cv) | (1 << CnsMRParser.Nrestraints) | (1 << CnsMRParser.Partition) | (1 << CnsMRParser.Potential) | (1 << CnsMRParser.Print) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.Coefficients) | (1 << CnsMRParser.ForceConstant))) != 0):
                self.state = 204
                self.coupling_statement()
                self.state = 209
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 210
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Carbon_shift_restraintContext(ParserRuleContext):

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

        def Carbon(self):
            return self.getToken(CnsMRParser.Carbon, 0)

        def carbon_shift_statement(self):
            return self.getTypedRuleContext(CnsMRParser.Carbon_shift_statementContext,0)


        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_carbon_shift_restraint

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

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




    def carbon_shift_restraint(self):

        localctx = CnsMRParser.Carbon_shift_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 14, self.RULE_carbon_shift_restraint)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 212
            self.match(CnsMRParser.Carbon)
            self.state = 213
            self.carbon_shift_statement()
            self.state = 214
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_restraintContext(ParserRuleContext):

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

        def Proton(self):
            return self.getToken(CnsMRParser.Proton, 0)

        def proton_shift_statement(self):
            return self.getTypedRuleContext(CnsMRParser.Proton_shift_statementContext,0)


        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_restraint

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

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




    def proton_shift_restraint(self):

        localctx = CnsMRParser.Proton_shift_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 16, self.RULE_proton_shift_restraint)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 216
            self.match(CnsMRParser.Proton)
            self.state = 217
            self.proton_shift_statement()
            self.state = 218
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Conformation_db_restraintContext(ParserRuleContext):

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

        def Conformation(self):
            return self.getToken(CnsMRParser.Conformation, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def conformation_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Conformation_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Conformation_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_conformation_db_restraint

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

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




    def conformation_db_restraint(self):

        localctx = CnsMRParser.Conformation_db_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 18, self.RULE_conformation_db_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 220
            self.match(CnsMRParser.Conformation)
            self.state = 224
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Classification) | (1 << CnsMRParser.Nrestraints) | (1 << CnsMRParser.Potential) | (1 << CnsMRParser.Print) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.ForceConstant))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (CnsMRParser.Expectation - 64)) | (1 << (CnsMRParser.Zero - 64)) | (1 << (CnsMRParser.Error - 64)) | (1 << (CnsMRParser.Compressed - 64)) | (1 << (CnsMRParser.Phase - 64)) | (1 << (CnsMRParser.Size - 64)))) != 0):
                self.state = 221
                self.conformation_statement()
                self.state = 226
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 227
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Diffusion_anisotropy_restraintContext(ParserRuleContext):

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

        def Danisotropy(self):
            return self.getToken(CnsMRParser.Danisotropy, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def diffusion_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Diffusion_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Diffusion_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_diffusion_anisotropy_restraint

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

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




    def diffusion_anisotropy_restraint(self):

        localctx = CnsMRParser.Diffusion_anisotropy_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 20, self.RULE_diffusion_anisotropy_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 229
            self.match(CnsMRParser.Danisotropy)
            self.state = 233
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Classification) | (1 << CnsMRParser.Nrestraints) | (1 << CnsMRParser.Potential) | (1 << CnsMRParser.Print) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.Coefficients) | (1 << CnsMRParser.ForceConstant))) != 0):
                self.state = 230
                self.diffusion_statement()
                self.state = 235
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 236
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class One_bond_coupling_restraintContext(ParserRuleContext):

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

        def OneBond(self):
            return self.getToken(CnsMRParser.OneBond, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def one_bond_coupling_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.One_bond_coupling_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.One_bond_coupling_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_one_bond_coupling_restraint

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

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




    def one_bond_coupling_restraint(self):

        localctx = CnsMRParser.One_bond_coupling_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 22, self.RULE_one_bond_coupling_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 238
            self.match(CnsMRParser.OneBond)
            self.state = 242
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Classification) | (1 << CnsMRParser.Nrestraints) | (1 << CnsMRParser.Potential) | (1 << CnsMRParser.Print) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.Coefficients) | (1 << CnsMRParser.ForceConstant))) != 0):
                self.state = 239
                self.one_bond_coupling_statement()
                self.state = 244
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 245
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Angle_db_restraintContext(ParserRuleContext):

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

        def AngleDb(self):
            return self.getToken(CnsMRParser.AngleDb, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

        def angle_db_statement(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Angle_db_statementContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Angle_db_statementContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_angle_db_restraint

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

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




    def angle_db_restraint(self):

        localctx = CnsMRParser.Angle_db_restraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 24, self.RULE_angle_db_restraint)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 247
            self.match(CnsMRParser.AngleDb)
            self.state = 251
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CnsMRParser.Assign) | (1 << CnsMRParser.Classification) | (1 << CnsMRParser.Nrestraints) | (1 << CnsMRParser.Potential) | (1 << CnsMRParser.Print) | (1 << CnsMRParser.Reset) | (1 << CnsMRParser.ForceConstant))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (CnsMRParser.Expectation - 64)) | (1 << (CnsMRParser.Zero - 64)) | (1 << (CnsMRParser.Error - 64)) | (1 << (CnsMRParser.Size - 64)) | (1 << (CnsMRParser.DerivFlag - 64)))) != 0):
                self.state = 248
                self.angle_db_statement()
                self.state = 253
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 254
            self.match(CnsMRParser.End)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Noe_statementContext(ParserRuleContext):

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

        def Analysis(self):
            return self.getToken(CnsMRParser.Analysis, 0)

        def Noe_analysis(self):
            return self.getToken(CnsMRParser.Noe_analysis, 0)

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

        def noe_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Noe_assignContext,0)


        def Asymptote(self):
            return self.getToken(CnsMRParser.Asymptote, 0)

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

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def Averaging(self):
            return self.getToken(CnsMRParser.Averaging, 0)

        def Noe_avr_methods(self):
            return self.getToken(CnsMRParser.Noe_avr_methods, 0)

        def Bgig(self):
            return self.getToken(CnsMRParser.Bgig, 0)

        def Ceiling(self):
            return self.getToken(CnsMRParser.Ceiling, 0)

        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def CountViol(self):
            return self.getToken(CnsMRParser.CountViol, 0)

        def Cv(self):
            return self.getToken(CnsMRParser.Cv, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def Den(self):
            return self.getToken(CnsMRParser.Den, 0)

        def Initialize(self):
            return self.getToken(CnsMRParser.Initialize, 0)

        def Update(self):
            return self.getToken(CnsMRParser.Update, 0)

        def Gamma(self):
            return self.getToken(CnsMRParser.Gamma, 0)

        def Kappa(self):
            return self.getToken(CnsMRParser.Kappa, 0)

        def Distribute(self):
            return self.getToken(CnsMRParser.Distribute, 0)

        def End(self):
            return self.getToken(CnsMRParser.End, 0)

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

        def Monomers(self):
            return self.getToken(CnsMRParser.Monomers, 0)

        def Ncount(self):
            return self.getToken(CnsMRParser.Ncount, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Outd(self):
            return self.getToken(CnsMRParser.Outd, 0)

        def Partition(self):
            return self.getToken(CnsMRParser.Partition, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Noe_potential(self):
            return self.getToken(CnsMRParser.Noe_potential, 0)

        def Predict(self):
            return self.getToken(CnsMRParser.Predict, 0)

        def predict_statement(self):
            return self.getTypedRuleContext(CnsMRParser.Predict_statementContext,0)


        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def Raverage(self):
            return self.getToken(CnsMRParser.Raverage, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def Rswitch(self):
            return self.getToken(CnsMRParser.Rswitch, 0)

        def Scale(self):
            return self.getToken(CnsMRParser.Scale, 0)

        def SoExponent(self):
            return self.getToken(CnsMRParser.SoExponent, 0)

        def SqConstant(self):
            return self.getToken(CnsMRParser.SqConstant, 0)

        def SqExponent(self):
            return self.getToken(CnsMRParser.SqExponent, 0)

        def SqOffset(self):
            return self.getToken(CnsMRParser.SqOffset, 0)

        def Taverage(self):
            return self.getToken(CnsMRParser.Taverage, 0)

        def Temperature(self):
            return self.getToken(CnsMRParser.Temperature, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_noe_statement

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

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




    def noe_statement(self):

        localctx = CnsMRParser.Noe_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 26, self.RULE_noe_statement)
        self._la = 0 # Token type
        try:
            self.state = 384
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,30,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 256
                self.match(CnsMRParser.Analysis)
                self.state = 258
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 257
                    self.match(CnsMRParser.Equ_op)


                self.state = 260
                self.match(CnsMRParser.Noe_analysis)
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 261
                self.noe_assign()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 262
                self.match(CnsMRParser.Asymptote)
                self.state = 263
                self.match(CnsMRParser.Simple_name)
                self.state = 264
                self.number_s()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 265
                self.match(CnsMRParser.Averaging)
                self.state = 266
                self.match(CnsMRParser.Simple_name)
                self.state = 267
                self.match(CnsMRParser.Noe_avr_methods)
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 268
                self.match(CnsMRParser.Bgig)
                self.state = 269
                self.match(CnsMRParser.Simple_name)
                self.state = 270
                self.number_s()
                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 271
                self.match(CnsMRParser.Ceiling)
                self.state = 273
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 272
                    self.match(CnsMRParser.Equ_op)


                self.state = 275
                self.number_s()
                pass

            elif la_ == 7:
                self.enterOuterAlt(localctx, 7)
                self.state = 276
                self.match(CnsMRParser.Classification)
                self.state = 278
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 277
                    self.match(CnsMRParser.Equ_op)


                self.state = 280
                self.match(CnsMRParser.Simple_name)
                pass

            elif la_ == 8:
                self.enterOuterAlt(localctx, 8)
                self.state = 281
                self.match(CnsMRParser.CountViol)
                self.state = 282
                self.match(CnsMRParser.Simple_name)
                pass

            elif la_ == 9:
                self.enterOuterAlt(localctx, 9)
                self.state = 283
                self.match(CnsMRParser.Cv)
                self.state = 285
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 284
                    self.match(CnsMRParser.Equ_op)


                self.state = 287
                self.match(CnsMRParser.Integer)
                pass

            elif la_ == 10:
                self.enterOuterAlt(localctx, 10)
                self.state = 288
                self.match(CnsMRParser.Den)
                self.state = 289
                self.match(CnsMRParser.Initialize)
                pass

            elif la_ == 11:
                self.enterOuterAlt(localctx, 11)
                self.state = 290
                self.match(CnsMRParser.Den)
                self.state = 291
                self.match(CnsMRParser.Update)
                self.state = 292
                self.match(CnsMRParser.Gamma)
                self.state = 294
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 293
                    self.match(CnsMRParser.Equ_op)


                self.state = 296
                self.number_s()
                self.state = 297
                self.match(CnsMRParser.Kappa)
                self.state = 299
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 298
                    self.match(CnsMRParser.Equ_op)


                self.state = 301
                self.number_s()
                pass

            elif la_ == 12:
                self.enterOuterAlt(localctx, 12)
                self.state = 303
                self.match(CnsMRParser.Distribute)
                self.state = 304
                self.match(CnsMRParser.Simple_name)
                self.state = 305
                self.match(CnsMRParser.Simple_name)
                self.state = 306
                self.number_s()
                pass

            elif la_ == 13:
                self.enterOuterAlt(localctx, 13)
                self.state = 310
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,23,self._ctx)
                while _alt!=1 and _alt!=ATN.INVALID_ALT_NUMBER:
                    if _alt==1+1:
                        self.state = 307
                        self.match(CnsMRParser.Ensemble) 
                    self.state = 312
                    self._errHandler.sync(self)
                    _alt = self._interp.adaptivePredict(self._input,23,self._ctx)

                self.state = 313
                self.match(CnsMRParser.End)
                pass

            elif la_ == 14:
                self.enterOuterAlt(localctx, 14)
                self.state = 314
                self.match(CnsMRParser.Monomers)
                self.state = 315
                self.match(CnsMRParser.Simple_name)
                self.state = 316
                self.match(CnsMRParser.Integer)
                pass

            elif la_ == 15:
                self.enterOuterAlt(localctx, 15)
                self.state = 317
                self.match(CnsMRParser.Ncount)
                self.state = 318
                self.match(CnsMRParser.Simple_name)
                self.state = 319
                self.match(CnsMRParser.Integer)
                pass

            elif la_ == 16:
                self.enterOuterAlt(localctx, 16)
                self.state = 320
                self.match(CnsMRParser.Nrestraints)
                self.state = 322
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 321
                    self.match(CnsMRParser.Equ_op)


                self.state = 324
                self.match(CnsMRParser.Integer)
                pass

            elif la_ == 17:
                self.enterOuterAlt(localctx, 17)
                self.state = 325
                self.match(CnsMRParser.Outd)
                pass

            elif la_ == 18:
                self.enterOuterAlt(localctx, 18)
                self.state = 326
                self.match(CnsMRParser.Partition)
                self.state = 328
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 327
                    self.match(CnsMRParser.Equ_op)


                self.state = 330
                self.match(CnsMRParser.Integer)
                pass

            elif la_ == 19:
                self.enterOuterAlt(localctx, 19)
                self.state = 331
                self.match(CnsMRParser.Potential)
                self.state = 332
                self.match(CnsMRParser.Simple_name)
                self.state = 333
                self.match(CnsMRParser.Noe_potential)
                pass

            elif la_ == 20:
                self.enterOuterAlt(localctx, 20)
                self.state = 334
                self.match(CnsMRParser.Predict)
                self.state = 335
                self.predict_statement()
                self.state = 336
                self.match(CnsMRParser.End)
                pass

            elif la_ == 21:
                self.enterOuterAlt(localctx, 21)
                self.state = 338
                self.match(CnsMRParser.Print)
                self.state = 339
                self.match(CnsMRParser.Threshold)
                self.state = 341
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 340
                    self.match(CnsMRParser.Equ_op)


                self.state = 343
                self.number_s()
                pass

            elif la_ == 22:
                self.enterOuterAlt(localctx, 22)
                self.state = 344
                self.match(CnsMRParser.Raverage)
                self.state = 348
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,27,self._ctx)
                while _alt!=1 and _alt!=ATN.INVALID_ALT_NUMBER:
                    if _alt==1+1:
                        self.state = 345
                        self.match(CnsMRParser.Simple_name) 
                    self.state = 350
                    self._errHandler.sync(self)
                    _alt = self._interp.adaptivePredict(self._input,27,self._ctx)

                self.state = 351
                self.match(CnsMRParser.End)
                pass

            elif la_ == 23:
                self.enterOuterAlt(localctx, 23)
                self.state = 352
                self.match(CnsMRParser.Reset)
                pass

            elif la_ == 24:
                self.enterOuterAlt(localctx, 24)
                self.state = 353
                self.match(CnsMRParser.Rswitch)
                self.state = 354
                self.match(CnsMRParser.Simple_name)
                self.state = 355
                self.number_s()
                pass

            elif la_ == 25:
                self.enterOuterAlt(localctx, 25)
                self.state = 356
                self.match(CnsMRParser.Scale)
                self.state = 357
                self.match(CnsMRParser.Simple_name)
                self.state = 358
                self.number_s()
                pass

            elif la_ == 26:
                self.enterOuterAlt(localctx, 26)
                self.state = 359
                self.match(CnsMRParser.SoExponent)
                self.state = 360
                self.match(CnsMRParser.Simple_name)
                self.state = 361
                self.number_s()
                pass

            elif la_ == 27:
                self.enterOuterAlt(localctx, 27)
                self.state = 362
                self.match(CnsMRParser.SqConstant)
                self.state = 363
                self.match(CnsMRParser.Simple_name)
                self.state = 364
                self.number_s()
                pass

            elif la_ == 28:
                self.enterOuterAlt(localctx, 28)
                self.state = 365
                self.match(CnsMRParser.SqExponent)
                self.state = 366
                self.match(CnsMRParser.Simple_name)
                self.state = 367
                self.number_s()
                pass

            elif la_ == 29:
                self.enterOuterAlt(localctx, 29)
                self.state = 368
                self.match(CnsMRParser.SqOffset)
                self.state = 369
                self.match(CnsMRParser.Simple_name)
                self.state = 370
                self.number_s()
                pass

            elif la_ == 30:
                self.enterOuterAlt(localctx, 30)
                self.state = 371
                self.match(CnsMRParser.Taverage)
                self.state = 375
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,28,self._ctx)
                while _alt!=1 and _alt!=ATN.INVALID_ALT_NUMBER:
                    if _alt==1+1:
                        self.state = 372
                        self.match(CnsMRParser.Simple_name) 
                    self.state = 377
                    self._errHandler.sync(self)
                    _alt = self._interp.adaptivePredict(self._input,28,self._ctx)

                self.state = 378
                self.match(CnsMRParser.End)
                pass

            elif la_ == 31:
                self.enterOuterAlt(localctx, 31)
                self.state = 379
                self.match(CnsMRParser.Temperature)
                self.state = 381
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 380
                    self.match(CnsMRParser.Equ_op)


                self.state = 383
                self.number_s()
                pass


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


    class Noe_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


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

        def getRuleIndex(self):
            return CnsMRParser.RULE_noe_assign

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

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




    def noe_assign(self):

        localctx = CnsMRParser.Noe_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 28, self.RULE_noe_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 386
            self.match(CnsMRParser.Assign)
            self.state = 387
            self.selection()
            self.state = 388
            self.selection()
            self.state = 389
            self.number()
            self.state = 390
            self.number()
            self.state = 391
            self.number()
            self.state = 398
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==CnsMRParser.Or_op:
                self.state = 392
                self.match(CnsMRParser.Or_op)
                self.state = 393
                self.selection()
                self.state = 394
                self.selection()
                self.state = 400
                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 Predict_statementContext(ParserRuleContext):

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

        def Cutoff(self):
            return self.getToken(CnsMRParser.Cutoff, 0)

        def number_s(self):
            return self.getTypedRuleContext(CnsMRParser.Number_sContext,0)


        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Cuton(self):
            return self.getToken(CnsMRParser.Cuton, 0)

        def From(self):
            return self.getToken(CnsMRParser.From, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def To(self):
            return self.getToken(CnsMRParser.To, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_predict_statement

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

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




    def predict_statement(self):

        localctx = CnsMRParser.Predict_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 30, self.RULE_predict_statement)
        self._la = 0 # Token type
        try:
            self.state = 415
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Cutoff]:
                self.enterOuterAlt(localctx, 1)
                self.state = 401
                self.match(CnsMRParser.Cutoff)
                self.state = 403
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 402
                    self.match(CnsMRParser.Equ_op)


                self.state = 405
                self.number_s()
                pass
            elif token in [CnsMRParser.Cuton]:
                self.enterOuterAlt(localctx, 2)
                self.state = 406
                self.match(CnsMRParser.Cuton)
                self.state = 408
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 407
                    self.match(CnsMRParser.Equ_op)


                self.state = 410
                self.number_s()
                pass
            elif token in [CnsMRParser.From]:
                self.enterOuterAlt(localctx, 3)
                self.state = 411
                self.match(CnsMRParser.From)
                self.state = 412
                self.selection()
                pass
            elif token in [CnsMRParser.To]:
                self.enterOuterAlt(localctx, 4)
                self.state = 413
                self.match(CnsMRParser.To)
                self.state = 414
                self.selection()
                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 Dihedral_statementContext(ParserRuleContext):

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

        def dihedral_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Dihedral_assignContext,0)


        def Cv(self):
            return self.getToken(CnsMRParser.Cv, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Nassign(self):
            return self.getToken(CnsMRParser.Nassign, 0)

        def Partition(self):
            return self.getToken(CnsMRParser.Partition, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def Scale(self):
            return self.getToken(CnsMRParser.Scale, 0)

        def number_s(self):
            return self.getTypedRuleContext(CnsMRParser.Number_sContext,0)


        def Print_any(self):
            return self.getToken(CnsMRParser.Print_any, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_dihedral_statement

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

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




    def dihedral_statement(self):

        localctx = CnsMRParser.Dihedral_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 32, self.RULE_dihedral_statement)
        self._la = 0 # Token type
        try:
            self.state = 440
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 417
                self.dihedral_assign()
                pass
            elif token in [CnsMRParser.Cv]:
                self.enterOuterAlt(localctx, 2)
                self.state = 418
                self.match(CnsMRParser.Cv)
                self.state = 420
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 419
                    self.match(CnsMRParser.Equ_op)


                self.state = 422
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Nassign]:
                self.enterOuterAlt(localctx, 3)
                self.state = 423
                self.match(CnsMRParser.Nassign)
                self.state = 425
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 424
                    self.match(CnsMRParser.Equ_op)


                self.state = 427
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Partition]:
                self.enterOuterAlt(localctx, 4)
                self.state = 428
                self.match(CnsMRParser.Partition)
                self.state = 430
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 429
                    self.match(CnsMRParser.Equ_op)


                self.state = 432
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 5)
                self.state = 433
                self.match(CnsMRParser.Reset)
                pass
            elif token in [CnsMRParser.Scale]:
                self.enterOuterAlt(localctx, 6)
                self.state = 434
                self.match(CnsMRParser.Scale)
                self.state = 436
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 435
                    self.match(CnsMRParser.Equ_op)


                self.state = 438
                self.number_s()
                pass
            elif token in [CnsMRParser.Print_any]:
                self.enterOuterAlt(localctx, 7)
                self.state = 439
                self.match(CnsMRParser.Print_any)
                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 Dihedral_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_dihedral_assign

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

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




    def dihedral_assign(self):

        localctx = CnsMRParser.Dihedral_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 34, self.RULE_dihedral_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 442
            self.match(CnsMRParser.Assign)
            self.state = 443
            self.selection()
            self.state = 444
            self.selection()
            self.state = 445
            self.selection()
            self.state = 446
            self.selection()
            self.state = 447
            self.number()
            self.state = 448
            self.number()
            self.state = 449
            self.number()
            self.state = 450
            self.match(CnsMRParser.Integer)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Plane_statementContext(ParserRuleContext):

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

        def Group(self):
            return self.getToken(CnsMRParser.Group, 0)

        def group_statement(self):
            return self.getTypedRuleContext(CnsMRParser.Group_statementContext,0)


        def Initialize(self):
            return self.getToken(CnsMRParser.Initialize, 0)

        def Print_any(self):
            return self.getToken(CnsMRParser.Print_any, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_plane_statement

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

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




    def plane_statement(self):

        localctx = CnsMRParser.Plane_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 36, self.RULE_plane_statement)
        try:
            self.state = 456
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Group]:
                self.enterOuterAlt(localctx, 1)
                self.state = 452
                self.match(CnsMRParser.Group)
                self.state = 453
                self.group_statement()
                pass
            elif token in [CnsMRParser.Initialize]:
                self.enterOuterAlt(localctx, 2)
                self.state = 454
                self.match(CnsMRParser.Initialize)
                pass
            elif token in [CnsMRParser.Print_any]:
                self.enterOuterAlt(localctx, 3)
                self.state = 455
                self.match(CnsMRParser.Print_any)
                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 Group_statementContext(ParserRuleContext):

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

        def Selection(self):
            return self.getToken(CnsMRParser.Selection, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Weight(self):
            return self.getToken(CnsMRParser.Weight, 0)

        def number_s(self):
            return self.getTypedRuleContext(CnsMRParser.Number_sContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_group_statement

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

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




    def group_statement(self):

        localctx = CnsMRParser.Group_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 38, self.RULE_group_statement)
        self._la = 0 # Token type
        try:
            self.state = 468
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Selection]:
                self.enterOuterAlt(localctx, 1)
                self.state = 458
                self.match(CnsMRParser.Selection)
                self.state = 460
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 459
                    self.match(CnsMRParser.Equ_op)


                self.state = 462
                self.selection()
                pass
            elif token in [CnsMRParser.Weight]:
                self.enterOuterAlt(localctx, 2)
                self.state = 463
                self.match(CnsMRParser.Weight)
                self.state = 465
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 464
                    self.match(CnsMRParser.Equ_op)


                self.state = 467
                self.number_s()
                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 Harmonic_statementContext(ParserRuleContext):

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

        def Exponent(self):
            return self.getToken(CnsMRParser.Exponent, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

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

        def Normal(self):
            return self.getToken(CnsMRParser.Normal, 0)

        def L_paren(self):
            return self.getToken(CnsMRParser.L_paren, 0)

        def R_paren(self):
            return self.getToken(CnsMRParser.R_paren, 0)

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def Tail(self):
            return self.getToken(CnsMRParser.Tail, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


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

        def Head(self):
            return self.getToken(CnsMRParser.Head, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_harmonic_statement

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

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




    def harmonic_statement(self):

        localctx = CnsMRParser.Harmonic_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 40, self.RULE_harmonic_statement)
        self._la = 0 # Token type
        try:
            self.state = 509
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Exponent]:
                self.enterOuterAlt(localctx, 1)
                self.state = 470
                self.match(CnsMRParser.Exponent)
                self.state = 472
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 471
                    self.match(CnsMRParser.Equ_op)


                self.state = 474
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Normal]:
                self.enterOuterAlt(localctx, 2)
                self.state = 475
                self.match(CnsMRParser.Normal)
                self.state = 477
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 476
                    self.match(CnsMRParser.Equ_op)


                self.state = 479
                self.match(CnsMRParser.L_paren)
                self.state = 505
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.Integer, CnsMRParser.Real]:
                    self.state = 480
                    self.number_s()
                    self.state = 482
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Comma:
                        self.state = 481
                        self.match(CnsMRParser.Comma)


                    self.state = 484
                    self.number_s()
                    self.state = 486
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Comma:
                        self.state = 485
                        self.match(CnsMRParser.Comma)


                    self.state = 488
                    self.number_s()
                    pass
                elif token in [CnsMRParser.Tail]:
                    self.state = 490
                    self.match(CnsMRParser.Tail)
                    self.state = 492
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Equ_op:
                        self.state = 491
                        self.match(CnsMRParser.Equ_op)


                    self.state = 494
                    self.selection()
                    self.state = 496
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Comma:
                        self.state = 495
                        self.match(CnsMRParser.Comma)


                    self.state = 503
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Head:
                        self.state = 498
                        self.match(CnsMRParser.Head)
                        self.state = 500
                        self._errHandler.sync(self)
                        _la = self._input.LA(1)
                        if _la==CnsMRParser.Equ_op:
                            self.state = 499
                            self.match(CnsMRParser.Equ_op)


                        self.state = 502
                        self.selection()


                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 507
                self.match(CnsMRParser.R_paren)
                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 Sani_statementContext(ParserRuleContext):

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

        def sani_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Sani_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Coefficients(self):
            return self.getToken(CnsMRParser.Coefficients, 0)

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Rdc_potential(self):
            return self.getToken(CnsMRParser.Rdc_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_sani_statement

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

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




    def sani_statement(self):

        localctx = CnsMRParser.Sani_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 42, self.RULE_sani_statement)
        self._la = 0 # Token type
        try:
            self.state = 541
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 511
                self.sani_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 512
                self.match(CnsMRParser.Classification)
                self.state = 514
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 513
                    self.match(CnsMRParser.Equ_op)


                self.state = 516
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Coefficients]:
                self.enterOuterAlt(localctx, 3)
                self.state = 517
                self.match(CnsMRParser.Coefficients)
                self.state = 518
                self.number_s()
                self.state = 519
                self.number_s()
                self.state = 520
                self.number_s()
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 4)
                self.state = 522
                self.match(CnsMRParser.ForceConstant)
                self.state = 524
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 523
                    self.match(CnsMRParser.Equ_op)


                self.state = 526
                self.number_s()
                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 5)
                self.state = 527
                self.match(CnsMRParser.Nrestraints)
                self.state = 529
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 528
                    self.match(CnsMRParser.Equ_op)


                self.state = 531
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 6)
                self.state = 532
                self.match(CnsMRParser.Potential)
                self.state = 534
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 533
                    self.match(CnsMRParser.Equ_op)


                self.state = 536
                self.match(CnsMRParser.Rdc_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 7)
                self.state = 537
                self.match(CnsMRParser.Print)
                self.state = 538
                self.match(CnsMRParser.Threshold)
                self.state = 539
                self.number_s()
                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 8)
                self.state = 540
                self.match(CnsMRParser.Reset)
                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 Sani_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_sani_assign

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

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




    def sani_assign(self):

        localctx = CnsMRParser.Sani_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 44, self.RULE_sani_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 543
            self.match(CnsMRParser.Assign)
            self.state = 544
            self.selection()
            self.state = 545
            self.selection()
            self.state = 546
            self.selection()
            self.state = 547
            self.selection()
            self.state = 548
            self.selection()
            self.state = 549
            self.selection()
            self.state = 550
            self.number()
            self.state = 551
            self.number()
            self.state = 553
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.Integer or _la==CnsMRParser.Real:
                self.state = 552
                self.number()


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


    class Coupling_statementContext(ParserRuleContext):

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

        def coup_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Coup_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Coefficients(self):
            return self.getToken(CnsMRParser.Coefficients, 0)

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def Cv(self):
            return self.getToken(CnsMRParser.Cv, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Partition(self):
            return self.getToken(CnsMRParser.Partition, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Coupling_potential(self):
            return self.getToken(CnsMRParser.Coupling_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def All(self):
            return self.getToken(CnsMRParser.All, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_coupling_statement

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

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




    def coupling_statement(self):

        localctx = CnsMRParser.Coupling_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 46, self.RULE_coupling_statement)
        self._la = 0 # Token type
        try:
            self.state = 604
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 555
                self.coup_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 556
                self.match(CnsMRParser.Classification)
                self.state = 558
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 557
                    self.match(CnsMRParser.Equ_op)


                self.state = 560
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Coefficients]:
                self.enterOuterAlt(localctx, 3)
                self.state = 561
                self.match(CnsMRParser.Coefficients)
                self.state = 562
                self.number_s()
                self.state = 563
                self.number_s()
                self.state = 564
                self.number_s()
                self.state = 565
                self.number_s()
                pass
            elif token in [CnsMRParser.Cv]:
                self.enterOuterAlt(localctx, 4)
                self.state = 567
                self.match(CnsMRParser.Cv)
                self.state = 569
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 568
                    self.match(CnsMRParser.Equ_op)


                self.state = 571
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 5)
                self.state = 572
                self.match(CnsMRParser.ForceConstant)
                self.state = 573
                self.number_s()
                self.state = 575
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Integer or _la==CnsMRParser.Real:
                    self.state = 574
                    self.number_s()


                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 6)
                self.state = 577
                self.match(CnsMRParser.Nrestraints)
                self.state = 579
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 578
                    self.match(CnsMRParser.Equ_op)


                self.state = 581
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Partition]:
                self.enterOuterAlt(localctx, 7)
                self.state = 582
                self.match(CnsMRParser.Partition)
                self.state = 584
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 583
                    self.match(CnsMRParser.Equ_op)


                self.state = 586
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 8)
                self.state = 587
                self.match(CnsMRParser.Potential)
                self.state = 589
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 588
                    self.match(CnsMRParser.Equ_op)


                self.state = 591
                self.match(CnsMRParser.Coupling_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 9)
                self.state = 592
                self.match(CnsMRParser.Print)
                self.state = 593
                self.match(CnsMRParser.Threshold)
                self.state = 594
                self.number_s()
                self.state = 601
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.All]:
                    self.state = 595
                    self.match(CnsMRParser.All)
                    pass
                elif token in [CnsMRParser.Classification]:
                    self.state = 596
                    self.match(CnsMRParser.Classification)
                    self.state = 598
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Equ_op:
                        self.state = 597
                        self.match(CnsMRParser.Equ_op)


                    self.state = 600
                    self.match(CnsMRParser.Simple_name)
                    pass
                else:
                    raise NoViableAltException(self)

                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 10)
                self.state = 603
                self.match(CnsMRParser.Reset)
                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 Coup_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_coup_assign

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

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




    def coup_assign(self):

        localctx = CnsMRParser.Coup_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 48, self.RULE_coup_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 606
            self.match(CnsMRParser.Assign)
            self.state = 607
            self.selection()
            self.state = 608
            self.selection()
            self.state = 609
            self.selection()
            self.state = 610
            self.selection()
            self.state = 616
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.L_paren:
                self.state = 611
                self.selection()
                self.state = 612
                self.selection()
                self.state = 613
                self.selection()
                self.state = 614
                self.selection()


            self.state = 618
            self.number()
            self.state = 619
            self.number()
            self.state = 623
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.Integer or _la==CnsMRParser.Real:
                self.state = 620
                self.number()
                self.state = 621
                self.number()


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


    class Carbon_shift_statementContext(ParserRuleContext):

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

        def carbon_shift_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Carbon_shift_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Expectation(self):
            return self.getToken(CnsMRParser.Expectation, 0)

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

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def PhiStep(self):
            return self.getToken(CnsMRParser.PhiStep, 0)

        def PsiStep(self):
            return self.getToken(CnsMRParser.PsiStep, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Rdc_potential(self):
            return self.getToken(CnsMRParser.Rdc_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def carbon_shift_rcoil(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Carbon_shift_rcoilContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Carbon_shift_rcoilContext,i)


        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def Zero(self):
            return self.getToken(CnsMRParser.Zero, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_carbon_shift_statement

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

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




    def carbon_shift_statement(self):

        localctx = CnsMRParser.Carbon_shift_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 50, self.RULE_carbon_shift_statement)
        self._la = 0 # Token type
        try:
            self.state = 674
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 625
                self.carbon_shift_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 626
                self.match(CnsMRParser.Classification)
                self.state = 628
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 627
                    self.match(CnsMRParser.Equ_op)


                self.state = 630
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Expectation]:
                self.enterOuterAlt(localctx, 3)
                self.state = 631
                self.match(CnsMRParser.Expectation)
                self.state = 632
                self.match(CnsMRParser.Integer)
                self.state = 633
                self.match(CnsMRParser.Integer)
                self.state = 634
                self.number_s()
                self.state = 635
                self.number_s()
                self.state = 636
                self.number_s()
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 4)
                self.state = 638
                self.match(CnsMRParser.ForceConstant)
                self.state = 640
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 639
                    self.match(CnsMRParser.Equ_op)


                self.state = 642
                self.number_s()
                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 5)
                self.state = 643
                self.match(CnsMRParser.Nrestraints)
                self.state = 645
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 644
                    self.match(CnsMRParser.Equ_op)


                self.state = 647
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.PhiStep]:
                self.enterOuterAlt(localctx, 6)
                self.state = 648
                self.match(CnsMRParser.PhiStep)
                self.state = 650
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 649
                    self.match(CnsMRParser.Equ_op)


                self.state = 652
                self.number_s()
                pass
            elif token in [CnsMRParser.PsiStep]:
                self.enterOuterAlt(localctx, 7)
                self.state = 653
                self.match(CnsMRParser.PsiStep)
                self.state = 655
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 654
                    self.match(CnsMRParser.Equ_op)


                self.state = 657
                self.number_s()
                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 8)
                self.state = 658
                self.match(CnsMRParser.Potential)
                self.state = 660
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 659
                    self.match(CnsMRParser.Equ_op)


                self.state = 662
                self.match(CnsMRParser.Rdc_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 9)
                self.state = 663
                self.match(CnsMRParser.Print)
                self.state = 664
                self.match(CnsMRParser.Threshold)
                self.state = 665
                self.number_s()
                pass
            elif token in [CnsMRParser.End, CnsMRParser.Rcoil]:
                self.enterOuterAlt(localctx, 10)
                self.state = 669
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Rcoil:
                    self.state = 666
                    self.carbon_shift_rcoil()
                    self.state = 671
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 11)
                self.state = 672
                self.match(CnsMRParser.Reset)
                pass
            elif token in [CnsMRParser.Zero]:
                self.enterOuterAlt(localctx, 12)
                self.state = 673
                self.match(CnsMRParser.Zero)
                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 Carbon_shift_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_carbon_shift_assign

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

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




    def carbon_shift_assign(self):

        localctx = CnsMRParser.Carbon_shift_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 52, self.RULE_carbon_shift_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 676
            self.match(CnsMRParser.Assign)
            self.state = 677
            self.selection()
            self.state = 678
            self.selection()
            self.state = 679
            self.selection()
            self.state = 680
            self.selection()
            self.state = 681
            self.selection()
            self.state = 682
            self.number()
            self.state = 683
            self.number()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Carbon_shift_rcoilContext(ParserRuleContext):

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

        def Rcoil(self):
            return self.getToken(CnsMRParser.Rcoil, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_carbon_shift_rcoil

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

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




    def carbon_shift_rcoil(self):

        localctx = CnsMRParser.Carbon_shift_rcoilContext(self, self._ctx, self.state)
        self.enterRule(localctx, 54, self.RULE_carbon_shift_rcoil)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 685
            self.match(CnsMRParser.Rcoil)
            self.state = 686
            self.selection()
            self.state = 687
            self.number_s()
            self.state = 688
            self.number_s()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_statementContext(ParserRuleContext):

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

        def observed(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.ObservedContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.ObservedContext,i)


        def proton_shift_rcoil(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_rcoilContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_rcoilContext,i)


        def proton_shift_anisotropy(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_anisotropyContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_anisotropyContext,i)


        def proton_shift_amides(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_amidesContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_amidesContext,i)


        def proton_shift_carbons(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_carbonsContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_carbonsContext,i)


        def proton_shift_nitrogens(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_nitrogensContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_nitrogensContext,i)


        def proton_shift_oxygens(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_oxygensContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_oxygensContext,i)


        def proton_shift_ring_atoms(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_ring_atomsContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_ring_atomsContext,i)


        def proton_shift_alphas_and_amides(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Proton_shift_alphas_and_amidesContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Proton_shift_alphas_and_amidesContext,i)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

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

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Error(self):
            return self.getToken(CnsMRParser.Error, 0)

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Coupling_potential(self):
            return self.getToken(CnsMRParser.Coupling_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def All(self):
            return self.getToken(CnsMRParser.All, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_statement

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

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




    def proton_shift_statement(self):

        localctx = CnsMRParser.Proton_shift_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 56, self.RULE_proton_shift_statement)
        self._la = 0 # Token type
        try:
            self.state = 775
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,93,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 693
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Observed:
                    self.state = 690
                    self.observed()
                    self.state = 695
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 699
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Rcoil:
                    self.state = 696
                    self.proton_shift_rcoil()
                    self.state = 701
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 705
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Anisotropy:
                    self.state = 702
                    self.proton_shift_anisotropy()
                    self.state = 707
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 711
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Amides:
                    self.state = 708
                    self.proton_shift_amides()
                    self.state = 713
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 717
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Carbons:
                    self.state = 714
                    self.proton_shift_carbons()
                    self.state = 719
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 723
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Nitrogens:
                    self.state = 720
                    self.proton_shift_nitrogens()
                    self.state = 725
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 7:
                self.enterOuterAlt(localctx, 7)
                self.state = 729
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.Oxygens:
                    self.state = 726
                    self.proton_shift_oxygens()
                    self.state = 731
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 8:
                self.enterOuterAlt(localctx, 8)
                self.state = 735
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.RingAtoms:
                    self.state = 732
                    self.proton_shift_ring_atoms()
                    self.state = 737
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 9:
                self.enterOuterAlt(localctx, 9)
                self.state = 741
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==CnsMRParser.AlphasAndAmides:
                    self.state = 738
                    self.proton_shift_alphas_and_amides()
                    self.state = 743
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 10:
                self.enterOuterAlt(localctx, 10)
                self.state = 744
                self.match(CnsMRParser.Classification)
                self.state = 746
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 745
                    self.match(CnsMRParser.Equ_op)


                self.state = 748
                self.match(CnsMRParser.Simple_name)
                pass

            elif la_ == 11:
                self.enterOuterAlt(localctx, 11)
                self.state = 749
                self.match(CnsMRParser.Error)
                self.state = 751
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 750
                    self.match(CnsMRParser.Equ_op)


                self.state = 753
                self.number_s()
                pass

            elif la_ == 12:
                self.enterOuterAlt(localctx, 12)
                self.state = 754
                self.match(CnsMRParser.ForceConstant)
                self.state = 755
                self.number_s()
                self.state = 757
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Integer or _la==CnsMRParser.Real:
                    self.state = 756
                    self.number_s()


                pass

            elif la_ == 13:
                self.enterOuterAlt(localctx, 13)
                self.state = 759
                self.match(CnsMRParser.Potential)
                self.state = 760
                self.match(CnsMRParser.Coupling_potential)
                pass

            elif la_ == 14:
                self.enterOuterAlt(localctx, 14)
                self.state = 761
                self.match(CnsMRParser.Print)
                self.state = 762
                self.match(CnsMRParser.Threshold)
                self.state = 763
                self.number_s()
                self.state = 770
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.All]:
                    self.state = 764
                    self.match(CnsMRParser.All)
                    pass
                elif token in [CnsMRParser.Classification]:
                    self.state = 765
                    self.match(CnsMRParser.Classification)
                    self.state = 767
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Equ_op:
                        self.state = 766
                        self.match(CnsMRParser.Equ_op)


                    self.state = 769
                    self.match(CnsMRParser.Simple_name)
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 772
                self.match(CnsMRParser.Simple_name)
                pass

            elif la_ == 15:
                self.enterOuterAlt(localctx, 15)
                self.state = 774
                self.match(CnsMRParser.Reset)
                pass


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


    class ObservedContext(ParserRuleContext):

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

        def Observed(self):
            return self.getToken(CnsMRParser.Observed, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_observed

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

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




    def observed(self):

        localctx = CnsMRParser.ObservedContext(self, self._ctx, self.state)
        self.enterRule(localctx, 58, self.RULE_observed)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 777
            self.match(CnsMRParser.Observed)
            self.state = 778
            self.selection()
            self.state = 780
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.L_paren:
                self.state = 779
                self.selection()


            self.state = 782
            self.number_s()
            self.state = 784
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.Integer or _la==CnsMRParser.Real:
                self.state = 783
                self.number_s()


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


    class Proton_shift_rcoilContext(ParserRuleContext):

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

        def Rcoil(self):
            return self.getToken(CnsMRParser.Rcoil, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def number_s(self):
            return self.getTypedRuleContext(CnsMRParser.Number_sContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_rcoil

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

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




    def proton_shift_rcoil(self):

        localctx = CnsMRParser.Proton_shift_rcoilContext(self, self._ctx, self.state)
        self.enterRule(localctx, 60, self.RULE_proton_shift_rcoil)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 786
            self.match(CnsMRParser.Rcoil)
            self.state = 787
            self.selection()
            self.state = 788
            self.number_s()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_anisotropyContext(ParserRuleContext):

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

        def Anisotropy(self):
            return self.getToken(CnsMRParser.Anisotropy, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


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

        def Logical(self):
            return self.getToken(CnsMRParser.Logical, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_anisotropy

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

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




    def proton_shift_anisotropy(self):

        localctx = CnsMRParser.Proton_shift_anisotropyContext(self, self._ctx, self.state)
        self.enterRule(localctx, 62, self.RULE_proton_shift_anisotropy)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 790
            self.match(CnsMRParser.Anisotropy)
            self.state = 791
            self.selection()
            self.state = 792
            self.selection()
            self.state = 793
            self.selection()
            self.state = 794
            self.match(CnsMRParser.Simple_name)
            self.state = 796
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.Logical:
                self.state = 795
                self.match(CnsMRParser.Logical)


            self.state = 798
            self.match(CnsMRParser.Simple_name)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_amidesContext(ParserRuleContext):

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

        def Amides(self):
            return self.getToken(CnsMRParser.Amides, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_amides

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

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




    def proton_shift_amides(self):

        localctx = CnsMRParser.Proton_shift_amidesContext(self, self._ctx, self.state)
        self.enterRule(localctx, 64, self.RULE_proton_shift_amides)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 800
            self.match(CnsMRParser.Amides)
            self.state = 801
            self.selection()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_carbonsContext(ParserRuleContext):

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

        def Carbons(self):
            return self.getToken(CnsMRParser.Carbons, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_carbons

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

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




    def proton_shift_carbons(self):

        localctx = CnsMRParser.Proton_shift_carbonsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 66, self.RULE_proton_shift_carbons)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 803
            self.match(CnsMRParser.Carbons)
            self.state = 804
            self.selection()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_nitrogensContext(ParserRuleContext):

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

        def Nitrogens(self):
            return self.getToken(CnsMRParser.Nitrogens, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_nitrogens

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

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




    def proton_shift_nitrogens(self):

        localctx = CnsMRParser.Proton_shift_nitrogensContext(self, self._ctx, self.state)
        self.enterRule(localctx, 68, self.RULE_proton_shift_nitrogens)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 806
            self.match(CnsMRParser.Nitrogens)
            self.state = 807
            self.selection()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_oxygensContext(ParserRuleContext):

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

        def Oxygens(self):
            return self.getToken(CnsMRParser.Oxygens, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_oxygens

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

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




    def proton_shift_oxygens(self):

        localctx = CnsMRParser.Proton_shift_oxygensContext(self, self._ctx, self.state)
        self.enterRule(localctx, 70, self.RULE_proton_shift_oxygens)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 809
            self.match(CnsMRParser.Oxygens)
            self.state = 810
            self.selection()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Proton_shift_ring_atomsContext(ParserRuleContext):

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

        def RingAtoms(self):
            return self.getToken(CnsMRParser.RingAtoms, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_ring_atoms

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

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




    def proton_shift_ring_atoms(self):

        localctx = CnsMRParser.Proton_shift_ring_atomsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 72, self.RULE_proton_shift_ring_atoms)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 812
            self.match(CnsMRParser.RingAtoms)
            self.state = 813
            self.match(CnsMRParser.Simple_name)
            self.state = 814
            self.selection()
            self.state = 815
            self.selection()
            self.state = 816
            self.selection()
            self.state = 817
            self.selection()
            self.state = 818
            self.selection()
            self.state = 820
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.L_paren:
                self.state = 819
                self.selection()


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


    class Proton_shift_alphas_and_amidesContext(ParserRuleContext):

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

        def AlphasAndAmides(self):
            return self.getToken(CnsMRParser.AlphasAndAmides, 0)

        def selection(self):
            return self.getTypedRuleContext(CnsMRParser.SelectionContext,0)


        def getRuleIndex(self):
            return CnsMRParser.RULE_proton_shift_alphas_and_amides

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

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




    def proton_shift_alphas_and_amides(self):

        localctx = CnsMRParser.Proton_shift_alphas_and_amidesContext(self, self._ctx, self.state)
        self.enterRule(localctx, 74, self.RULE_proton_shift_alphas_and_amides)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 822
            self.match(CnsMRParser.AlphasAndAmides)
            self.state = 823
            self.selection()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Conformation_statementContext(ParserRuleContext):

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

        def conf_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Conf_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Compressed(self):
            return self.getToken(CnsMRParser.Compressed, 0)

        def Expectation(self):
            return self.getToken(CnsMRParser.Expectation, 0)

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

        def number_s(self):
            return self.getTypedRuleContext(CnsMRParser.Number_sContext,0)


        def Error(self):
            return self.getToken(CnsMRParser.Error, 0)

        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Phase(self):
            return self.getToken(CnsMRParser.Phase, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Rdc_potential(self):
            return self.getToken(CnsMRParser.Rdc_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def All(self):
            return self.getToken(CnsMRParser.All, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def Size(self):
            return self.getToken(CnsMRParser.Size, 0)

        def Dimensions(self):
            return self.getToken(CnsMRParser.Dimensions, 0)

        def Zero(self):
            return self.getToken(CnsMRParser.Zero, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_conformation_statement

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

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




    def conformation_statement(self):

        localctx = CnsMRParser.Conformation_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 76, self.RULE_conformation_statement)
        self._la = 0 # Token type
        try:
            self.state = 908
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 825
                self.conf_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 826
                self.match(CnsMRParser.Classification)
                self.state = 828
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 827
                    self.match(CnsMRParser.Equ_op)


                self.state = 830
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Compressed]:
                self.enterOuterAlt(localctx, 3)
                self.state = 831
                self.match(CnsMRParser.Compressed)
                pass
            elif token in [CnsMRParser.Expectation]:
                self.enterOuterAlt(localctx, 4)
                self.state = 832
                self.match(CnsMRParser.Expectation)
                self.state = 833
                self.match(CnsMRParser.Integer)
                self.state = 835
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,99,self._ctx)
                if la_ == 1:
                    self.state = 834
                    self.match(CnsMRParser.Integer)


                self.state = 838
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,100,self._ctx)
                if la_ == 1:
                    self.state = 837
                    self.match(CnsMRParser.Integer)


                self.state = 841
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,101,self._ctx)
                if la_ == 1:
                    self.state = 840
                    self.match(CnsMRParser.Integer)


                self.state = 843
                self.number_s()
                pass
            elif token in [CnsMRParser.Error]:
                self.enterOuterAlt(localctx, 5)
                self.state = 844
                self.match(CnsMRParser.Error)
                self.state = 846
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 845
                    self.match(CnsMRParser.Equ_op)


                self.state = 848
                self.number_s()
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 6)
                self.state = 849
                self.match(CnsMRParser.ForceConstant)
                self.state = 851
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 850
                    self.match(CnsMRParser.Equ_op)


                self.state = 853
                self.number_s()
                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 7)
                self.state = 854
                self.match(CnsMRParser.Nrestraints)
                self.state = 856
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 855
                    self.match(CnsMRParser.Equ_op)


                self.state = 858
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Phase]:
                self.enterOuterAlt(localctx, 8)
                self.state = 859
                self.match(CnsMRParser.Phase)
                self.state = 860
                self.match(CnsMRParser.Integer)
                self.state = 861
                self.match(CnsMRParser.Integer)
                self.state = 862
                self.match(CnsMRParser.Integer)
                self.state = 866
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,105,self._ctx)
                if la_ == 1:
                    self.state = 863
                    self.match(CnsMRParser.Integer)
                    self.state = 864
                    self.match(CnsMRParser.Integer)
                    self.state = 865
                    self.match(CnsMRParser.Integer)


                self.state = 871
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,106,self._ctx)
                if la_ == 1:
                    self.state = 868
                    self.match(CnsMRParser.Integer)
                    self.state = 869
                    self.match(CnsMRParser.Integer)
                    self.state = 870
                    self.match(CnsMRParser.Integer)


                self.state = 876
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Integer:
                    self.state = 873
                    self.match(CnsMRParser.Integer)
                    self.state = 874
                    self.match(CnsMRParser.Integer)
                    self.state = 875
                    self.match(CnsMRParser.Integer)


                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 9)
                self.state = 878
                self.match(CnsMRParser.Potential)
                self.state = 880
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 879
                    self.match(CnsMRParser.Equ_op)


                self.state = 882
                self.match(CnsMRParser.Rdc_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 10)
                self.state = 883
                self.match(CnsMRParser.Print)
                self.state = 884
                self.match(CnsMRParser.Threshold)
                self.state = 885
                self.number_s()
                self.state = 892
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.All]:
                    self.state = 886
                    self.match(CnsMRParser.All)
                    pass
                elif token in [CnsMRParser.Classification]:
                    self.state = 887
                    self.match(CnsMRParser.Classification)
                    self.state = 889
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Equ_op:
                        self.state = 888
                        self.match(CnsMRParser.Equ_op)


                    self.state = 891
                    self.match(CnsMRParser.Simple_name)
                    pass
                else:
                    raise NoViableAltException(self)

                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 11)
                self.state = 894
                self.match(CnsMRParser.Reset)
                pass
            elif token in [CnsMRParser.Size]:
                self.enterOuterAlt(localctx, 12)
                self.state = 895
                self.match(CnsMRParser.Size)
                self.state = 896
                self.match(CnsMRParser.Dimensions)
                self.state = 897
                self.match(CnsMRParser.Integer)
                self.state = 899
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,111,self._ctx)
                if la_ == 1:
                    self.state = 898
                    self.match(CnsMRParser.Integer)


                self.state = 902
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,112,self._ctx)
                if la_ == 1:
                    self.state = 901
                    self.match(CnsMRParser.Integer)


                self.state = 905
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Integer:
                    self.state = 904
                    self.match(CnsMRParser.Integer)


                pass
            elif token in [CnsMRParser.Zero]:
                self.enterOuterAlt(localctx, 13)
                self.state = 907
                self.match(CnsMRParser.Zero)
                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 Conf_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_conf_assign

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

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




    def conf_assign(self):

        localctx = CnsMRParser.Conf_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 78, self.RULE_conf_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 910
            self.match(CnsMRParser.Assign)
            self.state = 911
            self.selection()
            self.state = 912
            self.selection()
            self.state = 913
            self.selection()
            self.state = 914
            self.selection()
            self.state = 920
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,115,self._ctx)
            if la_ == 1:
                self.state = 915
                self.selection()
                self.state = 916
                self.selection()
                self.state = 917
                self.selection()
                self.state = 918
                self.selection()


            self.state = 927
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,116,self._ctx)
            if la_ == 1:
                self.state = 922
                self.selection()
                self.state = 923
                self.selection()
                self.state = 924
                self.selection()
                self.state = 925
                self.selection()


            self.state = 934
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.L_paren:
                self.state = 929
                self.selection()
                self.state = 930
                self.selection()
                self.state = 931
                self.selection()
                self.state = 932
                self.selection()


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


    class Diffusion_statementContext(ParserRuleContext):

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

        def dani_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Dani_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Coefficients(self):
            return self.getToken(CnsMRParser.Coefficients, 0)

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Rdc_potential(self):
            return self.getToken(CnsMRParser.Rdc_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_diffusion_statement

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

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




    def diffusion_statement(self):

        localctx = CnsMRParser.Diffusion_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 80, self.RULE_diffusion_statement)
        self._la = 0 # Token type
        try:
            self.state = 968
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 936
                self.dani_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 937
                self.match(CnsMRParser.Classification)
                self.state = 939
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 938
                    self.match(CnsMRParser.Equ_op)


                self.state = 941
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Coefficients]:
                self.enterOuterAlt(localctx, 3)
                self.state = 942
                self.match(CnsMRParser.Coefficients)
                self.state = 943
                self.number_s()
                self.state = 944
                self.number_s()
                self.state = 945
                self.number_s()
                self.state = 946
                self.number_s()
                self.state = 947
                self.number_s()
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 4)
                self.state = 949
                self.match(CnsMRParser.ForceConstant)
                self.state = 951
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 950
                    self.match(CnsMRParser.Equ_op)


                self.state = 953
                self.number_s()
                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 5)
                self.state = 954
                self.match(CnsMRParser.Nrestraints)
                self.state = 956
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 955
                    self.match(CnsMRParser.Equ_op)


                self.state = 958
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 6)
                self.state = 959
                self.match(CnsMRParser.Potential)
                self.state = 961
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 960
                    self.match(CnsMRParser.Equ_op)


                self.state = 963
                self.match(CnsMRParser.Rdc_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 7)
                self.state = 964
                self.match(CnsMRParser.Print)
                self.state = 965
                self.match(CnsMRParser.Threshold)
                self.state = 966
                self.number_s()
                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 8)
                self.state = 967
                self.match(CnsMRParser.Reset)
                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 Dani_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_dani_assign

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

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




    def dani_assign(self):

        localctx = CnsMRParser.Dani_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 82, self.RULE_dani_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 970
            self.match(CnsMRParser.Assign)
            self.state = 971
            self.selection()
            self.state = 972
            self.selection()
            self.state = 973
            self.selection()
            self.state = 974
            self.selection()
            self.state = 975
            self.selection()
            self.state = 976
            self.selection()
            self.state = 977
            self.number()
            self.state = 978
            self.number()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class One_bond_coupling_statementContext(ParserRuleContext):

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

        def one_bond_assign(self):
            return self.getTypedRuleContext(CnsMRParser.One_bond_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def Coefficients(self):
            return self.getToken(CnsMRParser.Coefficients, 0)

        def number_s(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_sContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_sContext,i)


        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Rdc_potential(self):
            return self.getToken(CnsMRParser.Rdc_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_one_bond_coupling_statement

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

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




    def one_bond_coupling_statement(self):

        localctx = CnsMRParser.One_bond_coupling_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 84, self.RULE_one_bond_coupling_statement)
        self._la = 0 # Token type
        try:
            self.state = 1014
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 980
                self.one_bond_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 981
                self.match(CnsMRParser.Classification)
                self.state = 983
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 982
                    self.match(CnsMRParser.Equ_op)


                self.state = 985
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Coefficients]:
                self.enterOuterAlt(localctx, 3)
                self.state = 986
                self.match(CnsMRParser.Coefficients)
                self.state = 987
                self.number_s()
                self.state = 988
                self.number_s()
                self.state = 989
                self.number_s()
                self.state = 990
                self.number_s()
                self.state = 991
                self.number_s()
                self.state = 992
                self.number_s()
                self.state = 993
                self.number_s()
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 4)
                self.state = 995
                self.match(CnsMRParser.ForceConstant)
                self.state = 997
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 996
                    self.match(CnsMRParser.Equ_op)


                self.state = 999
                self.number_s()
                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 5)
                self.state = 1000
                self.match(CnsMRParser.Nrestraints)
                self.state = 1002
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1001
                    self.match(CnsMRParser.Equ_op)


                self.state = 1004
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 6)
                self.state = 1005
                self.match(CnsMRParser.Potential)
                self.state = 1007
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1006
                    self.match(CnsMRParser.Equ_op)


                self.state = 1009
                self.match(CnsMRParser.Rdc_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 7)
                self.state = 1010
                self.match(CnsMRParser.Print)
                self.state = 1011
                self.match(CnsMRParser.Threshold)
                self.state = 1012
                self.number_s()
                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 8)
                self.state = 1013
                self.match(CnsMRParser.Reset)
                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 One_bond_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def number(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.NumberContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.NumberContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_one_bond_assign

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

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




    def one_bond_assign(self):

        localctx = CnsMRParser.One_bond_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 86, self.RULE_one_bond_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1016
            self.match(CnsMRParser.Assign)
            self.state = 1017
            self.selection()
            self.state = 1018
            self.selection()
            self.state = 1019
            self.selection()
            self.state = 1020
            self.selection()
            self.state = 1021
            self.selection()
            self.state = 1022
            self.selection()
            self.state = 1023
            self.selection()
            self.state = 1024
            self.selection()
            self.state = 1025
            self.number()
            self.state = 1026
            self.number()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Angle_db_statementContext(ParserRuleContext):

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

        def angle_db_assign(self):
            return self.getTypedRuleContext(CnsMRParser.Angle_db_assignContext,0)


        def Classification(self):
            return self.getToken(CnsMRParser.Classification, 0)

        def Simple_name(self):
            return self.getToken(CnsMRParser.Simple_name, 0)

        def Equ_op(self):
            return self.getToken(CnsMRParser.Equ_op, 0)

        def DerivFlag(self):
            return self.getToken(CnsMRParser.DerivFlag, 0)

        def Expectation(self):
            return self.getToken(CnsMRParser.Expectation, 0)

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

        def number_s(self):
            return self.getTypedRuleContext(CnsMRParser.Number_sContext,0)


        def Error(self):
            return self.getToken(CnsMRParser.Error, 0)

        def ForceConstant(self):
            return self.getToken(CnsMRParser.ForceConstant, 0)

        def Nrestraints(self):
            return self.getToken(CnsMRParser.Nrestraints, 0)

        def Potential(self):
            return self.getToken(CnsMRParser.Potential, 0)

        def Rdc_potential(self):
            return self.getToken(CnsMRParser.Rdc_potential, 0)

        def Print(self):
            return self.getToken(CnsMRParser.Print, 0)

        def Threshold(self):
            return self.getToken(CnsMRParser.Threshold, 0)

        def All(self):
            return self.getToken(CnsMRParser.All, 0)

        def Reset(self):
            return self.getToken(CnsMRParser.Reset, 0)

        def Size(self):
            return self.getToken(CnsMRParser.Size, 0)

        def Angle_dihedral(self):
            return self.getToken(CnsMRParser.Angle_dihedral, 0)

        def Zero(self):
            return self.getToken(CnsMRParser.Zero, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_angle_db_statement

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

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




    def angle_db_statement(self):

        localctx = CnsMRParser.Angle_db_statementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 88, self.RULE_angle_db_statement)
        self._la = 0 # Token type
        try:
            self.state = 1080
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [CnsMRParser.Assign]:
                self.enterOuterAlt(localctx, 1)
                self.state = 1028
                self.angle_db_assign()
                pass
            elif token in [CnsMRParser.Classification]:
                self.enterOuterAlt(localctx, 2)
                self.state = 1029
                self.match(CnsMRParser.Classification)
                self.state = 1031
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1030
                    self.match(CnsMRParser.Equ_op)


                self.state = 1033
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.DerivFlag]:
                self.enterOuterAlt(localctx, 3)
                self.state = 1034
                self.match(CnsMRParser.DerivFlag)
                self.state = 1036
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1035
                    self.match(CnsMRParser.Equ_op)


                self.state = 1038
                self.match(CnsMRParser.Simple_name)
                pass
            elif token in [CnsMRParser.Expectation]:
                self.enterOuterAlt(localctx, 4)
                self.state = 1039
                self.match(CnsMRParser.Expectation)
                self.state = 1040
                self.match(CnsMRParser.Integer)
                self.state = 1041
                self.match(CnsMRParser.Integer)
                self.state = 1042
                self.number_s()
                pass
            elif token in [CnsMRParser.Error]:
                self.enterOuterAlt(localctx, 5)
                self.state = 1043
                self.match(CnsMRParser.Error)
                self.state = 1045
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1044
                    self.match(CnsMRParser.Equ_op)


                self.state = 1047
                self.number_s()
                pass
            elif token in [CnsMRParser.ForceConstant]:
                self.enterOuterAlt(localctx, 6)
                self.state = 1048
                self.match(CnsMRParser.ForceConstant)
                self.state = 1050
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1049
                    self.match(CnsMRParser.Equ_op)


                self.state = 1052
                self.number_s()
                pass
            elif token in [CnsMRParser.Nrestraints]:
                self.enterOuterAlt(localctx, 7)
                self.state = 1053
                self.match(CnsMRParser.Nrestraints)
                self.state = 1055
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1054
                    self.match(CnsMRParser.Equ_op)


                self.state = 1057
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Potential]:
                self.enterOuterAlt(localctx, 8)
                self.state = 1058
                self.match(CnsMRParser.Potential)
                self.state = 1060
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1059
                    self.match(CnsMRParser.Equ_op)


                self.state = 1062
                self.match(CnsMRParser.Rdc_potential)
                pass
            elif token in [CnsMRParser.Print]:
                self.enterOuterAlt(localctx, 9)
                self.state = 1063
                self.match(CnsMRParser.Print)
                self.state = 1064
                self.match(CnsMRParser.Threshold)
                self.state = 1065
                self.number_s()
                self.state = 1072
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.All]:
                    self.state = 1066
                    self.match(CnsMRParser.All)
                    pass
                elif token in [CnsMRParser.Classification]:
                    self.state = 1067
                    self.match(CnsMRParser.Classification)
                    self.state = 1069
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Equ_op:
                        self.state = 1068
                        self.match(CnsMRParser.Equ_op)


                    self.state = 1071
                    self.match(CnsMRParser.Simple_name)
                    pass
                else:
                    raise NoViableAltException(self)

                pass
            elif token in [CnsMRParser.Reset]:
                self.enterOuterAlt(localctx, 10)
                self.state = 1074
                self.match(CnsMRParser.Reset)
                pass
            elif token in [CnsMRParser.Size]:
                self.enterOuterAlt(localctx, 11)
                self.state = 1075
                self.match(CnsMRParser.Size)
                self.state = 1076
                self.match(CnsMRParser.Angle_dihedral)
                self.state = 1077
                self.match(CnsMRParser.Integer)
                self.state = 1078
                self.match(CnsMRParser.Integer)
                pass
            elif token in [CnsMRParser.Zero]:
                self.enterOuterAlt(localctx, 12)
                self.state = 1079
                self.match(CnsMRParser.Zero)
                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 Angle_db_assignContext(ParserRuleContext):

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

        def Assign(self):
            return self.getToken(CnsMRParser.Assign, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


        def getRuleIndex(self):
            return CnsMRParser.RULE_angle_db_assign

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

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




    def angle_db_assign(self):

        localctx = CnsMRParser.Angle_db_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 90, self.RULE_angle_db_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1082
            self.match(CnsMRParser.Assign)
            self.state = 1083
            self.selection()
            self.state = 1084
            self.selection()
            self.state = 1085
            self.selection()
            self.state = 1086
            self.selection()
            self.state = 1087
            self.selection()
            self.state = 1088
            self.selection()
            self.state = 1089
            self.selection()
            self.state = 1090
            self.selection()
            self.state = 1091
            self.selection()
            self.state = 1092
            self.selection()
            self.state = 1093
            self.selection()
            self.state = 1095
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==CnsMRParser.L_paren:
                self.state = 1094
                self.selection()


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


    class SelectionContext(ParserRuleContext):

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

        def L_paren(self):
            return self.getToken(CnsMRParser.L_paren, 0)

        def selection_expression(self):
            return self.getTypedRuleContext(CnsMRParser.Selection_expressionContext,0)


        def R_paren(self):
            return self.getToken(CnsMRParser.R_paren, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_selection

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

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




    def selection(self):

        localctx = CnsMRParser.SelectionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 92, self.RULE_selection)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1097
            self.match(CnsMRParser.L_paren)
            self.state = 1098
            self.selection_expression()
            self.state = 1099
            self.match(CnsMRParser.R_paren)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Selection_expressionContext(ParserRuleContext):

        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(CnsMRParser.TermContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.TermContext,i)


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

        def getRuleIndex(self):
            return CnsMRParser.RULE_selection_expression

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

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




    def selection_expression(self):

        localctx = CnsMRParser.Selection_expressionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 94, self.RULE_selection_expression)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1101
            self.term()
            self.state = 1106
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==CnsMRParser.Or_op:
                self.state = 1102
                self.match(CnsMRParser.Or_op)
                self.state = 1103
                self.term()
                self.state = 1108
                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 TermContext(ParserRuleContext):

        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(CnsMRParser.FactorContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.FactorContext,i)


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

        def getRuleIndex(self):
            return CnsMRParser.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 = CnsMRParser.TermContext(self, self._ctx, self.state)
        self.enterRule(localctx, 96, self.RULE_term)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1109
            self.factor(0)
            self.state = 1114
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==CnsMRParser.And_op:
                self.state = 1110
                self.match(CnsMRParser.And_op)
                self.state = 1111
                self.factor(0)
                self.state = 1116
                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 FactorContext(ParserRuleContext):

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

        def L_paren(self):
            return self.getToken(CnsMRParser.L_paren, 0)

        def selection_expression(self):
            return self.getTypedRuleContext(CnsMRParser.Selection_expressionContext,0)


        def R_paren(self):
            return self.getToken(CnsMRParser.R_paren, 0)

        def All(self):
            return self.getToken(CnsMRParser.All, 0)

        def Atom(self):
            return self.getToken(CnsMRParser.Atom, 0)

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

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

        def Integers(self):
            return self.getToken(CnsMRParser.Integers, 0)

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

        def Attribute(self):
            return self.getToken(CnsMRParser.Attribute, 0)

        def Attr_properties(self):
            return self.getToken(CnsMRParser.Attr_properties, 0)

        def Comparison_ops(self):
            return self.getToken(CnsMRParser.Comparison_ops, 0)

        def number_f(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.Number_fContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.Number_fContext,i)


        def Abs(self):
            return self.getToken(CnsMRParser.Abs, 0)

        def BondedTo(self):
            return self.getToken(CnsMRParser.BondedTo, 0)

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


        def ByGroup(self):
            return self.getToken(CnsMRParser.ByGroup, 0)

        def ByRes(self):
            return self.getToken(CnsMRParser.ByRes, 0)

        def Chemical(self):
            return self.getToken(CnsMRParser.Chemical, 0)

        def Colon(self):
            return self.getToken(CnsMRParser.Colon, 0)

        def Fbox(self):
            return self.getToken(CnsMRParser.Fbox, 0)

        def Hydrogen(self):
            return self.getToken(CnsMRParser.Hydrogen, 0)

        def Id(self):
            return self.getToken(CnsMRParser.Id, 0)

        def Known(self):
            return self.getToken(CnsMRParser.Known, 0)

        def Name(self):
            return self.getToken(CnsMRParser.Name, 0)

        def NONE(self):
            return self.getToken(CnsMRParser.NONE, 0)

        def Not_op(self):
            return self.getToken(CnsMRParser.Not_op, 0)

        def Point(self):
            return self.getToken(CnsMRParser.Point, 0)

        def Cut(self):
            return self.getToken(CnsMRParser.Cut, 0)

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

        def Tail(self):
            return self.getToken(CnsMRParser.Tail, 0)

        def selection(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(CnsMRParser.SelectionContext)
            else:
                return self.getTypedRuleContext(CnsMRParser.SelectionContext,i)


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

        def Head(self):
            return self.getToken(CnsMRParser.Head, 0)

        def Previous(self):
            return self.getToken(CnsMRParser.Previous, 0)

        def Pseudo(self):
            return self.getToken(CnsMRParser.Pseudo, 0)

        def Residue(self):
            return self.getToken(CnsMRParser.Residue, 0)

        def Resname(self):
            return self.getToken(CnsMRParser.Resname, 0)

        def SegIdentifier(self):
            return self.getToken(CnsMRParser.SegIdentifier, 0)

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

        def Sfbox(self):
            return self.getToken(CnsMRParser.Sfbox, 0)

        def Store_1(self):
            return self.getToken(CnsMRParser.Store_1, 0)

        def Store_2(self):
            return self.getToken(CnsMRParser.Store_2, 0)

        def Store_3(self):
            return self.getToken(CnsMRParser.Store_3, 0)

        def Store_4(self):
            return self.getToken(CnsMRParser.Store_4, 0)

        def Store_5(self):
            return self.getToken(CnsMRParser.Store_5, 0)

        def Store_6(self):
            return self.getToken(CnsMRParser.Store_6, 0)

        def Store_7(self):
            return self.getToken(CnsMRParser.Store_7, 0)

        def Store_8(self):
            return self.getToken(CnsMRParser.Store_8, 0)

        def Store_9(self):
            return self.getToken(CnsMRParser.Store_9, 0)

        def Tag(self):
            return self.getToken(CnsMRParser.Tag, 0)

        def Around(self):
            return self.getToken(CnsMRParser.Around, 0)

        def Saround(self):
            return self.getToken(CnsMRParser.Saround, 0)

        def getRuleIndex(self):
            return CnsMRParser.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, _p:int=0):
        _parentctx = self._ctx
        _parentState = self.state
        localctx = CnsMRParser.FactorContext(self, self._ctx, _parentState)
        _prevctx = localctx
        _startState = 98
        self.enterRecursionRule(localctx, 98, self.RULE_factor, _p)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1261
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,158,self._ctx)
            if la_ == 1:
                self.state = 1118
                self.match(CnsMRParser.L_paren)
                self.state = 1119
                self.selection_expression()
                self.state = 1120
                self.match(CnsMRParser.R_paren)
                pass

            elif la_ == 2:
                self.state = 1122
                self.match(CnsMRParser.All)
                pass

            elif la_ == 3:
                self.state = 1123
                self.match(CnsMRParser.Atom)
                self.state = 1124
                _la = self._input.LA(1)
                if not(_la==CnsMRParser.Simple_name or _la==CnsMRParser.Simple_names):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 1125
                _la = self._input.LA(1)
                if not(_la==CnsMRParser.Integer or _la==CnsMRParser.Integers):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 1126
                _la = self._input.LA(1)
                if not(_la==CnsMRParser.Simple_name or _la==CnsMRParser.Simple_names):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass

            elif la_ == 4:
                self.state = 1127
                self.match(CnsMRParser.Attribute)
                self.state = 1129
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Abs:
                    self.state = 1128
                    self.match(CnsMRParser.Abs)


                self.state = 1131
                self.match(CnsMRParser.Attr_properties)
                self.state = 1132
                self.match(CnsMRParser.Comparison_ops)
                self.state = 1133
                self.number_f()
                pass

            elif la_ == 5:
                self.state = 1134
                self.match(CnsMRParser.BondedTo)
                self.state = 1135
                self.factor(30)
                pass

            elif la_ == 6:
                self.state = 1136
                self.match(CnsMRParser.ByGroup)
                self.state = 1137
                self.factor(29)
                pass

            elif la_ == 7:
                self.state = 1138
                self.match(CnsMRParser.ByRes)
                self.state = 1139
                self.factor(28)
                pass

            elif la_ == 8:
                self.state = 1140
                self.match(CnsMRParser.Chemical)
                self.state = 1147
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.Simple_names]:
                    self.state = 1141
                    self.match(CnsMRParser.Simple_names)
                    pass
                elif token in [CnsMRParser.Simple_name]:
                    self.state = 1142
                    self.match(CnsMRParser.Simple_name)
                    self.state = 1145
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,141,self._ctx)
                    if la_ == 1:
                        self.state = 1143
                        self.match(CnsMRParser.Colon)
                        self.state = 1144
                        self.match(CnsMRParser.Simple_name)


                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 9:
                self.state = 1149
                self.match(CnsMRParser.Fbox)
                self.state = 1150
                self.number_f()
                self.state = 1151
                self.number_f()
                self.state = 1152
                self.number_f()
                self.state = 1153
                self.number_f()
                self.state = 1154
                self.number_f()
                self.state = 1155
                self.number_f()
                pass

            elif la_ == 10:
                self.state = 1157
                self.match(CnsMRParser.Hydrogen)
                pass

            elif la_ == 11:
                self.state = 1158
                self.match(CnsMRParser.Id)
                self.state = 1159
                self.match(CnsMRParser.Integer)
                pass

            elif la_ == 12:
                self.state = 1160
                self.match(CnsMRParser.Known)
                pass

            elif la_ == 13:
                self.state = 1161
                self.match(CnsMRParser.Name)
                self.state = 1168
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.Simple_names]:
                    self.state = 1162
                    self.match(CnsMRParser.Simple_names)
                    pass
                elif token in [CnsMRParser.Simple_name]:
                    self.state = 1163
                    self.match(CnsMRParser.Simple_name)
                    self.state = 1166
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,143,self._ctx)
                    if la_ == 1:
                        self.state = 1164
                        self.match(CnsMRParser.Colon)
                        self.state = 1165
                        self.match(CnsMRParser.Simple_name)


                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 14:
                self.state = 1170
                self.match(CnsMRParser.NONE)
                pass

            elif la_ == 15:
                self.state = 1171
                self.match(CnsMRParser.Not_op)
                self.state = 1172
                self.factor(20)
                pass

            elif la_ == 16:
                self.state = 1173
                self.match(CnsMRParser.Point)
                self.state = 1174
                self.match(CnsMRParser.L_paren)
                self.state = 1175
                self.number_f()
                self.state = 1177
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Comma:
                    self.state = 1176
                    self.match(CnsMRParser.Comma)


                self.state = 1179
                self.number_f()
                self.state = 1181
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Comma:
                    self.state = 1180
                    self.match(CnsMRParser.Comma)


                self.state = 1183
                self.number_f()
                self.state = 1184
                self.match(CnsMRParser.R_paren)
                self.state = 1185
                self.match(CnsMRParser.Cut)
                self.state = 1186
                self.number_f()
                pass

            elif la_ == 17:
                self.state = 1188
                self.match(CnsMRParser.Point)
                self.state = 1189
                self.match(CnsMRParser.L_paren)
                self.state = 1190
                self.match(CnsMRParser.Tail)
                self.state = 1192
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Equ_op:
                    self.state = 1191
                    self.match(CnsMRParser.Equ_op)


                self.state = 1194
                self.selection()
                self.state = 1196
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Comma:
                    self.state = 1195
                    self.match(CnsMRParser.Comma)


                self.state = 1203
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==CnsMRParser.Head:
                    self.state = 1198
                    self.match(CnsMRParser.Head)
                    self.state = 1200
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==CnsMRParser.Equ_op:
                        self.state = 1199
                        self.match(CnsMRParser.Equ_op)


                    self.state = 1202
                    self.selection()


                self.state = 1205
                self.match(CnsMRParser.R_paren)
                self.state = 1206
                self.match(CnsMRParser.Cut)
                self.state = 1207
                self.number_f()
                pass

            elif la_ == 18:
                self.state = 1209
                self.match(CnsMRParser.Previous)
                pass

            elif la_ == 19:
                self.state = 1210
                self.match(CnsMRParser.Pseudo)
                pass

            elif la_ == 20:
                self.state = 1211
                self.match(CnsMRParser.Residue)
                self.state = 1218
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.Integers]:
                    self.state = 1212
                    self.match(CnsMRParser.Integers)
                    pass
                elif token in [CnsMRParser.Integer]:
                    self.state = 1213
                    self.match(CnsMRParser.Integer)
                    self.state = 1216
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,151,self._ctx)
                    if la_ == 1:
                        self.state = 1214
                        self.match(CnsMRParser.Colon)
                        self.state = 1215
                        self.match(CnsMRParser.Integer)


                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 21:
                self.state = 1220
                self.match(CnsMRParser.Resname)
                self.state = 1227
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.Simple_names]:
                    self.state = 1221
                    self.match(CnsMRParser.Simple_names)
                    pass
                elif token in [CnsMRParser.Simple_name]:
                    self.state = 1222
                    self.match(CnsMRParser.Simple_name)
                    self.state = 1225
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,153,self._ctx)
                    if la_ == 1:
                        self.state = 1223
                        self.match(CnsMRParser.Colon)
                        self.state = 1224
                        self.match(CnsMRParser.Simple_name)


                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 22:
                self.state = 1229
                self.match(CnsMRParser.SegIdentifier)
                self.state = 1241
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [CnsMRParser.Simple_names]:
                    self.state = 1230
                    self.match(CnsMRParser.Simple_names)
                    pass
                elif token in [CnsMRParser.Simple_name]:
                    self.state = 1231
                    self.match(CnsMRParser.Simple_name)
                    self.state = 1234
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,155,self._ctx)
                    if la_ == 1:
                        self.state = 1232
                        self.match(CnsMRParser.Colon)
                        self.state = 1233
                        self.match(CnsMRParser.Simple_name)


                    pass
                elif token in [CnsMRParser.Double_quote_string]:
                    self.state = 1236
                    self.match(CnsMRParser.Double_quote_string)
                    self.state = 1239
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,156,self._ctx)
                    if la_ == 1:
                        self.state = 1237
                        self.match(CnsMRParser.Colon)
                        self.state = 1238
                        self.match(CnsMRParser.Double_quote_string)


                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 23:
                self.state = 1243
                self.match(CnsMRParser.Sfbox)
                self.state = 1244
                self.number_f()
                self.state = 1245
                self.number_f()
                self.state = 1246
                self.number_f()
                self.state = 1247
                self.number_f()
                self.state = 1248
                self.number_f()
                self.state = 1249
                self.number_f()
                pass

            elif la_ == 24:
                self.state = 1251
                self.match(CnsMRParser.Store_1)
                pass

            elif la_ == 25:
                self.state = 1252
                self.match(CnsMRParser.Store_2)
                pass

            elif la_ == 26:
                self.state = 1253
                self.match(CnsMRParser.Store_3)
                pass

            elif la_ == 27:
                self.state = 1254
                self.match(CnsMRParser.Store_4)
                pass

            elif la_ == 28:
                self.state = 1255
                self.match(CnsMRParser.Store_5)
                pass

            elif la_ == 29:
                self.state = 1256
                self.match(CnsMRParser.Store_6)
                pass

            elif la_ == 30:
                self.state = 1257
                self.match(CnsMRParser.Store_7)
                pass

            elif la_ == 31:
                self.state = 1258
                self.match(CnsMRParser.Store_8)
                pass

            elif la_ == 32:
                self.state = 1259
                self.match(CnsMRParser.Store_9)
                pass

            elif la_ == 33:
                self.state = 1260
                self.match(CnsMRParser.Tag)
                pass


            self._ctx.stop = self._input.LT(-1)
            self.state = 1271
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,160,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    if self._parseListeners is not None:
                        self.triggerExitRuleEvent()
                    _prevctx = localctx
                    self.state = 1269
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,159,self._ctx)
                    if la_ == 1:
                        localctx = CnsMRParser.FactorContext(self, _parentctx, _parentState)
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_factor)
                        self.state = 1263
                        if not self.precpred(self._ctx, 33):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 33)")
                        self.state = 1264
                        self.match(CnsMRParser.Around)
                        self.state = 1265
                        self.number_f()
                        pass

                    elif la_ == 2:
                        localctx = CnsMRParser.FactorContext(self, _parentctx, _parentState)
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_factor)
                        self.state = 1266
                        if not self.precpred(self._ctx, 13):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 13)")
                        self.state = 1267
                        self.match(CnsMRParser.Saround)
                        self.state = 1268
                        self.number_f()
                        pass

             
                self.state = 1273
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,160,self._ctx)

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


    class NumberContext(ParserRuleContext):

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

        def Real(self):
            return self.getToken(CnsMRParser.Real, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_number

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

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




    def number(self):

        localctx = CnsMRParser.NumberContext(self, self._ctx, self.state)
        self.enterRule(localctx, 100, self.RULE_number)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1274
            _la = self._input.LA(1)
            if not(_la==CnsMRParser.Integer or _la==CnsMRParser.Real):
                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 Number_fContext(ParserRuleContext):

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

        def Real(self):
            return self.getToken(CnsMRParser.Real, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_number_f

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

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




    def number_f(self):

        localctx = CnsMRParser.Number_fContext(self, self._ctx, self.state)
        self.enterRule(localctx, 102, self.RULE_number_f)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1276
            _la = self._input.LA(1)
            if not(_la==CnsMRParser.Integer or _la==CnsMRParser.Real):
                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 Number_sContext(ParserRuleContext):

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

        def Real(self):
            return self.getToken(CnsMRParser.Real, 0)

        def Integer(self):
            return self.getToken(CnsMRParser.Integer, 0)

        def getRuleIndex(self):
            return CnsMRParser.RULE_number_s

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

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




    def number_s(self):

        localctx = CnsMRParser.Number_sContext(self, self._ctx, self.state)
        self.enterRule(localctx, 104, self.RULE_number_s)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 1278
            _la = self._input.LA(1)
            if not(_la==CnsMRParser.Integer or _la==CnsMRParser.Real):
                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



    def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int):
        if self._predicates == None:
            self._predicates = dict()
        self._predicates[49] = self.factor_sempred
        pred = self._predicates.get(ruleIndex, None)
        if pred is None:
            raise Exception("No predicate with index:" + str(ruleIndex))
        else:
            return pred(localctx, predIndex)

    def factor_sempred(self, localctx:FactorContext, predIndex:int):
            if predIndex == 0:
                return self.precpred(self._ctx, 33)
         

            if predIndex == 1:
                return self.precpred(self._ctx, 13)
         




