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


class SystemRDLParser ( Parser ):

    grammarFileName = "SystemRDL.g4"

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

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

    sharedContextCache = PredictionContextCache()

    literalNames = [ "<INVALID>", "';'", "'{'", "'}'", "','", "'#'", "'('", 
                     "')'", "'.'", "'?'", "':'", "'''", "'['", "']'", "'::'", 
                     "'->'", "<INVALID>", "<INVALID>", "'boolean'", "'bit'", 
                     "'longint'", "'unsigned'", "'string'", "'accesstype'", 
                     "'addressingtype'", "'onreadtype'", "'onwritetype'", 
                     "'alias'", "'external'", "'internal'", "'addrmap'", 
                     "'regfile'", "'reg'", "'field'", "'mem'", "'signal'", 
                     "'true'", "'false'", "'na'", "'rw'", "'wr'", "'r'", 
                     "'w'", "'rw1'", "'w1'", "'rclr'", "'rset'", "'ruser'", 
                     "'woset'", "'woclr'", "'wot'", "'wzs'", "'wzc'", "'wzt'", 
                     "'wclr'", "'wset'", "'wuser'", "'compact'", "'regalign'", 
                     "'fullalign'", "'hw'", "'sw'", "'posedge'", "'negedge'", 
                     "'bothedge'", "'level'", "'nonsticky'", "'abstract'", 
                     "'all'", "'component'", "'componentwidth'", "'constraint'", 
                     "'default'", "'enum'", "'encode'", "'inside'", "'number'", 
                     "'property'", "'ref'", "'struct'", "'this'", "'type'", 
                     "'alternate'", "'byte'", "'int'", "'precedencetype'", 
                     "'real'", "'shortint'", "'shortreal'", "'signed'", 
                     "'with'", "'within'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'+'", "'-'", "'!'", "'~'", "'&&'", "'~&'", 
                     "'&'", "'|'", "'||'", "'~|'", "'^'", "<INVALID>", "'<<'", 
                     "'>>'", "'*'", "'**'", "'/'", "'%'", "'=='", "'='", 
                     "'!='", "'<='", "'<'", "'>='", "'>'", "'@'", "'+='", 
                     "'%='" ]

    symbolicNames = [ "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                      "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                      "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                      "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                      "SL_COMMENT", "ML_COMMENT", "BOOLEAN_kw", "BIT_kw", 
                      "LONGINT_kw", "UNSIGNED_kw", "STRING_kw", "ACCESSTYPE_kw", 
                      "ADDRESSINGTYPE_kw", "ONREADTYPE_kw", "ONWRITETYPE_kw", 
                      "ALIAS_kw", "EXTERNAL_kw", "INTERNAL_kw", "ADDRMAP_kw", 
                      "REGFILE_kw", "REG_kw", "FIELD_kw", "MEM_kw", "SIGNAL_kw", 
                      "TRUE_kw", "FALSE_kw", "NA_kw", "RW_kw", "WR_kw", 
                      "R_kw", "W_kw", "RW1_kw", "W1_kw", "RCLR_kw", "RSET_kw", 
                      "RUSER_kw", "WOSET_kw", "WOCLR_kw", "WOT_kw", "WZS_kw", 
                      "WZC_kw", "WZT_kw", "WCLR_kw", "WSET_kw", "WUSER_kw", 
                      "COMPACT_kw", "REGALIGN_kw", "FULLALIGN_kw", "HW_kw", 
                      "SW_kw", "POSEDGE_kw", "NEGEDGE_kw", "BOTHEDGE_kw", 
                      "LEVEL_kw", "NONSTICKY_kw", "ABSTRACT_kw", "ALL_kw", 
                      "COMPONENT_kw", "COMPONENTWIDTH_kw", "CONSTRAINT_kw", 
                      "DEFAULT_kw", "ENUM_kw", "ENCODE_kw", "INSIDE_kw", 
                      "NUMBER_kw", "PROPERTY_kw", "REF_kw", "STRUCT_kw", 
                      "THIS_kw", "TYPE_kw", "ALTERNATE_kw", "BYTE_kw", "INT_kw", 
                      "PRECEDENCETYPE_kw", "REAL_kw", "SHORTINT_kw", "SHORTREAL_kw", 
                      "SIGNED_kw", "WITH_kw", "WITHIN_kw", "INT", "HEX_INT", 
                      "VLOG_INT", "STRING", "PLUS", "MINUS", "BNOT", "NOT", 
                      "BAND", "NAND", "AND", "OR", "BOR", "NOR", "XOR", 
                      "XNOR", "LSHIFT", "RSHIFT", "MULT", "EXP", "DIV", 
                      "MOD", "EQ", "ASSIGN", "NEQ", "LEQ", "LT", "GEQ", 
                      "GT", "AT", "INC", "ALIGN", "WS", "ID" ]

    RULE_root = 0
    RULE_root_elem = 1
    RULE_component_def = 2
    RULE_explicit_component_inst = 3
    RULE_component_inst_alias = 4
    RULE_component_named_def = 5
    RULE_component_anon_def = 6
    RULE_component_body = 7
    RULE_component_body_elem = 8
    RULE_component_insts = 9
    RULE_component_inst = 10
    RULE_field_inst_reset = 11
    RULE_inst_addr_fixed = 12
    RULE_inst_addr_stride = 13
    RULE_inst_addr_align = 14
    RULE_component_inst_type = 15
    RULE_component_type = 16
    RULE_component_type_primary = 17
    RULE_param_def = 18
    RULE_param_def_elem = 19
    RULE_param_inst = 20
    RULE_param_assignment = 21
    RULE_expr = 22
    RULE_expr_primary = 23
    RULE_concatenate = 24
    RULE_replicate = 25
    RULE_paren_expr = 26
    RULE_cast = 27
    RULE_cast_width_expr = 28
    RULE_range_suffix = 29
    RULE_array_suffix = 30
    RULE_array_type_suffix = 31
    RULE_data_type = 32
    RULE_basic_data_type = 33
    RULE_literal = 34
    RULE_number = 35
    RULE_string_literal = 36
    RULE_boolean_literal = 37
    RULE_array_literal = 38
    RULE_struct_literal = 39
    RULE_struct_kv = 40
    RULE_enum_literal = 41
    RULE_accesstype_literal = 42
    RULE_onreadtype_literal = 43
    RULE_onwritetype_literal = 44
    RULE_addressingtype_literal = 45
    RULE_precedencetype_literal = 46
    RULE_instance_ref = 47
    RULE_instance_ref_element = 48
    RULE_prop_ref = 49
    RULE_local_property_assignment = 50
    RULE_dynamic_property_assignment = 51
    RULE_normal_prop_assign = 52
    RULE_encode_prop_assign = 53
    RULE_prop_mod_assign = 54
    RULE_prop_assignment_rhs = 55
    RULE_prop_keyword = 56
    RULE_prop_mod = 57
    RULE_udp_def = 58
    RULE_udp_attr = 59
    RULE_udp_type = 60
    RULE_udp_data_type = 61
    RULE_udp_usage = 62
    RULE_udp_comp_type = 63
    RULE_udp_default = 64
    RULE_udp_constraint = 65
    RULE_enum_def = 66
    RULE_enum_entry = 67
    RULE_enum_prop_assign = 68
    RULE_struct_def = 69
    RULE_struct_elem = 70
    RULE_struct_type = 71
    RULE_constraint_def = 72
    RULE_constraint_named_def = 73
    RULE_constraint_anon_def = 74
    RULE_constraint_body = 75
    RULE_constraint_body_elem = 76
    RULE_constraint_insts = 77
    RULE_constr_relational = 78
    RULE_constr_prop_assign = 79
    RULE_constr_inside_values = 80
    RULE_constr_inside_enum = 81
    RULE_constr_lhs = 82
    RULE_constr_inside_value = 83

    ruleNames =  [ "root", "root_elem", "component_def", "explicit_component_inst", 
                   "component_inst_alias", "component_named_def", "component_anon_def", 
                   "component_body", "component_body_elem", "component_insts", 
                   "component_inst", "field_inst_reset", "inst_addr_fixed", 
                   "inst_addr_stride", "inst_addr_align", "component_inst_type", 
                   "component_type", "component_type_primary", "param_def", 
                   "param_def_elem", "param_inst", "param_assignment", "expr", 
                   "expr_primary", "concatenate", "replicate", "paren_expr", 
                   "cast", "cast_width_expr", "range_suffix", "array_suffix", 
                   "array_type_suffix", "data_type", "basic_data_type", 
                   "literal", "number", "string_literal", "boolean_literal", 
                   "array_literal", "struct_literal", "struct_kv", "enum_literal", 
                   "accesstype_literal", "onreadtype_literal", "onwritetype_literal", 
                   "addressingtype_literal", "precedencetype_literal", "instance_ref", 
                   "instance_ref_element", "prop_ref", "local_property_assignment", 
                   "dynamic_property_assignment", "normal_prop_assign", 
                   "encode_prop_assign", "prop_mod_assign", "prop_assignment_rhs", 
                   "prop_keyword", "prop_mod", "udp_def", "udp_attr", "udp_type", 
                   "udp_data_type", "udp_usage", "udp_comp_type", "udp_default", 
                   "udp_constraint", "enum_def", "enum_entry", "enum_prop_assign", 
                   "struct_def", "struct_elem", "struct_type", "constraint_def", 
                   "constraint_named_def", "constraint_anon_def", "constraint_body", 
                   "constraint_body_elem", "constraint_insts", "constr_relational", 
                   "constr_prop_assign", "constr_inside_values", "constr_inside_enum", 
                   "constr_lhs", "constr_inside_value" ]

    EOF = Token.EOF
    T__0=1
    T__1=2
    T__2=3
    T__3=4
    T__4=5
    T__5=6
    T__6=7
    T__7=8
    T__8=9
    T__9=10
    T__10=11
    T__11=12
    T__12=13
    T__13=14
    T__14=15
    SL_COMMENT=16
    ML_COMMENT=17
    BOOLEAN_kw=18
    BIT_kw=19
    LONGINT_kw=20
    UNSIGNED_kw=21
    STRING_kw=22
    ACCESSTYPE_kw=23
    ADDRESSINGTYPE_kw=24
    ONREADTYPE_kw=25
    ONWRITETYPE_kw=26
    ALIAS_kw=27
    EXTERNAL_kw=28
    INTERNAL_kw=29
    ADDRMAP_kw=30
    REGFILE_kw=31
    REG_kw=32
    FIELD_kw=33
    MEM_kw=34
    SIGNAL_kw=35
    TRUE_kw=36
    FALSE_kw=37
    NA_kw=38
    RW_kw=39
    WR_kw=40
    R_kw=41
    W_kw=42
    RW1_kw=43
    W1_kw=44
    RCLR_kw=45
    RSET_kw=46
    RUSER_kw=47
    WOSET_kw=48
    WOCLR_kw=49
    WOT_kw=50
    WZS_kw=51
    WZC_kw=52
    WZT_kw=53
    WCLR_kw=54
    WSET_kw=55
    WUSER_kw=56
    COMPACT_kw=57
    REGALIGN_kw=58
    FULLALIGN_kw=59
    HW_kw=60
    SW_kw=61
    POSEDGE_kw=62
    NEGEDGE_kw=63
    BOTHEDGE_kw=64
    LEVEL_kw=65
    NONSTICKY_kw=66
    ABSTRACT_kw=67
    ALL_kw=68
    COMPONENT_kw=69
    COMPONENTWIDTH_kw=70
    CONSTRAINT_kw=71
    DEFAULT_kw=72
    ENUM_kw=73
    ENCODE_kw=74
    INSIDE_kw=75
    NUMBER_kw=76
    PROPERTY_kw=77
    REF_kw=78
    STRUCT_kw=79
    THIS_kw=80
    TYPE_kw=81
    ALTERNATE_kw=82
    BYTE_kw=83
    INT_kw=84
    PRECEDENCETYPE_kw=85
    REAL_kw=86
    SHORTINT_kw=87
    SHORTREAL_kw=88
    SIGNED_kw=89
    WITH_kw=90
    WITHIN_kw=91
    INT=92
    HEX_INT=93
    VLOG_INT=94
    STRING=95
    PLUS=96
    MINUS=97
    BNOT=98
    NOT=99
    BAND=100
    NAND=101
    AND=102
    OR=103
    BOR=104
    NOR=105
    XOR=106
    XNOR=107
    LSHIFT=108
    RSHIFT=109
    MULT=110
    EXP=111
    DIV=112
    MOD=113
    EQ=114
    ASSIGN=115
    NEQ=116
    LEQ=117
    LT=118
    GEQ=119
    GT=120
    AT=121
    INC=122
    ALIGN=123
    WS=124
    ID=125

    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 RootContext(ParserRuleContext):

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

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

        def root_elem(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Root_elemContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Root_elemContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_root

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitRoot" ):
                return visitor.visitRoot(self)
            else:
                return visitor.visitChildren(self)




    def root(self):

        localctx = SystemRDLParser.RootContext(self, self._ctx, self.state)
        self.enterRule(localctx, 0, self.RULE_root)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 173
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.ALIAS_kw) | (1 << SystemRDLParser.EXTERNAL_kw) | (1 << SystemRDLParser.INTERNAL_kw) | (1 << SystemRDLParser.ADDRMAP_kw) | (1 << SystemRDLParser.REGFILE_kw) | (1 << SystemRDLParser.REG_kw) | (1 << SystemRDLParser.FIELD_kw) | (1 << SystemRDLParser.MEM_kw) | (1 << SystemRDLParser.SIGNAL_kw) | (1 << SystemRDLParser.RCLR_kw) | (1 << SystemRDLParser.RSET_kw) | (1 << SystemRDLParser.WOSET_kw) | (1 << SystemRDLParser.WOCLR_kw) | (1 << SystemRDLParser.HW_kw) | (1 << SystemRDLParser.SW_kw) | (1 << SystemRDLParser.POSEDGE_kw) | (1 << SystemRDLParser.NEGEDGE_kw))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (SystemRDLParser.BOTHEDGE_kw - 64)) | (1 << (SystemRDLParser.LEVEL_kw - 64)) | (1 << (SystemRDLParser.NONSTICKY_kw - 64)) | (1 << (SystemRDLParser.ABSTRACT_kw - 64)) | (1 << (SystemRDLParser.CONSTRAINT_kw - 64)) | (1 << (SystemRDLParser.DEFAULT_kw - 64)) | (1 << (SystemRDLParser.ENUM_kw - 64)) | (1 << (SystemRDLParser.ENCODE_kw - 64)) | (1 << (SystemRDLParser.PROPERTY_kw - 64)) | (1 << (SystemRDLParser.STRUCT_kw - 64)) | (1 << (SystemRDLParser.ID - 64)))) != 0):
                self.state = 168
                self.root_elem()
                self.state = 169
                self.match(SystemRDLParser.T__0)
                self.state = 175
                self._errHandler.sync(self)
                _la = self._input.LA(1)

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


    class Root_elemContext(ParserRuleContext):

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

        def component_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_defContext,0)


        def enum_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Enum_defContext,0)


        def udp_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Udp_defContext,0)


        def struct_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Struct_defContext,0)


        def constraint_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_defContext,0)


        def explicit_component_inst(self):
            return self.getTypedRuleContext(SystemRDLParser.Explicit_component_instContext,0)


        def local_property_assignment(self):
            return self.getTypedRuleContext(SystemRDLParser.Local_property_assignmentContext,0)


        def dynamic_property_assignment(self):
            return self.getTypedRuleContext(SystemRDLParser.Dynamic_property_assignmentContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_root_elem

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitRoot_elem" ):
                return visitor.visitRoot_elem(self)
            else:
                return visitor.visitChildren(self)




    def root_elem(self):

        localctx = SystemRDLParser.Root_elemContext(self, self._ctx, self.state)
        self.enterRule(localctx, 2, self.RULE_root_elem)
        try:
            self.state = 186
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,1,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 178
                self.component_def()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 179
                self.enum_def()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 180
                self.udp_def()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 181
                self.struct_def()
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 182
                self.constraint_def()
                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 183
                self.explicit_component_inst()
                pass

            elif la_ == 7:
                self.enterOuterAlt(localctx, 7)
                self.state = 184
                self.local_property_assignment()
                pass

            elif la_ == 8:
                self.enterOuterAlt(localctx, 8)
                self.state = 185
                self.dynamic_property_assignment()
                pass


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


    class Component_defContext(ParserRuleContext):

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

        def component_named_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_named_defContext,0)


        def component_inst_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_inst_typeContext,0)


        def component_insts(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_instsContext,0)


        def component_anon_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_anon_defContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_def" ):
                return visitor.visitComponent_def(self)
            else:
                return visitor.visitChildren(self)




    def component_def(self):

        localctx = SystemRDLParser.Component_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 4, self.RULE_component_def)
        self._la = 0 # Token type
        try:
            self.state = 212
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,5,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 188
                self.component_named_def()
                self.state = 195
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [SystemRDLParser.EXTERNAL_kw, SystemRDLParser.INTERNAL_kw]:
                    self.state = 189
                    self.component_inst_type()
                    self.state = 190
                    self.component_insts()
                    pass
                elif token in [SystemRDLParser.T__0, SystemRDLParser.T__4, SystemRDLParser.ID]:
                    self.state = 193
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if _la==SystemRDLParser.T__4 or _la==SystemRDLParser.ID:
                        self.state = 192
                        self.component_insts()


                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 197
                self.component_anon_def()
                self.state = 202
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [SystemRDLParser.EXTERNAL_kw, SystemRDLParser.INTERNAL_kw]:
                    self.state = 198
                    self.component_inst_type()
                    self.state = 199
                    self.component_insts()
                    pass
                elif token in [SystemRDLParser.T__4, SystemRDLParser.ID]:
                    self.state = 201
                    self.component_insts()
                    pass
                else:
                    raise NoViableAltException(self)

                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 204
                self.component_inst_type()
                self.state = 205
                self.component_named_def()
                self.state = 206
                self.component_insts()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 208
                self.component_inst_type()
                self.state = 209
                self.component_anon_def()
                self.state = 210
                self.component_insts()
                pass


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


    class Explicit_component_instContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def component_insts(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_instsContext,0)


        def component_inst_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_inst_typeContext,0)


        def component_inst_alias(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_inst_aliasContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_explicit_component_inst

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitExplicit_component_inst" ):
                return visitor.visitExplicit_component_inst(self)
            else:
                return visitor.visitChildren(self)




    def explicit_component_inst(self):

        localctx = SystemRDLParser.Explicit_component_instContext(self, self._ctx, self.state)
        self.enterRule(localctx, 6, self.RULE_explicit_component_inst)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 215
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.EXTERNAL_kw or _la==SystemRDLParser.INTERNAL_kw:
                self.state = 214
                self.component_inst_type()


            self.state = 218
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ALIAS_kw:
                self.state = 217
                self.component_inst_alias()


            self.state = 220
            self.match(SystemRDLParser.ID)
            self.state = 221
            self.component_insts()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Component_inst_aliasContext(ParserRuleContext):

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

        def ALIAS_kw(self):
            return self.getToken(SystemRDLParser.ALIAS_kw, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_inst_alias

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_inst_alias" ):
                return visitor.visitComponent_inst_alias(self)
            else:
                return visitor.visitChildren(self)




    def component_inst_alias(self):

        localctx = SystemRDLParser.Component_inst_aliasContext(self, self._ctx, self.state)
        self.enterRule(localctx, 8, self.RULE_component_inst_alias)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 223
            self.match(SystemRDLParser.ALIAS_kw)
            self.state = 224
            self.match(SystemRDLParser.ID)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Component_named_defContext(ParserRuleContext):

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

        def component_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_typeContext,0)


        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def component_body(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_bodyContext,0)


        def param_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Param_defContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_named_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_named_def" ):
                return visitor.visitComponent_named_def(self)
            else:
                return visitor.visitChildren(self)




    def component_named_def(self):

        localctx = SystemRDLParser.Component_named_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 10, self.RULE_component_named_def)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 226
            self.component_type()
            self.state = 227
            self.match(SystemRDLParser.ID)
            self.state = 229
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__4:
                self.state = 228
                self.param_def()


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


    class Component_anon_defContext(ParserRuleContext):

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

        def component_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_typeContext,0)


        def component_body(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_bodyContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_anon_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_anon_def" ):
                return visitor.visitComponent_anon_def(self)
            else:
                return visitor.visitChildren(self)




    def component_anon_def(self):

        localctx = SystemRDLParser.Component_anon_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 12, self.RULE_component_anon_def)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 233
            self.component_type()
            self.state = 234
            self.component_body()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Component_bodyContext(ParserRuleContext):

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

        def component_body_elem(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Component_body_elemContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Component_body_elemContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_body

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_body" ):
                return visitor.visitComponent_body(self)
            else:
                return visitor.visitChildren(self)




    def component_body(self):

        localctx = SystemRDLParser.Component_bodyContext(self, self._ctx, self.state)
        self.enterRule(localctx, 14, self.RULE_component_body)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 236
            self.match(SystemRDLParser.T__1)
            self.state = 242
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.ALIAS_kw) | (1 << SystemRDLParser.EXTERNAL_kw) | (1 << SystemRDLParser.INTERNAL_kw) | (1 << SystemRDLParser.ADDRMAP_kw) | (1 << SystemRDLParser.REGFILE_kw) | (1 << SystemRDLParser.REG_kw) | (1 << SystemRDLParser.FIELD_kw) | (1 << SystemRDLParser.MEM_kw) | (1 << SystemRDLParser.SIGNAL_kw) | (1 << SystemRDLParser.RCLR_kw) | (1 << SystemRDLParser.RSET_kw) | (1 << SystemRDLParser.WOSET_kw) | (1 << SystemRDLParser.WOCLR_kw) | (1 << SystemRDLParser.HW_kw) | (1 << SystemRDLParser.SW_kw) | (1 << SystemRDLParser.POSEDGE_kw) | (1 << SystemRDLParser.NEGEDGE_kw))) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & ((1 << (SystemRDLParser.BOTHEDGE_kw - 64)) | (1 << (SystemRDLParser.LEVEL_kw - 64)) | (1 << (SystemRDLParser.NONSTICKY_kw - 64)) | (1 << (SystemRDLParser.ABSTRACT_kw - 64)) | (1 << (SystemRDLParser.CONSTRAINT_kw - 64)) | (1 << (SystemRDLParser.DEFAULT_kw - 64)) | (1 << (SystemRDLParser.ENUM_kw - 64)) | (1 << (SystemRDLParser.ENCODE_kw - 64)) | (1 << (SystemRDLParser.STRUCT_kw - 64)) | (1 << (SystemRDLParser.ID - 64)))) != 0):
                self.state = 237
                self.component_body_elem()
                self.state = 238
                self.match(SystemRDLParser.T__0)
                self.state = 244
                self._errHandler.sync(self)
                _la = self._input.LA(1)

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


    class Component_body_elemContext(ParserRuleContext):

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

        def component_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_defContext,0)


        def enum_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Enum_defContext,0)


        def struct_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Struct_defContext,0)


        def constraint_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_defContext,0)


        def explicit_component_inst(self):
            return self.getTypedRuleContext(SystemRDLParser.Explicit_component_instContext,0)


        def local_property_assignment(self):
            return self.getTypedRuleContext(SystemRDLParser.Local_property_assignmentContext,0)


        def dynamic_property_assignment(self):
            return self.getTypedRuleContext(SystemRDLParser.Dynamic_property_assignmentContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_body_elem

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_body_elem" ):
                return visitor.visitComponent_body_elem(self)
            else:
                return visitor.visitChildren(self)




    def component_body_elem(self):

        localctx = SystemRDLParser.Component_body_elemContext(self, self._ctx, self.state)
        self.enterRule(localctx, 16, self.RULE_component_body_elem)
        try:
            self.state = 254
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,10,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 247
                self.component_def()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 248
                self.enum_def()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 249
                self.struct_def()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 250
                self.constraint_def()
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 251
                self.explicit_component_inst()
                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 252
                self.local_property_assignment()
                pass

            elif la_ == 7:
                self.enterOuterAlt(localctx, 7)
                self.state = 253
                self.dynamic_property_assignment()
                pass


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


    class Component_instsContext(ParserRuleContext):

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

        def component_inst(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Component_instContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Component_instContext,i)


        def param_inst(self):
            return self.getTypedRuleContext(SystemRDLParser.Param_instContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_insts

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_insts" ):
                return visitor.visitComponent_insts(self)
            else:
                return visitor.visitChildren(self)




    def component_insts(self):

        localctx = SystemRDLParser.Component_instsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 18, self.RULE_component_insts)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 257
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__4:
                self.state = 256
                self.param_inst()


            self.state = 259
            self.component_inst()
            self.state = 264
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 260
                self.match(SystemRDLParser.T__3)
                self.state = 261
                self.component_inst()
                self.state = 266
                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 Component_instContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def range_suffix(self):
            return self.getTypedRuleContext(SystemRDLParser.Range_suffixContext,0)


        def field_inst_reset(self):
            return self.getTypedRuleContext(SystemRDLParser.Field_inst_resetContext,0)


        def inst_addr_fixed(self):
            return self.getTypedRuleContext(SystemRDLParser.Inst_addr_fixedContext,0)


        def inst_addr_stride(self):
            return self.getTypedRuleContext(SystemRDLParser.Inst_addr_strideContext,0)


        def inst_addr_align(self):
            return self.getTypedRuleContext(SystemRDLParser.Inst_addr_alignContext,0)


        def array_suffix(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Array_suffixContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Array_suffixContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_inst

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_inst" ):
                return visitor.visitComponent_inst(self)
            else:
                return visitor.visitChildren(self)




    def component_inst(self):

        localctx = SystemRDLParser.Component_instContext(self, self._ctx, self.state)
        self.enterRule(localctx, 20, self.RULE_component_inst)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 267
            self.match(SystemRDLParser.ID)
            self.state = 274
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,14,self._ctx)
            if la_ == 1:
                self.state = 269 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 268
                    self.array_suffix()
                    self.state = 271 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==SystemRDLParser.T__11):
                        break


            elif la_ == 2:
                self.state = 273
                self.range_suffix()


            self.state = 277
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ASSIGN:
                self.state = 276
                self.field_inst_reset()


            self.state = 280
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.AT:
                self.state = 279
                self.inst_addr_fixed()


            self.state = 283
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.INC:
                self.state = 282
                self.inst_addr_stride()


            self.state = 286
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ALIGN:
                self.state = 285
                self.inst_addr_align()


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


    class Field_inst_resetContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_field_inst_reset

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitField_inst_reset" ):
                return visitor.visitField_inst_reset(self)
            else:
                return visitor.visitChildren(self)




    def field_inst_reset(self):

        localctx = SystemRDLParser.Field_inst_resetContext(self, self._ctx, self.state)
        self.enterRule(localctx, 22, self.RULE_field_inst_reset)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 288
            localctx.op = self.match(SystemRDLParser.ASSIGN)
            self.state = 289
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Inst_addr_fixedContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def AT(self):
            return self.getToken(SystemRDLParser.AT, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_inst_addr_fixed

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitInst_addr_fixed" ):
                return visitor.visitInst_addr_fixed(self)
            else:
                return visitor.visitChildren(self)




    def inst_addr_fixed(self):

        localctx = SystemRDLParser.Inst_addr_fixedContext(self, self._ctx, self.state)
        self.enterRule(localctx, 24, self.RULE_inst_addr_fixed)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 291
            localctx.op = self.match(SystemRDLParser.AT)
            self.state = 292
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Inst_addr_strideContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def INC(self):
            return self.getToken(SystemRDLParser.INC, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_inst_addr_stride

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitInst_addr_stride" ):
                return visitor.visitInst_addr_stride(self)
            else:
                return visitor.visitChildren(self)




    def inst_addr_stride(self):

        localctx = SystemRDLParser.Inst_addr_strideContext(self, self._ctx, self.state)
        self.enterRule(localctx, 26, self.RULE_inst_addr_stride)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 294
            localctx.op = self.match(SystemRDLParser.INC)
            self.state = 295
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Inst_addr_alignContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def ALIGN(self):
            return self.getToken(SystemRDLParser.ALIGN, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_inst_addr_align

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitInst_addr_align" ):
                return visitor.visitInst_addr_align(self)
            else:
                return visitor.visitChildren(self)




    def inst_addr_align(self):

        localctx = SystemRDLParser.Inst_addr_alignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 28, self.RULE_inst_addr_align)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 297
            localctx.op = self.match(SystemRDLParser.ALIGN)
            self.state = 298
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Component_inst_typeContext(ParserRuleContext):

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

        def EXTERNAL_kw(self):
            return self.getToken(SystemRDLParser.EXTERNAL_kw, 0)

        def INTERNAL_kw(self):
            return self.getToken(SystemRDLParser.INTERNAL_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_inst_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_inst_type" ):
                return visitor.visitComponent_inst_type(self)
            else:
                return visitor.visitChildren(self)




    def component_inst_type(self):

        localctx = SystemRDLParser.Component_inst_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 30, self.RULE_component_inst_type)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 300
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not(_la==SystemRDLParser.EXTERNAL_kw or _la==SystemRDLParser.INTERNAL_kw):
                localctx.kw = 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 Component_typeContext(ParserRuleContext):

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

        def component_type_primary(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_type_primaryContext,0)


        def SIGNAL_kw(self):
            return self.getToken(SystemRDLParser.SIGNAL_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_type" ):
                return visitor.visitComponent_type(self)
            else:
                return visitor.visitChildren(self)




    def component_type(self):

        localctx = SystemRDLParser.Component_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 32, self.RULE_component_type)
        try:
            self.state = 304
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.ADDRMAP_kw, SystemRDLParser.REGFILE_kw, SystemRDLParser.REG_kw, SystemRDLParser.FIELD_kw, SystemRDLParser.MEM_kw]:
                self.enterOuterAlt(localctx, 1)
                self.state = 302
                self.component_type_primary()
                pass
            elif token in [SystemRDLParser.SIGNAL_kw]:
                self.enterOuterAlt(localctx, 2)
                self.state = 303
                localctx.kw = self.match(SystemRDLParser.SIGNAL_kw)
                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 Component_type_primaryContext(ParserRuleContext):

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

        def ADDRMAP_kw(self):
            return self.getToken(SystemRDLParser.ADDRMAP_kw, 0)

        def REGFILE_kw(self):
            return self.getToken(SystemRDLParser.REGFILE_kw, 0)

        def REG_kw(self):
            return self.getToken(SystemRDLParser.REG_kw, 0)

        def FIELD_kw(self):
            return self.getToken(SystemRDLParser.FIELD_kw, 0)

        def MEM_kw(self):
            return self.getToken(SystemRDLParser.MEM_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_component_type_primary

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitComponent_type_primary" ):
                return visitor.visitComponent_type_primary(self)
            else:
                return visitor.visitChildren(self)




    def component_type_primary(self):

        localctx = SystemRDLParser.Component_type_primaryContext(self, self._ctx, self.state)
        self.enterRule(localctx, 34, self.RULE_component_type_primary)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 306
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.ADDRMAP_kw) | (1 << SystemRDLParser.REGFILE_kw) | (1 << SystemRDLParser.REG_kw) | (1 << SystemRDLParser.FIELD_kw) | (1 << SystemRDLParser.MEM_kw))) != 0)):
                localctx.kw = 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 Param_defContext(ParserRuleContext):

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

        def param_def_elem(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Param_def_elemContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Param_def_elemContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_param_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitParam_def" ):
                return visitor.visitParam_def(self)
            else:
                return visitor.visitChildren(self)




    def param_def(self):

        localctx = SystemRDLParser.Param_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 36, self.RULE_param_def)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 308
            self.match(SystemRDLParser.T__4)
            self.state = 309
            self.match(SystemRDLParser.T__5)
            self.state = 310
            self.param_def_elem()
            self.state = 315
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 311
                self.match(SystemRDLParser.T__3)
                self.state = 312
                self.param_def_elem()
                self.state = 317
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 318
            self.match(SystemRDLParser.T__6)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Param_def_elemContext(ParserRuleContext):

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

        def data_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Data_typeContext,0)


        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def array_type_suffix(self):
            return self.getTypedRuleContext(SystemRDLParser.Array_type_suffixContext,0)


        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_param_def_elem

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitParam_def_elem" ):
                return visitor.visitParam_def_elem(self)
            else:
                return visitor.visitChildren(self)




    def param_def_elem(self):

        localctx = SystemRDLParser.Param_def_elemContext(self, self._ctx, self.state)
        self.enterRule(localctx, 38, self.RULE_param_def_elem)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 320
            self.data_type()
            self.state = 321
            self.match(SystemRDLParser.ID)
            self.state = 323
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__11:
                self.state = 322
                self.array_type_suffix()


            self.state = 327
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ASSIGN:
                self.state = 325
                self.match(SystemRDLParser.ASSIGN)
                self.state = 326
                self.expr(0)


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


    class Param_instContext(ParserRuleContext):

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

        def param_assignment(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Param_assignmentContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Param_assignmentContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_param_inst

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitParam_inst" ):
                return visitor.visitParam_inst(self)
            else:
                return visitor.visitChildren(self)




    def param_inst(self):

        localctx = SystemRDLParser.Param_instContext(self, self._ctx, self.state)
        self.enterRule(localctx, 40, self.RULE_param_inst)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 329
            self.match(SystemRDLParser.T__4)
            self.state = 330
            self.match(SystemRDLParser.T__5)
            self.state = 331
            self.param_assignment()
            self.state = 336
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 332
                self.match(SystemRDLParser.T__3)
                self.state = 333
                self.param_assignment()
                self.state = 338
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 339
            self.match(SystemRDLParser.T__6)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Param_assignmentContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_param_assignment

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitParam_assignment" ):
                return visitor.visitParam_assignment(self)
            else:
                return visitor.visitChildren(self)




    def param_assignment(self):

        localctx = SystemRDLParser.Param_assignmentContext(self, self._ctx, self.state)
        self.enterRule(localctx, 42, self.RULE_param_assignment)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 341
            self.match(SystemRDLParser.T__7)
            self.state = 342
            self.match(SystemRDLParser.ID)
            self.state = 343
            self.match(SystemRDLParser.T__5)
            self.state = 344
            self.expr(0)
            self.state = 345
            self.match(SystemRDLParser.T__6)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ExprContext(ParserRuleContext):

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


        def getRuleIndex(self):
            return SystemRDLParser.RULE_expr

     
        def copyFrom(self, ctx:ParserRuleContext):
            super().copyFrom(ctx)


    class BinaryExprContext(ExprContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.ExprContext
            super().__init__(parser)
            self.op = None # Token
            self.copyFrom(ctx)

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)

        def EXP(self):
            return self.getToken(SystemRDLParser.EXP, 0)
        def MULT(self):
            return self.getToken(SystemRDLParser.MULT, 0)
        def DIV(self):
            return self.getToken(SystemRDLParser.DIV, 0)
        def MOD(self):
            return self.getToken(SystemRDLParser.MOD, 0)
        def PLUS(self):
            return self.getToken(SystemRDLParser.PLUS, 0)
        def MINUS(self):
            return self.getToken(SystemRDLParser.MINUS, 0)
        def LSHIFT(self):
            return self.getToken(SystemRDLParser.LSHIFT, 0)
        def RSHIFT(self):
            return self.getToken(SystemRDLParser.RSHIFT, 0)
        def LT(self):
            return self.getToken(SystemRDLParser.LT, 0)
        def LEQ(self):
            return self.getToken(SystemRDLParser.LEQ, 0)
        def GT(self):
            return self.getToken(SystemRDLParser.GT, 0)
        def GEQ(self):
            return self.getToken(SystemRDLParser.GEQ, 0)
        def EQ(self):
            return self.getToken(SystemRDLParser.EQ, 0)
        def NEQ(self):
            return self.getToken(SystemRDLParser.NEQ, 0)
        def AND(self):
            return self.getToken(SystemRDLParser.AND, 0)
        def XOR(self):
            return self.getToken(SystemRDLParser.XOR, 0)
        def XNOR(self):
            return self.getToken(SystemRDLParser.XNOR, 0)
        def OR(self):
            return self.getToken(SystemRDLParser.OR, 0)
        def BAND(self):
            return self.getToken(SystemRDLParser.BAND, 0)
        def BOR(self):
            return self.getToken(SystemRDLParser.BOR, 0)

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitBinaryExpr" ):
                return visitor.visitBinaryExpr(self)
            else:
                return visitor.visitChildren(self)


    class UnaryExprContext(ExprContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.ExprContext
            super().__init__(parser)
            self.op = None # Token
            self.copyFrom(ctx)

        def expr_primary(self):
            return self.getTypedRuleContext(SystemRDLParser.Expr_primaryContext,0)

        def PLUS(self):
            return self.getToken(SystemRDLParser.PLUS, 0)
        def MINUS(self):
            return self.getToken(SystemRDLParser.MINUS, 0)
        def BNOT(self):
            return self.getToken(SystemRDLParser.BNOT, 0)
        def NOT(self):
            return self.getToken(SystemRDLParser.NOT, 0)
        def AND(self):
            return self.getToken(SystemRDLParser.AND, 0)
        def NAND(self):
            return self.getToken(SystemRDLParser.NAND, 0)
        def OR(self):
            return self.getToken(SystemRDLParser.OR, 0)
        def NOR(self):
            return self.getToken(SystemRDLParser.NOR, 0)
        def XOR(self):
            return self.getToken(SystemRDLParser.XOR, 0)
        def XNOR(self):
            return self.getToken(SystemRDLParser.XNOR, 0)

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUnaryExpr" ):
                return visitor.visitUnaryExpr(self)
            else:
                return visitor.visitChildren(self)


    class NOPContext(ExprContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.ExprContext
            super().__init__(parser)
            self.copyFrom(ctx)

        def expr_primary(self):
            return self.getTypedRuleContext(SystemRDLParser.Expr_primaryContext,0)


        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitNOP" ):
                return visitor.visitNOP(self)
            else:
                return visitor.visitChildren(self)


    class TernaryExprContext(ExprContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.ExprContext
            super().__init__(parser)
            self.op = None # Token
            self.copyFrom(ctx)

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)


        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitTernaryExpr" ):
                return visitor.visitTernaryExpr(self)
            else:
                return visitor.visitChildren(self)



    def expr(self, _p:int=0):
        _parentctx = self._ctx
        _parentState = self.state
        localctx = SystemRDLParser.ExprContext(self, self._ctx, _parentState)
        _prevctx = localctx
        _startState = 44
        self.enterRecursionRule(localctx, 44, self.RULE_expr, _p)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 351
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.PLUS, SystemRDLParser.MINUS, SystemRDLParser.BNOT, SystemRDLParser.NOT, SystemRDLParser.NAND, SystemRDLParser.AND, SystemRDLParser.OR, SystemRDLParser.NOR, SystemRDLParser.XOR, SystemRDLParser.XNOR]:
                localctx = SystemRDLParser.UnaryExprContext(self, localctx)
                self._ctx = localctx
                _prevctx = localctx

                self.state = 348
                localctx.op = self._input.LT(1)
                _la = self._input.LA(1)
                if not(((((_la - 96)) & ~0x3f) == 0 and ((1 << (_la - 96)) & ((1 << (SystemRDLParser.PLUS - 96)) | (1 << (SystemRDLParser.MINUS - 96)) | (1 << (SystemRDLParser.BNOT - 96)) | (1 << (SystemRDLParser.NOT - 96)) | (1 << (SystemRDLParser.NAND - 96)) | (1 << (SystemRDLParser.AND - 96)) | (1 << (SystemRDLParser.OR - 96)) | (1 << (SystemRDLParser.NOR - 96)) | (1 << (SystemRDLParser.XOR - 96)) | (1 << (SystemRDLParser.XNOR - 96)))) != 0)):
                    localctx.op = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 349
                self.expr_primary()
                pass
            elif token in [SystemRDLParser.T__1, SystemRDLParser.T__5, SystemRDLParser.T__10, SystemRDLParser.BOOLEAN_kw, SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw, SystemRDLParser.TRUE_kw, SystemRDLParser.FALSE_kw, SystemRDLParser.NA_kw, SystemRDLParser.RW_kw, SystemRDLParser.WR_kw, SystemRDLParser.R_kw, SystemRDLParser.W_kw, SystemRDLParser.RW1_kw, SystemRDLParser.W1_kw, SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.RUSER_kw, SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.WOT_kw, SystemRDLParser.WZS_kw, SystemRDLParser.WZC_kw, SystemRDLParser.WZT_kw, SystemRDLParser.WCLR_kw, SystemRDLParser.WSET_kw, SystemRDLParser.WUSER_kw, SystemRDLParser.COMPACT_kw, SystemRDLParser.REGALIGN_kw, SystemRDLParser.FULLALIGN_kw, SystemRDLParser.HW_kw, SystemRDLParser.SW_kw, SystemRDLParser.INT, SystemRDLParser.HEX_INT, SystemRDLParser.VLOG_INT, SystemRDLParser.STRING, SystemRDLParser.ID]:
                localctx = SystemRDLParser.NOPContext(self, localctx)
                self._ctx = localctx
                _prevctx = localctx
                self.state = 350
                self.expr_primary()
                pass
            else:
                raise NoViableAltException(self)

            self._ctx.stop = self._input.LT(-1)
            self.state = 394
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,26,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 = 392
                    self._errHandler.sync(self)
                    la_ = self._interp.adaptivePredict(self._input,25,self._ctx)
                    if la_ == 1:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 353
                        if not self.precpred(self._ctx, 13):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 13)")
                        self.state = 354
                        localctx.op = self.match(SystemRDLParser.EXP)
                        self.state = 355
                        self.expr(14)
                        pass

                    elif la_ == 2:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 356
                        if not self.precpred(self._ctx, 12):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 12)")
                        self.state = 357
                        localctx.op = self._input.LT(1)
                        _la = self._input.LA(1)
                        if not(((((_la - 110)) & ~0x3f) == 0 and ((1 << (_la - 110)) & ((1 << (SystemRDLParser.MULT - 110)) | (1 << (SystemRDLParser.DIV - 110)) | (1 << (SystemRDLParser.MOD - 110)))) != 0)):
                            localctx.op = self._errHandler.recoverInline(self)
                        else:
                            self._errHandler.reportMatch(self)
                            self.consume()
                        self.state = 358
                        self.expr(13)
                        pass

                    elif la_ == 3:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 359
                        if not self.precpred(self._ctx, 11):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 11)")
                        self.state = 360
                        localctx.op = self._input.LT(1)
                        _la = self._input.LA(1)
                        if not(_la==SystemRDLParser.PLUS or _la==SystemRDLParser.MINUS):
                            localctx.op = self._errHandler.recoverInline(self)
                        else:
                            self._errHandler.reportMatch(self)
                            self.consume()
                        self.state = 361
                        self.expr(12)
                        pass

                    elif la_ == 4:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 362
                        if not self.precpred(self._ctx, 10):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 10)")
                        self.state = 363
                        localctx.op = self._input.LT(1)
                        _la = self._input.LA(1)
                        if not(_la==SystemRDLParser.LSHIFT or _la==SystemRDLParser.RSHIFT):
                            localctx.op = self._errHandler.recoverInline(self)
                        else:
                            self._errHandler.reportMatch(self)
                            self.consume()
                        self.state = 364
                        self.expr(11)
                        pass

                    elif la_ == 5:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 365
                        if not self.precpred(self._ctx, 9):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 9)")
                        self.state = 366
                        localctx.op = self._input.LT(1)
                        _la = self._input.LA(1)
                        if not(((((_la - 117)) & ~0x3f) == 0 and ((1 << (_la - 117)) & ((1 << (SystemRDLParser.LEQ - 117)) | (1 << (SystemRDLParser.LT - 117)) | (1 << (SystemRDLParser.GEQ - 117)) | (1 << (SystemRDLParser.GT - 117)))) != 0)):
                            localctx.op = self._errHandler.recoverInline(self)
                        else:
                            self._errHandler.reportMatch(self)
                            self.consume()
                        self.state = 367
                        self.expr(10)
                        pass

                    elif la_ == 6:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 368
                        if not self.precpred(self._ctx, 8):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 8)")
                        self.state = 369
                        localctx.op = self._input.LT(1)
                        _la = self._input.LA(1)
                        if not(_la==SystemRDLParser.EQ or _la==SystemRDLParser.NEQ):
                            localctx.op = self._errHandler.recoverInline(self)
                        else:
                            self._errHandler.reportMatch(self)
                            self.consume()
                        self.state = 370
                        self.expr(9)
                        pass

                    elif la_ == 7:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 371
                        if not self.precpred(self._ctx, 7):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 7)")
                        self.state = 372
                        localctx.op = self.match(SystemRDLParser.AND)
                        self.state = 373
                        self.expr(8)
                        pass

                    elif la_ == 8:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 374
                        if not self.precpred(self._ctx, 6):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 6)")
                        self.state = 375
                        localctx.op = self._input.LT(1)
                        _la = self._input.LA(1)
                        if not(_la==SystemRDLParser.XOR or _la==SystemRDLParser.XNOR):
                            localctx.op = self._errHandler.recoverInline(self)
                        else:
                            self._errHandler.reportMatch(self)
                            self.consume()
                        self.state = 376
                        self.expr(7)
                        pass

                    elif la_ == 9:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 377
                        if not self.precpred(self._ctx, 5):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 5)")
                        self.state = 378
                        localctx.op = self.match(SystemRDLParser.OR)
                        self.state = 379
                        self.expr(6)
                        pass

                    elif la_ == 10:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 380
                        if not self.precpred(self._ctx, 4):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 4)")
                        self.state = 381
                        localctx.op = self.match(SystemRDLParser.BAND)
                        self.state = 382
                        self.expr(5)
                        pass

                    elif la_ == 11:
                        localctx = SystemRDLParser.BinaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 383
                        if not self.precpred(self._ctx, 3):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 3)")
                        self.state = 384
                        localctx.op = self.match(SystemRDLParser.BOR)
                        self.state = 385
                        self.expr(4)
                        pass

                    elif la_ == 12:
                        localctx = SystemRDLParser.TernaryExprContext(self, SystemRDLParser.ExprContext(self, _parentctx, _parentState))
                        self.pushNewRecursionContext(localctx, _startState, self.RULE_expr)
                        self.state = 386
                        if not self.precpred(self._ctx, 2):
                            from antlr4.error.Errors import FailedPredicateException
                            raise FailedPredicateException(self, "self.precpred(self._ctx, 2)")
                        self.state = 387
                        localctx.op = self.match(SystemRDLParser.T__8)
                        self.state = 388
                        self.expr(0)
                        self.state = 389
                        self.match(SystemRDLParser.T__9)
                        self.state = 390
                        self.expr(2)
                        pass

             
                self.state = 396
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,26,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 Expr_primaryContext(ParserRuleContext):

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

        def literal(self):
            return self.getTypedRuleContext(SystemRDLParser.LiteralContext,0)


        def concatenate(self):
            return self.getTypedRuleContext(SystemRDLParser.ConcatenateContext,0)


        def replicate(self):
            return self.getTypedRuleContext(SystemRDLParser.ReplicateContext,0)


        def paren_expr(self):
            return self.getTypedRuleContext(SystemRDLParser.Paren_exprContext,0)


        def cast(self):
            return self.getTypedRuleContext(SystemRDLParser.CastContext,0)


        def prop_ref(self):
            return self.getTypedRuleContext(SystemRDLParser.Prop_refContext,0)


        def instance_ref(self):
            return self.getTypedRuleContext(SystemRDLParser.Instance_refContext,0)


        def struct_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Struct_literalContext,0)


        def array_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Array_literalContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_expr_primary

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitExpr_primary" ):
                return visitor.visitExpr_primary(self)
            else:
                return visitor.visitChildren(self)




    def expr_primary(self):

        localctx = SystemRDLParser.Expr_primaryContext(self, self._ctx, self.state)
        self.enterRule(localctx, 46, self.RULE_expr_primary)
        try:
            self.state = 406
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,27,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 397
                self.literal()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 398
                self.concatenate()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 399
                self.replicate()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 400
                self.paren_expr()
                pass

            elif la_ == 5:
                self.enterOuterAlt(localctx, 5)
                self.state = 401
                self.cast()
                pass

            elif la_ == 6:
                self.enterOuterAlt(localctx, 6)
                self.state = 402
                self.prop_ref()
                pass

            elif la_ == 7:
                self.enterOuterAlt(localctx, 7)
                self.state = 403
                self.instance_ref()
                pass

            elif la_ == 8:
                self.enterOuterAlt(localctx, 8)
                self.state = 404
                self.struct_literal()
                pass

            elif la_ == 9:
                self.enterOuterAlt(localctx, 9)
                self.state = 405
                self.array_literal()
                pass


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


    class ConcatenateContext(ParserRuleContext):

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

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_concatenate

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConcatenate" ):
                return visitor.visitConcatenate(self)
            else:
                return visitor.visitChildren(self)




    def concatenate(self):

        localctx = SystemRDLParser.ConcatenateContext(self, self._ctx, self.state)
        self.enterRule(localctx, 48, self.RULE_concatenate)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 408
            self.match(SystemRDLParser.T__1)
            self.state = 409
            self.expr(0)
            self.state = 414
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 410
                self.match(SystemRDLParser.T__3)
                self.state = 411
                self.expr(0)
                self.state = 416
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 417
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ReplicateContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def concatenate(self):
            return self.getTypedRuleContext(SystemRDLParser.ConcatenateContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_replicate

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitReplicate" ):
                return visitor.visitReplicate(self)
            else:
                return visitor.visitChildren(self)




    def replicate(self):

        localctx = SystemRDLParser.ReplicateContext(self, self._ctx, self.state)
        self.enterRule(localctx, 50, self.RULE_replicate)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 419
            self.match(SystemRDLParser.T__1)
            self.state = 420
            self.expr(0)
            self.state = 421
            self.concatenate()
            self.state = 422
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Paren_exprContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_paren_expr

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitParen_expr" ):
                return visitor.visitParen_expr(self)
            else:
                return visitor.visitChildren(self)




    def paren_expr(self):

        localctx = SystemRDLParser.Paren_exprContext(self, self._ctx, self.state)
        self.enterRule(localctx, 52, self.RULE_paren_expr)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 424
            self.match(SystemRDLParser.T__5)
            self.state = 425
            self.expr(0)
            self.state = 426
            self.match(SystemRDLParser.T__6)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class CastContext(ParserRuleContext):

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


        def getRuleIndex(self):
            return SystemRDLParser.RULE_cast

     
        def copyFrom(self, ctx:ParserRuleContext):
            super().copyFrom(ctx)



    class CastWidthContext(CastContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.CastContext
            super().__init__(parser)
            self.op = None # Token
            self.copyFrom(ctx)

        def cast_width_expr(self):
            return self.getTypedRuleContext(SystemRDLParser.Cast_width_exprContext,0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitCastWidth" ):
                return visitor.visitCastWidth(self)
            else:
                return visitor.visitChildren(self)


    class CastTypeContext(CastContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.CastContext
            super().__init__(parser)
            self.typ = None # Token
            self.op = None # Token
            self.copyFrom(ctx)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)

        def BOOLEAN_kw(self):
            return self.getToken(SystemRDLParser.BOOLEAN_kw, 0)
        def BIT_kw(self):
            return self.getToken(SystemRDLParser.BIT_kw, 0)
        def LONGINT_kw(self):
            return self.getToken(SystemRDLParser.LONGINT_kw, 0)

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitCastType" ):
                return visitor.visitCastType(self)
            else:
                return visitor.visitChildren(self)



    def cast(self):

        localctx = SystemRDLParser.CastContext(self, self._ctx, self.state)
        self.enterRule(localctx, 54, self.RULE_cast)
        self._la = 0 # Token type
        try:
            self.state = 440
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.BOOLEAN_kw, SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw]:
                localctx = SystemRDLParser.CastTypeContext(self, localctx)
                self.enterOuterAlt(localctx, 1)
                self.state = 428
                localctx.typ = self._input.LT(1)
                _la = self._input.LA(1)
                if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.BOOLEAN_kw) | (1 << SystemRDLParser.BIT_kw) | (1 << SystemRDLParser.LONGINT_kw))) != 0)):
                    localctx.typ = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 429
                localctx.op = self.match(SystemRDLParser.T__10)
                self.state = 430
                self.match(SystemRDLParser.T__5)
                self.state = 431
                self.expr(0)
                self.state = 432
                self.match(SystemRDLParser.T__6)
                pass
            elif token in [SystemRDLParser.T__5, SystemRDLParser.TRUE_kw, SystemRDLParser.FALSE_kw, SystemRDLParser.NA_kw, SystemRDLParser.RW_kw, SystemRDLParser.WR_kw, SystemRDLParser.R_kw, SystemRDLParser.W_kw, SystemRDLParser.RW1_kw, SystemRDLParser.W1_kw, SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.RUSER_kw, SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.WOT_kw, SystemRDLParser.WZS_kw, SystemRDLParser.WZC_kw, SystemRDLParser.WZT_kw, SystemRDLParser.WCLR_kw, SystemRDLParser.WSET_kw, SystemRDLParser.WUSER_kw, SystemRDLParser.COMPACT_kw, SystemRDLParser.REGALIGN_kw, SystemRDLParser.FULLALIGN_kw, SystemRDLParser.HW_kw, SystemRDLParser.SW_kw, SystemRDLParser.INT, SystemRDLParser.HEX_INT, SystemRDLParser.VLOG_INT, SystemRDLParser.STRING, SystemRDLParser.ID]:
                localctx = SystemRDLParser.CastWidthContext(self, localctx)
                self.enterOuterAlt(localctx, 2)
                self.state = 434
                self.cast_width_expr()
                self.state = 435
                localctx.op = self.match(SystemRDLParser.T__10)
                self.state = 436
                self.match(SystemRDLParser.T__5)
                self.state = 437
                self.expr(0)
                self.state = 438
                self.match(SystemRDLParser.T__6)
                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 Cast_width_exprContext(ParserRuleContext):

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

        def literal(self):
            return self.getTypedRuleContext(SystemRDLParser.LiteralContext,0)


        def paren_expr(self):
            return self.getTypedRuleContext(SystemRDLParser.Paren_exprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_cast_width_expr

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitCast_width_expr" ):
                return visitor.visitCast_width_expr(self)
            else:
                return visitor.visitChildren(self)




    def cast_width_expr(self):

        localctx = SystemRDLParser.Cast_width_exprContext(self, self._ctx, self.state)
        self.enterRule(localctx, 56, self.RULE_cast_width_expr)
        try:
            self.state = 444
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.TRUE_kw, SystemRDLParser.FALSE_kw, SystemRDLParser.NA_kw, SystemRDLParser.RW_kw, SystemRDLParser.WR_kw, SystemRDLParser.R_kw, SystemRDLParser.W_kw, SystemRDLParser.RW1_kw, SystemRDLParser.W1_kw, SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.RUSER_kw, SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.WOT_kw, SystemRDLParser.WZS_kw, SystemRDLParser.WZC_kw, SystemRDLParser.WZT_kw, SystemRDLParser.WCLR_kw, SystemRDLParser.WSET_kw, SystemRDLParser.WUSER_kw, SystemRDLParser.COMPACT_kw, SystemRDLParser.REGALIGN_kw, SystemRDLParser.FULLALIGN_kw, SystemRDLParser.HW_kw, SystemRDLParser.SW_kw, SystemRDLParser.INT, SystemRDLParser.HEX_INT, SystemRDLParser.VLOG_INT, SystemRDLParser.STRING, SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 1)
                self.state = 442
                self.literal()
                pass
            elif token in [SystemRDLParser.T__5]:
                self.enterOuterAlt(localctx, 2)
                self.state = 443
                self.paren_expr()
                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 Range_suffixContext(ParserRuleContext):

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

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_range_suffix

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitRange_suffix" ):
                return visitor.visitRange_suffix(self)
            else:
                return visitor.visitChildren(self)




    def range_suffix(self):

        localctx = SystemRDLParser.Range_suffixContext(self, self._ctx, self.state)
        self.enterRule(localctx, 58, self.RULE_range_suffix)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 446
            self.match(SystemRDLParser.T__11)
            self.state = 447
            self.expr(0)
            self.state = 448
            self.match(SystemRDLParser.T__9)
            self.state = 449
            self.expr(0)
            self.state = 450
            self.match(SystemRDLParser.T__12)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Array_suffixContext(ParserRuleContext):

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

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_array_suffix

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitArray_suffix" ):
                return visitor.visitArray_suffix(self)
            else:
                return visitor.visitChildren(self)




    def array_suffix(self):

        localctx = SystemRDLParser.Array_suffixContext(self, self._ctx, self.state)
        self.enterRule(localctx, 60, self.RULE_array_suffix)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 452
            self.match(SystemRDLParser.T__11)
            self.state = 453
            self.expr(0)
            self.state = 454
            self.match(SystemRDLParser.T__12)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Array_type_suffixContext(ParserRuleContext):

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


        def getRuleIndex(self):
            return SystemRDLParser.RULE_array_type_suffix

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitArray_type_suffix" ):
                return visitor.visitArray_type_suffix(self)
            else:
                return visitor.visitChildren(self)




    def array_type_suffix(self):

        localctx = SystemRDLParser.Array_type_suffixContext(self, self._ctx, self.state)
        self.enterRule(localctx, 62, self.RULE_array_type_suffix)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 456
            self.match(SystemRDLParser.T__11)
            self.state = 457
            self.match(SystemRDLParser.T__12)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Data_typeContext(ParserRuleContext):

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

        def basic_data_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Basic_data_typeContext,0)


        def ACCESSTYPE_kw(self):
            return self.getToken(SystemRDLParser.ACCESSTYPE_kw, 0)

        def ADDRESSINGTYPE_kw(self):
            return self.getToken(SystemRDLParser.ADDRESSINGTYPE_kw, 0)

        def ONREADTYPE_kw(self):
            return self.getToken(SystemRDLParser.ONREADTYPE_kw, 0)

        def ONWRITETYPE_kw(self):
            return self.getToken(SystemRDLParser.ONWRITETYPE_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_data_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitData_type" ):
                return visitor.visitData_type(self)
            else:
                return visitor.visitChildren(self)




    def data_type(self):

        localctx = SystemRDLParser.Data_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 64, self.RULE_data_type)
        self._la = 0 # Token type
        try:
            self.state = 461
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.BOOLEAN_kw, SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw, SystemRDLParser.STRING_kw, SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 1)
                self.state = 459
                self.basic_data_type()
                pass
            elif token in [SystemRDLParser.ACCESSTYPE_kw, SystemRDLParser.ADDRESSINGTYPE_kw, SystemRDLParser.ONREADTYPE_kw, SystemRDLParser.ONWRITETYPE_kw]:
                self.enterOuterAlt(localctx, 2)
                self.state = 460
                localctx.kw = self._input.LT(1)
                _la = self._input.LA(1)
                if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.ACCESSTYPE_kw) | (1 << SystemRDLParser.ADDRESSINGTYPE_kw) | (1 << SystemRDLParser.ONREADTYPE_kw) | (1 << SystemRDLParser.ONWRITETYPE_kw))) != 0)):
                    localctx.kw = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                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 Basic_data_typeContext(ParserRuleContext):

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

        def BIT_kw(self):
            return self.getToken(SystemRDLParser.BIT_kw, 0)

        def LONGINT_kw(self):
            return self.getToken(SystemRDLParser.LONGINT_kw, 0)

        def UNSIGNED_kw(self):
            return self.getToken(SystemRDLParser.UNSIGNED_kw, 0)

        def STRING_kw(self):
            return self.getToken(SystemRDLParser.STRING_kw, 0)

        def BOOLEAN_kw(self):
            return self.getToken(SystemRDLParser.BOOLEAN_kw, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_basic_data_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitBasic_data_type" ):
                return visitor.visitBasic_data_type(self)
            else:
                return visitor.visitChildren(self)




    def basic_data_type(self):

        localctx = SystemRDLParser.Basic_data_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 66, self.RULE_basic_data_type)
        self._la = 0 # Token type
        try:
            self.state = 468
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw]:
                self.enterOuterAlt(localctx, 1)
                self.state = 463
                localctx.kw = self._input.LT(1)
                _la = self._input.LA(1)
                if not(_la==SystemRDLParser.BIT_kw or _la==SystemRDLParser.LONGINT_kw):
                    localctx.kw = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 465
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==SystemRDLParser.UNSIGNED_kw:
                    self.state = 464
                    self.match(SystemRDLParser.UNSIGNED_kw)


                pass
            elif token in [SystemRDLParser.BOOLEAN_kw, SystemRDLParser.STRING_kw, SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 2)
                self.state = 467
                localctx.kw = self._input.LT(1)
                _la = self._input.LA(1)
                if not(_la==SystemRDLParser.BOOLEAN_kw or _la==SystemRDLParser.STRING_kw or _la==SystemRDLParser.ID):
                    localctx.kw = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                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 LiteralContext(ParserRuleContext):

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

        def number(self):
            return self.getTypedRuleContext(SystemRDLParser.NumberContext,0)


        def string_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.String_literalContext,0)


        def boolean_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Boolean_literalContext,0)


        def accesstype_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Accesstype_literalContext,0)


        def onreadtype_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Onreadtype_literalContext,0)


        def onwritetype_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Onwritetype_literalContext,0)


        def addressingtype_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Addressingtype_literalContext,0)


        def precedencetype_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Precedencetype_literalContext,0)


        def enum_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Enum_literalContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitLiteral" ):
                return visitor.visitLiteral(self)
            else:
                return visitor.visitChildren(self)




    def literal(self):

        localctx = SystemRDLParser.LiteralContext(self, self._ctx, self.state)
        self.enterRule(localctx, 68, self.RULE_literal)
        try:
            self.state = 479
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.INT, SystemRDLParser.HEX_INT, SystemRDLParser.VLOG_INT]:
                self.enterOuterAlt(localctx, 1)
                self.state = 470
                self.number()
                pass
            elif token in [SystemRDLParser.STRING]:
                self.enterOuterAlt(localctx, 2)
                self.state = 471
                self.string_literal()
                pass
            elif token in [SystemRDLParser.TRUE_kw, SystemRDLParser.FALSE_kw]:
                self.enterOuterAlt(localctx, 3)
                self.state = 472
                self.boolean_literal()
                pass
            elif token in [SystemRDLParser.NA_kw, SystemRDLParser.RW_kw, SystemRDLParser.WR_kw, SystemRDLParser.R_kw, SystemRDLParser.W_kw, SystemRDLParser.RW1_kw, SystemRDLParser.W1_kw]:
                self.enterOuterAlt(localctx, 4)
                self.state = 473
                self.accesstype_literal()
                pass
            elif token in [SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.RUSER_kw]:
                self.enterOuterAlt(localctx, 5)
                self.state = 474
                self.onreadtype_literal()
                pass
            elif token in [SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.WOT_kw, SystemRDLParser.WZS_kw, SystemRDLParser.WZC_kw, SystemRDLParser.WZT_kw, SystemRDLParser.WCLR_kw, SystemRDLParser.WSET_kw, SystemRDLParser.WUSER_kw]:
                self.enterOuterAlt(localctx, 6)
                self.state = 475
                self.onwritetype_literal()
                pass
            elif token in [SystemRDLParser.COMPACT_kw, SystemRDLParser.REGALIGN_kw, SystemRDLParser.FULLALIGN_kw]:
                self.enterOuterAlt(localctx, 7)
                self.state = 476
                self.addressingtype_literal()
                pass
            elif token in [SystemRDLParser.HW_kw, SystemRDLParser.SW_kw]:
                self.enterOuterAlt(localctx, 8)
                self.state = 477
                self.precedencetype_literal()
                pass
            elif token in [SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 9)
                self.state = 478
                self.enum_literal()
                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 NumberContext(ParserRuleContext):

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


        def getRuleIndex(self):
            return SystemRDLParser.RULE_number

     
        def copyFrom(self, ctx:ParserRuleContext):
            super().copyFrom(ctx)



    class NumberHexContext(NumberContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.NumberContext
            super().__init__(parser)
            self.copyFrom(ctx)

        def HEX_INT(self):
            return self.getToken(SystemRDLParser.HEX_INT, 0)

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitNumberHex" ):
                return visitor.visitNumberHex(self)
            else:
                return visitor.visitChildren(self)


    class NumberVerilogContext(NumberContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.NumberContext
            super().__init__(parser)
            self.copyFrom(ctx)

        def VLOG_INT(self):
            return self.getToken(SystemRDLParser.VLOG_INT, 0)

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitNumberVerilog" ):
                return visitor.visitNumberVerilog(self)
            else:
                return visitor.visitChildren(self)


    class NumberIntContext(NumberContext):

        def __init__(self, parser, ctx:ParserRuleContext): # actually a SystemRDLParser.NumberContext
            super().__init__(parser)
            self.copyFrom(ctx)

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

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitNumberInt" ):
                return visitor.visitNumberInt(self)
            else:
                return visitor.visitChildren(self)



    def number(self):

        localctx = SystemRDLParser.NumberContext(self, self._ctx, self.state)
        self.enterRule(localctx, 70, self.RULE_number)
        try:
            self.state = 484
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.INT]:
                localctx = SystemRDLParser.NumberIntContext(self, localctx)
                self.enterOuterAlt(localctx, 1)
                self.state = 481
                self.match(SystemRDLParser.INT)
                pass
            elif token in [SystemRDLParser.HEX_INT]:
                localctx = SystemRDLParser.NumberHexContext(self, localctx)
                self.enterOuterAlt(localctx, 2)
                self.state = 482
                self.match(SystemRDLParser.HEX_INT)
                pass
            elif token in [SystemRDLParser.VLOG_INT]:
                localctx = SystemRDLParser.NumberVerilogContext(self, localctx)
                self.enterOuterAlt(localctx, 3)
                self.state = 483
                self.match(SystemRDLParser.VLOG_INT)
                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 String_literalContext(ParserRuleContext):

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

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

        def getRuleIndex(self):
            return SystemRDLParser.RULE_string_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitString_literal" ):
                return visitor.visitString_literal(self)
            else:
                return visitor.visitChildren(self)




    def string_literal(self):

        localctx = SystemRDLParser.String_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 72, self.RULE_string_literal)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 486
            self.match(SystemRDLParser.STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Boolean_literalContext(ParserRuleContext):

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

        def TRUE_kw(self):
            return self.getToken(SystemRDLParser.TRUE_kw, 0)

        def FALSE_kw(self):
            return self.getToken(SystemRDLParser.FALSE_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_boolean_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitBoolean_literal" ):
                return visitor.visitBoolean_literal(self)
            else:
                return visitor.visitChildren(self)




    def boolean_literal(self):

        localctx = SystemRDLParser.Boolean_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 74, self.RULE_boolean_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 488
            localctx.val = self._input.LT(1)
            _la = self._input.LA(1)
            if not(_la==SystemRDLParser.TRUE_kw or _la==SystemRDLParser.FALSE_kw):
                localctx.val = 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 Array_literalContext(ParserRuleContext):

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

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_array_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitArray_literal" ):
                return visitor.visitArray_literal(self)
            else:
                return visitor.visitChildren(self)




    def array_literal(self):

        localctx = SystemRDLParser.Array_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 76, self.RULE_array_literal)
        self._la = 0 # Token type
        try:
            self.state = 505
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,37,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 490
                self.match(SystemRDLParser.T__10)
                self.state = 491
                self.match(SystemRDLParser.T__1)
                self.state = 492
                self.match(SystemRDLParser.T__2)
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 493
                self.match(SystemRDLParser.T__10)
                self.state = 494
                self.match(SystemRDLParser.T__1)
                self.state = 495
                self.expr(0)
                self.state = 500
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==SystemRDLParser.T__3:
                    self.state = 496
                    self.match(SystemRDLParser.T__3)
                    self.state = 497
                    self.expr(0)
                    self.state = 502
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                self.state = 503
                self.match(SystemRDLParser.T__2)
                pass


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


    class Struct_literalContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def struct_kv(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Struct_kvContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Struct_kvContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_struct_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitStruct_literal" ):
                return visitor.visitStruct_literal(self)
            else:
                return visitor.visitChildren(self)




    def struct_literal(self):

        localctx = SystemRDLParser.Struct_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 78, self.RULE_struct_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 507
            self.match(SystemRDLParser.ID)
            self.state = 508
            self.match(SystemRDLParser.T__10)
            self.state = 509
            self.match(SystemRDLParser.T__1)
            self.state = 510
            self.struct_kv()
            self.state = 515
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 511
                self.match(SystemRDLParser.T__3)
                self.state = 512
                self.struct_kv()
                self.state = 517
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 518
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Struct_kvContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_struct_kv

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitStruct_kv" ):
                return visitor.visitStruct_kv(self)
            else:
                return visitor.visitChildren(self)




    def struct_kv(self):

        localctx = SystemRDLParser.Struct_kvContext(self, self._ctx, self.state)
        self.enterRule(localctx, 80, self.RULE_struct_kv)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 520
            self.match(SystemRDLParser.ID)
            self.state = 521
            self.match(SystemRDLParser.T__9)
            self.state = 522
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Enum_literalContext(ParserRuleContext):

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

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

        def getRuleIndex(self):
            return SystemRDLParser.RULE_enum_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEnum_literal" ):
                return visitor.visitEnum_literal(self)
            else:
                return visitor.visitChildren(self)




    def enum_literal(self):

        localctx = SystemRDLParser.Enum_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 82, self.RULE_enum_literal)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 524
            self.match(SystemRDLParser.ID)
            self.state = 525
            self.match(SystemRDLParser.T__13)
            self.state = 526
            self.match(SystemRDLParser.ID)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Accesstype_literalContext(ParserRuleContext):

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

        def NA_kw(self):
            return self.getToken(SystemRDLParser.NA_kw, 0)

        def RW_kw(self):
            return self.getToken(SystemRDLParser.RW_kw, 0)

        def WR_kw(self):
            return self.getToken(SystemRDLParser.WR_kw, 0)

        def R_kw(self):
            return self.getToken(SystemRDLParser.R_kw, 0)

        def W_kw(self):
            return self.getToken(SystemRDLParser.W_kw, 0)

        def RW1_kw(self):
            return self.getToken(SystemRDLParser.RW1_kw, 0)

        def W1_kw(self):
            return self.getToken(SystemRDLParser.W1_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_accesstype_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitAccesstype_literal" ):
                return visitor.visitAccesstype_literal(self)
            else:
                return visitor.visitChildren(self)




    def accesstype_literal(self):

        localctx = SystemRDLParser.Accesstype_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 84, self.RULE_accesstype_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 528
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.NA_kw) | (1 << SystemRDLParser.RW_kw) | (1 << SystemRDLParser.WR_kw) | (1 << SystemRDLParser.R_kw) | (1 << SystemRDLParser.W_kw) | (1 << SystemRDLParser.RW1_kw) | (1 << SystemRDLParser.W1_kw))) != 0)):
                localctx.kw = 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 Onreadtype_literalContext(ParserRuleContext):

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

        def RCLR_kw(self):
            return self.getToken(SystemRDLParser.RCLR_kw, 0)

        def RSET_kw(self):
            return self.getToken(SystemRDLParser.RSET_kw, 0)

        def RUSER_kw(self):
            return self.getToken(SystemRDLParser.RUSER_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_onreadtype_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitOnreadtype_literal" ):
                return visitor.visitOnreadtype_literal(self)
            else:
                return visitor.visitChildren(self)




    def onreadtype_literal(self):

        localctx = SystemRDLParser.Onreadtype_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 86, self.RULE_onreadtype_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 530
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.RCLR_kw) | (1 << SystemRDLParser.RSET_kw) | (1 << SystemRDLParser.RUSER_kw))) != 0)):
                localctx.kw = 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 Onwritetype_literalContext(ParserRuleContext):

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

        def WOSET_kw(self):
            return self.getToken(SystemRDLParser.WOSET_kw, 0)

        def WOCLR_kw(self):
            return self.getToken(SystemRDLParser.WOCLR_kw, 0)

        def WOT_kw(self):
            return self.getToken(SystemRDLParser.WOT_kw, 0)

        def WZS_kw(self):
            return self.getToken(SystemRDLParser.WZS_kw, 0)

        def WZC_kw(self):
            return self.getToken(SystemRDLParser.WZC_kw, 0)

        def WZT_kw(self):
            return self.getToken(SystemRDLParser.WZT_kw, 0)

        def WCLR_kw(self):
            return self.getToken(SystemRDLParser.WCLR_kw, 0)

        def WSET_kw(self):
            return self.getToken(SystemRDLParser.WSET_kw, 0)

        def WUSER_kw(self):
            return self.getToken(SystemRDLParser.WUSER_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_onwritetype_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitOnwritetype_literal" ):
                return visitor.visitOnwritetype_literal(self)
            else:
                return visitor.visitChildren(self)




    def onwritetype_literal(self):

        localctx = SystemRDLParser.Onwritetype_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 88, self.RULE_onwritetype_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 532
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.WOSET_kw) | (1 << SystemRDLParser.WOCLR_kw) | (1 << SystemRDLParser.WOT_kw) | (1 << SystemRDLParser.WZS_kw) | (1 << SystemRDLParser.WZC_kw) | (1 << SystemRDLParser.WZT_kw) | (1 << SystemRDLParser.WCLR_kw) | (1 << SystemRDLParser.WSET_kw) | (1 << SystemRDLParser.WUSER_kw))) != 0)):
                localctx.kw = 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 Addressingtype_literalContext(ParserRuleContext):

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

        def COMPACT_kw(self):
            return self.getToken(SystemRDLParser.COMPACT_kw, 0)

        def REGALIGN_kw(self):
            return self.getToken(SystemRDLParser.REGALIGN_kw, 0)

        def FULLALIGN_kw(self):
            return self.getToken(SystemRDLParser.FULLALIGN_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_addressingtype_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitAddressingtype_literal" ):
                return visitor.visitAddressingtype_literal(self)
            else:
                return visitor.visitChildren(self)




    def addressingtype_literal(self):

        localctx = SystemRDLParser.Addressingtype_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 90, self.RULE_addressingtype_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 534
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.COMPACT_kw) | (1 << SystemRDLParser.REGALIGN_kw) | (1 << SystemRDLParser.FULLALIGN_kw))) != 0)):
                localctx.kw = 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 Precedencetype_literalContext(ParserRuleContext):

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

        def HW_kw(self):
            return self.getToken(SystemRDLParser.HW_kw, 0)

        def SW_kw(self):
            return self.getToken(SystemRDLParser.SW_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_precedencetype_literal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitPrecedencetype_literal" ):
                return visitor.visitPrecedencetype_literal(self)
            else:
                return visitor.visitChildren(self)




    def precedencetype_literal(self):

        localctx = SystemRDLParser.Precedencetype_literalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 92, self.RULE_precedencetype_literal)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 536
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not(_la==SystemRDLParser.HW_kw or _la==SystemRDLParser.SW_kw):
                localctx.kw = 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 Instance_refContext(ParserRuleContext):

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

        def instance_ref_element(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Instance_ref_elementContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Instance_ref_elementContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_instance_ref

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitInstance_ref" ):
                return visitor.visitInstance_ref(self)
            else:
                return visitor.visitChildren(self)




    def instance_ref(self):

        localctx = SystemRDLParser.Instance_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 94, self.RULE_instance_ref)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 538
            self.instance_ref_element()
            self.state = 543
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,39,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 539
                    self.match(SystemRDLParser.T__7)
                    self.state = 540
                    self.instance_ref_element() 
                self.state = 545
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,39,self._ctx)

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


    class Instance_ref_elementContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def array_suffix(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Array_suffixContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Array_suffixContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_instance_ref_element

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitInstance_ref_element" ):
                return visitor.visitInstance_ref_element(self)
            else:
                return visitor.visitChildren(self)




    def instance_ref_element(self):

        localctx = SystemRDLParser.Instance_ref_elementContext(self, self._ctx, self.state)
        self.enterRule(localctx, 96, self.RULE_instance_ref_element)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 546
            self.match(SystemRDLParser.ID)
            self.state = 550
            self._errHandler.sync(self)
            _alt = self._interp.adaptivePredict(self._input,40,self._ctx)
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt==1:
                    self.state = 547
                    self.array_suffix() 
                self.state = 552
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,40,self._ctx)

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


    class Prop_refContext(ParserRuleContext):

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

        def instance_ref(self):
            return self.getTypedRuleContext(SystemRDLParser.Instance_refContext,0)


        def prop_keyword(self):
            return self.getTypedRuleContext(SystemRDLParser.Prop_keywordContext,0)


        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_prop_ref

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitProp_ref" ):
                return visitor.visitProp_ref(self)
            else:
                return visitor.visitChildren(self)




    def prop_ref(self):

        localctx = SystemRDLParser.Prop_refContext(self, self._ctx, self.state)
        self.enterRule(localctx, 98, self.RULE_prop_ref)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 553
            self.instance_ref()
            self.state = 554
            self.match(SystemRDLParser.T__14)
            self.state = 557
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.HW_kw, SystemRDLParser.SW_kw]:
                self.state = 555
                self.prop_keyword()
                pass
            elif token in [SystemRDLParser.ID]:
                self.state = 556
                self.match(SystemRDLParser.ID)
                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 Local_property_assignmentContext(ParserRuleContext):

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

        def normal_prop_assign(self):
            return self.getTypedRuleContext(SystemRDLParser.Normal_prop_assignContext,0)


        def DEFAULT_kw(self):
            return self.getToken(SystemRDLParser.DEFAULT_kw, 0)

        def encode_prop_assign(self):
            return self.getTypedRuleContext(SystemRDLParser.Encode_prop_assignContext,0)


        def prop_mod_assign(self):
            return self.getTypedRuleContext(SystemRDLParser.Prop_mod_assignContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_local_property_assignment

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitLocal_property_assignment" ):
                return visitor.visitLocal_property_assignment(self)
            else:
                return visitor.visitChildren(self)




    def local_property_assignment(self):

        localctx = SystemRDLParser.Local_property_assignmentContext(self, self._ctx, self.state)
        self.enterRule(localctx, 100, self.RULE_local_property_assignment)
        self._la = 0 # Token type
        try:
            self.state = 571
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,45,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 560
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==SystemRDLParser.DEFAULT_kw:
                    self.state = 559
                    self.match(SystemRDLParser.DEFAULT_kw)


                self.state = 562
                self.normal_prop_assign()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 564
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==SystemRDLParser.DEFAULT_kw:
                    self.state = 563
                    self.match(SystemRDLParser.DEFAULT_kw)


                self.state = 566
                self.encode_prop_assign()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 568
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==SystemRDLParser.DEFAULT_kw:
                    self.state = 567
                    self.match(SystemRDLParser.DEFAULT_kw)


                self.state = 570
                self.prop_mod_assign()
                pass


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


    class Dynamic_property_assignmentContext(ParserRuleContext):

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

        def instance_ref(self):
            return self.getTypedRuleContext(SystemRDLParser.Instance_refContext,0)


        def normal_prop_assign(self):
            return self.getTypedRuleContext(SystemRDLParser.Normal_prop_assignContext,0)


        def encode_prop_assign(self):
            return self.getTypedRuleContext(SystemRDLParser.Encode_prop_assignContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_dynamic_property_assignment

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitDynamic_property_assignment" ):
                return visitor.visitDynamic_property_assignment(self)
            else:
                return visitor.visitChildren(self)




    def dynamic_property_assignment(self):

        localctx = SystemRDLParser.Dynamic_property_assignmentContext(self, self._ctx, self.state)
        self.enterRule(localctx, 102, self.RULE_dynamic_property_assignment)
        try:
            self.state = 581
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,46,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 573
                self.instance_ref()
                self.state = 574
                self.match(SystemRDLParser.T__14)
                self.state = 575
                self.normal_prop_assign()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 577
                self.instance_ref()
                self.state = 578
                self.match(SystemRDLParser.T__14)
                self.state = 579
                self.encode_prop_assign()
                pass


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


    class Normal_prop_assignContext(ParserRuleContext):

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

        def prop_keyword(self):
            return self.getTypedRuleContext(SystemRDLParser.Prop_keywordContext,0)


        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def prop_assignment_rhs(self):
            return self.getTypedRuleContext(SystemRDLParser.Prop_assignment_rhsContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_normal_prop_assign

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitNormal_prop_assign" ):
                return visitor.visitNormal_prop_assign(self)
            else:
                return visitor.visitChildren(self)




    def normal_prop_assign(self):

        localctx = SystemRDLParser.Normal_prop_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 104, self.RULE_normal_prop_assign)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 585
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.HW_kw, SystemRDLParser.SW_kw]:
                self.state = 583
                self.prop_keyword()
                pass
            elif token in [SystemRDLParser.ID]:
                self.state = 584
                self.match(SystemRDLParser.ID)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 589
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ASSIGN:
                self.state = 587
                self.match(SystemRDLParser.ASSIGN)
                self.state = 588
                self.prop_assignment_rhs()


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


    class Encode_prop_assignContext(ParserRuleContext):

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

        def ENCODE_kw(self):
            return self.getToken(SystemRDLParser.ENCODE_kw, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_encode_prop_assign

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEncode_prop_assign" ):
                return visitor.visitEncode_prop_assign(self)
            else:
                return visitor.visitChildren(self)




    def encode_prop_assign(self):

        localctx = SystemRDLParser.Encode_prop_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 106, self.RULE_encode_prop_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 591
            self.match(SystemRDLParser.ENCODE_kw)
            self.state = 592
            self.match(SystemRDLParser.ASSIGN)
            self.state = 593
            self.match(SystemRDLParser.ID)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Prop_mod_assignContext(ParserRuleContext):

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

        def prop_mod(self):
            return self.getTypedRuleContext(SystemRDLParser.Prop_modContext,0)


        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_prop_mod_assign

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitProp_mod_assign" ):
                return visitor.visitProp_mod_assign(self)
            else:
                return visitor.visitChildren(self)




    def prop_mod_assign(self):

        localctx = SystemRDLParser.Prop_mod_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 108, self.RULE_prop_mod_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 595
            self.prop_mod()
            self.state = 596
            self.match(SystemRDLParser.ID)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Prop_assignment_rhsContext(ParserRuleContext):

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

        def precedencetype_literal(self):
            return self.getTypedRuleContext(SystemRDLParser.Precedencetype_literalContext,0)


        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_prop_assignment_rhs

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitProp_assignment_rhs" ):
                return visitor.visitProp_assignment_rhs(self)
            else:
                return visitor.visitChildren(self)




    def prop_assignment_rhs(self):

        localctx = SystemRDLParser.Prop_assignment_rhsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 110, self.RULE_prop_assignment_rhs)
        try:
            self.state = 600
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,49,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 598
                self.precedencetype_literal()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 599
                self.expr(0)
                pass


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


    class Prop_keywordContext(ParserRuleContext):

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

        def SW_kw(self):
            return self.getToken(SystemRDLParser.SW_kw, 0)

        def HW_kw(self):
            return self.getToken(SystemRDLParser.HW_kw, 0)

        def RCLR_kw(self):
            return self.getToken(SystemRDLParser.RCLR_kw, 0)

        def RSET_kw(self):
            return self.getToken(SystemRDLParser.RSET_kw, 0)

        def WOCLR_kw(self):
            return self.getToken(SystemRDLParser.WOCLR_kw, 0)

        def WOSET_kw(self):
            return self.getToken(SystemRDLParser.WOSET_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_prop_keyword

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitProp_keyword" ):
                return visitor.visitProp_keyword(self)
            else:
                return visitor.visitChildren(self)




    def prop_keyword(self):

        localctx = SystemRDLParser.Prop_keywordContext(self, self._ctx, self.state)
        self.enterRule(localctx, 112, self.RULE_prop_keyword)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 602
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.RCLR_kw) | (1 << SystemRDLParser.RSET_kw) | (1 << SystemRDLParser.WOSET_kw) | (1 << SystemRDLParser.WOCLR_kw) | (1 << SystemRDLParser.HW_kw) | (1 << SystemRDLParser.SW_kw))) != 0)):
                localctx.kw = 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 Prop_modContext(ParserRuleContext):

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

        def POSEDGE_kw(self):
            return self.getToken(SystemRDLParser.POSEDGE_kw, 0)

        def NEGEDGE_kw(self):
            return self.getToken(SystemRDLParser.NEGEDGE_kw, 0)

        def BOTHEDGE_kw(self):
            return self.getToken(SystemRDLParser.BOTHEDGE_kw, 0)

        def LEVEL_kw(self):
            return self.getToken(SystemRDLParser.LEVEL_kw, 0)

        def NONSTICKY_kw(self):
            return self.getToken(SystemRDLParser.NONSTICKY_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_prop_mod

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitProp_mod" ):
                return visitor.visitProp_mod(self)
            else:
                return visitor.visitChildren(self)




    def prop_mod(self):

        localctx = SystemRDLParser.Prop_modContext(self, self._ctx, self.state)
        self.enterRule(localctx, 114, self.RULE_prop_mod)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 604
            localctx.kw = self._input.LT(1)
            _la = self._input.LA(1)
            if not(((((_la - 62)) & ~0x3f) == 0 and ((1 << (_la - 62)) & ((1 << (SystemRDLParser.POSEDGE_kw - 62)) | (1 << (SystemRDLParser.NEGEDGE_kw - 62)) | (1 << (SystemRDLParser.BOTHEDGE_kw - 62)) | (1 << (SystemRDLParser.LEVEL_kw - 62)) | (1 << (SystemRDLParser.NONSTICKY_kw - 62)))) != 0)):
                localctx.kw = 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 Udp_defContext(ParserRuleContext):

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

        def PROPERTY_kw(self):
            return self.getToken(SystemRDLParser.PROPERTY_kw, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def udp_attr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Udp_attrContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Udp_attrContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_def" ):
                return visitor.visitUdp_def(self)
            else:
                return visitor.visitChildren(self)




    def udp_def(self):

        localctx = SystemRDLParser.Udp_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 116, self.RULE_udp_def)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 606
            self.match(SystemRDLParser.PROPERTY_kw)
            self.state = 607
            self.match(SystemRDLParser.ID)
            self.state = 608
            self.match(SystemRDLParser.T__1)
            self.state = 612 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 609
                self.udp_attr()
                self.state = 610
                self.match(SystemRDLParser.T__0)
                self.state = 614 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (((((_la - 69)) & ~0x3f) == 0 and ((1 << (_la - 69)) & ((1 << (SystemRDLParser.COMPONENT_kw - 69)) | (1 << (SystemRDLParser.CONSTRAINT_kw - 69)) | (1 << (SystemRDLParser.DEFAULT_kw - 69)) | (1 << (SystemRDLParser.TYPE_kw - 69)))) != 0)):
                    break

            self.state = 616
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Udp_attrContext(ParserRuleContext):

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

        def udp_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Udp_typeContext,0)


        def udp_usage(self):
            return self.getTypedRuleContext(SystemRDLParser.Udp_usageContext,0)


        def udp_default(self):
            return self.getTypedRuleContext(SystemRDLParser.Udp_defaultContext,0)


        def udp_constraint(self):
            return self.getTypedRuleContext(SystemRDLParser.Udp_constraintContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_attr

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_attr" ):
                return visitor.visitUdp_attr(self)
            else:
                return visitor.visitChildren(self)




    def udp_attr(self):

        localctx = SystemRDLParser.Udp_attrContext(self, self._ctx, self.state)
        self.enterRule(localctx, 118, self.RULE_udp_attr)
        try:
            self.state = 622
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.TYPE_kw]:
                self.enterOuterAlt(localctx, 1)
                self.state = 618
                self.udp_type()
                pass
            elif token in [SystemRDLParser.COMPONENT_kw]:
                self.enterOuterAlt(localctx, 2)
                self.state = 619
                self.udp_usage()
                pass
            elif token in [SystemRDLParser.DEFAULT_kw]:
                self.enterOuterAlt(localctx, 3)
                self.state = 620
                self.udp_default()
                pass
            elif token in [SystemRDLParser.CONSTRAINT_kw]:
                self.enterOuterAlt(localctx, 4)
                self.state = 621
                self.udp_constraint()
                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 Udp_typeContext(ParserRuleContext):

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

        def TYPE_kw(self):
            return self.getToken(SystemRDLParser.TYPE_kw, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def udp_data_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Udp_data_typeContext,0)


        def array_type_suffix(self):
            return self.getTypedRuleContext(SystemRDLParser.Array_type_suffixContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_type" ):
                return visitor.visitUdp_type(self)
            else:
                return visitor.visitChildren(self)




    def udp_type(self):

        localctx = SystemRDLParser.Udp_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 120, self.RULE_udp_type)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 624
            self.match(SystemRDLParser.TYPE_kw)
            self.state = 625
            self.match(SystemRDLParser.ASSIGN)
            self.state = 626
            self.udp_data_type()
            self.state = 628
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__11:
                self.state = 627
                self.array_type_suffix()


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


    class Udp_data_typeContext(ParserRuleContext):

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

        def component_type_primary(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_type_primaryContext,0)


        def REF_kw(self):
            return self.getToken(SystemRDLParser.REF_kw, 0)

        def NUMBER_kw(self):
            return self.getToken(SystemRDLParser.NUMBER_kw, 0)

        def basic_data_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Basic_data_typeContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_data_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_data_type" ):
                return visitor.visitUdp_data_type(self)
            else:
                return visitor.visitChildren(self)




    def udp_data_type(self):

        localctx = SystemRDLParser.Udp_data_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 122, self.RULE_udp_data_type)
        self._la = 0 # Token type
        try:
            self.state = 633
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.ADDRMAP_kw, SystemRDLParser.REGFILE_kw, SystemRDLParser.REG_kw, SystemRDLParser.FIELD_kw, SystemRDLParser.MEM_kw]:
                self.enterOuterAlt(localctx, 1)
                self.state = 630
                self.component_type_primary()
                pass
            elif token in [SystemRDLParser.NUMBER_kw, SystemRDLParser.REF_kw]:
                self.enterOuterAlt(localctx, 2)
                self.state = 631
                localctx.kw = self._input.LT(1)
                _la = self._input.LA(1)
                if not(_la==SystemRDLParser.NUMBER_kw or _la==SystemRDLParser.REF_kw):
                    localctx.kw = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [SystemRDLParser.BOOLEAN_kw, SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw, SystemRDLParser.STRING_kw, SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 3)
                self.state = 632
                self.basic_data_type()
                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 Udp_usageContext(ParserRuleContext):

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

        def COMPONENT_kw(self):
            return self.getToken(SystemRDLParser.COMPONENT_kw, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def udp_comp_type(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Udp_comp_typeContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Udp_comp_typeContext,i)


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

        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_usage

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_usage" ):
                return visitor.visitUdp_usage(self)
            else:
                return visitor.visitChildren(self)




    def udp_usage(self):

        localctx = SystemRDLParser.Udp_usageContext(self, self._ctx, self.state)
        self.enterRule(localctx, 124, self.RULE_udp_usage)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 635
            self.match(SystemRDLParser.COMPONENT_kw)
            self.state = 636
            self.match(SystemRDLParser.ASSIGN)
            self.state = 637
            self.udp_comp_type()
            self.state = 642
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.OR:
                self.state = 638
                self.match(SystemRDLParser.OR)
                self.state = 639
                self.udp_comp_type()
                self.state = 644
                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 Udp_comp_typeContext(ParserRuleContext):

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

        def component_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_typeContext,0)


        def CONSTRAINT_kw(self):
            return self.getToken(SystemRDLParser.CONSTRAINT_kw, 0)

        def ALL_kw(self):
            return self.getToken(SystemRDLParser.ALL_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_comp_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_comp_type" ):
                return visitor.visitUdp_comp_type(self)
            else:
                return visitor.visitChildren(self)




    def udp_comp_type(self):

        localctx = SystemRDLParser.Udp_comp_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 126, self.RULE_udp_comp_type)
        self._la = 0 # Token type
        try:
            self.state = 647
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.ADDRMAP_kw, SystemRDLParser.REGFILE_kw, SystemRDLParser.REG_kw, SystemRDLParser.FIELD_kw, SystemRDLParser.MEM_kw, SystemRDLParser.SIGNAL_kw]:
                self.enterOuterAlt(localctx, 1)
                self.state = 645
                self.component_type()
                pass
            elif token in [SystemRDLParser.ALL_kw, SystemRDLParser.CONSTRAINT_kw]:
                self.enterOuterAlt(localctx, 2)
                self.state = 646
                localctx.kw = self._input.LT(1)
                _la = self._input.LA(1)
                if not(_la==SystemRDLParser.ALL_kw or _la==SystemRDLParser.CONSTRAINT_kw):
                    localctx.kw = self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                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 Udp_defaultContext(ParserRuleContext):

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

        def DEFAULT_kw(self):
            return self.getToken(SystemRDLParser.DEFAULT_kw, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_default

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_default" ):
                return visitor.visitUdp_default(self)
            else:
                return visitor.visitChildren(self)




    def udp_default(self):

        localctx = SystemRDLParser.Udp_defaultContext(self, self._ctx, self.state)
        self.enterRule(localctx, 128, self.RULE_udp_default)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 649
            self.match(SystemRDLParser.DEFAULT_kw)
            self.state = 650
            self.match(SystemRDLParser.ASSIGN)
            self.state = 651
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Udp_constraintContext(ParserRuleContext):

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

        def CONSTRAINT_kw(self):
            return self.getToken(SystemRDLParser.CONSTRAINT_kw, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def COMPONENTWIDTH_kw(self):
            return self.getToken(SystemRDLParser.COMPONENTWIDTH_kw, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_udp_constraint

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUdp_constraint" ):
                return visitor.visitUdp_constraint(self)
            else:
                return visitor.visitChildren(self)




    def udp_constraint(self):

        localctx = SystemRDLParser.Udp_constraintContext(self, self._ctx, self.state)
        self.enterRule(localctx, 130, self.RULE_udp_constraint)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 653
            self.match(SystemRDLParser.CONSTRAINT_kw)
            self.state = 654
            self.match(SystemRDLParser.ASSIGN)
            self.state = 655
            self.match(SystemRDLParser.COMPONENTWIDTH_kw)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Enum_defContext(ParserRuleContext):

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

        def ENUM_kw(self):
            return self.getToken(SystemRDLParser.ENUM_kw, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def enum_entry(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Enum_entryContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Enum_entryContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_enum_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEnum_def" ):
                return visitor.visitEnum_def(self)
            else:
                return visitor.visitChildren(self)




    def enum_def(self):

        localctx = SystemRDLParser.Enum_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 132, self.RULE_enum_def)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 657
            self.match(SystemRDLParser.ENUM_kw)
            self.state = 658
            self.match(SystemRDLParser.ID)
            self.state = 659
            self.match(SystemRDLParser.T__1)
            self.state = 663 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 660
                self.enum_entry()
                self.state = 661
                self.match(SystemRDLParser.T__0)
                self.state = 665 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==SystemRDLParser.ID):
                    break

            self.state = 667
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Enum_entryContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def enum_prop_assign(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Enum_prop_assignContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Enum_prop_assignContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_enum_entry

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEnum_entry" ):
                return visitor.visitEnum_entry(self)
            else:
                return visitor.visitChildren(self)




    def enum_entry(self):

        localctx = SystemRDLParser.Enum_entryContext(self, self._ctx, self.state)
        self.enterRule(localctx, 134, self.RULE_enum_entry)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 669
            self.match(SystemRDLParser.ID)
            self.state = 672
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ASSIGN:
                self.state = 670
                self.match(SystemRDLParser.ASSIGN)
                self.state = 671
                self.expr(0)


            self.state = 684
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__1:
                self.state = 674
                self.match(SystemRDLParser.T__1)
                self.state = 680
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==SystemRDLParser.ID:
                    self.state = 675
                    self.enum_prop_assign()
                    self.state = 676
                    self.match(SystemRDLParser.T__0)
                    self.state = 682
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                self.state = 683
                self.match(SystemRDLParser.T__2)


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


    class Enum_prop_assignContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_enum_prop_assign

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEnum_prop_assign" ):
                return visitor.visitEnum_prop_assign(self)
            else:
                return visitor.visitChildren(self)




    def enum_prop_assign(self):

        localctx = SystemRDLParser.Enum_prop_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 136, self.RULE_enum_prop_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 686
            self.match(SystemRDLParser.ID)
            self.state = 687
            self.match(SystemRDLParser.ASSIGN)
            self.state = 688
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Struct_defContext(ParserRuleContext):

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

        def STRUCT_kw(self):
            return self.getToken(SystemRDLParser.STRUCT_kw, 0)

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

        def ABSTRACT_kw(self):
            return self.getToken(SystemRDLParser.ABSTRACT_kw, 0)

        def struct_elem(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Struct_elemContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Struct_elemContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_struct_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitStruct_def" ):
                return visitor.visitStruct_def(self)
            else:
                return visitor.visitChildren(self)




    def struct_def(self):

        localctx = SystemRDLParser.Struct_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 138, self.RULE_struct_def)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 691
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.ABSTRACT_kw:
                self.state = 690
                self.match(SystemRDLParser.ABSTRACT_kw)


            self.state = 693
            self.match(SystemRDLParser.STRUCT_kw)
            self.state = 694
            localctx.name = self.match(SystemRDLParser.ID)
            self.state = 697
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__9:
                self.state = 695
                self.match(SystemRDLParser.T__9)
                self.state = 696
                localctx.base = self.match(SystemRDLParser.ID)


            self.state = 699
            self.match(SystemRDLParser.T__1)
            self.state = 705
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.BOOLEAN_kw) | (1 << SystemRDLParser.BIT_kw) | (1 << SystemRDLParser.LONGINT_kw) | (1 << SystemRDLParser.STRING_kw) | (1 << SystemRDLParser.ACCESSTYPE_kw) | (1 << SystemRDLParser.ADDRESSINGTYPE_kw) | (1 << SystemRDLParser.ONREADTYPE_kw) | (1 << SystemRDLParser.ONWRITETYPE_kw) | (1 << SystemRDLParser.ADDRMAP_kw) | (1 << SystemRDLParser.REGFILE_kw) | (1 << SystemRDLParser.REG_kw) | (1 << SystemRDLParser.FIELD_kw) | (1 << SystemRDLParser.MEM_kw) | (1 << SystemRDLParser.SIGNAL_kw))) != 0) or _la==SystemRDLParser.ID:
                self.state = 700
                self.struct_elem()
                self.state = 701
                self.match(SystemRDLParser.T__0)
                self.state = 707
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 708
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Struct_elemContext(ParserRuleContext):

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

        def struct_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Struct_typeContext,0)


        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def array_type_suffix(self):
            return self.getTypedRuleContext(SystemRDLParser.Array_type_suffixContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_struct_elem

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitStruct_elem" ):
                return visitor.visitStruct_elem(self)
            else:
                return visitor.visitChildren(self)




    def struct_elem(self):

        localctx = SystemRDLParser.Struct_elemContext(self, self._ctx, self.state)
        self.enterRule(localctx, 140, self.RULE_struct_elem)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 710
            self.struct_type()
            self.state = 711
            self.match(SystemRDLParser.ID)
            self.state = 713
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==SystemRDLParser.T__11:
                self.state = 712
                self.array_type_suffix()


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


    class Struct_typeContext(ParserRuleContext):

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

        def data_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Data_typeContext,0)


        def component_type(self):
            return self.getTypedRuleContext(SystemRDLParser.Component_typeContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_struct_type

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitStruct_type" ):
                return visitor.visitStruct_type(self)
            else:
                return visitor.visitChildren(self)




    def struct_type(self):

        localctx = SystemRDLParser.Struct_typeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 142, self.RULE_struct_type)
        try:
            self.state = 717
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.BOOLEAN_kw, SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw, SystemRDLParser.STRING_kw, SystemRDLParser.ACCESSTYPE_kw, SystemRDLParser.ADDRESSINGTYPE_kw, SystemRDLParser.ONREADTYPE_kw, SystemRDLParser.ONWRITETYPE_kw, SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 1)
                self.state = 715
                self.data_type()
                pass
            elif token in [SystemRDLParser.ADDRMAP_kw, SystemRDLParser.REGFILE_kw, SystemRDLParser.REG_kw, SystemRDLParser.FIELD_kw, SystemRDLParser.MEM_kw, SystemRDLParser.SIGNAL_kw]:
                self.enterOuterAlt(localctx, 2)
                self.state = 716
                self.component_type()
                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 Constraint_defContext(ParserRuleContext):

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

        def constraint_named_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_named_defContext,0)


        def constraint_insts(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_instsContext,0)


        def constraint_anon_def(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_anon_defContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constraint_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstraint_def" ):
                return visitor.visitConstraint_def(self)
            else:
                return visitor.visitChildren(self)




    def constraint_def(self):

        localctx = SystemRDLParser.Constraint_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 144, self.RULE_constraint_def)
        self._la = 0 # Token type
        try:
            self.state = 726
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,66,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 719
                self.constraint_named_def()
                self.state = 721
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==SystemRDLParser.ID:
                    self.state = 720
                    self.constraint_insts()


                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 723
                self.constraint_anon_def()
                self.state = 724
                self.constraint_insts()
                pass


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


    class Constraint_named_defContext(ParserRuleContext):

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

        def CONSTRAINT_kw(self):
            return self.getToken(SystemRDLParser.CONSTRAINT_kw, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def constraint_body(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_bodyContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constraint_named_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstraint_named_def" ):
                return visitor.visitConstraint_named_def(self)
            else:
                return visitor.visitChildren(self)




    def constraint_named_def(self):

        localctx = SystemRDLParser.Constraint_named_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 146, self.RULE_constraint_named_def)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 728
            self.match(SystemRDLParser.CONSTRAINT_kw)
            self.state = 729
            self.match(SystemRDLParser.ID)
            self.state = 730
            self.constraint_body()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constraint_anon_defContext(ParserRuleContext):

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

        def CONSTRAINT_kw(self):
            return self.getToken(SystemRDLParser.CONSTRAINT_kw, 0)

        def constraint_body(self):
            return self.getTypedRuleContext(SystemRDLParser.Constraint_bodyContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constraint_anon_def

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstraint_anon_def" ):
                return visitor.visitConstraint_anon_def(self)
            else:
                return visitor.visitChildren(self)




    def constraint_anon_def(self):

        localctx = SystemRDLParser.Constraint_anon_defContext(self, self._ctx, self.state)
        self.enterRule(localctx, 148, self.RULE_constraint_anon_def)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 732
            self.match(SystemRDLParser.CONSTRAINT_kw)
            self.state = 733
            self.constraint_body()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constraint_bodyContext(ParserRuleContext):

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

        def constraint_body_elem(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Constraint_body_elemContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Constraint_body_elemContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constraint_body

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstraint_body" ):
                return visitor.visitConstraint_body(self)
            else:
                return visitor.visitChildren(self)




    def constraint_body(self):

        localctx = SystemRDLParser.Constraint_bodyContext(self, self._ctx, self.state)
        self.enterRule(localctx, 150, self.RULE_constraint_body)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 735
            self.match(SystemRDLParser.T__1)
            self.state = 741
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << SystemRDLParser.T__1) | (1 << SystemRDLParser.T__5) | (1 << SystemRDLParser.T__10) | (1 << SystemRDLParser.BOOLEAN_kw) | (1 << SystemRDLParser.BIT_kw) | (1 << SystemRDLParser.LONGINT_kw) | (1 << SystemRDLParser.TRUE_kw) | (1 << SystemRDLParser.FALSE_kw) | (1 << SystemRDLParser.NA_kw) | (1 << SystemRDLParser.RW_kw) | (1 << SystemRDLParser.WR_kw) | (1 << SystemRDLParser.R_kw) | (1 << SystemRDLParser.W_kw) | (1 << SystemRDLParser.RW1_kw) | (1 << SystemRDLParser.W1_kw) | (1 << SystemRDLParser.RCLR_kw) | (1 << SystemRDLParser.RSET_kw) | (1 << SystemRDLParser.RUSER_kw) | (1 << SystemRDLParser.WOSET_kw) | (1 << SystemRDLParser.WOCLR_kw) | (1 << SystemRDLParser.WOT_kw) | (1 << SystemRDLParser.WZS_kw) | (1 << SystemRDLParser.WZC_kw) | (1 << SystemRDLParser.WZT_kw) | (1 << SystemRDLParser.WCLR_kw) | (1 << SystemRDLParser.WSET_kw) | (1 << SystemRDLParser.WUSER_kw) | (1 << SystemRDLParser.COMPACT_kw) | (1 << SystemRDLParser.REGALIGN_kw) | (1 << SystemRDLParser.FULLALIGN_kw) | (1 << SystemRDLParser.HW_kw) | (1 << SystemRDLParser.SW_kw))) != 0) or ((((_la - 80)) & ~0x3f) == 0 and ((1 << (_la - 80)) & ((1 << (SystemRDLParser.THIS_kw - 80)) | (1 << (SystemRDLParser.INT - 80)) | (1 << (SystemRDLParser.HEX_INT - 80)) | (1 << (SystemRDLParser.VLOG_INT - 80)) | (1 << (SystemRDLParser.STRING - 80)) | (1 << (SystemRDLParser.PLUS - 80)) | (1 << (SystemRDLParser.MINUS - 80)) | (1 << (SystemRDLParser.BNOT - 80)) | (1 << (SystemRDLParser.NOT - 80)) | (1 << (SystemRDLParser.NAND - 80)) | (1 << (SystemRDLParser.AND - 80)) | (1 << (SystemRDLParser.OR - 80)) | (1 << (SystemRDLParser.NOR - 80)) | (1 << (SystemRDLParser.XOR - 80)) | (1 << (SystemRDLParser.XNOR - 80)) | (1 << (SystemRDLParser.ID - 80)))) != 0):
                self.state = 736
                self.constraint_body_elem()
                self.state = 737
                self.match(SystemRDLParser.T__0)
                self.state = 743
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 744
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constraint_body_elemContext(ParserRuleContext):

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

        def constr_relational(self):
            return self.getTypedRuleContext(SystemRDLParser.Constr_relationalContext,0)


        def constr_prop_assign(self):
            return self.getTypedRuleContext(SystemRDLParser.Constr_prop_assignContext,0)


        def constr_inside_values(self):
            return self.getTypedRuleContext(SystemRDLParser.Constr_inside_valuesContext,0)


        def constr_inside_enum(self):
            return self.getTypedRuleContext(SystemRDLParser.Constr_inside_enumContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constraint_body_elem

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstraint_body_elem" ):
                return visitor.visitConstraint_body_elem(self)
            else:
                return visitor.visitChildren(self)




    def constraint_body_elem(self):

        localctx = SystemRDLParser.Constraint_body_elemContext(self, self._ctx, self.state)
        self.enterRule(localctx, 152, self.RULE_constraint_body_elem)
        try:
            self.state = 750
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,68,self._ctx)
            if la_ == 1:
                self.enterOuterAlt(localctx, 1)
                self.state = 746
                self.constr_relational()
                pass

            elif la_ == 2:
                self.enterOuterAlt(localctx, 2)
                self.state = 747
                self.constr_prop_assign()
                pass

            elif la_ == 3:
                self.enterOuterAlt(localctx, 3)
                self.state = 748
                self.constr_inside_values()
                pass

            elif la_ == 4:
                self.enterOuterAlt(localctx, 4)
                self.state = 749
                self.constr_inside_enum()
                pass


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


    class Constraint_instsContext(ParserRuleContext):

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

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

        def getRuleIndex(self):
            return SystemRDLParser.RULE_constraint_insts

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstraint_insts" ):
                return visitor.visitConstraint_insts(self)
            else:
                return visitor.visitChildren(self)




    def constraint_insts(self):

        localctx = SystemRDLParser.Constraint_instsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 154, self.RULE_constraint_insts)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 752
            self.match(SystemRDLParser.ID)
            self.state = 757
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 753
                self.match(SystemRDLParser.T__3)
                self.state = 754
                self.match(SystemRDLParser.ID)
                self.state = 759
                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 Constr_relationalContext(ParserRuleContext):

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

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)


        def LT(self):
            return self.getToken(SystemRDLParser.LT, 0)

        def LEQ(self):
            return self.getToken(SystemRDLParser.LEQ, 0)

        def GT(self):
            return self.getToken(SystemRDLParser.GT, 0)

        def GEQ(self):
            return self.getToken(SystemRDLParser.GEQ, 0)

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

        def NEQ(self):
            return self.getToken(SystemRDLParser.NEQ, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_constr_relational

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstr_relational" ):
                return visitor.visitConstr_relational(self)
            else:
                return visitor.visitChildren(self)




    def constr_relational(self):

        localctx = SystemRDLParser.Constr_relationalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 156, self.RULE_constr_relational)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 760
            self.expr(0)
            self.state = 761
            localctx.op = self._input.LT(1)
            _la = self._input.LA(1)
            if not(((((_la - 114)) & ~0x3f) == 0 and ((1 << (_la - 114)) & ((1 << (SystemRDLParser.EQ - 114)) | (1 << (SystemRDLParser.NEQ - 114)) | (1 << (SystemRDLParser.LEQ - 114)) | (1 << (SystemRDLParser.LT - 114)) | (1 << (SystemRDLParser.GEQ - 114)) | (1 << (SystemRDLParser.GT - 114)))) != 0)):
                localctx.op = self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 762
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constr_prop_assignContext(ParserRuleContext):

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

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def ASSIGN(self):
            return self.getToken(SystemRDLParser.ASSIGN, 0)

        def expr(self):
            return self.getTypedRuleContext(SystemRDLParser.ExprContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constr_prop_assign

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstr_prop_assign" ):
                return visitor.visitConstr_prop_assign(self)
            else:
                return visitor.visitChildren(self)




    def constr_prop_assign(self):

        localctx = SystemRDLParser.Constr_prop_assignContext(self, self._ctx, self.state)
        self.enterRule(localctx, 158, self.RULE_constr_prop_assign)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 764
            self.match(SystemRDLParser.ID)
            self.state = 765
            self.match(SystemRDLParser.ASSIGN)
            self.state = 766
            self.expr(0)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constr_inside_valuesContext(ParserRuleContext):

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

        def constr_lhs(self):
            return self.getTypedRuleContext(SystemRDLParser.Constr_lhsContext,0)


        def INSIDE_kw(self):
            return self.getToken(SystemRDLParser.INSIDE_kw, 0)

        def constr_inside_value(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.Constr_inside_valueContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.Constr_inside_valueContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constr_inside_values

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstr_inside_values" ):
                return visitor.visitConstr_inside_values(self)
            else:
                return visitor.visitChildren(self)




    def constr_inside_values(self):

        localctx = SystemRDLParser.Constr_inside_valuesContext(self, self._ctx, self.state)
        self.enterRule(localctx, 160, self.RULE_constr_inside_values)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 768
            self.constr_lhs()
            self.state = 769
            self.match(SystemRDLParser.INSIDE_kw)
            self.state = 770
            self.match(SystemRDLParser.T__1)
            self.state = 771
            self.constr_inside_value()
            self.state = 776
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==SystemRDLParser.T__3:
                self.state = 772
                self.match(SystemRDLParser.T__3)
                self.state = 773
                self.constr_inside_value()
                self.state = 778
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 779
            self.match(SystemRDLParser.T__2)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constr_inside_enumContext(ParserRuleContext):

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

        def constr_lhs(self):
            return self.getTypedRuleContext(SystemRDLParser.Constr_lhsContext,0)


        def INSIDE_kw(self):
            return self.getToken(SystemRDLParser.INSIDE_kw, 0)

        def ID(self):
            return self.getToken(SystemRDLParser.ID, 0)

        def getRuleIndex(self):
            return SystemRDLParser.RULE_constr_inside_enum

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstr_inside_enum" ):
                return visitor.visitConstr_inside_enum(self)
            else:
                return visitor.visitChildren(self)




    def constr_inside_enum(self):

        localctx = SystemRDLParser.Constr_inside_enumContext(self, self._ctx, self.state)
        self.enterRule(localctx, 162, self.RULE_constr_inside_enum)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 781
            self.constr_lhs()
            self.state = 782
            self.match(SystemRDLParser.INSIDE_kw)
            self.state = 783
            self.match(SystemRDLParser.ID)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class Constr_lhsContext(ParserRuleContext):

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

        def THIS_kw(self):
            return self.getToken(SystemRDLParser.THIS_kw, 0)

        def instance_ref(self):
            return self.getTypedRuleContext(SystemRDLParser.Instance_refContext,0)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constr_lhs

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstr_lhs" ):
                return visitor.visitConstr_lhs(self)
            else:
                return visitor.visitChildren(self)




    def constr_lhs(self):

        localctx = SystemRDLParser.Constr_lhsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 164, self.RULE_constr_lhs)
        try:
            self.state = 787
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.THIS_kw]:
                self.enterOuterAlt(localctx, 1)
                self.state = 785
                self.match(SystemRDLParser.THIS_kw)
                pass
            elif token in [SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 2)
                self.state = 786
                self.instance_ref()
                pass
            else:
                raise NoViableAltException(self)

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


    class Constr_inside_valueContext(ParserRuleContext):

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser
            self.val = None # ExprContext
            self.l_val = None # ExprContext
            self.r_val = None # ExprContext

        def expr(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SystemRDLParser.ExprContext)
            else:
                return self.getTypedRuleContext(SystemRDLParser.ExprContext,i)


        def getRuleIndex(self):
            return SystemRDLParser.RULE_constr_inside_value

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConstr_inside_value" ):
                return visitor.visitConstr_inside_value(self)
            else:
                return visitor.visitChildren(self)




    def constr_inside_value(self):

        localctx = SystemRDLParser.Constr_inside_valueContext(self, self._ctx, self.state)
        self.enterRule(localctx, 166, self.RULE_constr_inside_value)
        try:
            self.state = 796
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [SystemRDLParser.T__1, SystemRDLParser.T__5, SystemRDLParser.T__10, SystemRDLParser.BOOLEAN_kw, SystemRDLParser.BIT_kw, SystemRDLParser.LONGINT_kw, SystemRDLParser.TRUE_kw, SystemRDLParser.FALSE_kw, SystemRDLParser.NA_kw, SystemRDLParser.RW_kw, SystemRDLParser.WR_kw, SystemRDLParser.R_kw, SystemRDLParser.W_kw, SystemRDLParser.RW1_kw, SystemRDLParser.W1_kw, SystemRDLParser.RCLR_kw, SystemRDLParser.RSET_kw, SystemRDLParser.RUSER_kw, SystemRDLParser.WOSET_kw, SystemRDLParser.WOCLR_kw, SystemRDLParser.WOT_kw, SystemRDLParser.WZS_kw, SystemRDLParser.WZC_kw, SystemRDLParser.WZT_kw, SystemRDLParser.WCLR_kw, SystemRDLParser.WSET_kw, SystemRDLParser.WUSER_kw, SystemRDLParser.COMPACT_kw, SystemRDLParser.REGALIGN_kw, SystemRDLParser.FULLALIGN_kw, SystemRDLParser.HW_kw, SystemRDLParser.SW_kw, SystemRDLParser.INT, SystemRDLParser.HEX_INT, SystemRDLParser.VLOG_INT, SystemRDLParser.STRING, SystemRDLParser.PLUS, SystemRDLParser.MINUS, SystemRDLParser.BNOT, SystemRDLParser.NOT, SystemRDLParser.NAND, SystemRDLParser.AND, SystemRDLParser.OR, SystemRDLParser.NOR, SystemRDLParser.XOR, SystemRDLParser.XNOR, SystemRDLParser.ID]:
                self.enterOuterAlt(localctx, 1)
                self.state = 789
                localctx.val = self.expr(0)
                pass
            elif token in [SystemRDLParser.T__11]:
                self.enterOuterAlt(localctx, 2)
                self.state = 790
                self.match(SystemRDLParser.T__11)
                self.state = 791
                localctx.l_val = self.expr(0)
                self.state = 792
                self.match(SystemRDLParser.T__9)
                self.state = 793
                localctx.r_val = self.expr(0)
                self.state = 794
                self.match(SystemRDLParser.T__12)
                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



    def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int):
        if self._predicates == None:
            self._predicates = dict()
        self._predicates[22] = self.expr_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 expr_sempred(self, localctx:ExprContext, predIndex:int):
            if predIndex == 0:
                return self.precpred(self._ctx, 13)
         

            if predIndex == 1:
                return self.precpred(self._ctx, 12)
         

            if predIndex == 2:
                return self.precpred(self._ctx, 11)
         

            if predIndex == 3:
                return self.precpred(self._ctx, 10)
         

            if predIndex == 4:
                return self.precpred(self._ctx, 9)
         

            if predIndex == 5:
                return self.precpred(self._ctx, 8)
         

            if predIndex == 6:
                return self.precpred(self._ctx, 7)
         

            if predIndex == 7:
                return self.precpred(self._ctx, 6)
         

            if predIndex == 8:
                return self.precpred(self._ctx, 5)
         

            if predIndex == 9:
                return self.precpred(self._ctx, 4)
         

            if predIndex == 10:
                return self.precpred(self._ctx, 3)
         

            if predIndex == 11:
                return self.precpred(self._ctx, 2)
         




