From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web12.3475.1668501953728951632 for ; Tue, 15 Nov 2022 00:45:54 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Jo/C2I8X; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: yuwei.chen@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668501953; x=1700037953; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IYzIcQf/Y4N6WbyOCixFlIBCcBOHVmnUzDWZNv6G/N4=; b=Jo/C2I8XMqL/8dD8A2Jyb5mNR1RLQ7NspizISWDE4Qp6/df8eL1qOGym 6expdAOkyYjff0eteIq3BHkoHdtj92folbMrmSM3rd4Mp05X8xaGMzq/e gyIGgKKk+gEz9aDEP7phRU6ST9QJwiQRH/tE9wrCMu18dzTMmFcilHqbp n1cc+u5nxmG46TIUqpj6OzsPs+ReBh7+LPpAioenz4n8ge5cJn5joQvuF BwJOY8RHV+CvD32FZ5JOX/8cckOy+6f6nHw+vf2LX3m+/Rd5k5srUOrQ+ W/D2xNJNEzdlIL/DLYstXFLt2R5W2grGbebuPAL7Wa3mJKQwN0BPa8Hn2 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="398489672" X-IronPort-AV: E=Sophos;i="5.96,165,1665471600"; d="scan'208";a="398489672" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 00:45:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="744506504" X-IronPort-AV: E=Sophos;i="5.96,165,1665471600"; d="scan'208";a="744506504" Received: from yuweipc.ccr.corp.intel.com ([10.239.158.38]) by fmsmga002.fm.intel.com with ESMTP; 15 Nov 2022 00:45:41 -0800 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Yuting Yang , Bob Feng , Liming Gao Subject: [Patch V2 1/3] [edk2-staging]BaseTools: Add Python VfrCompiler tool Date: Tue, 15 Nov 2022 16:45:39 +0800 Message-Id: <20221115084539.331-1-yuwei.chen@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Yuting Yang This is the python implementation of the C VfrCompiler tool. Currently, this python tool will generate yaml/json files for better variable related information presentation. In future, it will cover the same usage as the C tool. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yuting Yang --- BaseTools/Source/Python/VfrCompiler/CommonCtypes.py | 1394 ++++++++++= ++++++++++++++++++++++++++++++++++++++++++++++++++++++ BaseTools/Source/Python/VfrCompiler/README.md | 20 + BaseTools/Source/Python/VfrCompiler/VfrError.py | 162 ++++++++ BaseTools/Source/Python/VfrCompiler/VfrFormPkg.py | 2738 ++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++++++++++++++++++ BaseTools/Source/Python/VfrCompiler/VfrSyntax.g4 | 1887 ++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++ BaseTools/Source/Python/VfrCompiler/VfrSyntaxLexer.py | 1709 ++++++++++= ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BaseTools/Source/Python/VfrCompiler/VfrSyntaxParser.py | 20460 ++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++ BaseTools/Source/Python/VfrCompiler/VfrSyntaxVisitor.py | 5106 ++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BaseTools/Source/Python/VfrCompiler/VfrTree.py | 88 +++++ BaseTools/Source/Python/VfrCompiler/VfrUtility.py | 1991 ++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++ BaseTools/Source/Python/VfrCompiler/main.py | 27 ++ 11 files changed, 35582 insertions(+) diff --git a/BaseTools/Source/Python/VfrCompiler/CommonCtypes.py b/BaseTool= s/Source/Python/VfrCompiler/CommonCtypes.py new file mode 100644 index 0000000000..731ae15609 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/CommonCtypes.py @@ -0,0 +1,1394 @@ +from ctypes import *=0D +from re import A, X=0D +from telnetlib import X3PAD=0D +from tkinter import YView=0D +import uuid=0D +from VfrCompiler.VfrError import *=0D +from struct import *=0D +=0D +EFI_STRING_ID_INVALID =3D 0x0=0D +EFI_HII_DEFAULT_CLASS_STANDARD =3D 0x0000=0D +EFI_HII_DEFAULT_CLASS_MANUFACTURING =3D 0x0001=0D +EFI_IFR_MAX_LENGTH =3D 0xFF=0D +EFI_VARSTORE_ID_INVALID =3D 0=0D +EFI_VARSTORE_ID_START =3D 0x20=0D +EFI_VAROFFSET_INVALID =3D 0xFFFF=0D +EFI_IMAGE_ID_INVALID =3D 0xFFFF=0D +=0D +EFI_NON_DEVICE_CLASS =3D 0x00=0D +EFI_DISK_DEVICE_CLASS =3D 0x01=0D +EFI_VIDEO_DEVICE_CLASS =3D 0x02=0D +EFI_NETWORK_DEVICE_CLASS =3D 0x04=0D +EFI_INPUT_DEVICE_CLASS =3D 0x08=0D +EFI_ON_BOARD_DEVICE_CLASS =3D 0x10=0D +EFI_OTHER_DEVICE_CLASS =3D 0x20=0D +=0D +EFI_SETUP_APPLICATION_SUBCLASS =3D 0x00=0D +EFI_GENERAL_APPLICATION_SUBCLASS =3D 0x01=0D +EFI_FRONT_PAGE_SUBCLASS =3D 0x02=0D +EFI_SINGLE_USE_SUBCLASS =3D 0x03=0D +=0D +# EFI_HII_PACKAGE_TYPE_x.=0D +=0D +EFI_HII_PACKAGE_TYPE_ALL =3D 0x00=0D +EFI_HII_PACKAGE_TYPE_GUID =3D 0x01=0D +EFI_HII_PACKAGE_FORM =3D 0x02=0D +EFI_HII_PACKAGE_KEYBOARD_LAYOUT =3D 0x03=0D +EFI_HII_PACKAGE_STRINGS =3D 0x04=0D +EFI_HII_PACKAGE_FONTS =3D 0x05=0D +EFI_HII_PACKAGE_IMAGES =3D 0x06=0D +EFI_HII_PACKAGE_SIMPLE_FONTS =3D 0x07=0D +EFI_HII_PACKAGE_DEVICE_PATH =3D 0x08=0D +EFI_HII_PACKAGE_END =3D 0xDF=0D +EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN =3D 0xE0=0D +EFI_HII_PACKAGE_TYPE_SYSTEM_END =3D 0xFF=0D +=0D +EFI_IFR_EXTEND_OP_LABEL =3D 0x0=0D +EFI_IFR_EXTEND_OP_BANNER =3D 0x1=0D +EFI_IFR_EXTEND_OP_TIMEOUT =3D 0x2=0D +EFI_IFR_EXTEND_OP_CLASS =3D 0x3=0D +EFI_IFR_EXTEND_OP_SUBCLASS =3D 0x4=0D +=0D +MAX_IFR_EXPRESSION_DEPTH =3D 0x9=0D +=0D +INVALID_ARRAY_INDEX =3D 0xFFFFFFFF=0D +=0D +EFI_IFR_TYPE_NUM_SIZE_8 =3D 0x00=0D +EFI_IFR_TYPE_NUM_SIZE_16 =3D 0x01=0D +EFI_IFR_TYPE_NUM_SIZE_32 =3D 0x02=0D +EFI_IFR_TYPE_NUM_SIZE_64 =3D 0x03=0D +EFI_IFR_TYPE_BOOLEAN =3D 0x04=0D +EFI_IFR_TYPE_TIME =3D 0x05=0D +EFI_IFR_TYPE_DATE =3D 0x06=0D +EFI_IFR_TYPE_STRING =3D 0x07=0D +EFI_IFR_TYPE_OTHER =3D 0x08=0D +EFI_IFR_TYPE_UNDEFINED =3D 0x09=0D +EFI_IFR_TYPE_ACTION =3D 0x0A=0D +EFI_IFR_TYPE_BUFFER =3D 0x0B=0D +EFI_IFR_TYPE_REF =3D 0x0C=0D +=0D +=0D +EFI_IFR_FLAGS_HORIZONTAL =3D 0x01=0D +=0D +EFI_IFR_FLAG_READ_ONLY =3D 0x01=0D +EFI_IFR_FLAG_CALLBACK =3D 0x04=0D +EFI_IFR_FLAG_RESET_REQUIRED =3D 0x10=0D +EFI_IFR_FLAG_REST_STYLE =3D 0x20=0D +EFI_IFR_FLAG_RECONNECT_REQUIRED =3D 0x40=0D +EFI_IFR_FLAG_OPTIONS_ONLY =3D 0x80=0D +=0D +EFI_IFR_STRING_MULTI_LINE =3D 0x01=0D +=0D +EDKII_IFR_DISPLAY_BIT =3D 0xC0=0D +EDKII_IFR_DISPLAY_INT_DEC_BIT =3D 0x00=0D +EDKII_IFR_DISPLAY_UINT_DEC_BIT =3D 0x40=0D +EDKII_IFR_DISPLAY_UINT_HEX_BIT =3D 0x80=0D +=0D +EDKII_IFR_NUMERIC_SIZE_BIT =3D 0x3F=0D +=0D +EFI_IFR_MAX_DEFAULT_TYPE =3D 0x10=0D +=0D +=0D +class EFI_GUID(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Data1', c_uint32),=0D + ('Data2', c_uint16),=0D + ('Data3', c_uint16),=0D + ('Data4', c_ubyte * 8),=0D + ]=0D +=0D + def from_list(self, listformat: list) -> None:=0D + self.Data1 =3D listformat[0]=0D + self.Data2 =3D listformat[1]=0D + self.Data3 =3D listformat[2]=0D + for i in range(8):=0D + self.Data4[i] =3D listformat[i + 3]=0D +=0D + def __cmp__(self, otherguid) -> bool:=0D + if not isinstance(otherguid, EFI_GUID):=0D + return 'Input is not the GUID instance!'=0D + rt =3D False=0D + if self.Data1 =3D=3D otherguid.Data1 and self.Data2 =3D=3D othergu= id.Data2 and self.Data3 =3D=3D otherguid.Data3:=0D + rt =3D True=0D + for i in range(8):=0D + rt =3D rt & (self.Data4[i] =3D=3D otherguid.Data4[i])=0D + return rt=0D +=0D +=0D +GuidArray =3D c_ubyte * 8=0D +EFI_HII_PLATFORM_SETUP_FORMSET_GUID =3D EFI_GUID(=0D + 0x93039971, 0x8545, 0x4b04,=0D + GuidArray(0xb4, 0x5e, 0x32, 0xeb, 0x83, 0x26, 0x4, 0xe))=0D +=0D +EFI_IFR_TIANO_GUID =3D EFI_GUID(=0D + 0xf0b1735, 0x87a0, 0x4193,=0D + GuidArray(0xb2, 0x66, 0x53, 0x8c, 0x38, 0xaf, 0x48, 0xce))=0D +=0D +EDKII_IFR_BIT_VARSTORE_GUID =3D (0x82DDD68B, 0x9163, 0x4187,=0D + GuidArray(0x9B, 0x27, 0x20, 0xA8, 0xFD, 0x6= 0,=0D + 0xA7, 0x1D))=0D +=0D +EFI_IFR_FRAMEWORK_GUID =3D (0x31ca5d1a, 0xd511, 0x4931,=0D + GuidArray(0xb7, 0x82, 0xae, 0x6b, 0x2b, 0x17, 0x= 8c,=0D + 0xd7))=0D +=0D +class EFI_IFR_OP_HEADER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('OpCode', c_ubyte),=0D + ('Length', c_ubyte, 7), #=0D + ('Scope', c_ubyte, 1), #=0D + ]=0D +=0D +=0D +class EFI_IFR_FORM_SET(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('FormSetTitle', c_uint16),=0D + ('Help', c_uint16),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_GUID_CLASS(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('ExtendOpCode', c_ubyte),=0D + ('Class', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_GUID_SUBCLASS(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('ExtendOpCode', c_ubyte),=0D + ('SubClass', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_DEFAULTSTORE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DefaultName', c_uint16),=0D + ('DefaultId', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_VARSTORE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('VarStoreId', c_uint16),=0D + ('Size', c_uint16),=0D + ('Name', c_wchar_p),=0D + ]=0D +=0D +=0D +class EFI_IFR_VARSTORE_EFI(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('VarStoreId', c_uint16),=0D + ('Attributes', c_uint32),=0D + ('Size', c_uint16),=0D + ('Name', c_wchar_p),=0D + ]=0D +=0D +=0D +class EFI_IFR_GUID(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ]=0D +=0D +=0D +class EFI_HII_PACKAGE_HEADER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Length', c_uint32, 24),=0D + ('Type', c_uint32, 8),=0D + ]=0D +=0D +=0D +class EFI_HII_STRING_PACKAGE_HDR(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_HII_PACKAGE_HEADER),=0D + ('HdrSize', c_uint32),=0D + ('StringInfoOffset', c_uint32),=0D + ('LanguageWindow', c_ushort * 16),=0D + ('LanguageName', c_uint16),=0D + ('Language', c_char * 2),=0D + ]=0D +=0D +=0D +class EFI_IFR_VARSTORE_NAME_VALUE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('VarStoreId', c_uint16),=0D + ('Guid', EFI_GUID),=0D + ]=0D +=0D +=0D +class EFI_IFR_FORM(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('FormId', c_uint16),=0D + ('FormTitle', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_GUID_BANNER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('ExtendOpCode', c_ubyte),=0D + ('Title', c_uint16),=0D + ('LineNumber', c_uint16),=0D + ('Alignment', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_GUID_TIMEOUT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('ExtendOpCode', c_ubyte),=0D + ('TimeOut', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_GUID_LABEL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('ExtendOpCode', c_ubyte),=0D + ('Number', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_RULE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('RuleId', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_STATEMENT_HEADER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Prompt', c_uint16),=0D + ('Help', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_SUBTITLE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Statement', EFI_IFR_STATEMENT_HEADER),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_TEXT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Statement', EFI_IFR_STATEMENT_HEADER),=0D + ('TextTwo', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_IMAGE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Id', c_uint16),=0D + ]=0D +=0D +=0D +class VarStoreInfoNode(Union):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('VarName', c_uint16),=0D + ('VarOffset', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_QUESTION_HEADER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_STATEMENT_HEADER),=0D + ('QuestionId', c_uint16),=0D + ('VarStoreId', c_uint16),=0D + ('VarStoreInfo', VarStoreInfoNode),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +class u8Node(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('MinValue', c_ubyte),=0D + ('MaxValue', c_ubyte),=0D + ('Step', c_ubyte),=0D + ]=0D +=0D +=0D +class u16Node(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('MinValue', c_uint16),=0D + ('MaxValue', c_uint16),=0D + ('Step', c_uint16),=0D + ]=0D +=0D +=0D +class u32Node(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('MinValue', c_uint32),=0D + ('MaxValue', c_uint32),=0D + ('Step', c_uint32),=0D + ]=0D +=0D +=0D +class u64Node(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('MinValue', c_uint64),=0D + ('MaxValue', c_uint64),=0D + ('Step', c_uint64),=0D + ]=0D +=0D +=0D +class MINMAXSTEP_DATA(Union):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('u8', u8Node),=0D + ('u16', u16Node),=0D + ('u32', u32Node),=0D + ('u64', u64Node),=0D + ]=0D +=0D +=0D +EFI_IFR_NUMERIC_SIZE =3D 0x03=0D +EFI_IFR_NUMERIC_SIZE_1 =3D 0x00=0D +EFI_IFR_NUMERIC_SIZE_2 =3D 0x01=0D +EFI_IFR_NUMERIC_SIZE_4 =3D 0x02=0D +EFI_IFR_NUMERIC_SIZE_8 =3D 0x03=0D +=0D +EFI_IFR_DISPLAY =3D 0x30=0D +EFI_IFR_DISPLAY_INT_DEC =3D 0x00=0D +EFI_IFR_DISPLAY_UINT_DEC =3D 0x10=0D +EFI_IFR_DISPLAY_UINT_HEX =3D 0x20=0D +=0D +class EFI_IFR_ONE_OF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('Flags', c_ubyte),=0D + ('data', MINMAXSTEP_DATA),=0D + ]=0D +=0D +=0D +EFI_IFR_CHECKBOX_DEFAULT =3D 0x01=0D +EFI_IFR_CHECKBOX_DEFAULT_MFG =3D 0x02=0D +=0D +=0D +class EFI_IFR_CHECKBOX(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_NUMERIC(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('Flags', c_ubyte),=0D + ('Data', MINMAXSTEP_DATA),=0D + ]=0D +=0D +=0D +class EFI_IFR_PASSWORD(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('MinSize', c_uint16),=0D + ('MaxSize', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_HII_TIME(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Hour', c_ubyte),=0D + ('Minute', c_ubyte),=0D + ('Second', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_HII_DATE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Year', c_uint16),=0D + ('Month', c_ubyte),=0D + ('Day', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_HII_REF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('QuestionId', c_uint16),=0D + ('FormId', c_uint16),=0D + ('FormSetGuid', EFI_GUID),=0D + ('DevicePath', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_TYPE_VALUE(Union):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('u8', c_ubyte),=0D + ('u16', c_uint16),=0D + ('u32', c_uint32),=0D + ('u64', c_uint64),=0D + ('b', c_bool),=0D + ('time', EFI_HII_TIME),=0D + ('date', EFI_HII_DATE),=0D + ('string', c_uint16),=0D + ('ref', EFI_HII_REF),=0D + ]=0D +=0D +=0D +class EFI_IFR_ONE_OF_OPTION(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Option', c_uint16),=0D + ('Flags', c_ubyte),=0D + ('Type', c_ubyte),=0D + ('Value', EFI_IFR_TYPE_VALUE),=0D + ]=0D +=0D +def Refine_EFI_IFR_ONE_OF_OPTION(Nums):=0D + class EFI_IFR_ONE_OF_OPTION(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Option', c_uint16),=0D + ('Flags', c_ubyte),=0D + ('Type', c_ubyte),=0D + ('Value', EFI_IFR_TYPE_VALUE * Nums),=0D + ]=0D + return EFI_IFR_ONE_OF_OPTION=0D +=0D +=0D +EFI_IFR_OPTION_DEFAULT =3D 0x10=0D +EFI_IFR_OPTION_DEFAULT_MFG =3D 0x20=0D +=0D +=0D +class EFI_IFR_SUPPRESS_IF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_LOCKED(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_ACTION(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('QuestionConfig', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_REF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('FormId', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_REF2(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('FormId', c_uint16),=0D + ('QuestionId', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_REF3(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('FormId', c_uint16),=0D + ('QuestionId', c_uint16),=0D + ('FormSetId', EFI_GUID),=0D + ]=0D +=0D +=0D +class EFI_IFR_REF4(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('FormId', c_uint16),=0D + ('QuestionId', c_uint16),=0D + ('FormSetId', EFI_GUID),=0D + ('DevicePath', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_REF5(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_RESET_BUTTON(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Statement', EFI_IFR_STATEMENT_HEADER),=0D + ('DefaultId', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_NO_SUBMIT_IF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Error', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_INCONSISTENT_IF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Error', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_EQ_ID_VAL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('QuestionId', c_uint16),=0D + ('Value', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_EQ_ID_ID(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('QuestionId1', c_uint16),=0D + ('QuestionId2', c_uint16),=0D + ]=0D +=0D +class EFI_IFR_EQ_ID_VAL_LIST(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('QuestionId', c_uint16),=0D + ('ListLength', c_uint16),=0D + ('ValueList', c_uint16), #=0D + ]=0D +=0D +=0D +def Refine_EFI_IFR_EQ_ID_VAL_LIST(Nums):=0D + class EFI_IFR_EQ_ID_VAL_LIST(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('QuestionId', c_uint16),=0D + ('ListLength', c_uint16),=0D + ('ValueList', c_uint16 * Nums), #=0D + ]=0D + return EFI_IFR_EQ_ID_VAL_LIST=0D +=0D +=0D +class EFI_IFR_AND(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_OR(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_NOT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_GRAY_OUT_IF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_DATE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +EFI_QF_DATE_YEAR_SUPPRESS =3D 0x01=0D +EFI_QF_DATE_MONTH_SUPPRESS =3D 0x02=0D +EFI_QF_DATE_DAY_SUPPRESS =3D 0x04=0D +=0D +EFI_QF_DATE_STORAGE =3D 0x30=0D +QF_DATE_STORAGE_NORMAL =3D 0x00=0D +QF_DATE_STORAGE_TIME =3D 0x10=0D +QF_DATE_STORAGE_WAKEUP =3D 0x20=0D +=0D +=0D +class EFI_IFR_TIME(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +QF_TIME_HOUR_SUPPRESS =3D 0x01=0D +QF_TIME_MINUTE_SUPPRESS =3D 0x02=0D +QF_TIME_SECOND_SUPPRESS =3D 0x04=0D +QF_TIME_STORAGE =3D 0x30=0D +QF_TIME_STORAGE_NORMAL =3D 0x00=0D +QF_TIME_STORAGE_TIME =3D 0x10=0D +QF_TIME_STORAGE_WAKEUP =3D 0x20=0D +=0D +=0D +class EFI_IFR_STRING(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('MinSize', c_ubyte),=0D + ('MaxSize', c_ubyte),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_REFRESH(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('RefreshInterval', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_DISABLE_IF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_TO_LOWER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_TO_UPPER(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_MAP(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_ORDERED_LIST(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Question', EFI_IFR_QUESTION_HEADER),=0D + ('MaxContainers', c_ubyte),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +EFI_IFR_UNIQUE_SET =3D 0x01=0D +EFI_IFR_NO_EMPTY_SET =3D 0x02=0D +=0D +=0D +class EFI_IFR_VARSTORE_DEVICE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DevicePath', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_VERSION(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_END(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_MATCH(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_GET(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('VarStoreId', c_uint16),=0D + ('VarStoreInfo', VarStoreInfoNode), ##########=0D + ('VarStoreType', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_SET(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('VarStoreId', c_uint16),=0D + ('VarStoreInfo', VarStoreInfoNode), ##########=0D + ('VarStoreType', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_READ(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_WRITE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_EQUAL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_NOT_EQUAL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_GREATER_THAN(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_GREATER_EQUAL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_LESS_EQUAL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_LESS_THAN(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_BITWISE_AND(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_BITWISE_OR(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_BITWISE_NOT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_SHIFT_LEFT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_SHIFT_RIGHT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_ADD(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_SUBTRACT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_MULTIPLY(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_DIVIDE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_MODULO(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_RULE_REF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('RuleId', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_QUESTION_REF1(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('QuestionId', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_QUESTION_REF2(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_QUESTION_REF3(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_QUESTION_REF3_2(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DevicePath', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_QUESTION_REF3_3(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DevicePath', c_uint16),=0D + ('Guid', EFI_GUID),=0D + ]=0D +=0D +=0D +class EFI_IFR_UINT8(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Value', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_UINT16(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Value', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_UINT32(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Value', c_uint32),=0D + ]=0D +=0D +=0D +class EFI_IFR_UINT64(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Value', c_uint64),=0D + ]=0D +=0D +=0D +class EFI_IFR_TRUE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_FALSE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_TO_UINT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_TO_STRING(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Format', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_TO_BOOLEAN(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_MID(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_FIND(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Format', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_TOKEN(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_STRING_REF1(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('StringId', c_uint16),=0D + ]=0D +=0D +=0D +class EFI_IFR_STRING_REF2(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_CONDITIONAL(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_ZERO(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_ONE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_ONES(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_UNDEFINED(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_LENGTH(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_DUP(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_THIS(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +EFI_IFR_FLAGS_FIRST_MATCHING =3D 0x00=0D +EFI_IFR_FLAGS_FIRST_NON_MATCHING =3D 0x01=0D +=0D +class EFI_IFR_SPAN(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Flags', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_VALUE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_DEFAULT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DefaultId', c_uint16),=0D + ('Type', c_ubyte),=0D + ('Value', EFI_IFR_TYPE_VALUE),=0D + ]=0D +=0D +def Refine_EFI_IFR_DEFAULT(Nums):=0D + class EFI_IFR_DEFAULT(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DefaultId', c_uint16),=0D + ('Type', c_ubyte),=0D + ('Value', EFI_IFR_TYPE_VALUE * Nums),=0D + ]=0D + return EFI_IFR_DEFAULT=0D +=0D +=0D +class EFI_IFR_DEFAULT_2(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('DefaultId', c_uint16),=0D + ('Type', c_ubyte),=0D + ]=0D +=0D +class EFI_IFR_FORM_MAP(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('FormId', c_uint16),=0D + ]=0D +=0D +class EFI_IFR_FORM_MAP_METHOD(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('MethodTitle', c_uint16),=0D + ('MethodIdentifier', EFI_GUID),=0D + ]=0D +=0D +class EFI_IFR_CATENATE(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_SECURITY(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Permissions', EFI_GUID),=0D + ]=0D +=0D +=0D +class EFI_IFR_MODAL_TAG(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ]=0D +=0D +=0D +class EFI_IFR_REFRESH_ID(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('RefreshEventGroupId', EFI_GUID),=0D + ]=0D +=0D +=0D +class EFI_IFR_WARNING_IF(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Warning', c_uint16),=0D + ('TimeOut', c_ubyte),=0D + ]=0D +=0D +=0D +class EFI_IFR_MATCH2(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('SyntaxType', EFI_GUID),=0D + ]=0D +=0D +=0D +EFI_IFR_FORM_OP =3D 0x01=0D +EFI_IFR_SUBTITLE_OP =3D 0x02=0D +EFI_IFR_TEXT_OP =3D 0x03=0D +EFI_IFR_IMAGE_OP =3D 0x04=0D +EFI_IFR_ONE_OF_OP =3D 0x05=0D +EFI_IFR_CHECKBOX_OP =3D 0x06=0D +EFI_IFR_NUMERIC_OP =3D 0x07=0D +EFI_IFR_PASSWORD_OP =3D 0x08=0D +EFI_IFR_ONE_OF_OPTION_OP =3D 0x09=0D +EFI_IFR_SUPPRESS_IF_OP =3D 0x0A=0D +EFI_IFR_LOCKED_OP =3D 0x0B=0D +EFI_IFR_ACTION_OP =3D 0x0C=0D +EFI_IFR_RESET_BUTTON_OP =3D 0x0D=0D +EFI_IFR_FORM_SET_OP =3D 0x0E=0D +EFI_IFR_REF_OP =3D 0x0F=0D +EFI_IFR_NO_SUBMIT_IF_OP =3D 0x10=0D +EFI_IFR_INCONSISTENT_IF_OP =3D 0x11=0D +EFI_IFR_EQ_ID_VAL_OP =3D 0x12=0D +EFI_IFR_EQ_ID_ID_OP =3D 0x13=0D +EFI_IFR_EQ_ID_VAL_LIST_OP =3D 0x14=0D +EFI_IFR_AND_OP =3D 0x15=0D +EFI_IFR_OR_OP =3D 0x16=0D +EFI_IFR_NOT_OP =3D 0x17=0D +EFI_IFR_RULE_OP =3D 0x18=0D +EFI_IFR_GRAY_OUT_IF_OP =3D 0x19=0D +EFI_IFR_DATE_OP =3D 0x1A=0D +EFI_IFR_TIME_OP =3D 0x1B=0D +EFI_IFR_STRING_OP =3D 0x1C=0D +EFI_IFR_REFRESH_OP =3D 0x1D=0D +EFI_IFR_DISABLE_IF_OP =3D 0x1E=0D +EFI_IFR_TO_LOWER_OP =3D 0x20=0D +EFI_IFR_TO_UPPER_OP =3D 0x21=0D +EFI_IFR_MAP_OP =3D 0x22=0D +EFI_IFR_ORDERED_LIST_OP =3D 0x23=0D +EFI_IFR_VARSTORE_OP =3D 0x24=0D +EFI_IFR_VARSTORE_NAME_VALUE_OP =3D 0x25=0D +EFI_IFR_VARSTORE_EFI_OP =3D 0x26=0D +EFI_IFR_VARSTORE_DEVICE_OP =3D 0x27=0D +EFI_IFR_VERSION_OP =3D 0x28=0D +EFI_IFR_END_OP =3D 0x29=0D +EFI_IFR_MATCH_OP =3D 0x2A=0D +EFI_IFR_GET_OP =3D 0x2B=0D +EFI_IFR_SET_OP =3D 0x2C=0D +EFI_IFR_READ_OP =3D 0x2D=0D +EFI_IFR_WRITE_OP =3D 0x2E=0D +EFI_IFR_EQUAL_OP =3D 0x2F=0D +EFI_IFR_NOT_EQUAL_OP =3D 0x30=0D +EFI_IFR_GREATER_THAN_OP =3D 0x31=0D +EFI_IFR_GREATER_EQUAL_OP =3D 0x32=0D +EFI_IFR_LESS_THAN_OP =3D 0x33=0D +EFI_IFR_LESS_EQUAL_OP =3D 0x34=0D +EFI_IFR_BITWISE_AND_OP =3D 0x35=0D +EFI_IFR_BITWISE_OR_OP =3D 0x36=0D +EFI_IFR_BITWISE_NOT_OP =3D 0x37=0D +EFI_IFR_SHIFT_LEFT_OP =3D 0x38=0D +EFI_IFR_SHIFT_RIGHT_OP =3D 0x39=0D +EFI_IFR_ADD_OP =3D 0x3A=0D +EFI_IFR_SUBTRACT_OP =3D 0x3B=0D +EFI_IFR_MULTIPLY_OP =3D 0x3C=0D +EFI_IFR_DIVIDE_OP =3D 0x3D=0D +EFI_IFR_MODULO_OP =3D 0x3E=0D +EFI_IFR_RULE_REF_OP =3D 0x3F=0D +EFI_IFR_QUESTION_REF1_OP =3D 0x40=0D +EFI_IFR_QUESTION_REF2_OP =3D 0x41=0D +EFI_IFR_UINT8_OP =3D 0x42=0D +EFI_IFR_UINT16_OP =3D 0x43=0D +EFI_IFR_UINT32_OP =3D 0x44=0D +EFI_IFR_UINT64_OP =3D 0x45=0D +EFI_IFR_TRUE_OP =3D 0x46=0D +EFI_IFR_FALSE_OP =3D 0x47=0D +EFI_IFR_TO_UINT_OP =3D 0x48=0D +EFI_IFR_TO_STRING_OP =3D 0x49=0D +EFI_IFR_TO_BOOLEAN_OP =3D 0x4A=0D +EFI_IFR_MID_OP =3D 0x4B=0D +EFI_IFR_FIND_OP =3D 0x4C=0D +EFI_IFR_TOKEN_OP =3D 0x4D=0D +EFI_IFR_STRING_REF1_OP =3D 0x4E=0D +EFI_IFR_STRING_REF2_OP =3D 0x4F=0D +EFI_IFR_CONDITIONAL_OP =3D 0x50=0D +EFI_IFR_QUESTION_REF3_OP =3D 0x51=0D +EFI_IFR_ZERO_OP =3D 0x52=0D +EFI_IFR_ONE_OP =3D 0x53=0D +EFI_IFR_ONES_OP =3D 0x54=0D +EFI_IFR_UNDEFINED_OP =3D 0x55=0D +EFI_IFR_LENGTH_OP =3D 0x56=0D +EFI_IFR_DUP_OP =3D 0x57=0D +EFI_IFR_THIS_OP =3D 0x58=0D +EFI_IFR_SPAN_OP =3D 0x59=0D +EFI_IFR_VALUE_OP =3D 0x5A=0D +EFI_IFR_DEFAULT_OP =3D 0x5B=0D +EFI_IFR_DEFAULTSTORE_OP =3D 0x5C=0D +EFI_IFR_FORM_MAP_OP =3D 0x5D=0D +EFI_IFR_CATENATE_OP =3D 0x5E=0D +EFI_IFR_GUID_OP =3D 0x5F=0D +EFI_IFR_SECURITY_OP =3D 0x60=0D +EFI_IFR_MODAL_TAG_OP =3D 0x61=0D +EFI_IFR_REFRESH_ID_OP =3D 0x62=0D +EFI_IFR_WARNING_IF_OP =3D 0x63=0D +EFI_IFR_MATCH2_OP =3D 0x64=0D +=0D +ConditionOps =3D [EFI_IFR_NO_SUBMIT_IF_OP, EFI_IFR_DISABLE_IF_OP, EFI_IFR_= SUPPRESS_IF_OP, EFI_IFR_GRAY_OUT_IF_OP, EFI_IFR_INCONSISTENT_IF_OP]=0D +BasicDataTypes =3D ['UINT8', 'UINT16', 'UINT32', 'UINT64', 'EFI_HII_DATE',= 'EFI_HII_TIME', 'EFI_HII_REF']=0D +=0D +class EFI_IFR_GUID_OPTIONKEY(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('Header', EFI_IFR_OP_HEADER),=0D + ('Guid', EFI_GUID),=0D + ('ExtendOpCode', c_uint8),=0D + ('QuestionId', c_uint16),=0D + ('OptionValue', EFI_IFR_TYPE_VALUE),=0D + ('KeyValue', c_uint16),=0D + ]=0D +=0D +=0D +EFI_IFR_EXTEND_OP_OPTIONKEY =3D 0x0=0D +EFI_IFR_EXTEND_OP_VAREQNAME =3D 0x1=0D +=0D +class EFI_COMPARE_TYPE(Enum):=0D + EQUAL =3D 0=0D + LESS_EQUAL =3D 1=0D + LESS_THAN =3D 2=0D + GREATER_THAN =3D 3=0D + GREATER_EQUAL =3D 4 \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/README.md b/BaseTools/Sour= ce/Python/VfrCompiler/README.md new file mode 100644 index 0000000000..cf600581c9 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/README.md @@ -0,0 +1,20 @@ +# Python VfrCompiler Tool=0D +## Overview=0D +This python VfrCompiler tool is the implementation of the edk2 VfrCompiler= tool which locates at https://github.com/tianocore/edk2/tree/master/BaseTo= ols/Source/C/VfrCompile.=0D +=0D +### Introduction=0D +The core function of the original C VfrCompiler tool is to convert the vfr= file into IFR binary array. However, the vfr format file syntax is relativ= ely uncommon and has poor readability for users. What's more, the C tool do= es not collect and store extra information except for binary generation. Wh= en any modification is needed, developers have to read and deal with the IF= R binary, which is quite inefficient. To solve this issue, this python VfrC= ompiler tool proposes to generate the yaml format file on the basis of the = vfr format file. With the yaml file, the layout and hierarchy of all Opcod= es in the vfr file will be saved. Then modification will be much eaiser. In= addition, an extra json file will be generated for better variable related= information presentation. So the long-term aim of this tool is to cover th= e same usage as the edk2 C VfrCompiler and extend the yaml/json output for = better readability and variability.=0D +=0D +### Main update in this commitment=0D +- Update the vfr parser generator from ANTLR to ANTLR v4, which is more re= adable and is eaiser to add on new functions.=0D +- Generate a yaml file for each vfr file. The yaml file displays all the c= ontents in the Vfr file by different Opcode types in sequence.=0D +- Generate a json file for each vfr file. The json file contains all the d= efault values for different Opcode types in vfr files.=0D +=0D +### Known issues=0D +=0D +- The python VfrCompiler tool aims to cover the same usage as the edk2 C V= frCompiler. But currently, the python VfrCompiler tool does not support IFR= binary generation feature, this feature will be added in future update.=0D +- The python VfrCompiler tool will extend new functions, which is able to = compile both the vfr and yaml files. This feature will be added in future u= pdate.=0D +=0D +### Use with Build System=0D +- To use the VfrCompiler Python Tool with Build System, please add the **= *'--vfr-yaml-enable'*** option in the build command.=0D +- For Example: ***build -p OvmfPkg\OvmfPkgIa32X64.dsc -a IA32 -a X64 -j bu= ild.log --vfr-yaml-enable*** \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/VfrError.py b/BaseTools/So= urce/Python/VfrCompiler/VfrError.py new file mode 100644 index 0000000000..53b960b4e1 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrError.py @@ -0,0 +1,162 @@ +import imp=0D +import sys=0D +import os=0D +from enum import Enum=0D +from Common.BuildToolError import *=0D +import Common.EdkLogger as EdkLogger=0D +=0D +=0D +class VfrReturnCode(Enum):=0D + VFR_RETURN_SUCCESS =3D 0=0D + VFR_RETURN_ERROR_SKIPED =3D 1=0D + VFR_RETURN_FATAL_ERROR =3D 2=0D + VFR_RETURN_MISMATCHED =3D 3=0D + VFR_RETURN_INVALID_PARAMETER =3D 4=0D + VFR_RETURN_OUT_FOR_RESOURCES =3D 5=0D + VFR_RETURN_UNSUPPORTED =3D 6=0D + VFR_RETURN_REDEFINED =3D 7=0D + VFR_RETURN_FORMID_REDEFINED =3D 8=0D + VFR_RETURN_QUESTIONID_REDEFINED =3D 9=0D + VFR_RETURN_VARSTOREID_REDEFINED =3D 10=0D + VFR_RETURN_UNDEFINED =3D 11=0D + VFR_RETURN_VAR_NOTDEFINED_BY_QUESTION =3D 12=0D + VFR_RETURN_VARSTORE_DATATYPE_REDEFINED_ERROR =3D 13=0D + VFR_RETURN_GET_EFIVARSTORE_ERROR =3D 14=0D + VFR_RETURN_EFIVARSTORE_USE_ERROR =3D 15=0D + VFR_RETURN_EFIVARSTORE_SIZE_ERROR =3D 16=0D + VFR_RETURN_GET_NVVARSTORE_ERROR =3D 17=0D + VFR_RETURN_QVAR_REUSE =3D 18=0D + VFR_RETURN_FLAGS_UNSUPPORTED =3D 19=0D + VFR_RETURN_ERROR_ARRARY_NUM =3D 20=0D + VFR_RETURN_DATA_STRING_ERROR =3D 21=0D + VFR_RETURN_DEFAULT_VALUE_REDEFINED =3D 22=0D + VFR_RETURN_CONSTANT_ONLY =3D 23=0D + VFR_RETURN_VARSTORE_NAME_REDEFINED_ERROR =3D 24=0D + VFR_RETURN_BIT_WIDTH_ERROR =3D 25=0D + VFR_RETURN_STRING_TO_UINT_OVERFLOW =3D 26=0D + VFR_RETURN_CODEUNDEFINED =3D 27=0D +=0D +=0D +vfrErrorMessage =3D {=0D + VfrReturnCode.VFR_RETURN_SUCCESS: '',=0D + VfrReturnCode.VFR_RETURN_ERROR_SKIPED: '',=0D + VfrReturnCode.VFR_RETURN_FATAL_ERROR: 'fatal error!!',=0D + VfrReturnCode.VFR_RETURN_MISMATCHED: 'unexpected token',=0D + VfrReturnCode.VFR_RETURN_INVALID_PARAMETER: 'invalid parameter',=0D + VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES: 'system out of memory',=0D + VfrReturnCode.VFR_RETURN_UNSUPPORTED: 'unsupported',=0D + VfrReturnCode.VFR_RETURN_REDEFINED: 'already defined',=0D + VfrReturnCode.VFR_RETURN_FORMID_REDEFINED: 'form id already defined',= =0D + VfrReturnCode.VFR_RETURN_QUESTIONID_REDEFINED:=0D + 'question id already defined',=0D + VfrReturnCode.VFR_RETURN_VARSTOREID_REDEFINED:=0D + 'varstore id already defined',=0D + VfrReturnCode.VFR_RETURN_UNDEFINED: 'undefined',=0D + VfrReturnCode.VFR_RETURN_VAR_NOTDEFINED_BY_QUESTION:=0D + 'some variable has not defined by a question',=0D + VfrReturnCode.VFR_RETURN_VARSTORE_DATATYPE_REDEFINED_ERROR:=0D + 'Data Structure is defined by more than one varstores: it can\'t be re= ferred as varstore: only varstore name could be used.',=0D + VfrReturnCode.VFR_RETURN_GET_EFIVARSTORE_ERROR: 'get efi varstore erro= r',=0D + VfrReturnCode.VFR_RETURN_EFIVARSTORE_USE_ERROR:=0D + 'can not use the efi varstore like this',=0D + VfrReturnCode.VFR_RETURN_EFIVARSTORE_SIZE_ERROR:=0D + 'unsupport efi varstore size should be <=3D 8 bytes',=0D + VfrReturnCode.VFR_RETURN_GET_NVVARSTORE_ERROR:=0D + 'get name value varstore error',=0D + VfrReturnCode.VFR_RETURN_QVAR_REUSE:=0D + 'variable reused by more than one question',=0D + VfrReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED: 'flags unsupported',=0D + VfrReturnCode.VFR_RETURN_ERROR_ARRARY_NUM:=0D + 'array number error: the valid value is in (0 ~ MAX_INDEX-1 for UEFI v= fr and in (1 ~ MAX_INDEX for Framework Vfr',=0D + VfrReturnCode.VFR_RETURN_DATA_STRING_ERROR:=0D + 'data field string error or not support',=0D + VfrReturnCode.VFR_RETURN_DEFAULT_VALUE_REDEFINED:=0D + 'default value re-defined with different value',=0D + VfrReturnCode.VFR_RETURN_CONSTANT_ONLY:=0D + 'only constant is allowed in the expression',=0D + VfrReturnCode.VFR_RETURN_VARSTORE_NAME_REDEFINED_ERROR:=0D + 'Varstore name is defined by more than one varstores: it can\'t be ref= erred as varstore: only varstore structure name could be used.',=0D + VfrReturnCode.VFR_RETURN_BIT_WIDTH_ERROR:=0D + 'bit width must be <=3D sizeof (type * 8 and the max width can not > 3= 2',=0D + VfrReturnCode.VFR_RETURN_STRING_TO_UINT_OVERFLOW:=0D + 'String to UINT* Overflow',=0D + VfrReturnCode.VFR_RETURN_CODEUNDEFINED: 'undefined Error Code'=0D +}=0D +=0D +=0D +class EFI_VFR_WARNING_CODE(Enum):=0D + VFR_WARNING_DEFAULT_VALUE_REDEFINED =3D 0=0D + VFR_WARNING_ACTION_WITH_TEXT_TWO =3D 1=0D + VFR_WARNING_OBSOLETED_FRAMEWORK_OPCODE =3D 2=0D + VFR_WARNING_CODEUNDEFINED =3D 3=0D +=0D +=0D +vfrWarningMessage =3D {=0D + EFI_VFR_WARNING_CODE.VFR_WARNING_DEFAULT_VALUE_REDEFINED:=0D + ": default value re-defined with different value",=0D + EFI_VFR_WARNING_CODE.VFR_WARNING_ACTION_WITH_TEXT_TWO:=0D + ": Action opcode should not have TextTwo part",=0D + EFI_VFR_WARNING_CODE.VFR_WARNING_OBSOLETED_FRAMEWORK_OPCODE:=0D + ": Not recommend to use obsoleted framework opcode",=0D + EFI_VFR_WARNING_CODE.VFR_WARNING_CODEUNDEFINED: ": undefined Warning C= ode"=0D +}=0D +=0D +=0D +class CVfrErrorHandle():=0D +=0D + def __init__(self):=0D + self.__InputFileName =3D None=0D + self.__vfrErrorMessage =3D vfrErrorMessage=0D + self.__vfrWarningMessage =3D vfrWarningMessage=0D + self.__WarningAsError =3D False=0D +=0D + def SetWarningAsError(self, WarningAsError):=0D + self.__WarningAsError =3D WarningAsError=0D +=0D + def SetInputFile(self, InputFile):=0D + self.__InputFileName =3D InputFile=0D +=0D + def HandleWarning(self, WarningCode, LineNum, TokenValue=3DNone):=0D + if self.__vfrWarningMessage =3D=3D None:=0D + return 1=0D + WarningMsg =3D ''=0D + for key in self.__vfrWarningMessage.keys():=0D + if WarningCode =3D=3D self.__vfrWarningMessage[key]:=0D + WarningMsg =3D self.__vfrWarningMessage[key]=0D + break=0D + if WarningMsg !=3D '':=0D + if self.__WarningAsError:=0D + EdkLogger.error('VfrCompiler', WarningCode, WarningMsg,=0D + self.__InputFileName, LineNum,=0D + "warning treated as error")=0D + EdkLogger.warn('VfrCompiler', WarningMsg, self.__InputFileName= ,=0D + LineNum, TokenValue)=0D +=0D + def PrintMsg(self,=0D + LineNum,=0D + MsgType=3D'Error',=0D + ErrorMsg=3DNone,=0D + TokenValue=3DNone):=0D + if MsgType =3D=3D 'Warning':=0D + EdkLogger.verbose(ErrorMsg)=0D + else:=0D + EdkLogger.error('VfrCompiler', 0x3000, ErrorMsg,=0D + self.__InputFileName, LineNum, TokenValue)=0D +=0D + def HandleError(self, ErrorCode, LineNum=3DNone, TokenValue=3DNone):=0D + if self.__vfrErrorMessage =3D=3D None:=0D + return 1=0D + ErrorMsg =3D ''=0D + for key in self.__vfrErrorMessage.keys():=0D + if ErrorCode =3D=3D self.__vfrErrorMessage[key]:=0D + ErrorMsg =3D self.__vfrErrorMessage[key]=0D + break=0D + if ErrorMsg !=3D '':=0D + EdkLogger.error('VfrCompiler', ErrorCode, ErrorMsg,=0D + self.__InputFileName, LineNum, TokenValue)=0D + return 1=0D + else:=0D + return 0=0D +=0D +=0D +gCVfrErrorHandle =3D CVfrErrorHandle() \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/VfrFormPkg.py b/BaseTools/= Source/Python/VfrCompiler/VfrFormPkg.py new file mode 100644 index 0000000000..efa8129d90 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrFormPkg.py @@ -0,0 +1,2738 @@ +from ast import For=0D +from re import L=0D +from sre_parse import FLAGS=0D +from stat import FILE_ATTRIBUTE_SPARSE_FILE=0D +from VfrCompiler.CommonCtypes import *=0D +from VfrCompiler.VfrError import VfrReturnCode=0D +from VfrCompiler.VfrUtility import *=0D +=0D +from ctypes import *=0D +=0D +=0D +class OpcodeSizesScopeNode():=0D +=0D + def __init__(self, Size, Scope):=0D + self.Size =3D Size=0D + self.Scope =3D Scope=0D +=0D +=0D +gOpcodeSizesScopeTable =3D [=0D + OpcodeSizesScopeNode(0, 0), # EFI_IFR_INVALID - 0x00=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_FORM), 1), # EFI_IFR_FORM_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SUBTITLE),=0D + 1), # EFI_IFR_SUBTITLE_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TEXT), 0), # EFI_IFR_TEXT_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_IMAGE), 0), # EFI_IFR_IMAG= E_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ONE_OF),=0D + 1), # EFI_IFR_ONE_OF_OP - 0x05=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_CHECKBOX),=0D + 1), # EFI_IFR_CHECKBOX_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_NUMERIC),=0D + 1), # EFI_IFR_NUMERIC_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_PASSWORD),=0D + 1), # EFI_IFR_PASSWORD_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ONE_OF_OPTION),=0D + 0), # EFI_IFR_ONE_OF_OPTION_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SUPPRESS_IF),=0D + 1), # EFI_IFR_SUPPRESS_IF - 0x0A=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_LOCKED),=0D + 0), # EFI_IFR_LOCKED_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ACTION),=0D + 1), # EFI_IFR_ACTION_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_RESET_BUTTON),=0D + 1), # EFI_IFR_RESET_BUTTON_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_FORM_SET),=0D + 1), # EFI_IFR_FORM_SET_OP -0xE=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_REF), 0), # EFI_IFR_REF_OP= =0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_NO_SUBMIT_IF),=0D + 1), # EFI_IFR_NO_SUBMIT_IF_OP -0x10=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_INCONSISTENT_IF),=0D + 1), # EFI_IFR_INCONSISTENT_IF_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_EQ_ID_VAL),=0D + 0), # EFI_IFR_EQ_ID_VAL_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_EQ_ID_ID),=0D + 0), # EFI_IFR_EQ_ID_ID_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_EQ_ID_VAL_LIST),=0D + 0), # EFI_IFR_EQ_ID_LIST_OP - 0x14=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_AND), 0), # EFI_IFR_AND_OP= =0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_OR), 0), # EFI_IFR_OR_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_NOT), 0), # EFI_IFR_NOT_OP= =0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_RULE), 1), # EFI_IFR_RULE_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_GRAY_OUT_IF),=0D + 1), # EFI_IFR_GRAYOUT_IF_OP - 0x19=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_DATE), 1), # EFI_IFR_DATE_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TIME), 1), # EFI_IFR_TIME_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_STRING),=0D + 1), # EFI_IFR_STRING_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_REFRESH),=0D + 0), # EFI_IFR_REFRESH_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_DISABLE_IF),=0D + 1), # EFI_IFR_DISABLE_IF_OP - 0x1E=0D + OpcodeSizesScopeNode(0, 0), # 0x1F=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TO_LOWER),=0D + 0), # EFI_IFR_TO_LOWER_OP - 0x20=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TO_UPPER),=0D + 0), # EFI_IFR_TO_UPPER_OP - 0x21=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MAP), 1), # EFI_IFR_MAP - = 0x22=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ORDERED_LIST),=0D + 1), # EFI_IFR_ORDERED_LIST_OP - 0x23=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_VARSTORE),=0D + 0), # EFI_IFR_VARSTORE_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_VARSTORE_NAME_VALUE),=0D + 0), # EFI_IFR_VARSTORE_NAME_VALUE_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_VARSTORE_EFI),=0D + 0), # EFI_IFR_VARSTORE_EFI_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_VARSTORE_DEVICE),=0D + 1), # EFI_IFR_VARSTORE_DEVICE_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_VERSION),=0D + 0), # EFI_IFR_VERSION_OP - 0x28=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_END), 0), # EFI_IFR_END_OP= =0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MATCH),=0D + 0), # EFI_IFR_MATCH_OP - 0x2A=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_GET), 0), # EFI_IFR_GET - = 0x2B=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SET), 0), # EFI_IFR_SET - = 0x2C=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_READ),=0D + 0), # EFI_IFR_READ - 0x2D=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_WRITE),=0D + 0), # EFI_IFR_WRITE - 0x2E=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_EQUAL),=0D + 0), # EFI_IFR_EQUAL_OP - 0x2F=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_NOT_EQUAL),=0D + 0), # EFI_IFR_NOT_EQUAL_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_GREATER_THAN),=0D + 0), # EFI_IFR_GREATER_THAN_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_GREATER_EQUAL),=0D + 0), # EFI_IFR_GREATER_EQUAL_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_LESS_THAN),=0D + 0), # EFI_IFR_LESS_THAN_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_LESS_EQUAL),=0D + 0), # EFI_IFR_LESS_EQUAL_OP - 0x34=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_BITWISE_AND),=0D + 0), # EFI_IFR_BITWISE_AND_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_BITWISE_OR),=0D + 0), # EFI_IFR_BITWISE_OR_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_BITWISE_NOT),=0D + 0), # EFI_IFR_BITWISE_NOT_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SHIFT_LEFT),=0D + 0), # EFI_IFR_SHIFT_LEFT_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SHIFT_RIGHT),=0D + 0), # EFI_IFR_SHIFT_RIGHT_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ADD),=0D + 0), # EFI_IFR_ADD_OP - 0x3A=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SUBTRACT),=0D + 0), # EFI_IFR_SUBTRACT_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MULTIPLY),=0D + 0), # EFI_IFR_MULTIPLY_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_DIVIDE),=0D + 0), # EFI_IFR_DIVIDE_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MODULO),=0D + 0), # EFI_IFR_MODULO_OP - 0x3E=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_RULE_REF),=0D + 0), # EFI_IFR_RULE_REF_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_QUESTION_REF1),=0D + 0), # EFI_IFR_QUESTION_REF1_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_QUESTION_REF2),=0D + 0), # EFI_IFR_QUESTION_REF2_OP - 0x41=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_UINT8), 0), # EFI_IFR_UINT= 8=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_UINT16), 0), # EFI_IFR_UIN= T16=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_UINT32), 0), # EFI_IFR_UIN= T32=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_UINT64), 0), # EFI_IFR_UTN= T64=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TRUE),=0D + 0), # EFI_IFR_TRUE_OP - 0x46=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_FALSE), 0), # EFI_IFR_FALS= E_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TO_UINT),=0D + 0), # EFI_IFR_TO_UINT_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TO_STRING),=0D + 0), # EFI_IFR_TO_STRING_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TO_BOOLEAN),=0D + 0), # EFI_IFR_TO_BOOLEAN_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MID), 0), # EFI_IFR_MID_OP= =0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_FIND), 0), # EFI_IFR_FIND_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_TOKEN), 0), # EFI_IFR_TOKE= N_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_STRING_REF1),=0D + 0), # EFI_IFR_STRING_REF1_OP - 0x4E=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_STRING_REF2),=0D + 0), # EFI_IFR_STRING_REF2_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_CONDITIONAL),=0D + 0), # EFI_IFR_CONDITIONAL_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_QUESTION_REF3),=0D + 0), # EFI_IFR_QUESTION_REF3_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ZERO), 0), # EFI_IFR_ZERO_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ONE), 0), # EFI_IFR_ONE_OP= =0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_ONES), 0), # EFI_IFR_ONES_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_UNDEFINED),=0D + 0), # EFI_IFR_UNDEFINED_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_LENGTH),=0D + 0), # EFI_IFR_LENGTH_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_DUP),=0D + 0), # EFI_IFR_DUP_OP - 0x57=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_THIS), 0), # EFI_IFR_THIS_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SPAN), 0), # EFI_IFR_SPAN_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_VALUE), 1), # EFI_IFR_VALU= E_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_DEFAULT),=0D + 0), # EFI_IFR_DEFAULT_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_DEFAULTSTORE),=0D + 0), # EFI_IFR_DEFAULTSTORE_OP - 0x5C=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_FORM_MAP),=0D + 1), # EFI_IFR_FORM_MAP_OP - 0x5D=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_CATENATE),=0D + 0), # EFI_IFR_CATENATE_OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_GUID), 0), # EFI_IFR_GUID_= OP=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_SECURITY),=0D + 0), # EFI_IFR_SECURITY_OP - 0x60=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MODAL_TAG),=0D + 0), # EFI_IFR_MODAL_TAG_OP - 0x61=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_REFRESH_ID),=0D + 0), # EFI_IFR_REFRESH_ID_OP - 0x62=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_WARNING_IF),=0D + 1), # EFI_IFR_WARNING_IF_OP - 0x63=0D + OpcodeSizesScopeNode(ctypes.sizeof(EFI_IFR_MATCH2), 0)=0D +]=0D +=0D +=0D +class SBufferNode():=0D +=0D + def __init__(self, Buffer=3D'', Next=3DNone):=0D + self.Buffer =3D Buffer=0D + self.Next =3D Next=0D +=0D +=0D +class CFormPkg():=0D +=0D + def __init__(self, BufferSize=3D4096):=0D +=0D + Node =3D SBufferNode()=0D + self.__BufferNodeQueueHead =3D Node=0D + self.__BufferNodeQueueTail =3D Node=0D + self.__CurrBufferNode =3D Node=0D + self.__ReadBufferNode =3D None=0D + self.__ReadBufferOffset =3D 0=0D + self.__PkgLength =3D 0=0D + self.__PendingAssignList =3D None=0D + self.__BufferSize =3D BufferSize=0D +=0D + def GetPkgLength(self):=0D + return self.__PkgLength=0D +=0D + def __createNewNode(self):=0D + Node =3D SBufferNode()=0D + return Node=0D +=0D + def __GetNodeBefore(self, CurrentNode):=0D + FirstNode =3D self.__BufferNodeQueueHead=0D + LastNode =3D self.__BufferNodeQueueHead=0D + while FirstNode !=3D None:=0D + if FirstNode =3D=3D CurrentNode:=0D + break=0D +=0D + LastNode =3D FirstNode=0D + FirstNode =3D FirstNode.Next=0D +=0D + if FirstNode =3D=3D None:=0D + LastNode =3D None=0D +=0D + return LastNode=0D +=0D + def __InsertNodeBefore(self, CurrentNode, NewNode):=0D + LastNode =3D self.__GetNodeBefore(CurrentNode)=0D + if LastNode =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_MISMATCHED=0D +=0D + NewNode.Next =3D LastNode.Next=0D + LastNode.Next =3D NewNode=0D +=0D + def IfrBinBufferGet(self, Len):=0D + if Len =3D=3D 0 or Len > self.__BufferSize:=0D + return None=0D + if len(self.__CurrBufferNode.Buffer) + Len > self.__BufferSize:=0D + Node =3D self.__createNewNode()=0D + if Node =3D=3D None:=0D + return None=0D +=0D + if self.__BufferNodeQueueTail =3D=3D None:=0D + self.__BufferNodeQueueHead =3D self.__BufferNodeQueueTail = =3D Node=0D + else:=0D + self.__BufferNodeQueueTail.Next =3D Node=0D + mBufferNodeQueueTail =3D Node=0D + self.__CurrBufferNode =3D Node=0D +=0D + self.__PkgLength +=3D Len=0D +=0D + return self.__CurrBufferNode.Buffer=0D +=0D +=0D +=0D +gCFormPkg =3D CFormPkg()=0D +gCreateOp =3D True=0D +=0D +gIfrObjPrintDebugTable =3D [=0D + "EFI_IFR_INVALID",=0D + "EFI_IFR_FORM",=0D + "EFI_IFR_SUBTITLE",=0D + "EFI_IFR_TEXT",=0D + "EFI_IFR_IMAGE",=0D + "EFI_IFR_ONE_OF",=0D + "EFI_IFR_CHECKBOX",=0D + "EFI_IFR_NUMERIC",=0D + "EFI_IFR_PASSWORD",=0D + "EFI_IFR_ONE_OF_OPTION",=0D + "EFI_IFR_SUPPRESS_IF",=0D + "EFI_IFR_LOCKED",=0D + "EFI_IFR_ACTION",=0D + "EFI_IFR_RESET_BUTTON",=0D + "EFI_IFR_FORM_SET",=0D + "EFI_IFR_REF",=0D + "EFI_IFR_NO_SUBMIT_IF",=0D + "EFI_IFR_INCONSISTENT_IF",=0D + "EFI_IFR_EQ_ID_VAL",=0D + "EFI_IFR_EQ_ID_ID",=0D + "EFI_IFR_EQ_ID_LIST",=0D + "EFI_IFR_AND",=0D + "EFI_IFR_OR",=0D + "EFI_IFR_NOT",=0D + "EFI_IFR_RULE",=0D + "EFI_IFR_GRAY_OUT_IF",=0D + "EFI_IFR_DATE",=0D + "EFI_IFR_TIME",=0D + "EFI_IFR_STRING",=0D + "EFI_IFR_REFRESH",=0D + "EFI_IFR_DISABLE_IF",=0D + "EFI_IFR_INVALID",=0D + "EFI_IFR_TO_LOWER",=0D + "EFI_IFR_TO_UPPER",=0D + "EFI_IFR_MAP",=0D + "EFI_IFR_ORDERED_LIST",=0D + "EFI_IFR_VARSTORE",=0D + "EFI_IFR_VARSTORE_NAME_VALUE",=0D + "EFI_IFR_VARSTORE_EFI",=0D + "EFI_IFR_VARSTORE_DEVICE",=0D + "EFI_IFR_VERSION",=0D + "EFI_IFR_END",=0D + "EFI_IFR_MATCH",=0D + "EFI_IFR_GET",=0D + "EFI_IFR_SET",=0D + "EFI_IFR_READ",=0D + "EFI_IFR_WRITE",=0D + "EFI_IFR_EQUAL",=0D + "EFI_IFR_NOT_EQUAL",=0D + "EFI_IFR_GREATER_THAN",=0D + "EFI_IFR_GREATER_EQUAL",=0D + "EFI_IFR_LESS_THAN",=0D + "EFI_IFR_LESS_EQUAL",=0D + "EFI_IFR_BITWISE_AND",=0D + "EFI_IFR_BITWISE_OR",=0D + "EFI_IFR_BITWISE_NOT",=0D + "EFI_IFR_SHIFT_LEFT",=0D + "EFI_IFR_SHIFT_RIGHT",=0D + "EFI_IFR_ADD",=0D + "EFI_IFR_SUBTRACT",=0D + "EFI_IFR_MULTIPLY",=0D + "EFI_IFR_DIVIDE",=0D + "EFI_IFR_MODULO",=0D + "EFI_IFR_RULE_REF",=0D + "EFI_IFR_QUESTION_REF1",=0D + "EFI_IFR_QUESTION_REF2",=0D + "EFI_IFR_UINT8",=0D + "EFI_IFR_UINT16",=0D + "EFI_IFR_UINT32",=0D + "EFI_IFR_UINT64",=0D + "EFI_IFR_TRUE",=0D + "EFI_IFR_FALSE",=0D + "EFI_IFR_TO_UINT",=0D + "EFI_IFR_TO_STRING",=0D + "EFI_IFR_TO_BOOLEAN",=0D + "EFI_IFR_MID",=0D + "EFI_IFR_FIND",=0D + "EFI_IFR_TOKEN",=0D + "EFI_IFR_STRING_REF1",=0D + "EFI_IFR_STRING_REF2",=0D + "EFI_IFR_CONDITIONAL",=0D + "EFI_IFR_QUESTION_REF3",=0D + "EFI_IFR_ZERO",=0D + "EFI_IFR_ONE",=0D + "EFI_IFR_ONES",=0D + "EFI_IFR_UNDEFINED",=0D + "EFI_IFR_LENGTH",=0D + "EFI_IFR_DUP",=0D + "EFI_IFR_THIS",=0D + "EFI_IFR_SPAN",=0D + "EFI_IFR_VALUE",=0D + "EFI_IFR_DEFAULT",=0D + "EFI_IFR_DEFAULTSTORE",=0D + "EFI_IFR_FORM_MAP",=0D + "EFI_IFR_CATENATE",=0D + "EFI_IFR_GUID",=0D + "EFI_IFR_SECURITY",=0D + "EFI_IFR_MODAL_TAG",=0D + "EFI_IFR_REFRESH_ID",=0D + "EFI_IFR_WARNING_IF",=0D + "EFI_IFR_MATCH2",=0D +]=0D +=0D +=0D +class CIfrObj():=0D +=0D + def __init__(self, Obj=3DNone, OpCode=3DNone, ObjBinLen=3D0, DelayEmit= =3DFalse, LineNo=3D0):=0D +=0D + self.__DelayEmit =3D DelayEmit=0D + self.__PkgOffset =3D gCFormPkg.GetPkgLength()=0D + self.__ObjBinLen =3D gOpcodeSizesScopeTable[=0D + OpCode].Size if ObjBinLen =3D=3D 0 else ObjBinLen=0D +=0D + self.__ObjBinBuf =3D Obj=0D + self.__LineNo =3D LineNo=0D +=0D + # print ("=3D=3D=3D=3D=3D=3DCreate IFR [%s]\n", gIfrObjPrintDebugT= able[OpCode])=0D + return self.__ObjBinBuf=0D +=0D + def SetObjBin(self, ObjBinLen):=0D +=0D + self.__ObjBinLen =3D ObjBinLen=0D + if self.__DelayEmit =3D=3D False and gCreateOp =3D=3D True:=0D + self.__ObjBinBuf =3D gCFormPkg.IfrBinBufferGet(self.__ObjBinLe= n)=0D +=0D + def SetLineNo(self, LineNo):=0D + self.__LineNo =3D LineNo=0D +=0D + def GetObjBinAddr(self, Addr):=0D + self.__ObjBinBuf =3D Addr=0D + return self.__ObjBinBuf=0D +=0D + def GetObjBinOffset(self):=0D + return self.__PkgOffset=0D +=0D + def GetObjBinLen(self):=0D + return self.__ObjBinLen=0D +=0D + def ExpendObjBin(self, Size):=0D + if (self.__DelayEmit) =3D=3D True and (=0D + (self.__ObjBinLen + Size) > self.__ObjBinLen):=0D + self.__ObjBinLen =3D self.__ObjBinLen + Size=0D + return True=0D + else:=0D + return False=0D +=0D + def ShrinkObjBin(self, Size):=0D + if (self.__DelayEmit) =3D=3D True and (self.__ObjBinLen > Size):=0D + self.__ObjBinLen =3D self.__ObjBinLen - Size=0D +=0D + def GetObjBin(self):=0D + return self.__ObjBinBuf=0D +=0D + def EMIT_PENDING_OBJ(self):=0D + if self.__DelayEmit =3D=3D False or gCreateOp =3D=3D False:=0D + return=0D +=0D + self.__PkgOffset =3D gCFormPkg.GetPkgLength()=0D + # update data buffer to package data=0D + self.__ObjBinBuf =3D gCFormPkg.IfrBinBufferGet(self.__ObjBinLen)=0D +=0D + self.__DelayEmit =3D False=0D +=0D +=0D +gScopeCount =3D 0=0D +gIsOrderedList =3D False=0D +gIsStringOp =3D False=0D +gCurrentQuestion =3D None=0D +gCurrentMinMaxData =3D None=0D +=0D +=0D +def SetCurrentQuestion(Question):=0D +=0D + gCurrentQuestion =3D Question=0D + return gCurrentQuestion=0D +=0D +=0D +class CIfrOpHeader():=0D +=0D + def __init__(self, OpHeader: EFI_IFR_OP_HEADER, OpCode=3DNone, Length= =3D0):=0D + self.__OpHeader =3D OpHeader=0D + if OpCode !=3D None:=0D + self.__OpHeader.OpCode =3D OpCode=0D +=0D + self.__OpHeader.Length =3D gOpcodeSizesScopeTable[=0D + OpCode].Size if Length =3D=3D 0 else Length=0D + self.__OpHeader.Scope =3D 1 if (=0D + gOpcodeSizesScopeTable[OpCode].Scope + gScopeCount > 0) el= se 0=0D +=0D + def GetLength(self):=0D + return self.__OpHeader.Length=0D +=0D + def SetScope(self, Scope):=0D + self.__OpHeader.Scope =3D Scope=0D +=0D + def GetScope(self):=0D + return self.__OpHeader.Scope=0D +=0D + def UpdateHeader(self, Header):=0D + self.__OpHeader =3D Header=0D +=0D + def IncLength(self, Size):=0D + self.__OpHeader.Length +=3D Size=0D +=0D + def DecLength(self, Size):=0D + self.__OpHeader.Length -=3D Size=0D +=0D + def GetOpCode(self):=0D + return self.__OpHeader.OpCode=0D +=0D +=0D +class CIfrStatementHeader():=0D +=0D + def __init__(self, sHeader: EFI_IFR_STATEMENT_HEADER):=0D + self.__sHeader =3D sHeader=0D + self.__sHeader.Help =3D EFI_STRING_ID_INVALID=0D + self.__sHeader.Prompt =3D EFI_STRING_ID_INVALID=0D +=0D + def GetStatementHeader(self):=0D + return self.__sHeader=0D +=0D + def SetPrompt(self, Prompt):=0D + self.__sHeader.Prompt =3D Prompt=0D +=0D + def SetHelp(self, Help):=0D + self.__sHeader.Help =3D Help=0D +=0D +=0D +class CIfrMinMaxStepData():=0D +=0D + def __init__(self, MinMaxStepData, NumericOpcode=3DFalse):=0D + self.__MinMaxStepData =3D MinMaxStepData=0D + self.__MinMaxStepData.u64.MinValue =3D 0=0D + self.__MinMaxStepData.u64.MaxValue =3D 0=0D + self.__MinMaxStepData.u64.Step =3D 0=0D + self.__ValueIsSet =3D False=0D + self.__IsNumeric =3D NumericOpcode=0D + self.__VarType =3D EFI_IFR_TYPE_NUM_SIZE_64=0D +=0D + def SetMinMaxStepData(self, MinValue, MaxValue, Step, VarType):=0D + self.__VarType =3D VarType=0D +=0D + if self.__ValueIsSet =3D=3D False:=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + self.__MinMaxStepData.u64.MinValue =3D MinValue=0D + self.__MinMaxStepData.u64.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u64.Step =3D Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + self.__MinMaxStepData.u32.MinValue =3D MinValue=0D + self.__MinMaxStepData.u32.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u32.Step =3D Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + self.__MinMaxStepData.u16.MinValue =3D MinValue=0D + self.__MinMaxStepData.u16.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u16.Step =3D Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + self.__MinMaxStepData.u8.MinValue =3D MinValue=0D + self.__MinMaxStepData.u8.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u8.Step =3D Step=0D + self.__ValueIsSet =3D True=0D + else:=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + if MinValue < self.__MinMaxStepData.u64.MinValue:=0D + self.__MinMaxStepData.u64.MinValue =3D MinValue=0D + if MaxValue > self.__MinMaxStepData.u64.MaxValue:=0D + self.__MinMaxStepData.u64.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u64.Step =3D Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + if MinValue < self.__MinMaxStepData.u32.MinValue:=0D + self.__MinMaxStepData.u32.MinValue =3D MinValue=0D + if MaxValue > self.__MinMaxStepData.u32.MaxValue:=0D + self.__MinMaxStepData.u32.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u32.Step =3D Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + if MinValue < self.__MinMaxStepData.u16.MinValue:=0D + self.__MinMaxStepData.u16.MinValue =3D MinValue=0D + if MaxValue > self.__MinMaxStepData.u16.MaxValue:=0D + self.__MinMaxStepData.u16.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u16.Step =3D Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + if MinValue < self.__MinMaxStepData.u8.MinValue:=0D + self.__MinMaxStepData.u8.MinValue =3D MinValue=0D + if MaxValue > self.__MinMaxStepData.u8.MaxValue:=0D + self.__MinMaxStepData.u8.MaxValue =3D MaxValue=0D + self.__MinMaxStepData.u8.Step =3D Step=0D +=0D + def GetVarType(self):=0D + return self.__VarType=0D +=0D + def IsNumericOpcode(self):=0D + return self.__IsNumeric=0D +=0D + def UpdateCIfrMinMaxStepData(self, MinMaxStepData):=0D + self.__MinMaxStepData =3D MinMaxStepData=0D +=0D + def GetMinData(self, VarType, IsBitVar):=0D +=0D + if IsBitVar:=0D + return self.__MinMaxStepData.u32.MinValue=0D +=0D + else:=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + return self.__MinMaxStepData.u64.MinValue=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + return self.__MinMaxStepData.u32.MinValue=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + return self.__MinMaxStepData.u16.MinValue=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + return self.__MinMaxStepData.u8.MinValue=0D +=0D + return 0=0D +=0D + def GetMaxData(self, VarType, IsBitVar):=0D +=0D + if IsBitVar:=0D + return self.__MinMaxStepData.u32.MaxValue=0D +=0D + else:=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + return self.__MinMaxStepData.u64.MaxValue=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + return self.__MinMaxStepData.u32.MaxValue=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + return self.__MinMaxStepData.u16.MaxValue=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + return self.__MinMaxStepData.u8.MaxValue=0D +=0D + return 0=0D +=0D + def GetStepData(self, VarType, IsBitVar):=0D +=0D + if IsBitVar:=0D + return self.__MinMaxStepData.u32.Step=0D +=0D + else:=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + return self.__MinMaxStepData.u64.Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + return self.__MinMaxStepData.u32.Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + return self.__MinMaxStepData.u16.Step=0D + if VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + return self.__MinMaxStepData.u8.Step=0D +=0D + return 0=0D +=0D +=0D +class CIfrFormSet(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, Size):=0D + self.__FormSet =3D EFI_IFR_FORM_SET()=0D + CIfrObj.__init__(self, self.__FormSet, EFI_IFR_FORM_SET_OP)=0D + CIfrOpHeader.__init__(self, self.__FormSet.Header, EFI_IFR_FORM_SE= T_OP,=0D + Size)=0D + self.__FormSet.Help =3D EFI_STRING_ID_INVALID=0D + self.__FormSet.FormSetTitle =3D EFI_STRING_ID_INVALID=0D + self.__FormSet.Flags =3D 0=0D + self.__FormSet.Guid =3D EFI_GUID(0, 0, 0,=0D + GuidArray(0, 0, 0, 0, 0, 0, 0, 0))= =0D + self.__ClassGuid =3D []=0D +=0D + def SetGuid(self, Guid):=0D + self.__FormSet.Guid =3D Guid=0D +=0D + def GetGuid(self):=0D + return self.__FormSet.Guid=0D +=0D + def SetFormSetTitle(self, FormSetTitle):=0D + self.__FormSet.FormSetTitle =3D FormSetTitle=0D +=0D + def GetFormSetTitle(self):=0D + return self.__FormSet.FormSetTitle=0D +=0D + def SetHelp(self, Help):=0D + self.__FormSet.Help =3D Help=0D +=0D + def GetHelp(self):=0D + return self.__FormSet.Help=0D +=0D + def SetClassGuid(self, Guid):=0D + self.__ClassGuid.append(Guid)=0D + self.__FormSet.Flags +=3D 1=0D +=0D + def GetClassGuid(self):=0D + return self.__ClassGuid=0D +=0D + def GetFlags(self):=0D + return self.__FormSet.Flags=0D +=0D + def GetInfo(self):=0D + return self.__FormSet=0D +=0D +=0D +class CIfrOneOfOption(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, Size):=0D + self.__OneOfOption =3D EFI_IFR_ONE_OF_OPTION()=0D + CIfrOpHeader.__init__(self, self.__OneOfOption.Header,=0D + EFI_IFR_ONE_OF_OPTION_OP, Size)=0D + self.__OneOfOption.Flags =3D 0=0D + self.__OneOfOption.Option =3D EFI_STRING_ID_INVALID=0D + self.__OneOfOption.Type =3D EFI_IFR_TYPE_OTHER=0D + self.__OneOfOption.Value =3D EFI_IFR_TYPE_VALUE()=0D +=0D + def SetOption(self, Option):=0D + self.__OneOfOption.Option =3D Option=0D +=0D + def SetType(self, Type):=0D + self.__OneOfOption.Type =3D Type=0D +=0D + def SetValue(self, Value):=0D + self.__OneOfOption.Value =3D Value=0D +=0D + def GetFlags(self):=0D + return self.__OneOfOption.Flags=0D +=0D + def SetFlags(self, LFlags):=0D +=0D + self.__OneOfOption.Flags =3D 0=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_OPTION_DEFAUL= T)=0D + if Ret:=0D + self.__OneOfOption.Flags |=3D EFI_IFR_OPTION_DEFAULT=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_OPTION_DEFAUL= T_MFG)=0D + if Ret:=0D + self.__OneOfOption.Flags |=3D EFI_IFR_OPTION_DEFAULT_MFG=0D +=0D + if LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_8)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_8=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_16)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_16=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_32)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_32=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_64)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_64=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_BOOLEAN)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_BOOLEAN=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_TIME:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_TIME)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_TIME=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_DATE:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_DATE)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_DATE=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_STRING:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_STRING)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_STRING=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_OTHER:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_OTHER)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_OTHER=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__OneOfOption=0D +=0D +=0D +class CIfrOneOfOption2(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, Size, Nums, ValueType, ValueList=3D[]):=0D + self.__OneOfOption =3D Refine_EFI_IFR_ONE_OF_OPTION(Nums)=0D + Header =3D EFI_IFR_OP_HEADER()=0D + CIfrOpHeader.__init__(self, Header, EFI_IFR_ONE_OF_OPTION_OP, Size= )=0D + self.__OneOfOption.Header =3D Header=0D + self.__OneOfOption.Flags =3D 0=0D + self.__OneOfOption.Option =3D EFI_STRING_ID_INVALID=0D + self.__OneOfOption.Type =3D EFI_IFR_TYPE_OTHER=0D + self.__ValueType =3D ValueType=0D + if ValueList !=3D []:=0D + ArrayType =3D EFI_IFR_TYPE_VALUE * Nums=0D + ValueArray =3D ArrayType()=0D + for i in range(0, len(ValueList)):=0D + ValueArray[i] =3D ValueList[i]=0D + self.__OneOfOption.Value =3D ValueArray=0D +=0D + def SetOption(self, Option):=0D + self.__OneOfOption.Option =3D Option=0D +=0D + def SetType(self, Type):=0D + self.__OneOfOption.Type =3D Type=0D +=0D + def GetValueType(self):=0D + return self.__ValueType=0D +=0D + def SetValue(self, ValueList):=0D + ArrayType =3D EFI_IFR_TYPE_VALUE * (len(ValueList))=0D + ValueArray =3D ArrayType()=0D + for i in range(0, len(ValueList)):=0D + ValueArray[i] =3D ValueList[i]=0D + self.__OneOfOption.Value =3D ValueArray=0D +=0D + def GetFlags(self):=0D + return self.__OneOfOption.Flags=0D +=0D + def SetFlags(self, LFlags):=0D +=0D + self.__OneOfOption.Flags =3D 0=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_OPTION_DEFAUL= T)=0D + if Ret:=0D + self.__OneOfOption.Flags |=3D EFI_IFR_OPTION_DEFAULT=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_OPTION_DEFAUL= T_MFG)=0D + if Ret:=0D + self.__OneOfOption.Flags |=3D EFI_IFR_OPTION_DEFAULT_MFG=0D +=0D + if LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_8)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_8=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_16)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_16=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_32)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_32=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_NUM_SIZE_64)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_NUM_SIZE_64=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_BOOLEAN)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_BOOLEAN=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_TIME:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_TIME)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_TIME=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_DATE:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_DATE)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_DATE=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_STRING:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_STRING)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_STRING=0D +=0D + elif LFlags =3D=3D EFI_IFR_TYPE_OTHER:=0D + LFlags =3D _FLAG_CLEAR(LFlags, EFI_IFR_TYPE_OTHER)=0D + self.__OneOfOption.Flags |=3D EFI_IFR_TYPE_OTHER=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__OneOfOption=0D +=0D +=0D +class CIfrOptionKey(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, QuestionId, OptionValue, KeyValue):=0D +=0D + self.__OptionKey =3D EFI_IFR_GUID_OPTIONKEY()=0D + CIfrOpHeader.__init__(self, self.__OptionKey.Header, EFI_IFR_GUID_= OP,=0D + ctypes.sizeof(EFI_IFR_GUID_OPTIONKEY))=0D + self.__OptionKey.ExtendOpCode =3D EFI_IFR_EXTEND_OP_OPTIONKEY=0D + self.__OptionKey.Guid =3D EFI_IFR_FRAMEWORK_GUID=0D + self.__OptionKey.QuestionId =3D QuestionId=0D + self.__OptionKey.OptionValue =3D OptionValue=0D + self.__OptionKey.KeyValue =3D KeyValue=0D +=0D + def GetInfo(self):=0D + return self.__OptionKey=0D +=0D +=0D +class CIfrClass(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Class =3D EFI_IFR_GUID_CLASS() # static guid=0D + CIfrOpHeader.__init__(self, self.__Class.Header, EFI_IFR_GUID_OP,= =0D + ctypes.sizeof(EFI_IFR_GUID_CLASS))=0D + self.__Class.ExtendOpCode =3D EFI_IFR_EXTEND_OP_CLASS=0D + self.__Class.Guid =3D EFI_IFR_TIANO_GUID=0D + self.__Class.Class =3D EFI_NON_DEVICE_CLASS=0D +=0D + def SetClass(self, Class):=0D + self.__Class.Class =3D Class=0D +=0D + def GetInfo(self):=0D + return self.__Class=0D +=0D +=0D +class CIfrSubClass(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__SubClass =3D EFI_IFR_GUID_SUBCLASS() # static guid=0D + CIfrOpHeader.__init__(self, self.__SubClass.Header, EFI_IFR_GUID_O= P,=0D + ctypes.sizeof(EFI_IFR_GUID_SUBCLASS))=0D + self.__SubClass.ExtendOpCode =3D EFI_IFR_EXTEND_OP_SUBCLASS=0D + self.__SubClass.Guid =3D EFI_IFR_TIANO_GUID=0D + self.__SubClass.SubClass =3D EFI_SETUP_APPLICATION_SUBCLASS=0D +=0D + def SetSubClass(self, SubClass):=0D + self.__SubClass.SubClass =3D SubClass=0D +=0D + def GetInfo(self):=0D + return self.__SubClass=0D +=0D +=0D +class CIfrDefaultStore(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__DefaultStore =3D EFI_IFR_DEFAULTSTORE()=0D + CIfrOpHeader.__init__(self, self.__DefaultStore.Header,=0D + EFI_IFR_DEFAULTSTORE_OP)=0D + self.__DefaultStore.DefaultName =3D EFI_STRING_ID_INVALID=0D + self.__DefaultStore.DefaultId =3D EFI_VARSTORE_ID_INVALID=0D +=0D + def SetDefaultName(self, DefaultName):=0D + self.__DefaultStore.DefaultName =3D DefaultName=0D +=0D + def SetDefaultId(self, DefaultId):=0D + self.__DefaultStore.DefaultId =3D DefaultId=0D +=0D + def GetDefaultStore(self):=0D + return self.__DefaultStore=0D +=0D + def SetDefaultStore(self, DefaultStore: EFI_IFR_DEFAULTSTORE):=0D + self.__DefaultStore =3D DefaultStore=0D +=0D + def GetInfo(self):=0D + return self.__DefaultStore=0D +=0D +=0D +class CIfrVarStore(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Varstore =3D EFI_IFR_VARSTORE()=0D + CIfrOpHeader.__init__(self, self.__Varstore.Header,=0D + EFI_IFR_VARSTORE_OP)=0D + self.__Varstore.VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D + self.__Varstore.Size =3D 0=0D + self.__Varstore.Name =3D ''=0D +=0D + def SetGuid(self, Guid):=0D + self.__Varstore.Guid =3D Guid=0D +=0D + def SetSize(self, Size):=0D + self.__Varstore.Size =3D Size=0D +=0D + def SetVarStoreId(self, VarStoreId):=0D + self.__Varstore.VarStoreId =3D VarStoreId=0D +=0D + def SetName(self, Name):=0D + self.__Varstore.Name =3D Name=0D +=0D + def GetInfo(self):=0D + return self.__Varstore=0D +=0D +=0D +class CIfrVarStoreEfi(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__VarStoreEfi =3D EFI_IFR_VARSTORE_EFI()=0D + CIfrOpHeader.__init__(self, self.__VarStoreEfi.Header,=0D + EFI_IFR_VARSTORE_EFI_OP)=0D + self.__VarStoreEfi.VarStoreId =3D EFI_VAROFFSET_INVALID=0D + self.__VarStoreEfi.Size =3D 0=0D + self.__VarStoreEfi.Name =3D ''=0D +=0D + def SetGuid(self, Guid):=0D + self.__VarStoreEfi.Guid =3D Guid=0D +=0D + def SetSize(self, Size):=0D + self.__VarStoreEfi.Size =3D Size=0D +=0D + def SetVarStoreId(self, VarStoreId):=0D + self.__VarStoreEfi.VarStoreId =3D VarStoreId=0D +=0D + def SetName(self, Name):=0D + self.__VarStoreEfi.Name =3D Name=0D +=0D + def SetAttributes(self, Attributes):=0D + self.__VarStoreEfi.Attributes =3D Attributes=0D +=0D + def GetInfo(self):=0D + return self.__VarStoreEfi=0D +=0D +=0D +class CIfrVarStoreNameValue(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__VarStoreNameValue =3D EFI_IFR_VARSTORE_NAME_VALUE()=0D + CIfrOpHeader.__init__(self, self.__VarStoreNameValue.Header,=0D + EFI_IFR_VARSTORE_NAME_VALUE_OP)=0D + self.__VarStoreNameValue.VarStoreId =3D EFI_VAROFFSET_INVALID=0D +=0D + def SetGuid(self, Guid):=0D + self.__VarStoreNameValue.Guid =3D Guid=0D +=0D + def SetVarStoreId(self, VarStoreId):=0D + self.__VarStoreNameValue.VarStoreId =3D VarStoreId=0D +=0D + def GetInfo(self):=0D + return self.__VarStoreNameValue=0D +=0D +=0D +EFI_BITS_PER_UINT32 =3D 1 << EFI_BITS_SHIFT_PER_UINT32=0D +EFI_FORM_ID_MAX =3D 0xFFFF=0D +=0D +EFI_FREE_FORM_ID_BITMAP_SIZE =3D int((EFI_FORM_ID_MAX + 1) / EFI_BITS_PER_= UINT32)=0D +=0D +=0D +class CIfrFormId():=0D +=0D + FormIdBitMap =3D []=0D + for i in range(0, EFI_FREE_FORM_ID_BITMAP_SIZE):=0D + FormIdBitMap.append(0)=0D +=0D + @classmethod=0D + def CheckFormIdFree(cls, FormId):=0D +=0D + Index =3D int(FormId / EFI_BITS_PER_UINT32)=0D + Offset =3D FormId % EFI_BITS_PER_UINT32=0D +=0D + return (cls.FormIdBitMap[Index] & (0x80000000 >> Offset)) =3D=3D 0= =0D +=0D + @classmethod=0D + def MarkFormIdUsed(cls, FormId):=0D +=0D + Index =3D int(FormId / EFI_BITS_PER_UINT32)=0D + Offset =3D FormId % EFI_BITS_PER_UINT32=0D + cls.FormIdBitMap[Index] |=3D (0x80000000 >> Offset)=0D +=0D +=0D +class CIfrForm(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__Form =3D EFI_IFR_FORM()=0D + CIfrOpHeader.__init__(self, self.__Form.Header, EFI_IFR_FORM_OP)=0D + self.__Form.FormId =3D 0=0D + self.__Form.FormTitle =3D EFI_STRING_ID_INVALID=0D +=0D + def SetFormId(self, FormId):=0D + # FormId can't be 0.=0D + if FormId =3D=3D 0:=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D + if CIfrFormId.CheckFormIdFree(FormId) =3D=3D False:=0D + return VfrReturnCode.VFR_RETURN_FORMID_REDEFINED=0D + self.__Form.FormId =3D FormId=0D + CIfrFormId.MarkFormIdUsed(FormId)=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def SetFormTitle(self, FormTitle):=0D + self.__Form.FormTitle =3D FormTitle=0D +=0D + def GetInfo(self):=0D + return self.__Form=0D +=0D +=0D +class CIfrFormMap(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__FormMap =3D EFI_IFR_FORM_MAP()=0D + self.__MethodMapList =3D [] # EFI_IFR_FORM_MAP_METHOD()=0D + CIfrOpHeader.__init__(self, self.__FormMap.Header, EFI_IFR_FORM_MA= P_OP)=0D + self.__FormMap.FormId =3D 0=0D +=0D + def SetFormId(self, FormId):=0D + if FormId =3D=3D 0:=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D +=0D + if CIfrFormId.CheckFormIdFree(FormId) =3D=3D False:=0D + return VfrReturnCode.VFR_RETURN_FORMID_REDEFINED=0D + self.__FormMap.FormId =3D FormId=0D + CIfrFormId.MarkFormIdUsed(FormId)=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def SetFormMapMethod(self, MethodTitle, MethodGuid: EFI_GUID):=0D + MethodMap =3D EFI_IFR_FORM_MAP_METHOD()=0D + MethodMap.MethodTitle =3D MethodTitle=0D + MethodMap.MethodIdentifier =3D MethodGuid=0D + self.__MethodMapList.append(MethodMap)=0D +=0D + def GetInfo(self):=0D + return self.__FormMap, self.__MethodMapList=0D +=0D +=0D +class CIfrEnd(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__End =3D EFI_IFR_END()=0D + CIfrOpHeader.__init__(self, self.__End.Header, EFI_IFR_END_OP)=0D +=0D +=0D +class CIfrBanner(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Banner =3D EFI_IFR_GUID_BANNER()=0D + CIfrOpHeader.__init__(self, self.__Banner.Header, EFI_IFR_GUID_OP,= =0D + ctypes.sizeof(EFI_IFR_GUID_BANNER))=0D + self.__Banner.ExtendOpCode =3D EFI_IFR_EXTEND_OP_BANNER=0D + self.__Banner.Guid =3D EFI_IFR_TIANO_GUID=0D +=0D + def SetTitle(self, StringId):=0D + self.__Banner.Title =3D StringId=0D +=0D + def SetLine(self, Line):=0D + self.__Banner.LineNumber =3D Line=0D +=0D + def SetAlign(self, Align):=0D + self.__Banner.Alignment =3D Align=0D +=0D + def GetInfo(self):=0D + return self.__Banner=0D +=0D +=0D +class CIfrTimeout(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, Timeout=3D0):=0D + self.__Timeout =3D EFI_IFR_GUID_TIMEOUT()=0D + CIfrOpHeader.__init__(self, self.__Timeout.Header, EFI_IFR_GUID_OP= ,=0D + ctypes.sizeof(EFI_IFR_GUID_TIMEOUT))=0D + self.__Timeout.ExtendOpCode =3D EFI_IFR_EXTEND_OP_TIMEOUT=0D + self.__Timeout.Guid =3D EFI_IFR_TIANO_GUID=0D + self.__Timeout.TimeOut =3D Timeout=0D +=0D + def SetTimeout(self, Timeout):=0D + self.__Timeout.TimeOut =3D Timeout=0D +=0D + def GetInfo(self):=0D + return self.__Timeout=0D +=0D +=0D +class CIfrLabel(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Label =3D EFI_IFR_GUID_LABEL()=0D + CIfrOpHeader.__init__(self, self.__Label.Header, EFI_IFR_GUID_OP,= =0D + ctypes.sizeof(EFI_IFR_GUID_LABEL))=0D + self.__Label.ExtendOpCode =3D EFI_IFR_EXTEND_OP_LABEL=0D + self.__Label.Guid =3D EFI_IFR_TIANO_GUID=0D +=0D + def SetNumber(self, Number):=0D + self.__Label.Number =3D Number=0D +=0D + def GetInfo(self):=0D + return self.__Label=0D +=0D +=0D +class CIfrRule(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Rule =3D EFI_IFR_RULE()=0D + CIfrOpHeader.__init__(self, self.__Rule.Header, EFI_IFR_RULE_OP)=0D + self.__Rule.RuleId =3D EFI_RULE_ID_INVALID=0D +=0D + def SetRuleId(self, RuleId):=0D + self.__Rule.RuleId =3D RuleId=0D +=0D + def GetInfo(self):=0D + return self.__Rule=0D +=0D +=0D +def _FLAG_TEST_AND_CLEAR(Flags, Mask):=0D +=0D + Ret =3D Flags & Mask=0D + Flags &=3D (~Mask)=0D + return Flags, Ret=0D +=0D +=0D +def _FLAG_CLEAR(Flags, Mask):=0D +=0D + Flags &=3D (~Mask)=0D + return Flags=0D +=0D +=0D +class CIfrSubtitle(CIfrObj, CIfrOpHeader, CIfrStatementHeader):=0D +=0D + def __init__(self, ):=0D + self.__Subtitle =3D EFI_IFR_SUBTITLE()=0D +=0D + CIfrOpHeader.__init__(self, self.__Subtitle.Header,=0D + EFI_IFR_SUBTITLE_OP)=0D + CIfrStatementHeader.__init__(self, self.__Subtitle.Statement)=0D +=0D + self.__Subtitle.Flags =3D 0=0D +=0D + def SetFlags(self, Flags):=0D + Flags, Result =3D _FLAG_TEST_AND_CLEAR(Flags, EFI_IFR_FLAGS_HORIZO= NTAL)=0D + if Result:=0D + self.__Subtitle.Flags |=3D EFI_IFR_FLAGS_HORIZONTAL=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if Flags =3D=3D 0 else Vfr= ReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__Subtitle=0D +=0D +=0D +class CIfrImage(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Image =3D EFI_IFR_IMAGE()=0D + CIfrOpHeader.__init__(self, self.__Image.Header, EFI_IFR_IMAGE_OP)= =0D + self.__Image.Id =3D EFI_IMAGE_ID_INVALID=0D +=0D + def SetImageId(self, ImageId):=0D + self.__Image.Id =3D ImageId=0D +=0D + def GetInfo(self):=0D + return self.__Image=0D +=0D +=0D +class CIfrLocked(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Lock =3D EFI_IFR_LOCKED()=0D + CIfrOpHeader.__init__(self, self.__Lock.Header, EFI_IFR_LOCKED_OP)= =0D +=0D +=0D +class CIfrModal(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, ):=0D + self.__Modal =3D EFI_IFR_MODAL_TAG()=0D + CIfrOpHeader.__init__(self, self.__Modal.Header, EFI_IFR_MODAL_TAG= _OP)=0D +=0D +=0D +EFI_IFR_QUESTION_FLAG_DEFAULT =3D 0=0D +=0D +=0D +class CIfrQuestionHeader(CIfrStatementHeader):=0D +=0D + def __init__(self, qHeader, Flags=3DEFI_IFR_QUESTION_FLAG_DEFAULT):=0D +=0D + self.__qHeader =3D qHeader=0D + CIfrStatementHeader.__init__(self, self.__qHeader.Header)=0D + self.__qHeader.QuestionId =3D EFI_QUESTION_ID_INVALID=0D + self.__qHeader.VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D + self.__qHeader.VarStoreInfo.VarName =3D EFI_STRING_ID_INVALID=0D + self.__qHeader.VarStoreInfo.VarOffset =3D EFI_VAROFFSET_INVALID=0D + self.__qHeader.Flags =3D Flags=0D +=0D + def GetQuestionId(self):=0D + return self.__qHeader.QuestionId=0D +=0D + def SetQuestionId(self, QuestionId):=0D +=0D + self.__qHeader.QuestionId =3D QuestionId=0D +=0D + def GetVarStoreId(self):=0D + return self.__qHeader.VarStoreId=0D +=0D + def SetVarStoreInfo(self, BaseInfo):=0D +=0D + self.__qHeader.VarStoreId =3D BaseInfo.VarStoreId=0D + self.__qHeader.VarStoreInfo.VarName =3D BaseInfo.Info.VarName=0D + self.__qHeader.VarStoreInfo.VarOffset =3D BaseInfo.Info.VarOffset= =0D +=0D + def GetVarStoreInfo(self, Info): # Bug=0D +=0D + Info.VarStoreId =3D self.__qHeader.VarStoreId=0D + Info.VarStoreInfo =3D self.__qHeader.VarStoreInfo=0D + return Info=0D +=0D + def GetFlags(self):=0D + return self.__qHeader.Flags=0D +=0D + def SetFlags(self, Flags):=0D +=0D + Flags, Ret =3D _FLAG_TEST_AND_CLEAR(Flags, EFI_IFR_FLAG_READ_ONLY)= =0D + if Ret:=0D + self.__qHeader.Flags |=3D EFI_IFR_FLAG_READ_ONLY=0D +=0D + Flags =3D _FLAG_CLEAR(Flags, 0x02)=0D +=0D + Flags, Ret =3D _FLAG_TEST_AND_CLEAR(Flags, EFI_IFR_FLAG_CALLBACK)= =0D + if Ret:=0D + self.__qHeader.Flags |=3D EFI_IFR_FLAG_CALLBACK=0D +=0D + # ignore NVAccessFlag=0D + Flags =3D _FLAG_CLEAR(Flags, 0x08)=0D +=0D + Flags, Ret =3D _FLAG_TEST_AND_CLEAR(Flags, EFI_IFR_FLAG_RESET_REQU= IRED)=0D + if Ret:=0D + self.__qHeader.Flags |=3D EFI_IFR_FLAG_RESET_REQUIRED=0D +=0D + Flags, Ret =3D _FLAG_TEST_AND_CLEAR(Flags,=0D + EFI_IFR_FLAG_RECONNECT_REQUIRED)= =0D + if Ret:=0D + self.__qHeader.Flags |=3D EFI_IFR_FLAG_RECONNECT_REQUIRED=0D +=0D + # Set LateCheck Flag to compatible for framework flag=0D + # but it uses 0x20 as its flag, if in the future UEFI may take thi= s flag=0D +=0D + Flags, Ret =3D _FLAG_TEST_AND_CLEAR(Flags, 0x20)=0D + if Ret:=0D + self.__qHeader.Flags |=3D 0x20=0D +=0D + Flags, Ret =3D _FLAG_TEST_AND_CLEAR(Flags, EFI_IFR_FLAG_OPTIONS_ON= LY)=0D + if Ret:=0D + self.__qHeader.Flags |=3D EFI_IFR_FLAG_OPTIONS_ONLY=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if Flags =3D=3D 0 else Vfr= ReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def UpdateCIfrQuestionHeader(self, qHeader):=0D + self.__qHeader =3D qHeader=0D +=0D +=0D +class CIfrRef(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self, ):=0D + self.__Ref =3D EFI_IFR_REF()=0D + CIfrOpHeader.__init__(self, self.__Ref.Header, EFI_IFR_REF_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Ref.Question)=0D + self.__Ref.FormId =3D 0=0D +=0D + def SetFormId(self, FormId):=0D + self.__Ref.FormId =3D FormId=0D +=0D + def GetInfo(self):=0D + return self.__Ref=0D +=0D +=0D +class CIfrRef2(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self, ):=0D + self.__Ref2 =3D EFI_IFR_REF2()=0D + CIfrOpHeader.__init__(self, self.__Ref2.Header, EFI_IFR_REF_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Ref2.Question)=0D + self.__Ref2.FormId =3D 0=0D + self.__Ref2.QuestionId =3D EFI_QUESTION_ID_INVALID=0D +=0D + def SetFormId(self, FormId):=0D + self.__Ref2.FormId =3D FormId=0D +=0D + def SetQuestionId(self, QuestionId):=0D +=0D + self.__Ref2.QuestionId =3D QuestionId=0D +=0D + def GetInfo(self):=0D + return self.__Ref2=0D +=0D +=0D +class CIfrRef3(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self, ):=0D + self.__Ref3 =3D EFI_IFR_REF3()=0D + CIfrOpHeader.__init__(self, self.__Ref3.Header, EFI_IFR_REF_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Ref3.Question)=0D + self.__Ref3.FormId =3D 0=0D + self.__Ref3.QuestionId =3D EFI_QUESTION_ID_INVALID=0D + EFI_IFR_DEFAULT_GUID =3D EFI_GUID(0, 0, 0,=0D + GuidArray(0, 0, 0, 0, 0, 0, 0, 0))= =0D + self.__Ref3.FormSetId =3D EFI_IFR_DEFAULT_GUID=0D +=0D + def SetFormId(self, FormId):=0D + self.__Ref3.FormId =3D FormId=0D +=0D + def SetQuestionId(self, QuestionId):=0D +=0D + self.__Ref3.QuestionId =3D QuestionId=0D +=0D + def SetFormSetId(self, FormSetId):=0D + self.__Ref3.FormSetId =3D FormSetId=0D +=0D + def GetInfo(self):=0D + return self.__Ref3=0D +=0D +=0D +class CIfrRef4(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self, ):=0D + self.__Ref4 =3D EFI_IFR_REF4()=0D + CIfrOpHeader.__init__(self, self.__Ref4.Header, EFI_IFR_REF_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Ref4.Question)=0D + self.__Ref4.FormId =3D 0=0D + self.__Ref4.QuestionId =3D EFI_QUESTION_ID_INVALID=0D + EFI_IFR_DEFAULT_GUID =3D EFI_GUID(0, 0, 0,=0D + GuidArray(0, 0, 0, 0, 0, 0, 0, 0))= =0D + self.__Ref4.FormSetId =3D EFI_IFR_DEFAULT_GUID=0D + self.__Ref4.DevicePath =3D EFI_STRING_ID_INVALID=0D +=0D + def SetFormId(self, FormId):=0D + self.__Ref4.FormId =3D FormId=0D +=0D + def SetQuestionId(self, QuestionId):=0D +=0D + self.__Ref4.QuestionId =3D QuestionId=0D +=0D + def SetFormSetId(self, FormSetId):=0D + self.__Ref4.FormSetId =3D FormSetId=0D +=0D + def SetDevicePath(self, DevicePath):=0D + self.__Ref4.DevicePath =3D DevicePath=0D +=0D + def GetInfo(self):=0D + return self.__Ref4=0D +=0D +=0D +class CIfrRef5(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self, ):=0D + self.__Ref5 =3D EFI_IFR_REF5()=0D + CIfrOpHeader.__init__(self, self.__Ref5.Header, EFI_IFR_REF_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Ref5.Question)=0D +=0D + def GetInfo(self):=0D + return self.__Ref5=0D +=0D +=0D +class CIfrAction(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self, ):=0D + self.__Action =3D EFI_IFR_ACTION()=0D + CIfrOpHeader.__init__(self, self.__Action.Header, EFI_IFR_ACTION_O= P)=0D + CIfrQuestionHeader.__init__(self, self.__Action.Question)=0D + self.__Action.QuestionConfig =3D EFI_STRING_ID_INVALID=0D +=0D + def SetQuestionConfig(self, QuestionConfig):=0D + self.__Action.QuestionConfig =3D QuestionConfig=0D +=0D + def GetInfo(self):=0D + return self.__Action=0D +=0D +=0D +class CIfrText(CIfrObj, CIfrOpHeader, CIfrStatementHeader):=0D +=0D + def __init__(self, ):=0D + self.__Text =3D EFI_IFR_TEXT()=0D + CIfrOpHeader.__init__(self, self.__Text.Header, EFI_IFR_TEXT_OP)=0D + CIfrStatementHeader.__init__(self, self.__Text.Statement)=0D + self.__Text.TextTwo =3D EFI_STRING_ID_INVALID=0D +=0D + def SetTextTwo(self, StringId):=0D + self.__Text.TextTwo =3D StringId=0D +=0D + def GetInfo(self):=0D + return self.__Text=0D +=0D +=0D +class CIfrGuid(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, Size, Databuff=3DNone):=0D + self.__Guid =3D EFI_IFR_GUID()=0D + self.__Data =3D Databuff=0D + CIfrOpHeader.__init__(self, self.__Guid.Header, EFI_IFR_GUID_OP,=0D + ctypes.sizeof(EFI_IFR_GUID) + Size)=0D + EFI_IFR_DEFAULT_GUID =3D EFI_GUID(0, 0, 0,=0D + GuidArray(0, 0, 0, 0, 0, 0, 0, 0))= =0D + self.__Guid.Guid =3D EFI_IFR_DEFAULT_GUID=0D +=0D + def SetGuid(self, Guid):=0D + self.__Guid.Guid =3D Guid=0D +=0D + def SetData(self, Databuff):=0D + self.__Data =3D Databuff=0D +=0D + def GetInfo(self):=0D + return self.__Guid=0D +=0D +=0D +class CIfrOrderedList(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self):=0D + self.__OrderedList =3D EFI_IFR_ORDERED_LIST()=0D + CIfrOpHeader.__init__(self, self.__OrderedList.Header,=0D + EFI_IFR_ORDERED_LIST_OP)=0D + CIfrQuestionHeader.__init__(self, self.__OrderedList.Question)=0D + self.__OrderedList.MaxContainers =3D 0=0D + self.__OrderedList.Flags =3D 0=0D +=0D + def GetQuestion(self):=0D + return self=0D +=0D + def SetQHeaderFlags(self, Flags):=0D + CIfrQuestionHeader.SetFlags(self, Flags)=0D +=0D + def SetMaxContainers(self, MaxContainers):=0D + self.__OrderedList.MaxContainers =3D MaxContainers=0D +=0D + def SetFlags(self, HFlags, LFlags):=0D +=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_UNIQUE_SET)=0D + if Ret:=0D + self.__OrderedList.Flags |=3D EFI_IFR_UNIQUE_SET=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_NO_EMPTY_SET)= =0D + if Ret:=0D + self.__OrderedList.Flags |=3D EFI_IFR_NO_EMPTY_SET=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__OrderedList=0D +=0D +=0D +class CIfrString(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self):=0D + self.__Str =3D EFI_IFR_STRING()=0D + CIfrOpHeader.__init__(self, self.__Str.Header, EFI_IFR_STRING_OP)= =0D + CIfrQuestionHeader.__init__(self, self.__Str.Question)=0D + self.__Str.Flags =3D 0=0D + self.__Str.MinSize =3D 0=0D + self.__Str.MaxSize =3D 0=0D +=0D + def GetQuestion(self):=0D + return self=0D +=0D + def SetQHeaderFlags(self, Flags):=0D + CIfrQuestionHeader.SetFlags(self, Flags)=0D +=0D + def SetFlags(self, HFlags, LFlags):=0D +=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_STRING_MULTI_= LINE)=0D + if Ret:=0D + self.__Str.Flags |=3D EFI_IFR_STRING_MULTI_LINE=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def SetMinSize(self, MinSize):=0D + self.__Str.MinSize =3D MinSize=0D +=0D + def SetMaxSize(self, MaxSize):=0D + self.__Str.MaxSize =3D MaxSize=0D +=0D + def GetInfo(self):=0D + return self.__Str=0D +=0D +=0D +class CIfrPassword(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self):=0D + self.__Password =3D EFI_IFR_PASSWORD()=0D + CIfrOpHeader.__init__(self, self.__Password.Header,=0D + EFI_IFR_PASSWORD_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Password.Question)=0D + self.__Password.MinSize =3D 0=0D + self.__Password.MaxSize =3D 0=0D +=0D + def GetQuestion(self):=0D + return self=0D +=0D + def SetQHeaderFlags(self, Flags):=0D + CIfrQuestionHeader.SetFlags(self, Flags)=0D +=0D + def SetMinSize(self, MinSize):=0D + self.__Password.MinSize =3D MinSize=0D +=0D + def SetMaxSize(self, MaxSize):=0D + self.__Password.MaxSize =3D MaxSize=0D +=0D + def GetInfo(self):=0D + return self.__Password=0D +=0D +=0D +class CIfrDefault(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self,=0D + Size,=0D + DefaultId=3DEFI_HII_DEFAULT_CLASS_STANDARD,=0D + Type=3DEFI_IFR_TYPE_OTHER,=0D + Value=3DEFI_IFR_TYPE_VALUE()):=0D + self.__Default =3D EFI_IFR_DEFAULT()=0D + CIfrOpHeader.__init__(self, self.__Default.Header, EFI_IFR_DEFAULT= _OP,=0D + Size)=0D + self.__Default.Type =3D Type=0D + self.__Default.DefaultId =3D DefaultId=0D + self.__Default.Value =3D Value=0D +=0D + def SetDefaultId(self, DefaultId):=0D + self.__Default.DefaultId =3D DefaultId=0D +=0D + def SetType(self, Type):=0D + self.__Default.Type =3D Type=0D +=0D + def SetValue(self, Value):=0D + self.__Default.Value =3D Value=0D +=0D + def GetInfo(self):=0D + return self.__Default=0D +=0D +=0D +class CIfrDefault3(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self,=0D + Size,=0D + Nums,=0D + ValueType,=0D + DefaultId=3DEFI_HII_DEFAULT_CLASS_STANDARD,=0D + Type=3DEFI_IFR_TYPE_OTHER,=0D + ValueList=3D[]):=0D + Header =3D EFI_IFR_OP_HEADER()=0D + CIfrOpHeader.__init__(self, Header, EFI_IFR_DEFAULT_OP, Size)=0D + self.__Default =3D Refine_EFI_IFR_DEFAULT(Nums)=0D + self.__Default.Header =3D Header=0D + self.__Default.Type =3D Type=0D + self.__Default.DefaultId =3D DefaultId=0D + self.__ValueType =3D ValueType=0D +=0D + if ValueList !=3D []:=0D + ArrayType =3D EFI_IFR_TYPE_VALUE * Nums=0D + ValueArray =3D ArrayType()=0D + for i in range(0, len(ValueList)):=0D + ValueArray[i] =3D ValueList[i]=0D + self.__Default.Value =3D ValueArray=0D +=0D + def SetDefaultId(self, DefaultId):=0D + self.__Default.DefaultId =3D DefaultId=0D +=0D + def GetValueType(self):=0D + return self.__ValueType=0D +=0D + def SetType(self, Type):=0D + self.__Default.Type =3D Type=0D +=0D + def SetValue(self, ValueList):=0D + ArrayType =3D EFI_IFR_TYPE_VALUE * (len(ValueList))=0D + ValueArray =3D ArrayType()=0D + for i in range(0, len(ValueList)):=0D + ValueArray[i] =3D ValueList[i]=0D + self.__Default.Value =3D ValueArray=0D +=0D + def GetInfo(self):=0D + return self.__Default=0D +=0D +=0D +class CIfrDefault2(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self,=0D + DefaultId=3DEFI_HII_DEFAULT_CLASS_STANDARD,=0D + Type=3DEFI_IFR_TYPE_OTHER):=0D + self.__Default =3D EFI_IFR_DEFAULT_2()=0D + CIfrOpHeader.__init__(self, self.__Default.Header, EFI_IFR_DEFAULT= _OP)=0D + self.__Default.Type =3D Type=0D + self.__Default.DefaultId =3D DefaultId=0D +=0D + def SetDefaultId(self, DefaultId):=0D + self.__Default.DefaultId =3D DefaultId=0D +=0D + def SetType(self, Type):=0D + self.__Default.Type =3D Type=0D +=0D + def GetInfo(self):=0D + return self.__Default=0D +=0D +=0D +class CIfrInconsistentIf(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__InconsistentIf =3D EFI_IFR_INCONSISTENT_IF()=0D + CIfrOpHeader.__init__(self, self.__InconsistentIf.Header,=0D + EFI_IFR_INCONSISTENT_IF_OP)=0D + self.__InconsistentIf.Error =3D EFI_STRING_ID_INVALID=0D +=0D + def SetError(self, Error):=0D + self.__InconsistentIf.Error =3D Error=0D +=0D +=0D +class CIfrNoSubmitIf(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__NoSubmitIf =3D EFI_IFR_NO_SUBMIT_IF()=0D + CIfrOpHeader.__init__(self, self.__NoSubmitIf.Header,=0D + EFI_IFR_NO_SUBMIT_IF_OP)=0D + self.__NoSubmitIf.Error =3D EFI_STRING_ID_INVALID=0D +=0D + def SetError(self, Error):=0D + self.__NoSubmitIf.Error =3D Error=0D +=0D +=0D +class CIfrDisableIf(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__DisableIf =3D EFI_IFR_DISABLE_IF()=0D + CIfrOpHeader.__init__(self, self.__DisableIf.Header,=0D + EFI_IFR_DISABLE_IF_OP)=0D +=0D +=0D +class CIfrSuppressIf(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__SuppressIf =3D EFI_IFR_SUPPRESS_IF()=0D + CIfrOpHeader.__init__(self, self.__SuppressIf.Header,=0D + EFI_IFR_SUPPRESS_IF_OP)=0D +=0D +=0D +class CIfrGrayOutIf(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__GrayOutIf =3D EFI_IFR_GRAY_OUT_IF()=0D + CIfrOpHeader.__init__(self, self.__GrayOutIf.Header,=0D + EFI_IFR_GRAY_OUT_IF_OP)=0D +=0D +=0D +class CIfrValue(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__Value =3D EFI_IFR_VALUE()=0D + CIfrOpHeader.__init__(self, self.__Value.Header, EFI_IFR_VALUE_OP)= =0D +=0D +=0D +class CIfrRead(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__Read =3D EFI_IFR_READ()=0D + CIfrOpHeader.__init__(self, self.__Read.Header, EFI_IFR_READ_OP)=0D +=0D +=0D +class CIfrWrite(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__Write =3D EFI_IFR_WRITE()=0D + CIfrOpHeader.__init__(self, self.__Write.Header, EFI_IFR_WRITE_OP)= =0D +=0D +=0D +class CIfrWarningIf(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__WarningIf =3D EFI_IFR_WARNING_IF()=0D + CIfrOpHeader.__init__(self, self.__WarningIf.Header,=0D + EFI_IFR_WARNING_IF_OP)=0D + self.__WarningIf.Warning =3D EFI_STRING_ID_INVALID=0D + self.__WarningIf.TimeOut =3D 0=0D +=0D + def SetWarning(self, Warning):=0D + self.__WarningIf.Warning =3D Warning=0D +=0D + def SetTimeOut(self, TimeOut):=0D + self.__WarningIf.TimeOut =3D TimeOut=0D +=0D + def GetInfo(self):=0D + return self.__WarningIf=0D +=0D +=0D +class CIfrRefresh(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__Refresh =3D EFI_IFR_REFRESH()=0D + CIfrOpHeader.__init__(self, self.__Refresh.Header, EFI_IFR_REFRESH= _OP)=0D + self.__Refresh.RefreshInterval =3D 0=0D +=0D + def SetRefreshInterval(self, RefreshInterval):=0D + self.__Refresh.RefreshInterval =3D RefreshInterval=0D +=0D + def GetInfo(self):=0D + return self.__Refresh=0D +=0D +=0D +class CIfrRefreshId(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__RefreshId =3D EFI_IFR_REFRESH_ID()=0D + CIfrOpHeader.__init__(self, self.__RefreshId.Header,=0D + EFI_IFR_REFRESH_ID_OP)=0D + self.__RefreshId.RefreshEventGroupId =3D EFI_GUID(=0D + 0, 0, 0, GuidArray(0, 0, 0, 0, 0, 0, 0, 0))=0D +=0D + def SetRefreshEventGroutId(self, RefreshEventGroupId):=0D + self.__RefreshId.RefreshEventGroupId =3D RefreshEventGroupId=0D +=0D + def GetInfo(self):=0D + return self.__RefreshId=0D +=0D +=0D +class CIfrVarStoreDevice(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self):=0D + self.__VarStoreDevice =3D EFI_IFR_VARSTORE_DEVICE()=0D + CIfrOpHeader.__init__(self, self.__VarStoreDevice.Header,=0D + EFI_IFR_VARSTORE_DEVICE_OP)=0D + self.__VarStoreDevice.DevicePath =3D EFI_STRING_ID_INVALID=0D +=0D + def SetDevicePath(self, DevicePath):=0D + self.__VarStoreDevice.DevicePath =3D DevicePath=0D +=0D + def GetInfo(self):=0D + return self.__VarStoreDevice=0D +=0D +=0D +class CIfrDate(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self):=0D + self.__Date =3D EFI_IFR_DATE()=0D + CIfrOpHeader.__init__(self, self.__Date.Header, EFI_IFR_DATE_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Date.Question)=0D + self.__Date.Flags =3D 0=0D +=0D + def SetFlags(self, HFlags, LFlags):=0D +=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_QF_DATE_YEAR_SUPP= RESS)=0D + if Ret:=0D + self.__Date.Flags |=3D EFI_QF_DATE_YEAR_SUPPRESS=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_QF_DATE_MONTH_SUP= PRESS)=0D + if Ret:=0D + self.__Date.Flags |=3D EFI_QF_DATE_MONTH_SUPPRESS=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_QF_DATE_DAY_SUPPR= ESS)=0D + if Ret:=0D + self.__Date.Flags |=3D EFI_QF_DATE_DAY_SUPPRESS=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_DATE_STORAGE_NORMA= L)=0D + if Ret:=0D + self.__Date.Flags |=3D QF_DATE_STORAGE_NORMAL=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_DATE_STORAGE_TIME)= =0D + if Ret:=0D + self.__Date.Flags |=3D QF_DATE_STORAGE_TIME=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_DATE_STORAGE_WAKEU= P)=0D + if Ret:=0D + self.__Date.Flags |=3D QF_DATE_STORAGE_WAKEUP=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__Date=0D +=0D +=0D +class CIfrTime(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self):=0D + self.__Time =3D EFI_IFR_TIME()=0D + CIfrOpHeader.__init__(self, self.__Time.Header, EFI_IFR_TIME_OP)=0D + CIfrQuestionHeader.__init__(self, self.__Time.Question)=0D + self.__Time.Flags =3D 0=0D +=0D + def SetFlags(self, HFlags, LFlags):=0D +=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_TIME_HOUR_SUPPRESS= )=0D + if Ret:=0D + self.__Time.Flags |=3D QF_TIME_HOUR_SUPPRESS=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_TIME_MINUTE_SUPPRE= SS)=0D + if Ret:=0D + self.__Time.Flags |=3D QF_TIME_MINUTE_SUPPRESS=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_TIME_SECOND_SUPPRE= SS)=0D + if Ret:=0D + self.__Time.Flags |=3D QF_TIME_SECOND_SUPPRESS=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_TIME_STORAGE_NORMA= L)=0D + if Ret:=0D + self.__Time.Flags |=3D QF_TIME_STORAGE_NORMAL=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_TIME_STORAGE_TIME)= =0D + if Ret:=0D + self.__Time.Flags |=3D QF_TIME_STORAGE_TIME=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, QF_TIME_STORAGE_WAKEU= P)=0D + if Ret:=0D + self.__Time.Flags |=3D QF_TIME_STORAGE_WAKEUP=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__Time=0D +=0D +=0D +class CIfrNumeric(CIfrObj, CIfrOpHeader, CIfrQuestionHeader,=0D + CIfrMinMaxStepData):=0D +=0D + def __init__(self):=0D + self.__Numeric =3D EFI_IFR_NUMERIC() # data=0D + CIfrOpHeader.__init__(self, self.__Numeric.Header, EFI_IFR_NUMERIC= _OP)=0D + CIfrQuestionHeader.__init__(self, self.__Numeric.Question)=0D + CIfrMinMaxStepData.__init__(self, self.__Numeric.Data, True)=0D + self.__Numeric.Flags =3D EFI_IFR_NUMERIC_SIZE_1 | EFI_IFR_DISPLAY_= UINT_DEC=0D +=0D + def GetQuestion(self):=0D + return self=0D +=0D + def GetMinMaxData(self):=0D + return self=0D +=0D + def SetQHeaderFlags(self, Flags):=0D + CIfrQuestionHeader.SetFlags(self, Flags)=0D +=0D + def SetFlags(self, HFlags, LFlags, DisplaySettingsSpecified=3DFalse):= =0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D + if DisplaySettingsSpecified =3D=3D False:=0D + self.__Numeric.Flags =3D LFlags | EFI_IFR_DISPLAY_UINT_DEC=0D + else:=0D + self.__Numeric.Flags =3D LFlags=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def SetFlagsForBitField(self,=0D + HFlags,=0D + LFlags,=0D + DisplaySettingsSpecified=3DFalse):=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D + if DisplaySettingsSpecified =3D=3D False:=0D + self.__Numeric.Flags =3D LFlags | EDKII_IFR_DISPLAY_UINT_DEC_B= IT=0D + else:=0D + self.__Numeric.Flags =3D LFlags=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetNumericFlags(self):=0D + return self.__Numeric.Flags=0D +=0D + def ShrinkBinSize(self, Size):=0D + self.ShrinkBinSize(Size)=0D + self.DecLength(Size)=0D + # _EMIT_PENDING_OBJ();=0D + Numeric =3D EFI_IFR_NUMERIC()=0D + self.UpdateHeader(Numeric.Header)=0D +=0D + def GetInfo(self):=0D + return self.__Numeric=0D +=0D +=0D +class CIfrOneOf(=0D + CIfrQuestionHeader,=0D + CIfrObj,=0D + CIfrOpHeader,=0D +):=0D +=0D + def __init__(self):=0D + self.__OneOf =3D EFI_IFR_ONE_OF()=0D + CIfrOpHeader.__init__(self, self.__OneOf.Header, EFI_IFR_ONE_OF_OP= )=0D + CIfrQuestionHeader.__init__(self, self.__OneOf.Question)=0D + self.__OneOf.Flags =3D 0=0D +=0D + def GetQuestion(self):=0D + return self=0D +=0D + def GetMinMaxData(self):=0D + return self=0D +=0D + def SetQHeaderFlags(self, Flags):=0D + CIfrQuestionHeader.SetFlags(self, Flags)=0D +=0D + def SetFlags(self, HFlags, LFlags):=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D + if LFlags & EFI_IFR_DISPLAY:=0D + self.__OneOf.Flags =3D LFlags=0D + else:=0D + self.__OneOf.Flags =3D LFlags | EFI_IFR_DISPLAY_UINT_DEC=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def SetFlagsForBitField(self, HFlags, LFlags):=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D + if LFlags & EDKII_IFR_DISPLAY_BIT:=0D + self.__OneOf.Flags =3D LFlags=0D + else:=0D + self.__OneOf.Flags =3D LFlags | EDKII_IFR_DISPLAY_UINT_DEC_BIT= =0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetInfo(self):=0D + return self.__OneOf=0D +=0D +=0D +class CIfrCheckBox(CIfrObj, CIfrOpHeader, CIfrQuestionHeader):=0D +=0D + def __init__(self):=0D + self.__CheckBox =3D EFI_IFR_CHECKBOX()=0D + CIfrOpHeader.__init__(self, self.__CheckBox.Header,=0D + EFI_IFR_CHECKBOX_OP)=0D + CIfrQuestionHeader.__init__(self, self.__CheckBox.Question)=0D + self.__CheckBox.Flags =3D 0=0D +=0D + def GetQuestion(self):=0D + return self=0D +=0D + def SetQHeaderFlags(self, Flags):=0D + CIfrQuestionHeader.SetFlags(self, Flags)=0D +=0D + def GetFlags(self):=0D + return self.__CheckBox.Flags=0D +=0D + def SetFlags(self, HFlags, LFlags):=0D +=0D + ReturnCode =3D CIfrQuestionHeader.SetFlags(self, HFlags)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags, EFI_IFR_CHECKBOX_DEFA= ULT)=0D + if Ret:=0D + self.__CheckBox.Flags |=3D EFI_IFR_CHECKBOX_DEFAULT=0D +=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(LFlags,=0D + EFI_IFR_CHECKBOX_DEFAULT_MFG)=0D +=0D + if Ret:=0D + self.__CheckBox.Flags |=3D EFI_IFR_CHECKBOX_DEFAULT_MFG=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D + def GetInfo(self):=0D + return self.__CheckBox=0D +=0D +=0D +class CIfrResetButton(CIfrObj, CIfrOpHeader, CIfrStatementHeader):=0D +=0D + def __init__(self):=0D + self.__ResetButton =3D EFI_IFR_RESET_BUTTON()=0D + CIfrOpHeader.__init__(self, self.__ResetButton.Header,=0D + EFI_IFR_RESET_BUTTON_OP)=0D + CIfrStatementHeader.__init__(self, self.__ResetButton.Statement)=0D + self.__ResetButton.DefaultId =3D EFI_HII_DEFAULT_CLASS_STANDARD=0D +=0D + def SetDefaultId(self, DefaultId):=0D + self.__ResetButton.DefaultId =3D DefaultId=0D +=0D + def GetInfo(self):=0D + return self.__ResetButton=0D +=0D +=0D +class CIfrOr(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Or =3D EFI_IFR_OR()=0D + CIfrOpHeader.__init__(self, self.__Or.Header, EFI_IFR_OR_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrAnd(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__And =3D EFI_IFR_AND()=0D + CIfrOpHeader.__init__(self, self.__And.Header, EFI_IFR_AND_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrBitWiseOr(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__BitWiseOr =3D EFI_IFR_BITWISE_OR()=0D + CIfrOpHeader.__init__(self, self.__BitWiseOr.Header,=0D + EFI_IFR_BITWISE_OR_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrCatenate(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Catenate =3D EFI_IFR_CATENATE()=0D + CIfrOpHeader.__init__(self, self.__Catenate.Header,=0D + EFI_IFR_CATENATE_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrDivide(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Divide =3D EFI_IFR_DIVIDE()=0D + CIfrOpHeader.__init__(self, self.__Divide.Header, EFI_IFR_DIVIDE_O= P)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrEqual(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Equal =3D EFI_IFR_EQUAL()=0D + CIfrOpHeader.__init__(self, self.__Equal.Header, EFI_IFR_EQUAL_OP)= =0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrGreaterEqual(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__GreaterEqual =3D EFI_IFR_GREATER_EQUAL()=0D + CIfrOpHeader.__init__(self, self.__GreaterEqual.Header,=0D + EFI_IFR_GREATER_EQUAL_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrGreaterThan(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__GreaterThan =3D EFI_IFR_GREATER_THAN()=0D + CIfrOpHeader.__init__(self, self.__GreaterThan.Header,=0D + EFI_IFR_GREATER_THAN_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrLessEqual(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__LessEqual =3D EFI_IFR_LESS_EQUAL()=0D + CIfrOpHeader.__init__(self, self.__LessEqual.Header,=0D + EFI_IFR_LESS_EQUAL_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrLessThan(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__LessThan =3D EFI_IFR_LESS_THAN()=0D + CIfrOpHeader.__init__(self, self.__LessThan.Header,=0D + EFI_IFR_LESS_THAN_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrMap(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Map =3D EFI_IFR_MAP()=0D + CIfrOpHeader.__init__(self, self.__Map.Header, EFI_IFR_MAP_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrMatch(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Match =3D EFI_IFR_MATCH()=0D + CIfrOpHeader.__init__(self, self.__Match.Header, EFI_IFR_MATCH_OP)= =0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrMatch2(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo, Guid):=0D + self.__Match2 =3D EFI_IFR_MATCH2()=0D + CIfrOpHeader.__init__(self, self.__Match2.Header, EFI_IFR_MATCH2_O= P)=0D + self.SetLineNo(LineNo)=0D + self.__Match2.SyntaxType =3D Guid=0D +=0D +=0D +class CIfrMultiply(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Multiply =3D EFI_IFR_MULTIPLY()=0D + CIfrOpHeader.__init__(self, self.__Multiply.Header,=0D + EFI_IFR_MULTIPLY_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrModulo(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Modulo =3D EFI_IFR_MODULO()=0D + CIfrOpHeader.__init__(self, self.__Modulo.Header, EFI_IFR_MODULO_O= P)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrNotEqual(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__NotEqual =3D EFI_IFR_NOT_EQUAL()=0D + CIfrOpHeader.__init__(self, self.__NotEqual.Header,=0D + EFI_IFR_NOT_EQUAL_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrShiftLeft(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__ShiftLeft =3D EFI_IFR_SHIFT_LEFT()=0D + CIfrOpHeader.__init__(self, self.__ShiftLeft.Header,=0D + EFI_IFR_SHIFT_LEFT_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrShiftRight(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__ShiftRight =3D EFI_IFR_SHIFT_RIGHT()=0D + CIfrOpHeader.__init__(self, self.__ShiftRight.Header,=0D + EFI_IFR_SHIFT_RIGHT_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrSubtract(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Subtract =3D EFI_IFR_SUBTRACT()=0D + CIfrOpHeader.__init__(self, self.__Subtract.Header,=0D + EFI_IFR_SUBTRACT_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrConditional(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Conditional =3D EFI_IFR_CONDITIONAL()=0D + CIfrOpHeader.__init__(self, self.__Conditional.Header,=0D + EFI_IFR_CONDITIONAL_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrFind(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Find =3D EFI_IFR_FIND()=0D + CIfrOpHeader.__init__(self, self.__Find.Header, EFI_IFR_FIND_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetFormat(self, Format):=0D + self.__Find.Format =3D Format=0D +=0D +=0D +class CIfrMid(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Mid =3D EFI_IFR_MID()=0D + CIfrOpHeader.__init__(self, self.__Mid.Header, EFI_IFR_MID_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrToken(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Token =3D EFI_IFR_TOKEN()=0D + CIfrOpHeader.__init__(self, self.__Token.Header, EFI_IFR_TOKEN_OP)= =0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrSpan(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Span =3D EFI_IFR_SPAN()=0D + CIfrOpHeader.__init__(self, self.__Span.Header, EFI_IFR_SPAN_OP)=0D + self.SetLineNo(LineNo)=0D + self.__Span.Flags =3D EFI_IFR_FLAGS_FIRST_MATCHING=0D +=0D + def SetFlags(self, LFlags):=0D + if LFlags =3D=3D EFI_IFR_FLAGS_FIRST_MATCHING:=0D + self.__Span.Flags |=3D EFI_IFR_FLAGS_FIRST_MATCHING=0D + else:=0D + LFlags, Ret =3D _FLAG_TEST_AND_CLEAR(=0D + LFlags, EFI_IFR_FLAGS_FIRST_NON_MATCHING)=0D + if Ret:=0D + self.__Span.Flags |=3D EFI_IFR_FLAGS_FIRST_NON_MATCHING=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS if LFlags =3D=3D 0 else Vf= rReturnCode.VFR_RETURN_FLAGS_UNSUPPORTED=0D +=0D +=0D +class CIfrBitWiseAnd(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__BitWiseAnd =3D EFI_IFR_BITWISE_AND()=0D + CIfrOpHeader.__init__(self, self.__BitWiseAnd.Header,=0D + EFI_IFR_BITWISE_AND_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrBitWiseOr(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__BitWiseOr =3D EFI_IFR_BITWISE_OR()=0D + CIfrOpHeader.__init__(self, self.__BitWiseOr.Header,=0D + EFI_IFR_BITWISE_OR_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrAdd(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Add =3D EFI_IFR_ADD()=0D + CIfrOpHeader.__init__(self, self.__Add.Header, EFI_IFR_ADD_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrToString(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__ToString =3D EFI_IFR_TO_STRING()=0D + CIfrOpHeader.__init__(self, self.__ToString.Header,=0D + EFI_IFR_TO_STRING_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetFormat(self, Format):=0D + self.__ToString.Format =3D Format=0D +=0D +=0D +class CIfrToUpper(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__ToUppper =3D EFI_IFR_TO_UPPER()=0D + CIfrOpHeader.__init__(self, self.__ToUppper.Header,=0D + EFI_IFR_TO_UPPER_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrToUint(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__ToUint =3D EFI_IFR_TO_UINT()=0D + CIfrOpHeader.__init__(self, self.__ToUint.Header, EFI_IFR_TO_UINT_= OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrToLower(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__ToLower =3D EFI_IFR_TO_LOWER()=0D + CIfrOpHeader.__init__(self, self.__ToLower.Header, EFI_IFR_TO_LOWE= R_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrToBoolean(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Boolean =3D EFI_IFR_TO_BOOLEAN()=0D + CIfrOpHeader.__init__(self, self.__Boolean.Header,=0D + EFI_IFR_TO_BOOLEAN_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrNot(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Not =3D EFI_IFR_NOT()=0D + CIfrOpHeader.__init__(self, self.__Not.Header, EFI_IFR_NOT_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrDup(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Dup =3D EFI_IFR_DUP()=0D + CIfrOpHeader.__init__(self, self.__Dup.Header, EFI_IFR_DUP_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__Dup.Header=0D +=0D +=0D +class CIfrEqIdId(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__EqIdId =3D EFI_IFR_EQ_ID_ID()=0D + CIfrOpHeader.__init__(self, self.__EqIdId.Header, EFI_IFR_EQ_ID_ID= _OP)=0D + self.SetLineNo(LineNo)=0D + self.__EqIdId.QuestionId1 =3D EFI_QUESTION_ID_INVALID=0D + self.__EqIdId.QuestionId2 =3D EFI_QUESTION_ID_INVALID=0D +=0D + def GetHeader(self):=0D + return self.__EqIdId.Header=0D +=0D + def SetQuestionId1(self, QuestionId, VarIdStr, LineNo):=0D + if QuestionId !=3D EFI_QUESTION_ID_INVALID:=0D + self.__EqIdId.QuestionId1 =3D QuestionId=0D + else:=0D + pass=0D +=0D + def SetQuestionId2(self, QuestionId, VarIdStr, LineNo):=0D + if QuestionId !=3D EFI_QUESTION_ID_INVALID:=0D + self.__EqIdId.QuestionId2 =3D QuestionId=0D + else:=0D + pass=0D +=0D +=0D +class CIfrEqIdVal(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__EqIdVal =3D EFI_IFR_EQ_ID_VAL()=0D + CIfrOpHeader.__init__(self, self.__EqIdVal.Header,=0D + EFI_IFR_EQ_ID_VAL_OP)=0D + self.SetLineNo(LineNo)=0D + self.__EqIdVal.QuestionId =3D EFI_QUESTION_ID_INVALID=0D +=0D + def SetQuestionId(self, QuestionId, VarIdStr, LineNo):=0D + if QuestionId !=3D EFI_QUESTION_ID_INVALID:=0D + self.__EqIdVal.QuestionId =3D QuestionId=0D + else:=0D + pass=0D +=0D + def SetValue(self, Value):=0D + self.__EqIdVal.Value =3D Value=0D +=0D + def GetHeader(self):=0D + return self.__EqIdVal.Header=0D +=0D +=0D +class CIfrEqIdList(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo, Nums, ValueList=3D[]):=0D + self.__EqIdVList =3D Refine_EFI_IFR_EQ_ID_VAL_LIST(Nums)=0D + Header =3D EFI_IFR_OP_HEADER()=0D + CIfrOpHeader.__init__(self, Header, EFI_IFR_EQ_ID_VAL_OP)=0D + self.SetLineNo(LineNo)=0D + self.__EqIdVList.Header =3D Header=0D + self.__EqIdVList.QuestionId =3D EFI_QUESTION_ID_INVALID=0D + self.__EqIdVList.ListLength =3D 0=0D + if ValueList !=3D []:=0D + ArrayType =3D c_uint16 * Nums=0D + ValueArray =3D ArrayType()=0D + for i in range(0, len(ValueList)):=0D + ValueArray[i] =3D ValueList[i]=0D + self.__EqIdVList.ValueList =3D ValueArray=0D +=0D + def SetQuestionId(self, QuestionId, VarIdStr, LineNo):=0D + if QuestionId !=3D EFI_QUESTION_ID_INVALID:=0D + self.__EqIdVList.QuestionId =3D QuestionId=0D + else:=0D + pass=0D +=0D + def SetListLength(self, ListLength):=0D + self.__EqIdVList.ListLength =3D ListLength=0D +=0D + def SetValueList(self, ValueList):=0D + if ValueList !=3D []:=0D + ArrayType =3D c_uint16 * len(ValueList)=0D + ValueArray =3D ArrayType()=0D + for i in range(0, len(ValueList)):=0D + ValueArray[i] =3D ValueList[i]=0D + self.__EqIdVList.ValueList =3D ValueArray=0D +=0D + def GetHeader(self):=0D + return self.__EqIdVList.Header=0D +=0D +=0D +class CIfrUint8(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Uint8 =3D EFI_IFR_UINT8()=0D + CIfrOpHeader.__init__(self, self.__Uint8.Header, EFI_IFR_UINT8_OP)= =0D + self.SetLineNo(LineNo)=0D +=0D + def SetValue(self, Value):=0D + self.__Uint8.Value =3D Value=0D +=0D + def GetHeader(self):=0D + return self.__Uint8.Header=0D +=0D +=0D +class CIfrUint16(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Uint16 =3D EFI_IFR_UINT16()=0D + CIfrOpHeader.__init__(self, self.__Uint16.Header, EFI_IFR_UINT16_O= P)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetValue(self, Value):=0D + self.__Uint16.Value =3D Value=0D +=0D + def GetHeader(self):=0D + return self.__Uint16.Header=0D +=0D +=0D +class CIfrUint32(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Uint32 =3D EFI_IFR_UINT32()=0D + CIfrOpHeader.__init__(self, self.__Uint32.Header, EFI_IFR_UINT32_O= P)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetValue(self, Value):=0D + self.__Uint32.Value =3D Value=0D +=0D + def GetHeader(self):=0D + return self.__Uint32.Header=0D +=0D +=0D +class CIfrUint64(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Uint64 =3D EFI_IFR_UINT64()=0D + CIfrOpHeader.__init__(self, self.__Uint64.Header, EFI_IFR_UINT64_O= P)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetValue(self, Value):=0D + self.__Uint64.Value =3D Value=0D +=0D + def GetHeader(self):=0D + return self.__Uint64.Header=0D +=0D +=0D +class CIfrQuestionRef1(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__QuestionRef1 =3D EFI_IFR_QUESTION_REF1()=0D + CIfrOpHeader.__init__(self, self.__QuestionRef1.Header,=0D + EFI_IFR_QUESTION_REF1_OP)=0D + self.SetLineNo(LineNo)=0D + self.__QuestionRef1.QuestionId =3D EFI_QUESTION_ID_INVALID=0D +=0D + def GetHeader(self):=0D + return self.__QuestionRef1.Header=0D +=0D + def SetQuestionId(self, QuestionId, VarIdStr, LineNo):=0D + if QuestionId !=3D EFI_QUESTION_ID_INVALID:=0D + self.__QuestionRef1.QuestionId =3D QuestionId=0D + else:=0D + pass=0D +=0D +=0D +class CIfrQuestionRef2(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__QuestionRef2 =3D EFI_IFR_QUESTION_REF2()=0D + CIfrOpHeader.__init__(self, self.__QuestionRef2.Header,=0D + EFI_IFR_QUESTION_REF2_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__QuestionRef2.Header=0D +=0D +=0D +class CIfrQuestionRef3(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__QuestionRef3 =3D EFI_IFR_QUESTION_REF3()=0D + CIfrOpHeader.__init__(self, self.__QuestionRef3.Header,=0D + EFI_IFR_QUESTION_REF3_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__QuestionRef3.Header=0D +=0D +=0D +class CIfrQuestionRef3_2(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__QuestionRef3_2 =3D EFI_IFR_QUESTION_REF3_2()=0D + CIfrOpHeader.__init__(self, self.__QuestionRef3_2.Header,=0D + EFI_IFR_QUESTION_REF3_OP)=0D + self.SetLineNo(LineNo)=0D + self.__QuestionRef3_2.DevicePath =3D EFI_STRING_ID_INVALID=0D +=0D + def SetDevicePath(self, DevicePath):=0D + self.__QuestionRef3_2.DevicePath =3D DevicePath=0D +=0D + def GetHeader(self):=0D + return self.__QuestionRef3_2.Header=0D +=0D +=0D +class CIfrQuestionRef3_3(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__QuestionRef3_3 =3D EFI_IFR_QUESTION_REF3_3()=0D + CIfrOpHeader.__init__(self, self.__QuestionRef3_3.Header,=0D + EFI_IFR_QUESTION_REF3_OP)=0D + self.SetLineNo(LineNo)=0D + self.__QuestionRef3_3.DevicePath =3D EFI_STRING_ID_INVALID=0D + self.__QuestionRef3_3.Guid =3D EFI_GUID(=0D + 0, 0, 0, GuidArray(0, 0, 0, 0, 0, 0, 0, 0))=0D +=0D + def SetDevicePath(self, DevicePath):=0D + self.__QuestionRef3_3.DevicePath =3D DevicePath=0D +=0D + def SetGuid(self, Guid):=0D + self.__QuestionRef3_3.Guid =3D Guid=0D +=0D + def GetHeader(self):=0D + return self.__QuestionRef3_3.Header=0D +=0D +=0D +class CIfrRuleRef(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__RuleRef =3D EFI_IFR_RULE_REF()=0D + CIfrOpHeader.__init__(self, self.__RuleRef.Header, EFI_IFR_RULE_RE= F_OP)=0D + self.SetLineNo(LineNo)=0D + self.__RuleRef.RuleId =3D EFI_RULE_ID_INVALID=0D +=0D + def SetRuleId(self, RuleId):=0D + self.__RuleRef.RuleId =3D RuleId=0D +=0D + def GetHeader(self):=0D + return self.__RuleRef.Header=0D +=0D +=0D +class CIfrStringRef1(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__StringRef1 =3D EFI_IFR_STRING_REF1()=0D + CIfrOpHeader.__init__(self, self.__StringRef1.Header,=0D + EFI_IFR_STRING_REF1_OP)=0D + self.SetLineNo(LineNo)=0D + self.__StringRef1.StringId =3D EFI_STRING_ID_INVALID=0D +=0D + def SetStringId(self, StringId):=0D + self.__StringRef1.StringId =3D StringId=0D +=0D + def GetHeader(self):=0D + return self.__StringRef1.Header=0D +=0D +=0D +class CIfrStringRef2(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__StringRef2 =3D EFI_IFR_STRING_REF2()=0D + CIfrOpHeader.__init__(self, self.__StringRef2.Header,=0D + EFI_IFR_STRING_REF2_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__StringRef2.Header=0D +=0D +=0D +class CIfrThis(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__This =3D EFI_IFR_THIS()=0D + CIfrOpHeader.__init__(self, self.__This.Header, EFI_IFR_THIS_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__This.Header=0D +=0D +=0D +class CIfrSecurity(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Security =3D EFI_IFR_SECURITY()=0D + CIfrOpHeader.__init__(self, self.__Security.Header,=0D + EFI_IFR_SECURITY_OP)=0D + self.SetLineNo(LineNo)=0D + self.__Security.Permissions =3D EFI_GUID(=0D + 0, 0, 0, GuidArray(0, 0, 0, 0, 0, 0, 0, 0))=0D +=0D + def SetPermissions(self, Permissions):=0D + self.__Security.Permissions =3D Permissions=0D +=0D + def GetHeader(self):=0D + return self.__Security.Header=0D +=0D +=0D +class CIfrGet(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Get =3D EFI_IFR_GET()=0D + CIfrOpHeader.__init__(self, self.__Get.Header, EFI_IFR_GET_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetVarInfo(self, BaseInfo: EFI_VARSTORE_INFO):=0D + self.__Get.VarStoreId =3D BaseInfo.VarStoreId=0D + self.__Get.VarStoreInfo.VarName =3D BaseInfo.Info.VarName=0D + self.__Get.VarStoreInfo.VarOffset =3D BaseInfo.Info.VarOffset=0D + self.__Get.VarStoreType =3D BaseInfo.VarType=0D +=0D + def GetHeader(self):=0D + return self.__Get.Header=0D +=0D +=0D +class CIfrSet(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Set =3D EFI_IFR_SET()=0D + CIfrOpHeader.__init__(self, self.__Set.Header, EFI_IFR_SET_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def SetVarInfo(self, BaseInfo: EFI_VARSTORE_INFO):=0D + self.__Set.VarStoreId =3D BaseInfo.VarStoreId=0D + self.__Set.VarStoreInfo.VarName =3D BaseInfo.Info.VarName=0D + self.__Set.VarStoreInfo.VarOffset =3D BaseInfo.Info.VarOffset=0D + self.__Set.VarStoreType =3D BaseInfo.VarType=0D +=0D + def GetHeader(self):=0D + return self.__Set.Header=0D +=0D +=0D +class CIfrTrue(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__True =3D EFI_IFR_TRUE()=0D + CIfrOpHeader.__init__(self, self.__True.Header, EFI_IFR_TRUE_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__True.Header=0D +=0D +=0D +class CIfrFalse(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__False =3D EFI_IFR_TRUE()=0D + CIfrOpHeader.__init__(self, self.__False.Header, EFI_IFR_FALSE_OP)= =0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__False.Header=0D +=0D +=0D +class CIfrOne(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__One =3D EFI_IFR_ONE()=0D + CIfrOpHeader.__init__(self, self.__One.Header, EFI_IFR_ONE_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__One.Header=0D +=0D +=0D +class CIfrOnes(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Ones =3D EFI_IFR_ONE()=0D + CIfrOpHeader.__init__(self, self.__Ones.Header, EFI_IFR_ONES_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__Ones.Header=0D +=0D +=0D +class CIfrZero(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Zero =3D EFI_IFR_ZERO()=0D + CIfrOpHeader.__init__(self, self.__Zero.Header, EFI_IFR_ZERO_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__Zero.Header=0D +=0D +=0D +class CIfrUndefined(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Undefined =3D EFI_IFR_ZERO()=0D + CIfrOpHeader.__init__(self, self.__Undefined.Header,=0D + EFI_IFR_UNDEFINED_OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__Undefined.Header=0D +=0D +=0D +class CIfrVersion(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Version =3D EFI_IFR_VERSION()=0D + CIfrOpHeader.__init__(self, self.__Version.Header, EFI_IFR_VERSION= _OP)=0D + self.SetLineNo(LineNo)=0D +=0D + def GetHeader(self):=0D + return self.__Version.Header=0D +=0D +=0D +class CIfrLength(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__Length =3D EFI_IFR_LENGTH()=0D + CIfrOpHeader.__init__(self, self.__Length.Header, EFI_IFR_LENGTH_O= P)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class CIfrBitWiseNot(CIfrObj, CIfrOpHeader):=0D +=0D + def __init__(self, LineNo):=0D + self.__BitWiseNot =3D EFI_IFR_BITWISE_NOT()=0D + CIfrOpHeader.__init__(self, self.__BitWiseNot.Header,=0D + EFI_IFR_BITWISE_NOT_OP)=0D + self.SetLineNo(LineNo)=0D +=0D +=0D +class ExpressionInfo():=0D +=0D + def __init__(self):=0D + self.RootLevel =3D 0=0D + self.ExpOpCount =3D 0 \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/VfrSyntax.g4 b/BaseTools/S= ource/Python/VfrCompiler/VfrSyntax.g4 new file mode 100644 index 0000000000..89c9e67b59 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrSyntax.g4 @@ -0,0 +1,1887 @@ +grammar VfrSyntax;=0D +options {=0D + language=3DPython;=0D +}=0D +@header{=0D +=0D +from VfrCompiler.CommonCtypes import *=0D +from VfrCompiler.VfrFormPkg import *=0D +from VfrCompiler.VfrUtility import *=0D +from VfrCompiler.VfrTree import *=0D +}=0D +=0D +vfrProgram=0D + : (vfrPragmaPackDefinition | vfrDataStructDefinition | vfrDataUnionD= efinition)* vfrFormSetDefinition=0D + ;=0D +=0D +pragmaPackShowDef=0D + : 'show'=0D + ;=0D +=0D +pragmaPackStackDef=0D + : ('push' | 'pop') (',' StringIdentifier)? (',' Number)?=0D + ;=0D +=0D +pragmaPackNumber=0D + : Number?=0D + ;=0D +=0D +vfrPragmaPackDefinition=0D + : '#pragma' 'pack' '('=0D + ( pragmaPackShowDef=0D + | pragmaPackStackDef=0D + | pragmaPackNumber=0D + )?=0D + ')'=0D + ;=0D +=0D +vfrDataStructDefinition=0D + : (TypeDef)? Struct NonNvDataMap? N1=3DStringIdentifier? '{' vfrData= StructFields[False] '}' N2=3DStringIdentifier? ';'=0D + ;=0D +=0D +vfrDataUnionDefinition=0D + : (TypeDef)? Union NonNvDataMap? N1=3DStringIdentifier? '{' vfrDataS= tructFields[True]'}' N2=3DStringIdentifier? ';'=0D + ;=0D +=0D +vfrDataStructFields[FieldInUnion]=0D + :=0D + ( dataStructField64[FieldInUnion]=0D + | dataStructField32[FieldInUnion]=0D + | dataStructField16[FieldInUnion]=0D + | dataStructField8[FieldInUnion]=0D + | dataStructFieldBool[FieldInUnion]=0D + | dataStructFieldString[FieldInUnion]=0D + | dataStructFieldDate[FieldInUnion]=0D + | dataStructFieldTime[FieldInUnion]=0D + | dataStructFieldRef[FieldInUnion]=0D + | dataStructFieldUser[FieldInUnion]=0D + | dataStructBitField64[FieldInUnion]=0D + | dataStructBitField32[FieldInUnion]=0D + | dataStructBitField16[FieldInUnion]=0D + | dataStructBitField8[FieldInUnion]=0D + )*=0D + ;=0D +=0D +dataStructField64[FieldInUnion]=0D + : 'UINT64' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructField32[FieldInUnion]=0D + : 'UINT32' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructField16[FieldInUnion]=0D + : 'UINT16' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructField8[FieldInUnion]=0D + : 'UINT8' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructFieldBool[FieldInUnion]=0D + : 'BOOLEAN' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructFieldString[FieldInUnion]=0D + : 'EFI_STRING_ID' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructFieldDate[FieldInUnion]=0D + : 'EFI_HII_DATE' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructFieldTime[FieldInUnion]=0D + : 'EFI_HII_TIME' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructFieldRef[FieldInUnion]=0D + : 'EFI_HII_REF' N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructFieldUser[FieldInUnion]=0D + : T=3DStringIdentifier N=3DStringIdentifier ('[' Number ']')? ';'=0D + ;=0D +=0D +dataStructBitField64[FieldInUnion]=0D + : D=3D'UINT64' N=3DStringIdentifier? ':' Number ';'=0D + ;=0D +dataStructBitField32[FieldInUnion]=0D + : D=3D'UINT32' N=3DStringIdentifier? ':' Number ';'=0D + ;=0D +dataStructBitField16[FieldInUnion]=0D + : D=3D'UINT16' N=3DStringIdentifier? ':' Number ';'=0D + ;=0D +dataStructBitField8[FieldInUnion]=0D + : D=3D'UINT8' N=3DStringIdentifier? ':' Number ';'=0D + ;=0D +=0D +// 2.4 VFR FormSet Definition=0D +vfrFormSetDefinition=0D +locals[Node=3DVfrTreeNode(EFI_IFR_FORM_SET_OP)]=0D + : 'formset'=0D + 'guid' '=3D' guidDefinition ','=0D + 'title' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ('classguid' '=3D' classguidDefinition[localctx.Node] ',')?=0D + ('class' '=3D' classDefinition ',')?=0D + ('subclass' '=3D' subclassDefinition ',')?=0D + vfrFormSetList[localctx.Node]=0D + 'endformset' ';'=0D + ;=0D +=0D +classguidDefinition[Node]=0D +locals[GuidList=3D[]]=0D + : guidDefinition ('|' guidDefinition)? ('|' guidDefinition)?('|' gui= dDefinition)?=0D + ;=0D +=0D +classDefinition=0D +locals[Node=3DVfrTreeNode(EFI_IFR_GUID_OP)]=0D + : validClassNames ('|' validClassNames)*=0D + ;=0D +=0D +validClassNames=0D +locals[ClassName=3D0]=0D + : ClassNonDevice=0D + | ClassDiskDevice=0D + | ClassVideoDevice=0D + | ClassNetworkDevice=0D + | ClassInputDevice=0D + | ClassOnBoardDevice=0D + | ClassOtherDevice=0D + | Number=0D + ;=0D +=0D +subclassDefinition=0D +locals[Node=3DVfrTreeNode(EFI_IFR_GUID_OP)]=0D + : SubclassSetupApplication=0D + | SubclassGeneralApplication=0D + | SubclassFrontPage=0D + | SubclassSingleUse=0D + | Number=0D + ;=0D +=0D +=0D +vfrFormSetList[Node]=0D + : (vfrFormSet)*=0D + ;=0D +=0D +//2.5 VFR FormSet List Definition=0D +vfrFormSet=0D +locals[Node=3DNone]=0D + :=0D + ( vfrFormDefinition=0D + | vfrFormMapDefinition=0D + | vfrStatementImage=0D + | vfrStatementVarStoreLinear=0D + | vfrStatementVarStoreEfi=0D + | vfrStatementVarStoreNameValue=0D + | vfrStatementDefaultStore=0D + | vfrStatementDisableIfFormSet=0D + | vfrStatementSuppressIfFormSet=0D + | vfrStatementExtension=0D + )=0D + ;=0D +=0D +=0D +//2.6 VFR Default Stores Definition=0D +vfrStatementDefaultStore=0D +locals[Node=3DVfrTreeNode(EFI_IFR_DEFAULTSTORE_OP)]=0D + : 'defaultstore' N=3DStringIdentifier ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' S=3DNumber ')'=0D + (',' 'attribute' '=3D' A=3DNumber)? ';'=0D + ;=0D +=0D +//2.7 VFR Variable Store Definition=0D +vfrStatementVarStoreLinear=0D +locals[Node=3DVfrTreeNode(EFI_IFR_VARSTORE_OP)]=0D + : 'varstore'=0D + ( TN=3DStringIdentifier ','=0D + | 'UINT8' ','=0D + | 'UINT16' ','=0D + | 'UINT32' ','=0D + | 'UINT64' ','=0D + | 'EFI_HII_DATE' ','=0D + | 'EFI_HII_TIME' ','=0D + | 'EFI_HII_REF' ','=0D + )=0D + ('varid' '=3D' ID=3DNumber ',')?=0D + 'name' '=3D' SN=3DStringIdentifier ','=0D + 'guid' '=3D' guidDefinition ';'=0D + ;=0D +=0D +vfrStatementVarStoreEfi=0D +locals[Node=3DVfrTreeNode(EFI_IFR_VARSTORE_EFI_OP)]=0D + : 'efivarstore'=0D + ( TN=3DStringIdentifier ','=0D + | 'UINT8' ','=0D + | 'UINT16' ','=0D + | 'UINT32' ','=0D + | 'UINT64' ','=0D + | 'EFI_HII_DATE' ','=0D + | 'EFI_HII_TIME' ','=0D + | 'EFI_HII_REF' ','=0D + )=0D + ('varid' '=3D' ID=3DNumber ',')?=0D + 'attribute' '=3D' vfrVarStoreEfiAttr ('|' vfrVarStoreEfiAttr)* ','= =0D + ( 'name' '=3D' SN=3DStringIdentifier ','=0D + | 'name' '=3D' 'STRING_TOKEN' '(' VN=3DNumber ')' ',' 'varsize'= '=3D' N=3DNumber ','=0D + )=0D + 'guid' '=3D' guidDefinition ';'=0D + ;=0D +=0D +vfrVarStoreEfiAttr=0D +locals[Attr=3D0]=0D + : Number;=0D +=0D +vfrStatementVarStoreNameValue=0D +locals[Node=3DVfrTreeNode(EFI_IFR_VARSTORE_NAME_VALUE_OP)]=0D + : 'namevaluevarstore' SN=3DStringIdentifier ','=0D + ('varid' '=3D' ID=3DNumber ',')?=0D + ('name' '=3D' 'STRING_TOKEN' '(' Number ')' ',')+=0D + 'guid' '=3D' guidDefinition ';'=0D + ;=0D +=0D +vfrStatementDisableIfFormSet=0D +locals[Node=3DVfrTreeNode(EFI_IFR_DISABLE_IF_OP)]=0D + : 'disableif' vfrStatementExpression ';'=0D + vfrFormSetList[localctx.Node]=0D + 'endif' ';'=0D + ;=0D +=0D +vfrStatementSuppressIfFormSet=0D +locals[Node=3DVfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)]=0D + : 'suppressif' vfrStatementExpression ';'=0D + vfrFormSetList[localctx.Node]=0D + 'endif' ';'=0D + ;=0D +=0D +guidSubDefinition[Guid]=0D + : Number ',' Number ',' Number ',' Number ','=0D + Number ',' Number ',' Number ',' Number=0D + ;=0D +=0D +guidDefinition=0D +locals[Node=3DVfrTreeNode(), Guid=3DEFI_GUID()]=0D + : '{'=0D + Number ',' Number ',' Number ','=0D + ( '{' guidSubDefinition[localctx.Guid] '}'=0D + | guidSubDefinition[localctx.Guid]=0D + )=0D + '}'=0D + ;=0D +=0D +getStringId=0D +locals[StringId=3D'']=0D + : 'STRING_TOKEN' '(' Number ')'=0D + ;=0D +=0D +vfrQuestionHeader[OpObj, QType]=0D + : vfrQuestionBaseInfo[OpObj, QType]=0D + vfrStatementHeader[OpObj]=0D + ;=0D +=0D +vfrQuestionBaseInfo[OpObj, QType]=0D +locals[BaseInfo=3DEFI_VARSTORE_INFO(), QId=3DEFI_QUESTION_ID_INVALID, Chec= kFlag=3DTrue]=0D + : ('name' '=3D' QN=3DStringIdentifier ',')?=0D + ('varid' '=3D' vfrStorageVarId[localctx.BaseInfo, localctx.CheckFl= ag] ',')?=0D + ('questionid' '=3D' ID=3DNumber ',')?=0D + ;=0D +=0D +vfrStatementHeader[OpObj]=0D + : 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')'=0D + ;=0D +=0D +questionheaderFlagsField=0D +locals[QHFlag=3D0]=0D + : ReadOnlyFlag=0D + | InteractiveFlag=0D + | ResetRequiredFlag=0D + | RestStyleFlag=0D + | ReconnectRequiredFlag=0D + | O=3DOptionOnlyFlag=0D + | N=3DNVAccessFlag=0D + | L=3DLateCheckFlag=0D + ;=0D +//2.10.5=0D +vfrStorageVarId[BaseInfo, CheckFlag]=0D +locals[VarIdStr=3D'']=0D + : (SN1=3DStringIdentifier '[' I=3DNumber ']') # vfrStorageVarIdRu= le1=0D + | (SN2=3DStringIdentifier ('.' arrayName)* ) # vfrStorageVarIdRule2= =0D + ;=0D +=0D +vfrConstantValueField=0D +locals[Value=3DEFI_IFR_TYPE_VALUE(), ValueList=3D[], ListType=3DFalse]=0D + : ('-')? Number=0D + | 'TRUE'=0D + | 'FALSE'=0D + | 'ONE'=0D + | 'ONES'=0D + | 'ZERO'=0D + | Number ':' Number ':' Number=0D + | Number '/' Number '/' Number=0D + | Number ';' Number ';' guidDefinition ';' 'STRING_TOKEN' '(' Number= ')'=0D + | 'STRING_TOKEN' '(' Number ')'=0D + | '{' Number (',' Number)* '}'=0D + ;=0D +=0D +vfrImageTag=0D +locals[Node=3DVfrTreeNode(EFI_IFR_IMAGE_OP)]=0D + : 'image' '=3D' 'IMAGE_TOKEN' '(' Number ')'=0D + ;=0D +=0D +vfrLockedTag=0D +locals[Node=3DVfrTreeNode(EFI_IFR_LOCKED_OP)]=0D + : 'locked'=0D + ;=0D +=0D +vfrStatementStatTag=0D +locals[Node]=0D + : vfrImageTag | vfrLockedTag=0D + ;=0D +=0D +vfrStatementStatTagList[Node]=0D + : vfrStatementStatTag (',' vfrStatementStatTag)*=0D + ;=0D +=0D +vfrFormDefinition=0D +locals[Node=3DVfrTreeNode(EFI_IFR_FORM_OP)]=0D + : 'form' 'formid' '=3D' Number ','=0D + 'title' '=3D' 'STRING_TOKEN' '(' Number ')' ';'=0D + (vfrForm)*=0D + 'endform' ';'=0D + ;=0D +=0D +vfrForm=0D +locals[Node]=0D + :=0D + ( vfrStatementImage=0D + | vfrStatementLocked=0D + | vfrStatementRules=0D + | vfrStatementDefault=0D + | vfrStatementStat=0D + | vfrStatementQuestions=0D + | vfrStatementConditional=0D + | vfrStatementLabel=0D + | vfrStatementBanner=0D + | vfrStatementInvalid=0D + | vfrStatementExtension=0D + | vfrStatementModal=0D + | vfrStatementRefreshEvent ';'=0D + )=0D + ;=0D +=0D +vfrFormMapDefinition=0D +locals[Node=3DVfrTreeNode(EFI_IFR_FORM_MAP_OP)]=0D + : 'formmap' 'formid' '=3D' S1=3DNumber ','=0D + ( 'maptitle' '=3D' 'STRING_TOKEN' '(' Number ')' ';'=0D + 'mapguid' '=3D' guidDefinition ';'=0D + )*=0D + (vfrForm)*=0D + 'endform' ';'=0D + ;=0D +=0D +vfrStatementImage=0D +locals[Node]=0D + : vfrImageTag ';'=0D + ;=0D +=0D +vfrStatementLocked=0D +locals[Node]=0D + : vfrLockedTag ';'=0D + ;=0D +=0D +vfrStatementRules=0D +locals[Node=3DVfrTreeNode(EFI_IFR_RULE_OP)]=0D + : 'rule' StringIdentifier ','=0D + vfrStatementExpression=0D + 'endrule' ';'=0D + ;=0D +=0D +vfrStatementStat=0D +locals[Node]=0D + : vfrStatementSubTitle=0D + | vfrStatementStaticText=0D + | vfrStatementCrossReference=0D + ;=0D +=0D +vfrStatementSubTitle=0D +locals[Node=3DVfrTreeNode(EFI_IFR_SUBTITLE_OP), OpObj=3DCIfrSubtitle()]=0D + : 'subtitle'=0D +=0D + 'text' '=3D' 'STRING_TOKEN' '(' Number ')'=0D + (',' 'flags' '=3D' vfrSubtitleFlags)?=0D + ( (',' vfrStatementStatTagList[localctx.Node])? ';'=0D + |=0D + (',' vfrStatementStatTagList[localctx.Node])?=0D + (',' (vfrStatementSubTitleComponent)* )?=0D + 'endsubtitle' ';'=0D + )=0D + ;=0D +=0D +vfrStatementSubTitleComponent=0D +locals[Node]=0D + : vfrStatementStat | vfrStatementQuestions=0D + ;=0D +=0D +vfrSubtitleFlags=0D +locals[SubFlags=3D0]=0D + : subtitleFlagsField ('|' subtitleFlagsField)*=0D + ;=0D +subtitleFlagsField=0D +locals[Flag=3D0]=0D + : Number | 'HORIZONTAL'=0D + ;=0D +=0D +vfrStatementStaticText=0D +locals[Node=3DVfrTreeNode(EFI_IFR_TEXT_OP)]=0D + : 'text'=0D + 'help' '=3D' 'STRING_TOKEN' '(' S1=3DNumber ')' ','=0D + 'text' '=3D' 'STRING_TOKEN' '(' S2=3DNumber ')'=0D + (',' 'text' '=3D' 'STRING_TOKEN' '(' S3=3DNumber ')')?=0D + (',' F=3D'flags' '=3D' staticTextFlagsField ('|' staticTextFlagsFi= eld)* ',' 'key' '=3D' S4=3DNumber)?=0D + (',' vfrStatementStatTagList[localctx.Node])? ';'=0D + ;=0D +=0D +staticTextFlagsField=0D +locals[Flag=3D0]=0D + : N=3DNumber | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementCrossReference=0D +locals[Node]=0D + : vfrStatementGoto | vfrStatementResetButton=0D + ;=0D +=0D +vfrStatementGoto=0D +locals[Node=3DVfrTreeNode(EFI_IFR_REF_OP), OpObj=3DNone, OHObj=3DNone, QTy= pe=3DEFI_QUESION_TYPE.QUESTION_REF]=0D + : 'goto'=0D + ( ( DevicePath '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + FormSetGuid '=3D' guidDefinition ','=0D + FormId '=3D' Number ','=0D + Question '=3D' Number ','=0D + )=0D + |=0D + ( FormSetGuid '=3D' guidDefinition ','=0D + FormId '=3D' Number ','=0D + Question '=3D' Number ','=0D + )=0D + |=0D + ( FormId '=3D' Number ','=0D + Question '=3D' (QN=3DStringIdentifier ',' | Number ',')=0D + )=0D + |=0D + ( Number ',' )=0D + )?=0D + vfrQuestionHeader[localctx.OpObj, localctx.QType]=0D + (',' 'flags' '=3D' vfrGotoFlags[localctx.OpObj])?=0D + (',' 'key' '=3D' Number)?=0D + (',' vfrStatementQuestionOptionList[localctx.Node])? ';'=0D + ;=0D +=0D +vfrGotoFlags[Obj]=0D +locals[GotoFlags=3D0]=0D + : gotoFlagsField('|' gotoFlagsField)*=0D + ;=0D +=0D +gotoFlagsField=0D +locals[Flag=3D0]=0D + : N=3DNumber | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementResetButton=0D +locals[Node=3DVfrTreeNode(EFI_IFR_RESET_BUTTON_OP), OpObj=3DCIfrResetButto= n()]=0D + : 'resetbutton'=0D + 'defaultstore' '=3D' N=3DStringIdentifier ','=0D + vfrStatementHeader[localctx.OpObj] ','=0D + (vfrStatementStatTagList[localctx.Node] ',')?=0D + 'endresetbutton' ';'=0D + ;=0D +=0D +vfrStatementQuestions=0D +locals[Node]=0D + : vfrStatementBooleanType=0D + | vfrStatementDate=0D + | vfrStatementNumericType=0D + | vfrStatementStringType=0D + | vfrStatementOrderedList=0D + | vfrStatementTime=0D + ;=0D +=0D +vfrStatementQuestionTag=0D +locals[Node]=0D + : vfrStatementStatTag ','=0D + | vfrStatementInconsistentIf=0D + | vfrStatementNoSubmitIf=0D + | vfrStatementDisableIfQuest=0D + | vfrStatementRefresh=0D + | vfrStatementVarstoreDevice=0D + | vfrStatementExtension=0D + | vfrStatementRefreshEvent=0D + | vfrStatementWarningIf=0D + ;=0D +=0D +vfrStatementInconsistentIf=0D +locals[Node=3DVfrTreeNode(EFI_IFR_INCONSISTENT_IF_OP)]=0D + : 'inconsistentif'=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression=0D + 'endif' (';')?=0D + ;=0D +=0D +vfrStatementNoSubmitIf=0D +locals[Node=3DVfrTreeNode(EFI_IFR_NO_SUBMIT_IF_OP)]=0D + : 'nosubmitif'=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression=0D + 'endif' (';')?=0D + ;=0D +=0D +vfrStatementDisableIfQuest=0D +locals[Node=3DVfrTreeNode(EFI_IFR_DISABLE_IF_OP)]=0D + : 'disableif' vfrStatementExpression ';'=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endif' (';')?=0D + ;=0D +=0D +vfrStatementRefresh=0D +locals[Node=3DVfrTreeNode(EFI_IFR_REFRESH_OP)]=0D + : 'refresh' 'interval' '=3D' Number=0D + ;=0D +=0D +vfrStatementVarstoreDevice=0D +locals[Node=3DVfrTreeNode(EFI_IFR_VARSTORE_DEVICE_OP)]=0D + : 'varstoredevice' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ;=0D +=0D +vfrStatementRefreshEvent=0D +locals[Node=3DVfrTreeNode(EFI_IFR_REFRESH_ID_OP)]=0D + : 'refreshguid' '=3D' guidDefinition ','=0D + ;=0D +=0D +vfrStatementWarningIf=0D +locals[Node=3DVfrTreeNode(EFI_IFR_WARNING_IF_OP)]=0D + : 'warningif'=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ('timeout' '=3D' Number ',')?=0D + vfrStatementExpression=0D + 'endif' (';')?=0D + ;=0D +=0D +vfrStatementQuestionTagList[Node]=0D + : (vfrStatementQuestionTag)*=0D + ;=0D +=0D +vfrStatementQuestionOptionTag=0D +locals[Node]=0D + : vfrStatementSuppressIfQuest=0D + | vfrStatementGrayOutIfQuest=0D + | vfrStatementValue=0D + | vfrStatementDefault=0D + | vfrStatementOptions=0D + | vfrStatementRead=0D + | vfrStatementWrite=0D + ;=0D +=0D +flagsField=0D + : Number=0D + | InteractiveFlag=0D + | ManufacturingFlag=0D + | DefaultFlag=0D + | ResetRequiredFlag=0D + | ReconnectRequiredFlag=0D + | N=3DNVAccessFlag=0D + | L=3DLateCheckFlag=0D + ;=0D +=0D +vfrStatementSuppressIfQuest=0D +locals[Node=3DVfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)]=0D + : 'suppressif' vfrStatementExpression ';'=0D + ('flags' '=3D' flagsField ('|' flagsField )* ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endif' (';')?=0D + ;=0D +=0D +vfrStatementGrayOutIfQuest=0D +locals[Node=3DVfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)]=0D + : 'grayoutif' vfrStatementExpression ';'=0D + ('flags' '=3D' flagsField ('|' flagsField )* ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endif' (';')?=0D + ;=0D +=0D +=0D +vfrStatementDefault=0D +locals[Node=3DVfrTreeNode(EFI_IFR_DEFAULT_OP)]=0D + : D=3D'default'=0D + ( ( vfrStatementValue ','=0D + | '=3D' vfrConstantValueField ','=0D + )=0D + ( 'defaultstore' '=3D' SN=3DStringIdentifier ','=0D + )?=0D + )=0D + ;=0D +=0D +vfrStatementValue=0D +locals[Node=3DVfrTreeNode(EFI_IFR_VALUE_OP)]=0D + : 'value' '=3D' vfrStatementExpression=0D + ;=0D +=0D +vfrStatementOptions=0D +locals[Node]=0D + : vfrStatementOneOfOption=0D + ;=0D +=0D +vfrStatementOneOfOption=0D +locals[Node=3DVfrTreeNode(EFI_IFR_ONE_OF_OPTION_OP)]=0D + : 'option'=0D + 'text' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'value' '=3D' vfrConstantValueField ','=0D + F=3D'flags' '=3D' vfrOneOfOptionFlags (',' 'key' '=3D' KN=3DNumber= ) ? (',' vfrImageTag)* ';'=0D + ;=0D +=0D +vfrOneOfOptionFlags=0D +locals[HFlags=3D0, LFlags=3D0]=0D + : oneofoptionFlagsField ('|' oneofoptionFlagsField)*;=0D +=0D +oneofoptionFlagsField=0D + locals[HFlag=3D0, LFlag=3D0]=0D + : Number=0D + | OptionDefault=0D + | OptionDefaultMfg=0D + | InteractiveFlag=0D + | ResetRequiredFlag=0D + | RestStyleFlag=0D + | ReconnectRequiredFlag=0D + | ManufacturingFlag=0D + | DefaultFlag=0D + | A=3DNVAccessFlag=0D + | L=3DLateCheckFlag=0D + ;=0D +=0D +vfrStatementRead=0D +locals[Node=3DVfrTreeNode(EFI_IFR_READ_OP)]=0D + : 'read' vfrStatementExpression ';'=0D + ;=0D +=0D +vfrStatementWrite=0D +locals[Node=3DVfrTreeNode(EFI_IFR_WRITE_OP)]=0D + : 'write' vfrStatementExpression ';'=0D + ;=0D +=0D +vfrStatementQuestionOptionList[Node]=0D + : (vfrStatementQuestionOption)*=0D + ;=0D +=0D +=0D +=0D +vfrStatementQuestionOption=0D +locals[Node]=0D + : vfrStatementQuestionTag | vfrStatementQuestionOptionTag=0D + ;=0D +=0D +vfrStatementBooleanType=0D +locals[Node]=0D + : vfrStatementCheckBox | vfrStatementAction=0D + ;=0D +=0D +vfrStatementCheckBox=0D +locals[Node=3DVfrTreeNode(EFI_IFR_CHECKBOX_OP), OpObj=3DCIfrCheckBox(), QT= ype=3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : L=3D'checkbox'=0D + vfrQuestionBaseInfo[localctx.OpObj, localctx.QType]=0D + vfrStatementHeader[localctx.OpObj] ','=0D + (F=3D'flags' '=3D' vfrCheckBoxFlags ',')?=0D + ('key' '=3D' Number ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endcheckbox' ';'=0D + ;=0D +=0D +vfrCheckBoxFlags=0D +locals[LFlags=3D0, HFlags=3D0]=0D + : checkboxFlagsField ('|' checkboxFlagsField)*=0D + ;=0D +=0D +checkboxFlagsField=0D +locals[LFlag=3D0, HFlag=3D0]=0D + : Number=0D + | D=3D'DEFAULT'=0D + | M=3D'MANUFACTURING'=0D + | 'CHECKBOX_DEFAULT'=0D + | 'CHECKBOX_DEFAULT_MFG'=0D + | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementAction=0D +locals[Node=3DVfrTreeNode(EFI_IFR_ACTION_OP),OpObj=3DCIfrAction(), QType= =3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : 'action'=0D + vfrQuestionHeader[localctx.OpObj, localctx.QType] ','=0D + ('flags' '=3D' vfrActionFlags ',')?=0D + 'config' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + vfrStatementQuestionTagList[localctx.Node]=0D + 'endaction' ';'=0D + ;=0D +=0D +vfrActionFlags=0D +locals[HFlags=3D0]=0D + : actionFlagsField ('|' actionFlagsField)*=0D + ;=0D +actionFlagsField=0D +locals[HFlag=3D0]=0D + : N=3DNumber | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementNumericType=0D +locals[Node]=0D + : vfrStatementNumeric | vfrStatementOneOf=0D + ;=0D +=0D +vfrStatementNumeric=0D +locals[Node=3DVfrTreeNode(EFI_IFR_NUMERIC_OP), OpObj=3DCIfrNumeric(), QTyp= e=3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : 'numeric'=0D + vfrQuestionBaseInfo[localctx.OpObj, localctx.QType]=0D + vfrStatementHeader[localctx.OpObj] ','=0D + (F=3D'flags' '=3D' vfrNumericFlags ',')?=0D + ('key' '=3D' Number ',')?=0D + vfrSetMinMaxStep[localctx.OpObj]=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endnumeric' ';'=0D + ;=0D +=0D +vfrSetMinMaxStep[OpObj] // CIfrMinMaxStepData=0D + : 'minimum' '=3D' (N1=3D'-')? I=3DNumber ','=0D + 'maximum' '=3D' (N2=3D'-')? A=3DNumber ','=0D + ('step' '=3D' S=3DNumber ',')?=0D + ;=0D +=0D +vfrNumericFlags=0D +locals[HFlags=3D0, LFlags=3D0,IsDisplaySpecified=3DFalse]=0D + : numericFlagsField ('|' numericFlagsField)*=0D + ;=0D +=0D +numericFlagsField=0D +locals[HFlag=3D0,IsSetType=3DFalse,IsDisplaySpecified=3DFalse]=0D + : N=3DNumber=0D + | 'NUMERIC_SIZE_1'=0D + | 'NUMERIC_SIZE_2'=0D + | 'NUMERIC_SIZE_4'=0D + | 'NUMERIC_SIZE_8'=0D + | 'DISPLAY_INT_DEC'=0D + | 'DISPLAY_UINT_DEC'=0D + | 'DISPLAY_UINT_HEX'=0D + | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementOneOf=0D +locals[Node=3DVfrTreeNode(EFI_IFR_ONE_OF_OP), OpObj=3DCIfrOneOf(), QType= =3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : 'oneof'=0D + vfrQuestionBaseInfo[localctx.OpObj, localctx.QType]=0D + vfrStatementHeader[localctx.OpObj] ','=0D + (F=3D'flags' '=3D' vfrOneofFlagsField ',')?=0D + (vfrSetMinMaxStep[localctx.OpObj])?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endoneof' ';'=0D + ;=0D +=0D +vfrOneofFlagsField=0D +locals[HFlags=3D0, LFlags=3D0]=0D + : numericFlagsField ('|' numericFlagsField)*=0D + ;=0D +=0D +vfrStatementStringType=0D +locals[Node]=0D + : vfrStatementString | vfrStatementPassword=0D + ;=0D +=0D +vfrStatementString=0D +locals[Node=3DVfrTreeNode(EFI_IFR_STRING_OP), OpObj=3DCIfrString(), QType= =3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : 'string'=0D + vfrQuestionHeader[localctx.OpObj, localctx.QType] ','=0D + (F=3D'flags' '=3D' vfrStringFlagsField ',')?=0D + ('key' '=3D' Number ',')?=0D + Min=3D'minsize' '=3D' Number ','=0D + Max=3D'maxsize' '=3D' Number ','=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endstring' ';'=0D + ;=0D +=0D +vfrStringFlagsField=0D +locals[HFlags=3D0, LFlags=3D0]=0D + : stringFlagsField ('|' stringFlagsField)*=0D + ;=0D +=0D +stringFlagsField=0D +locals[HFlag=3D0, LFlag=3D0]=0D + : N=3DNumber=0D + | 'MULTI_LINE'=0D + | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementPassword=0D +locals[Node=3DVfrTreeNode(EFI_IFR_PASSWORD_OP), OpObj=3DCIfrPassword(), QT= ype=3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : 'password'=0D + vfrQuestionHeader[localctx.OpObj, localctx.QType]','=0D + (F=3D'flags' '=3D' vfrPasswordFlagsField ',')?=0D + ('key' '=3D' Number ',')?=0D + Min=3D'minsize' '=3D' Number ','=0D + Max=3D'maxsize' '=3D' Number ','=0D + ('encoding' '=3D' Number ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endpassword' ';'=0D + ;=0D +=0D +vfrPasswordFlagsField=0D +locals[HFlags=3D0]=0D + : passwordFlagsField('|' passwordFlagsField)*=0D + ;=0D +=0D +passwordFlagsField=0D +locals[HFlag=3D0]=0D + : Number=0D + | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementOrderedList=0D +locals[Node=3DVfrTreeNode(EFI_IFR_ORDERED_LIST_OP), OpObj=3DCIfrOrderedLis= t(), QType=3DEFI_QUESION_TYPE.QUESTION_NORMAL]=0D + : 'orderedlist'=0D + vfrQuestionHeader[localctx.OpObj, localctx.QType] ','=0D + (M=3D'maxcontainers' '=3D' Number ',')?=0D + (F=3D'flags' '=3D' vfrOrderedListFlags ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + 'endlist' ';'=0D + ;=0D +=0D +vfrOrderedListFlags=0D +locals[HFlags=3D0, LFlags=3D0]=0D + : orderedlistFlagsField ('|' orderedlistFlagsField)*=0D + ;=0D +=0D +orderedlistFlagsField=0D +locals[HFlag=3D0, LFlag=3D0]=0D + : Number=0D + | 'UNIQUE'=0D + | 'NOEMPTY'=0D + | questionheaderFlagsField=0D + ;=0D +=0D +vfrStatementDate=0D +locals[Node=3DVfrTreeNode(EFI_IFR_DATE_OP), OpObj=3DCIfrDate(), QType=3DEF= I_QUESION_TYPE.QUESTION_DATE, Val=3DEFI_IFR_TYPE_VALUE()]=0D + : 'date'=0D + ( ( vfrQuestionHeader[localctx.OpObj, localctx.QType] ','=0D + (F1=3D'flags' '=3D' vfrDateFlags ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + )=0D + |=0D + ( 'year' 'varid' '=3D' StringIdentifier '.' StringIdentifier= ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + minMaxDateStepDefault[localctx.Val.date, 0]=0D + 'month' 'varid' '=3D' StringIdentifier '.' StringIdentifie= r ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + minMaxDateStepDefault[localctx.Val.date, 1]=0D + 'day' 'varid' '=3D' StringIdentifier '.' StringIdentifier = ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + minMaxDateStepDefault[localctx.Val.date, 2]=0D + (F2=3D'flags' '=3D' vfrDateFlags ',')?=0D + (vfrStatementInconsistentIf)*=0D + )=0D + )=0D + 'enddate' ';'=0D + ;=0D +=0D +minMaxDateStepDefault[Date, KeyValue]=0D + : 'minimum' '=3D' Number ','=0D + 'maximum' '=3D' Number ','=0D + ('step' '=3D' Number ',')?=0D + ('default' '=3D' N=3DNumber ',')?=0D + ;=0D +=0D +vfrDateFlags=0D +locals[LFlags=3D0]=0D + : dateFlagsField ('|' dateFlagsField)*=0D + ;=0D +dateFlagsField=0D +locals[LFlag=3D0]=0D + : Number=0D + | 'YEAR_SUPPRESS'=0D + | 'MONTH_SUPPRESS'=0D + | 'DAY_SUPPRESS'=0D + | 'STORAGE_NORMAL'=0D + | 'STORAGE_TIME'=0D + | 'STORAGE_WAKEUP'=0D + ;=0D +=0D +vfrStatementTime=0D +locals[Node=3DVfrTreeNode(EFI_IFR_TIME_OP), OpObj=3DCIfrTime(), QType=3DEF= I_QUESION_TYPE.QUESTION_TIME, Val=3DEFI_IFR_TYPE_VALUE()]=0D + : 'time'=0D + ( ( vfrQuestionHeader[localctx.OpObj, localctx.QType] ','=0D + (F1=3D'flags' '=3D' vfrTimeFlags ',')?=0D + vfrStatementQuestionOptionList[localctx.Node]=0D + )=0D + |=0D + (=0D + 'hour' 'varid' '=3D' StringIdentifier '.' StringIdentifier= ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + minMaxTimeStepDefault[localctx.Val.time, 0]=0D + 'minute' 'varid' '=3D' StringIdentifier '.' StringIdentifi= er ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + minMaxTimeStepDefault[localctx.Val.time, 1]=0D + 'second' 'varid' '=3D' StringIdentifier '.' StringIdentifi= er ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + minMaxTimeStepDefault[localctx.Val.time, 2]=0D + (F2=3D'flags' '=3D' vfrTimeFlags ',')?=0D + (vfrStatementInconsistentIf)*=0D + )=0D + )=0D + 'endtime' ';'=0D + ;=0D +=0D +minMaxTimeStepDefault[Time, KeyValue]=0D + : 'minimum' '=3D' Number ','=0D + 'maximum' '=3D' Number ','=0D + ('step' '=3D' Number ',')?=0D + ('default' '=3D' N=3DNumber ',')?=0D + ;=0D +=0D +vfrTimeFlags=0D +locals[LFlags=3D0]=0D + : timeFlagsField ('|' timeFlagsField)*=0D + ;=0D +=0D +timeFlagsField=0D +locals[LFlag=3D0]=0D + : Number=0D + | 'HOUR_SUPPRESS'=0D + | 'MINUTE_SUPPRESS'=0D + | 'SECOND_SUPPRESS'=0D + | 'STORAGE_NORMAL'=0D + | 'STORAGE_TIME'=0D + | 'STORAGE_WAKEUP'=0D + ;=0D +=0D +vfrStatementConditional=0D +locals[Node]=0D + : vfrStatementDisableIfStat=0D + | vfrStatementSuppressIfStat //enhance to be compatible for framewor= k endif=0D + | vfrStatementGrayOutIfStat=0D + | vfrStatementInconsistentIfStat //to be compatible for framework= =0D + ;=0D +=0D +// new seems to be the same as the old, why new?=0D +vfrStatementConditionalNew=0D +locals[Node]=0D + : vfrStatementDisableIfStat=0D + vfrStatementSuppressIfStatNew=0D + vfrStatementGrayOutIfStatNew=0D + vfrStatementInconsistentIfStat //to be compatible for framework= =0D + ;=0D +=0D +vfrStatementSuppressIfStat=0D +locals[Node]=0D + : vfrStatementSuppressIfStatNew=0D + ;=0D +=0D +vfrStatementGrayOutIfStat=0D +locals[Node]=0D + : vfrStatementGrayOutIfStatNew=0D + ;=0D +=0D +vfrStatementStatList=0D +locals[Node]=0D + : vfrStatementStat=0D + | vfrStatementQuestions=0D + | vfrStatementConditional=0D + | vfrStatementLabel=0D + | vfrStatementExtension=0D + | vfrStatementInvalid=0D + ;=0D +=0D +vfrStatementStatListOld=0D + : vfrStatementStat=0D + | vfrStatementQuestions=0D + | vfrStatementLabel=0D + // Just for framework vfr compatibility=0D + | vfrStatementInvalid=0D + ;=0D +=0D +vfrStatementDisableIfStat=0D +locals[Node=3DVfrTreeNode(EFI_IFR_DISABLE_IF_OP)]=0D + : 'disableif' vfrStatementExpression ';'=0D + (vfrStatementStatList)*=0D + 'endif' ';'=0D + ;=0D +=0D +=0D +// Compatible for framework vfr file=0D +//=0D +vfrStatementgrayoutIfSuppressIf=0D + : 'suppressif'=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression ';'=0D + ;=0D +=0D +vfrStatementsuppressIfGrayOutIf=0D + : 'grayoutif'=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression ';'=0D + ;=0D +=0D +vfrStatementSuppressIfStatNew=0D +locals[Node=3DVfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)]=0D + : 'suppressif'=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression ';'=0D + (vfrStatementStatList)*=0D + 'endif' ';'=0D + ;=0D +=0D +vfrStatementGrayOutIfStatNew=0D +locals[Node=3DVfrTreeNode(EFI_IFR_GRAY_OUT_IF_OP)]=0D + : 'grayoutif'=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression ';'=0D + (vfrStatementStatList)*=0D + 'endif' ';'=0D + ;=0D +=0D +vfrStatementInconsistentIfStat=0D +locals[Node=3DVfrTreeNode(EFI_IFR_INCONSISTENT_IF_OP)]=0D + : 'inconsistentif'=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ('flags' '=3D' flagsField ('|' flagsField)* ',')?=0D + vfrStatementExpression=0D + 'endif' ';'=0D + ;=0D +=0D +vfrStatementInvalid // for compatibility=0D + : vfrStatementInvalidHidden=0D + | vfrStatementInvalidInventory=0D + | vfrStatementInvalidSaveRestoreDefaults=0D + ;=0D +=0D +vfrStatementInvalidHidden=0D + : 'hidden'=0D + 'value' '=3D' Number ','=0D + 'key' '=3D' Number ';'=0D + ;=0D +=0D +vfrStatementInvalidInventory=0D + : 'inventory'=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'text' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ('text' '=3D' 'STRING_TOKEN' '(' Number ')')?=0D + ';'=0D + ;=0D +=0D +vfrStatementInvalidSaveRestoreDefaults=0D + : ( 'save'=0D + | 'restore'=0D + )=0D + 'defaults' ','=0D + 'formid' '=3D' Number ','=0D + 'prompt' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + 'help' '=3D' 'STRING_TOKEN' '(' Number ')'=0D + (',' 'flags' '=3D' flagsField ('|' flagsField)*)?=0D + (',' 'key' '=3D' Number)?=0D + ';'=0D + ;=0D +vfrStatementLabel=0D +locals[Node=3DVfrTreeNode(EFI_IFR_GUID_OP)]=0D + : 'label' Number ';'=0D + ;=0D +=0D +vfrStatementBanner // Is TimeOut needed=0D +locals[Node=3DVfrTreeNode(EFI_IFR_GUID_OP)]=0D + : 'banner' (',')?=0D + 'title' '=3D' 'STRING_TOKEN' '(' Number ')' ','=0D + ( ( 'line' Number ','=0D + 'align' ('left' | 'center' | 'right') ';'=0D + )=0D + |=0D + ( 'timeout' '=3D' Number ';'=0D + )=0D + )=0D + ;=0D +=0D +vfrStatementExtension=0D +locals[Node=3DVfrTreeNode(EFI_IFR_GUID_OP), DataBuff, Size=3D0, TypeName= =3D'', TypeSize=3D0, IsStruct=3DFalse, ArrayNum=3D0]=0D + : 'guidop'=0D + 'guid' '=3D' guidDefinition=0D + ( ',' D=3D'datatype' '=3D'=0D + ( 'UINT64' ('[' Number ']')?=0D + | 'UINT32' ('[' Number ']')?=0D + | 'UINT16' ('[' Number ']')?=0D + | 'UINT8' ('[' Number ']')?=0D + | 'BOOLEAN' ('[' Number ']')?=0D + | 'EFI_STRING_ID' ('[' Number ']')?=0D + | 'EFI_HII_DATE' ('[' Number ']')?=0D + | 'EFI_HII_TIME' ('[' Number ']')?=0D + | 'EFI_HII_REF' ('[' Number ']')?=0D + | StringIdentifier ('[' Number ']')?=0D + )=0D + (vfrExtensionData[localctx.DataBuff])*=0D + )?=0D + (=0D + ',' (vfrStatementExtension)*=0D + 'endguidop'=0D + )?=0D + ';'=0D + ;=0D +=0D +=0D +vfrExtensionData[DataBuff]=0D +locals[IsStruct]=0D + : ',' 'data' ('[' Number ']')?=0D + ( '.' arrayName)* '=3D' N=3DNumber=0D + ;=0D +=0D +=0D +vfrStatementModal=0D +locals[Node]=0D + : vfrModalTag ';'=0D + ;=0D +=0D +vfrModalTag=0D +locals[Node=3DVfrTreeNode(EFI_IFR_MODAL_TAG_OP)]=0D + : 'modal'=0D + ;=0D +=0D +vfrStatementExpression=0D +locals[ExpInfo=3DExpressionInfo()]=0D + : andTerm[localctx.ExpInfo] ('OR' andTerm[localctx.ExpInfo])*=0D + ;=0D +=0D +vfrStatementExpressionSub=0D +locals[ExpInfo=3DExpressionInfo()]=0D + : andTerm[localctx.ExpInfo] ('OR' andTerm[localctx.ExpInfo])*=0D + ;=0D +=0D +andTerm[ExpInfo]=0D +locals[CIfrAndList=3D[]]=0D + : bitwiseorTerm[ExpInfo] ('AND' bitwiseorTerm[ExpInfo])*=0D + ;=0D +=0D +bitwiseorTerm[ExpInfo]=0D +locals[CIfrBitWiseOrList=3D[]]=0D + : bitwiseandTerm[ExpInfo] ('|' bitwiseandTerm[ExpInfo])*=0D + ;=0D +=0D +=0D +bitwiseandTerm[ExpInfo]=0D +locals[CIfrBitWiseAndList=3D[]]=0D + : equalTerm[ExpInfo] ('&' equalTerm[ExpInfo])*=0D + ;=0D +=0D +=0D +equalTerm[ExpInfo]=0D +locals[CIfrEqualList=3D[], CIfrNotEqualList=3D[]]=0D + : compareTerm[localctx.ExpInfo]=0D + (equalTermSupplementary[localctx.CIfrEqualList, localctx.CIfrNotEq= ualList, ExpInfo])*=0D + ;=0D +=0D +=0D +equalTermSupplementary[CIfrEqualList, CIfrNotEqualList, ExpInfo]=0D + : ('=3D=3D' compareTerm[ExpInfo]) # equalTermEqualRule=0D + |=0D + ('!=3D' compareTerm[ExpInfo]) # equalTermNotEqualRule=0D + ;=0D +=0D +compareTerm[ExpInfo]=0D +locals[CIfrLessThanList=3D[], CIfrLessEqualList=3D[], CIfrGreaterThanList= =3D[], CIfrGreaterEqualList=3D[]]=0D + : shiftTerm[ExpInfo]=0D + (compareTermSupplementary[localctx.CIfrLessThanList, localctx.CIfr= LessEqualList, localctx.CIfrGreaterThanList, localctx.CIfrGreaterEqualList,= ExpInfo])*=0D + ;=0D +=0D +compareTermSupplementary[CIfrLessThanList, CIfrLessEqualList, CIfrGreaterT= hanList, CIfrGreaterEqualList, ExpInfo]=0D + : ('<' shiftTerm[ExpInfo]) # compareTermLessRule=0D + |=0D + ('<=3D' shiftTerm[ExpInfo]) # compareTermLessEqualRule=0D + |=0D + ('>' shiftTerm[ExpInfo]) # compareTermGreaterRule=0D + |=0D + ('>=3D' shiftTerm[ExpInfo]) # compareTermGreaterEqualRule=0D + ;=0D +=0D +shiftTerm[ExpInfo]=0D +locals[CIfrShiftLeftList=3D[], CIfrShiftRightList=3D[]]=0D + : addMinusTerm[ExpInfo]=0D + (shiftTermSupplementary[localctx.CIfrShiftLeftList, localctx.CIfrS= hiftRightList, ExpInfo])*=0D + ;=0D +=0D +shiftTermSupplementary[CIfrShiftLeftList, CIfrShiftRightList, ExpInfo]=0D + : ('<<' addMinusTerm[ExpInfo]) # shiftTermLeft=0D + |=0D + ('>>' addMinusTerm[ExpInfo]) # shiftTermRight=0D + ;=0D +=0D +addMinusTerm[ExpInfo]=0D +locals[CIfrAddList=3D[], CIfrSubtractList=3D[]]=0D + : multdivmodTerm[ExpInfo]=0D + (addMinusTermSupplementary[localctx.CIfrAddList, localctx.CIfrSubt= ractList, ExpInfo])*=0D + ;=0D +=0D +addMinusTermSupplementary[CIfrAddList, CIfrSubtractList, ExpInfo]=0D + : ('+' multdivmodTerm[ExpInfo]) # addMinusTermpAdd=0D + |=0D + ('-' multdivmodTerm[ExpInfo]) # addMinusTermSubtract=0D + ;=0D +=0D +multdivmodTerm[ExpInfo]=0D +locals[CIfrMultiplyList=3D[], CIfrDivideList=3D[], CIfrModuloList=3D[]]=0D + : castTerm[ExpInfo]=0D + (multdivmodTermSupplementary[localctx.CIfrMultiplyList, localctx.C= IfrDivideList, localctx.CIfrModuloList, ExpInfo])*=0D + ;=0D +=0D +multdivmodTermSupplementary[CIfrMultiplyList, CIfrDivideList, CIfrModuloLi= st, ExpInfo]=0D + : ('*' castTerm[ExpInfo]) # multdivmodTermMul=0D + |=0D + ('/' castTerm[ExpInfo]) # multdivmodTermDiv=0D + |=0D + ('%' castTerm[ExpInfo]) # multdivmodTermModulo=0D + ;=0D +=0D +castTerm[ExpInfo]=0D +locals[TBObj=3DNone, TUObj=3DNone]=0D + : ( '('=0D + ( 'BOOLEAN'=0D + | 'UINT64'=0D + | 'UINT32'=0D + | 'UINT16'=0D + | 'UINT8'=0D + )=0D + ')'=0D + )*=0D + atomTerm[ExpInfo]=0D + ;=0D +=0D +atomTerm[ExpInfo]=0D + : vfrExpressionCatenate[ExpInfo]=0D + | vfrExpressionMatch[ExpInfo]=0D + | vfrExpressionMatch2[ExpInfo]=0D + | vfrExpressionParen[ExpInfo]=0D + | vfrExpressionBuildInFunction[ExpInfo]=0D + | vfrExpressionConstant[ExpInfo]=0D + | vfrExpressionUnaryOp[ExpInfo]=0D + | vfrExpressionTernaryOp[ExpInfo]=0D + | vfrExpressionMap[ExpInfo]=0D + | ('NOT' atomTerm[ExpInfo])=0D + | vfrExpressionMatch2[ExpInfo]=0D + ;=0D +=0D +vfrExpressionCatenate[ExpInfo]=0D +locals[CObj=3DNone]=0D + : 'catenate'=0D + '(' vfrStatementExpressionSub ',' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +vfrExpressionMatch[ExpInfo]=0D +locals[MObj=3DNone]=0D + : 'match'=0D + '(' vfrStatementExpressionSub ',' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +vfrExpressionMatch2[ExpInfo]=0D +locals[M2Obj=3DNone]=0D + : 'match2'=0D + '(' vfrStatementExpressionSub','=0D + vfrStatementExpressionSub ','=0D + guidDefinition ')'=0D + ;=0D +=0D +vfrExpressionParen[ExpInfo]=0D + : '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +vfrExpressionBuildInFunction[ExpInfo]=0D + : dupExp[ExpInfo]=0D + | vareqvalExp[ExpInfo]=0D + | ideqvalExp[ExpInfo]=0D + | ideqidExp[ExpInfo]=0D + | ideqvallistExp[ExpInfo]=0D + | questionref1Exp[ExpInfo]=0D + | rulerefExp[ExpInfo]=0D + | stringref1Exp[ExpInfo]=0D + | pushthisExp[ExpInfo]=0D + | securityExp[ExpInfo]=0D + | getExp[ExpInfo]=0D + ;=0D +=0D +dupExp[ExpInfo]=0D +locals[DObj=3DNone]=0D + : 'dup'=0D + ;=0D +=0D +=0D +vareqvalExp[ExpInfo]=0D + : 'vareqval'=0D + 'var' '(' Number ')'=0D + ( '=3D=3D' Number=0D + | '<=3D' Number=0D + | '<' Number=0D + | '>=3D' Number=0D + | '>' Number=0D + )=0D + ;=0D +=0D +ideqvalExp[ExpInfo]=0D + : I=3D'ideqval' vfrQuestionDataFieldName=0D + ( '=3D=3D' Number=0D + | '<=3D' Number=0D + | '<' Number=0D + | '>=3D' Number=0D + | '>' Number=0D + )=0D + ;=0D +=0D +ideqidExp[ExpInfo]=0D + : I=3D'ideqid' vfrQuestionDataFieldName=0D + ( E=3D'=3D=3D' vfrQuestionDataFieldName=0D + | LE=3D'<=3D' vfrQuestionDataFieldName=0D + | L=3D'<' vfrQuestionDataFieldName=0D + | BE=3D'>=3D' vfrQuestionDataFieldName=0D + | B=3D'>' vfrQuestionDataFieldName=0D + )=0D + ;=0D +=0D +ideqvallistExp[ExpInfo]=0D + : 'ideqvallist' vfrQuestionDataFieldName '=3D=3D' (Number)+=0D + ;=0D +=0D +vfrQuestionDataFieldName=0D +locals[QId=3DEFI_QUESTION_ID_INVALID, Mask=3D0, VarIdStr=3D'', Line=3DNone= ]=0D + : (SN1=3DStringIdentifier '[' I=3DNumber ']') # vfrQuestionDataField= NameRule1=0D + | (SN2=3DStringIdentifier ('.' arrayName)*) # vfrQuestionDataFie= ldNameRule2=0D + ;=0D +=0D +arrayName=0D +locals[SubStr=3D'', SubStrZ=3D'']=0D + : StringIdentifier ('[' N=3DNumber ']')?=0D + ;=0D +=0D +questionref1Exp[ExpInfo]=0D + : 'questionref'=0D + '(' ( StringIdentifier | Number ) ')'=0D + ;=0D +=0D +rulerefExp[ExpInfo]=0D + : 'ruleref' '(' StringIdentifier ')'=0D + ;=0D +=0D +stringref1Exp[ExpInfo]=0D + : 'stringref' '('=0D + (=0D + 'STRING_TOKEN' '(' Number ')'=0D + | Number=0D + )=0D +=0D +=0D + ')'=0D + ;=0D +=0D +pushthisExp[ExpInfo]=0D + : 'pushthis'=0D + ;=0D +=0D +securityExp[ExpInfo]=0D + : 'security' '(' guidDefinition ')'=0D + ;=0D +=0D +numericVarStoreType=0D +locals[VarType]=0D + : 'NUMERIC_SIZE_1'=0D + | 'NUMERIC_SIZE_2'=0D + | 'NUMERIC_SIZE_4'=0D + | 'NUMERIC_SIZE_8'=0D + ;=0D +=0D +getExp[ExpInfo]=0D +locals[BaseInfo=3DEFI_VARSTORE_INFO(), GObj=3DNone]=0D + : 'get' '(' vfrStorageVarId[localctx.BaseInfo, False]('|' 'flags' '= =3D' numericVarStoreType)? ')'=0D + ;=0D +=0D +vfrExpressionConstant[ExpInfo]=0D + : 'TRUE'=0D + | 'FALSE'=0D + | 'ONE'=0D + | 'ONES'=0D + | 'ZERO'=0D + | 'UNDEFINED'=0D + | 'VERSION'=0D + | Number=0D + ;=0D +=0D +vfrExpressionUnaryOp[ExpInfo]=0D + : lengthExp[ExpInfo]=0D + | bitwisenotExp[ExpInfo]=0D + | question23refExp[ExpInfo]=0D + | stringref2Exp[ExpInfo]=0D + | toboolExp[ExpInfo]=0D + | tostringExp[ExpInfo]=0D + | unintExp[ExpInfo]=0D + | toupperExp[ExpInfo]=0D + | tolwerExp[ExpInfo]=0D + | setExp[ExpInfo]=0D + ;=0D +=0D +lengthExp[ExpInfo]=0D +locals[LObj=3DNone]=0D + : 'length' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +bitwisenotExp[ExpInfo]=0D +locals[BWNObj=3DNone]=0D + : '~' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +question23refExp[ExpInfo]=0D + : 'questionrefval'=0D + '('=0D + (DevicePath '=3D' 'STRING_TOKEN' '(' Number ')' ',' )?=0D + (Uuid '=3D' guidDefinition ',' )?=0D + vfrStatementExpressionSub=0D + ')'=0D + ;=0D +=0D +stringref2Exp[ExpInfo]=0D +locals[SR2Obj=3DNone]=0D + : 'stringrefval' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +toboolExp[ExpInfo]=0D +locals[TBObj=3DNone]=0D + : 'boolval' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +tostringExp[ExpInfo]=0D +locals[TSObj=3DNone]=0D + : 'stringval' ('format' '=3D' Number ',' )?=0D + '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +unintExp[ExpInfo]=0D +locals[TUObj=3DNone]=0D + : 'unintval' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +toupperExp[ExpInfo]=0D +locals[TUObj=3DNone]=0D + : 'toupper' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +tolwerExp[ExpInfo]=0D +locals[TLObj=3DNone]=0D + : 'tolower' '(' vfrStatementExpressionSub ')'=0D + ;=0D +=0D +setExp[ExpInfo]=0D +locals[BaseInfo=3DEFI_VARSTORE_INFO(), TSObj=3DNone]=0D + : 'set'=0D + '('=0D + vfrStorageVarId[localctx.BaseInfo, False]('|' 'flags' '=3D' numeri= cVarStoreType)? ','=0D + vfrStatementExpressionSub=0D + ')'=0D + ;=0D +=0D +vfrExpressionTernaryOp[ExpInfo]=0D + : conditionalExp[ExpInfo]=0D + | findExp[ExpInfo]=0D + | midExp[ExpInfo]=0D + | tokenExp[ExpInfo]=0D + | spanExp[ExpInfo]=0D + ;=0D +=0D +conditionalExp[ExpInfo]=0D +locals[CObj=3DNone]=0D + : 'cond'=0D + '('=0D + vfrStatementExpressionSub //=0D + '?'=0D + vfrStatementExpressionSub //=0D + ':'=0D + vfrStatementExpressionSub //=0D + ')'=0D + ;=0D +=0D +findExp[ExpInfo]=0D +locals[FObj=3DNone]=0D + : 'find'=0D + '('=0D + findFormat[ExpInfo] ('|' findFormat[ExpInfo])*=0D + ','=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ')'=0D + ;=0D +=0D +findFormat[ExpInfo]=0D +locals[Format=3D0]=0D + : 'SENSITIVE' | 'INSENSITIVE'=0D + ;=0D +=0D +midExp[ExpInfo]=0D +locals[MObj=3DNone]=0D + : 'mid'=0D + '('=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ')'=0D + ;=0D +=0D +tokenExp[ExpInfo]=0D +locals[TObj=3DNone]=0D + : 'token'=0D + '('=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ')'=0D + ;=0D +=0D +spanExp[ExpInfo]=0D +locals[SObj=3DNone]=0D + : 'span'=0D + '('=0D + 'flags' '=3D' spanFlags ('|' spanFlags)*=0D + ','=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ','=0D + vfrStatementExpressionSub=0D + ')'=0D + ;=0D +=0D +spanFlags=0D +locals[Flag=3D0]=0D + : Number=0D + | 'LAST_NON_MATCH'=0D + | 'FIRST_NON_MATCH'=0D + ;=0D +=0D +vfrExpressionMap[ExpInfo]=0D +locals[MObj=3DNone]=0D + : 'map'=0D + '('=0D + vfrStatementExpressionSub=0D + ':'=0D + ( vfrStatementExpression=0D + ','=0D + vfrStatementExpression=0D + ';'=0D + )*=0D + ')'=0D + ;=0D +=0D +=0D +Define :'#define';=0D +Include : '#include';=0D +FormPkgType : 'formpkgtype';=0D +OpenBrace : '{';=0D +CloseBrace : '}';=0D +OpenParen : '(';=0D +CloseParen : ')';=0D +OpenBracket : '[';=0D +CloseBracket : ']';=0D +Dot : '.';=0D +Negative : '-';=0D +Colon : ':';=0D +Slash : '/';=0D +Semicolon : ';';=0D +Comma : ',';=0D +Equal : '=3D=3D';=0D +NotEqual : '!=3D';=0D +LessEqual: '<=3D';=0D +Less:'<';=0D +GreaterEqual:'>=3D';=0D +Greater:'>';=0D +BitWiseOr: '|';=0D +BitWiseAnd: '&';=0D +=0D +DevicePath : 'devicepath';=0D +FormSet : 'formset';=0D +FormSetId : 'formsetid';=0D +EndFormSet : 'endformset';=0D +Title : 'title';=0D +FormId : 'formid';=0D +OneOf : 'oneof';=0D +EndOneOf : 'endoneof';=0D +Prompt : 'prompt';=0D +OrderedList : 'orderedlist';=0D +MaxContainers : 'maxcontainers';=0D +EndList : 'endlist';=0D +EndForm : 'endform';=0D +Form : 'form';=0D +FormMap : 'formmap';=0D +MapTitle : 'maptitle';=0D +MapGuid : 'mapguid';=0D +Subtitle : 'subtitle';=0D +EndSubtitle : 'endsubtitle';=0D +Help : 'help';=0D +Text : 'text';=0D +Option : 'option';=0D +FLAGS : 'flags';=0D +Date : 'date';=0D +EndDate : 'enddate';=0D +Year : 'year';=0D +Month : 'month';=0D +Day : 'day';=0D +Time : 'time';=0D +EndTime : 'endtime';=0D +Hour : 'hour';=0D +Minute : 'minute';=0D +Second : 'second';=0D +GrayOutIf : 'grayoutif';=0D +Label : 'label';=0D +Timeout : 'timeout';=0D +Inventory : 'inventory';=0D +NonNvDataMap : '_NON_NV_DATA_MAP';=0D +Struct : 'struct';=0D +Union : 'union';=0D +Boolean : 'BOOLEAN';=0D +Uint64 : 'UINT64';=0D +Uint32 : 'UINT32';=0D +Uint16 : 'UINT16';=0D +Uint8 :'UINT8';=0D +EFI_STRING_ID :'EFI_STRING_ID';=0D +EFI_HII_DATE : 'EFI_HII_DATE';=0D +EFI_HII_TIME : 'EFI_HII_TIME';=0D +EFI_HII_REF : 'EFI_HII_REF';=0D +Uuid : 'guid';=0D +CheckBox : 'checkbox';=0D +EndCheckBox : 'endcheckbox';=0D +Numeric : 'numeric';=0D +EndNumeric : 'endnumeric';=0D +Minimum : 'minimum';=0D +Maximum : 'maximum';=0D +Step : 'step';=0D +Default : 'default';=0D +Password : 'password';=0D +EndPassword : 'endpassword';=0D +String : 'string';=0D +EndString : 'endstring';=0D +MinSize : 'minsize';=0D +MaxSize : 'maxsize';=0D +Encoding : 'encoding';=0D +SuppressIf : 'suppressif';=0D +DisableIf : 'disableif';=0D +Hidden : 'hidden';=0D +Goto : 'goto';=0D +FormSetGuid : 'formsetguid';=0D +InconsistentIf : 'inconsistentif';=0D +WarningIf : 'warningif';=0D +NoSubmitIf : 'nosubmitif';=0D +EndIf : 'endif';=0D +Key : 'key';=0D +DefaultFlag : 'DEFAULT';=0D +ManufacturingFlag : 'MANUFACTURING';=0D +CheckBoxDefaultFlag : 'CHECKBOX_DEFAULT';=0D +CheckBoxDefaultMfgFlag : 'CHECKBOX_DEFAULT_MFG';=0D +InteractiveFlag : 'INTERACTIVE';=0D +NVAccessFlag : 'NV_ACCESS';=0D +ResetRequiredFlag : 'RESET_REQUIRED';=0D +ReconnectRequiredFlag : 'RECONNECT_REQUIRED';=0D +LateCheckFlag : 'LATE_CHECK';=0D +ReadOnlyFlag : 'READ_ONLY';=0D +OptionOnlyFlag : 'OPTIONS_ONLY';=0D +RestStyleFlag : 'REST_STYLE';=0D +Class : 'class';=0D +Subclass : 'subclass';=0D +ClassGuid : 'classguid';=0D +TypeDef : 'typedef';=0D +Restore : 'restore';=0D +Save : 'save';=0D +Defaults : 'defaults';=0D +Banner : 'banner';=0D +Align : 'align';=0D +Left : 'left';=0D +Right : 'right';=0D +Center : 'center';=0D +Line : 'line';=0D +Name : 'name';=0D +=0D +VarId: 'varid';=0D +Question: 'question';=0D +QuestionId: 'questionid';=0D +Image: 'image';=0D +Locked: 'locked';=0D +Rule: 'rule';=0D +EndRule: 'endrule';=0D +Value: 'value';=0D +Read: 'read';=0D +Write: 'write';=0D +ResetButton: 'resetbutton';=0D +EndResetButton: 'endresetbutton';=0D +DefaultStore: 'defaultstore';=0D +Attribute: 'attribute';=0D +Varstore: 'varstore';=0D +Efivarstore: 'efivarstore';=0D +VarSize: 'varsize';=0D +NameValueVarStore: 'namevaluevarstore';=0D +Action: 'action';=0D +Config: 'config';=0D +EndAction: 'endaction';=0D +Refresh: 'refresh';=0D +Interval: 'interval';=0D +VarstoreDevice: 'varstoredevice';=0D +GuidOp: 'guidop';=0D +EndGuidOp: 'endguidop';=0D +DataType: 'datatype';=0D +Data: 'data';=0D +Modal: 'modal';=0D +=0D +//=0D +// Define the class and subclass tokens=0D +//=0D +//=0D +ClassNonDevice: 'NON_DEVICE';=0D +ClassDiskDevice: 'DISK_DEVICE';=0D +ClassVideoDevice: 'VIDEO_DEVICE';=0D +ClassNetworkDevice: 'NETWORK_DEVICE';=0D +ClassInputDevice: 'INPUT_DEVICE';=0D +ClassOnBoardDevice: 'ONBOARD_DEVICE';=0D +ClassOtherDevice: 'OTHER_DEVICE';=0D +=0D +SubclassSetupApplication: 'SETUP_APPLICATION';=0D +SubclassGeneralApplication: 'GENERAL_APPLICATION';=0D +SubclassFrontPage: 'FRONT_PAGE';=0D +SubclassSingleUse: 'SINGLE_USE';=0D +=0D +YearSupppressFlag: 'YEAR_SUPPRESS';=0D +MonthSuppressFlag: 'MONTH_SUPPRESS';=0D +DaySuppressFlag: 'DAY_SUPPRESS';=0D +HourSupppressFlag: 'HOUR_SUPPRESS';=0D +MinuteSuppressFlag: 'MINUTE_SUPPRESS';=0D +SecondSuppressFlag: 'SECOND_SUPPRESS';=0D +StorageNormalFlag: 'STORAGE_NORMAL';=0D +StorageTimeFlag: 'STORAGE_TIME';=0D +StorageWakeUpFlag: 'STORAGE_WAKEUP';=0D +=0D +UniQueFlag: 'UNIQUE';=0D +NoEmptyFlag: 'NOEMPTY';=0D +=0D +Cond: 'cond';=0D +Find: 'find';=0D +Mid: 'mid';=0D +Tok: 'token';=0D +Span: 'span';=0D +=0D +// The syntax of expression=0D +=0D +Dup: 'dup';=0D +VarEqVal: 'vareqval';=0D +Var: 'var';=0D +IdEqVal: 'ideqval';=0D +IdEqId: 'ideqid';=0D +IdEqValList: 'ideqvallist';=0D +QuestionRef: 'questionref';=0D +RuleRef: 'ruleref';=0D +StringRef: 'stringref';=0D +PushThis: 'pushthis';=0D +Security: 'security';=0D +Get: 'get';=0D +TrueSymbol: 'TRUE';=0D +FalseSymbol: 'FALSE';=0D +One: 'ONE';=0D +Ones: 'ONES';=0D +Zero: 'ZERO';=0D +Undefined: 'UNDEFINED';=0D +Version: 'VERSION';=0D +Length: 'length';=0D +AND: 'AND';=0D +OR: 'OR';=0D +NOT: 'NOT';=0D +Set: 'set';=0D +BitWiseNot: '~';=0D +BoolVal: 'boolval';=0D +StringVal: 'stringval';=0D +UnIntVal: 'unintval';=0D +ToUpper: 'toupper';=0D +ToLower: 'tolower';=0D +Match: 'match';=0D +Match2: 'match2';=0D +Catenate: 'catenate';=0D +QuestionRefVal: 'questionrefval';=0D +StringRefVal: 'stringrefval';=0D +Map: 'map';=0D +RefreshGuid: 'refreshguid';=0D +StringToken: 'STRING_TOKEN';=0D +=0D +OptionDefault: 'OPTION_DEFAULT';=0D +OptionDefaultMfg: 'OPTION_DEFAULT_MFG';=0D +=0D +NumericSizeOne: 'NUMERIC_SIZE_1';=0D +NumericSizeTwo: 'NUMERIC_SIZE_2';=0D +NumericSizeFour: 'NUMERIC_SIZE_4';=0D +NumericSizeEight: 'NUMERIC_SIZE_8';=0D +DisPlayIntDec: 'DISPLAY_INT_DEC';=0D +DisPlayUIntDec: 'DISPLAY_UINT_DEC';=0D +DisPlayUIntHex: 'DISPLAY_UINT_HEX';=0D +=0D +Insensitive: 'INSENSITIVE';=0D +Sensitive: 'SENSITIVE';=0D +=0D +LastNonMatch: 'LAST_NON_MATCH';=0D +FirstNonMatch: 'FIRST_NON_MATCH';=0D +=0D +=0D +=0D +Number=0D + : ('0x'[0-9A-Fa-f]+) | [0-9]+=0D + ;=0D +=0D +StringIdentifier=0D + : [A-Za-z_][A-Za-z_0-9]*=0D + ;=0D +=0D +ComplexDefine=0D + : '#' Whitespace? 'define' ~[#\r\n]*=0D + -> skip=0D + ;=0D +=0D +=0D +LineDefinition=0D + : '#' Whitespace? 'line' ~[#\r\n]*=0D + -> skip=0D + ;=0D +=0D +IncludeDefinition=0D + : '#' Whitespace? 'include' ~[#\r\n]*=0D + -> skip=0D + ;=0D +=0D +Whitespace=0D + : [ \t]+=0D + -> skip=0D + ;=0D +=0D +Newline=0D + : ( '\r' '\n'?=0D + | '\n'=0D + )=0D + -> skip=0D + ;=0D +=0D +LineComment=0D + : '//' ~[\r\n]*=0D + -> skip=0D + ;=0D +=0D +// Skip over 'extern' in any included .H file=0D +Extern=0D + : 'extern' ~[#\r\n]*=0D + -> skip=0D + ; \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/VfrSyntaxLexer.py b/BaseTo= ols/Source/Python/VfrCompiler/VfrSyntaxLexer.py new file mode 100644 index 0000000000..2b7a5c32a3 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrSyntaxLexer.py @@ -0,0 +1,1709 @@ +# Generated from VfrSyntax.g4 by ANTLR 4.7.2=0D +from antlr4 import *=0D +from io import StringIO=0D +from typing import TextIO=0D +import sys=0D +=0D +=0D +=0D +from VfrCompiler.CommonCtypes import *=0D +from VfrCompiler.VfrFormPkg import *=0D +from VfrCompiler.VfrUtility import *=0D +from VfrCompiler.VfrTree import *=0D +=0D +=0D +=0D +def serializedATN():=0D + with StringIO() as buf:=0D + buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\u0= 102")=0D + buf.write("\u0ab7\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7"= )=0D + buf.write("\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r"= )=0D + buf.write("\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23= ")=0D + buf.write("\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30= ")=0D + buf.write("\4\31\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36= ")=0D + buf.write("\t\36\4\37\t\37\4 \t \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%")= =0D + buf.write("\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4,\t,\4-\t-\4.")= =0D + buf.write("\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64"= )=0D + buf.write("\t\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:")= =0D + buf.write("\4;\t;\4<\t<\4=3D\t=3D\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C= \t")=0D + buf.write("C\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I\tI\4J\tJ\4K\tK\4L\t"= )=0D + buf.write("L\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT\4U\t"= )=0D + buf.write("U\4V\tV\4W\tW\4X\tX\4Y\tY\4Z\tZ\4[\t[\4\\\t\\\4]\t]\4")= =0D + buf.write("^\t^\4_\t_\4`\t`\4a\ta\4b\tb\4c\tc\4d\td\4e\te\4f\tf\4"= )=0D + buf.write("g\tg\4h\th\4i\ti\4j\tj\4k\tk\4l\tl\4m\tm\4n\tn\4o\to\4"= )=0D + buf.write("p\tp\4q\tq\4r\tr\4s\ts\4t\tt\4u\tu\4v\tv\4w\tw\4x\tx\4"= )=0D + buf.write("y\ty\4z\tz\4{\t{\4|\t|\4}\t}\4~\t~\4\177\t\177\4\u0080"= )=0D + buf.write("\t\u0080\4\u0081\t\u0081\4\u0082\t\u0082\4\u0083\t\u008= 3")=0D + buf.write("\4\u0084\t\u0084\4\u0085\t\u0085\4\u0086\t\u0086\4\u008= 7")=0D + buf.write("\t\u0087\4\u0088\t\u0088\4\u0089\t\u0089\4\u008a\t\u008= a")=0D + buf.write("\4\u008b\t\u008b\4\u008c\t\u008c\4\u008d\t\u008d\4\u008= e")=0D + buf.write("\t\u008e\4\u008f\t\u008f\4\u0090\t\u0090\4\u0091\t\u009= 1")=0D + buf.write("\4\u0092\t\u0092\4\u0093\t\u0093\4\u0094\t\u0094\4\u009= 5")=0D + buf.write("\t\u0095\4\u0096\t\u0096\4\u0097\t\u0097\4\u0098\t\u009= 8")=0D + buf.write("\4\u0099\t\u0099\4\u009a\t\u009a\4\u009b\t\u009b\4\u009= c")=0D + buf.write("\t\u009c\4\u009d\t\u009d\4\u009e\t\u009e\4\u009f\t\u009= f")=0D + buf.write("\4\u00a0\t\u00a0\4\u00a1\t\u00a1\4\u00a2\t\u00a2\4\u00a= 3")=0D + buf.write("\t\u00a3\4\u00a4\t\u00a4\4\u00a5\t\u00a5\4\u00a6\t\u00a= 6")=0D + buf.write("\4\u00a7\t\u00a7\4\u00a8\t\u00a8\4\u00a9\t\u00a9\4\u00a= a")=0D + buf.write("\t\u00aa\4\u00ab\t\u00ab\4\u00ac\t\u00ac\4\u00ad\t\u00a= d")=0D + buf.write("\4\u00ae\t\u00ae\4\u00af\t\u00af\4\u00b0\t\u00b0\4\u00b= 1")=0D + buf.write("\t\u00b1\4\u00b2\t\u00b2\4\u00b3\t\u00b3\4\u00b4\t\u00b= 4")=0D + buf.write("\4\u00b5\t\u00b5\4\u00b6\t\u00b6\4\u00b7\t\u00b7\4\u00b= 8")=0D + buf.write("\t\u00b8\4\u00b9\t\u00b9\4\u00ba\t\u00ba\4\u00bb\t\u00b= b")=0D + buf.write("\4\u00bc\t\u00bc\4\u00bd\t\u00bd\4\u00be\t\u00be\4\u00b= f")=0D + buf.write("\t\u00bf\4\u00c0\t\u00c0\4\u00c1\t\u00c1\4\u00c2\t\u00c= 2")=0D + buf.write("\4\u00c3\t\u00c3\4\u00c4\t\u00c4\4\u00c5\t\u00c5\4\u00c= 6")=0D + buf.write("\t\u00c6\4\u00c7\t\u00c7\4\u00c8\t\u00c8\4\u00c9\t\u00c= 9")=0D + buf.write("\4\u00ca\t\u00ca\4\u00cb\t\u00cb\4\u00cc\t\u00cc\4\u00c= d")=0D + buf.write("\t\u00cd\4\u00ce\t\u00ce\4\u00cf\t\u00cf\4\u00d0\t\u00d= 0")=0D + buf.write("\4\u00d1\t\u00d1\4\u00d2\t\u00d2\4\u00d3\t\u00d3\4\u00d= 4")=0D + buf.write("\t\u00d4\4\u00d5\t\u00d5\4\u00d6\t\u00d6\4\u00d7\t\u00d= 7")=0D + buf.write("\4\u00d8\t\u00d8\4\u00d9\t\u00d9\4\u00da\t\u00da\4\u00d= b")=0D + buf.write("\t\u00db\4\u00dc\t\u00dc\4\u00dd\t\u00dd\4\u00de\t\u00d= e")=0D + buf.write("\4\u00df\t\u00df\4\u00e0\t\u00e0\4\u00e1\t\u00e1\4\u00e= 2")=0D + buf.write("\t\u00e2\4\u00e3\t\u00e3\4\u00e4\t\u00e4\4\u00e5\t\u00e= 5")=0D + buf.write("\4\u00e6\t\u00e6\4\u00e7\t\u00e7\4\u00e8\t\u00e8\4\u00e= 9")=0D + buf.write("\t\u00e9\4\u00ea\t\u00ea\4\u00eb\t\u00eb\4\u00ec\t\u00e= c")=0D + buf.write("\4\u00ed\t\u00ed\4\u00ee\t\u00ee\4\u00ef\t\u00ef\4\u00f= 0")=0D + buf.write("\t\u00f0\4\u00f1\t\u00f1\4\u00f2\t\u00f2\4\u00f3\t\u00f= 3")=0D + buf.write("\4\u00f4\t\u00f4\4\u00f5\t\u00f5\4\u00f6\t\u00f6\4\u00f= 7")=0D + buf.write("\t\u00f7\4\u00f8\t\u00f8\4\u00f9\t\u00f9\4\u00fa\t\u00f= a")=0D + buf.write("\4\u00fb\t\u00fb\4\u00fc\t\u00fc\4\u00fd\t\u00fd\4\u00f= e")=0D + buf.write("\t\u00fe\4\u00ff\t\u00ff\4\u0100\t\u0100\4\u0101\t\u010= 1")=0D + buf.write("\3\2\3\2\3\2\3\2\3\2\3\3\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3"= )=0D + buf.write("\4\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\6"= )=0D + buf.write("\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3"= )=0D + buf.write("\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\n\3\n"= )=0D + buf.write("\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\13\3\13\3\13\3")= =0D + buf.write("\f\3\f\3\f\3\r\3\r\3\16\3\16\3\17\3\17\3\20\3\20\3\20")= =0D + buf.write("\3\20\3\20\3\20\3\20\3\21\3\21\3\22\3\22\3\22\3\22\3\22= ")=0D + buf.write("\3\22\3\22\3\22\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23= ")=0D + buf.write("\3\23\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24= ")=0D + buf.write("\3\24\3\24\3\25\3\25\3\26\3\26\3\27\3\27\3\30\3\30\3\31= ")=0D + buf.write("\3\31\3\32\3\32\3\33\3\33\3\34\3\34\3\35\3\35\3\36\3\36= ")=0D + buf.write("\3\37\3\37\3 \3 \3!\3!\3!\3\"\3\"\3\"\3#\3#\3#\3$\3$\3"= )=0D + buf.write("%\3%\3%\3&\3&\3\'\3\'\3(\3(\3)\3)\3)\3)\3)\3)\3)\3)\3")= =0D + buf.write(")\3)\3)\3*\3*\3*\3*\3*\3*\3*\3*\3+\3+\3+\3+\3+\3+\3+\3"= )=0D + buf.write("+\3+\3+\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3-\3-\3-\3-\3"= )=0D + buf.write("-\3-\3.\3.\3.\3.\3.\3.\3.\3/\3/\3/\3/\3/\3/\3\60\3\60")= =0D + buf.write("\3\60\3\60\3\60\3\60\3\60\3\60\3\60\3\61\3\61\3\61\3\61= ")=0D + buf.write("\3\61\3\61\3\61\3\62\3\62\3\62\3\62\3\62\3\62\3\62\3\62= ")=0D + buf.write("\3\62\3\62\3\62\3\62\3\63\3\63\3\63\3\63\3\63\3\63\3\63= ")=0D + buf.write("\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\64\3\64\3\64\3\64= ")=0D + buf.write("\3\64\3\64\3\64\3\64\3\65\3\65\3\65\3\65\3\65\3\65\3\65= ")=0D + buf.write("\3\65\3\66\3\66\3\66\3\66\3\66\3\67\3\67\3\67\3\67\3\67= ")=0D + buf.write("\3\67\3\67\3\67\38\38\38\38\38\38\38\38\38\39\39\39\3")= =0D + buf.write("9\39\39\39\39\3:\3:\3:\3:\3:\3:\3:\3:\3:\3;\3;\3;\3;\3"= )=0D + buf.write(";\3;\3;\3;\3;\3;\3;\3;\3<\3<\3<\3<\3<\3=3D\3=3D\3=3D\3= =3D\3=3D\3")=0D + buf.write(">\3>\3>\3>\3>\3>\3>\3?\3?\3?\3?\3?\3?\3@\3@\3@\3@\3@\3"= )=0D + buf.write("A\3A\3A\3A\3A\3A\3A\3A\3B\3B\3B\3B\3B\3C\3C\3C\3C\3C\3"= )=0D + buf.write("C\3D\3D\3D\3D\3E\3E\3E\3E\3E\3F\3F\3F\3F\3F\3F\3F\3F\3"= )=0D + buf.write("G\3G\3G\3G\3G\3H\3H\3H\3H\3H\3H\3H\3I\3I\3I\3I\3I\3I\3"= )=0D + buf.write("I\3J\3J\3J\3J\3J\3J\3J\3J\3J\3J\3K\3K\3K\3K\3K\3K\3L\3"= )=0D + buf.write("L\3L\3L\3L\3L\3L\3L\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3N\3"= )=0D + buf.write("N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3N\3O\3O\3"= )=0D + buf.write("O\3O\3O\3O\3O\3P\3P\3P\3P\3P\3P\3Q\3Q\3Q\3Q\3Q\3Q\3Q\3"= )=0D + buf.write("Q\3R\3R\3R\3R\3R\3R\3R\3S\3S\3S\3S\3S\3S\3S\3T\3T\3T\3"= )=0D + buf.write("T\3T\3T\3T\3U\3U\3U\3U\3U\3U\3V\3V\3V\3V\3V\3V\3V\3V\3"= )=0D + buf.write("V\3V\3V\3V\3V\3V\3W\3W\3W\3W\3W\3W\3W\3W\3W\3W\3W\3W\3"= )=0D + buf.write("W\3X\3X\3X\3X\3X\3X\3X\3X\3X\3X\3X\3X\3X\3Y\3Y\3Y\3Y\3"= )=0D + buf.write("Y\3Y\3Y\3Y\3Y\3Y\3Y\3Y\3Z\3Z\3Z\3Z\3Z\3[\3[\3[\3[\3[\3"= )=0D + buf.write("[\3[\3[\3[\3\\\3\\\3\\\3\\\3\\\3\\\3\\\3\\\3\\\3\\\3\\"= )=0D + buf.write("\3\\\3]\3]\3]\3]\3]\3]\3]\3]\3^\3^\3^\3^\3^\3^\3^\3^\3"= )=0D + buf.write("^\3^\3^\3_\3_\3_\3_\3_\3_\3_\3_\3`\3`\3`\3`\3`\3`\3`\3"= )=0D + buf.write("`\3a\3a\3a\3a\3a\3b\3b\3b\3b\3b\3b\3b\3b\3c\3c\3c\3c\3"= )=0D + buf.write("c\3c\3c\3c\3c\3d\3d\3d\3d\3d\3d\3d\3d\3d\3d\3d\3d\3e\3"= )=0D + buf.write("e\3e\3e\3e\3e\3e\3f\3f\3f\3f\3f\3f\3f\3f\3f\3f\3g\3g\3"= )=0D + buf.write("g\3g\3g\3g\3g\3g\3h\3h\3h\3h\3h\3h\3h\3h\3i\3i\3i\3i\3"= )=0D + buf.write("i\3i\3i\3i\3i\3j\3j\3j\3j\3j\3j\3j\3j\3j\3j\3j\3k\3k\3"= )=0D + buf.write("k\3k\3k\3k\3k\3k\3k\3k\3l\3l\3l\3l\3l\3l\3l\3m\3m\3m\3"= )=0D + buf.write("m\3m\3n\3n\3n\3n\3n\3n\3n\3n\3n\3n\3n\3n\3o\3o\3o\3o\3"= )=0D + buf.write("o\3o\3o\3o\3o\3o\3o\3o\3o\3o\3o\3p\3p\3p\3p\3p\3p\3p\3"= )=0D + buf.write("p\3p\3p\3q\3q\3q\3q\3q\3q\3q\3q\3q\3q\3q\3r\3r\3r\3r\3"= )=0D + buf.write("r\3r\3s\3s\3s\3s\3t\3t\3t\3t\3t\3t\3t\3t\3u\3u\3u\3u\3"= )=0D + buf.write("u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3v\3v\3v\3v\3v\3v\3v\3v\3"= )=0D + buf.write("v\3v\3v\3v\3v\3v\3v\3v\3v\3w\3w\3w\3w\3w\3w\3w\3w\3w\3"= )=0D + buf.write("w\3w\3w\3w\3w\3w\3w\3w\3w\3w\3w\3w\3x\3x\3x\3x\3x\3x\3"= )=0D + buf.write("x\3x\3x\3x\3x\3x\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3z\3z\3"= )=0D + buf.write("z\3z\3z\3z\3z\3z\3z\3z\3z\3z\3z\3z\3z\3{\3{\3{\3{\3{\3"= )=0D + buf.write("{\3{\3{\3{\3{\3{\3{\3{\3{\3{\3{\3{\3{\3{\3|\3|\3|\3|\3"= )=0D + buf.write("|\3|\3|\3|\3|\3|\3|\3}\3}\3}\3}\3}\3}\3}\3}\3}\3}\3~\3"= )=0D + buf.write("~\3~\3~\3~\3~\3~\3~\3~\3~\3~\3~\3~\3\177\3\177\3\177\3"= )=0D + buf.write("\177\3\177\3\177\3\177\3\177\3\177\3\177\3\177\3\u0080"= )=0D + buf.write("\3\u0080\3\u0080\3\u0080\3\u0080\3\u0080\3\u0081\3\u008= 1")=0D + buf.write("\3\u0081\3\u0081\3\u0081\3\u0081\3\u0081\3\u0081\3\u008= 1")=0D + buf.write("\3\u0082\3\u0082\3\u0082\3\u0082\3\u0082\3\u0082\3\u008= 2")=0D + buf.write("\3\u0082\3\u0082\3\u0082\3\u0083\3\u0083\3\u0083\3\u008= 3")=0D + buf.write("\3\u0083\3\u0083\3\u0083\3\u0083\3\u0084\3\u0084\3\u008= 4")=0D + buf.write("\3\u0084\3\u0084\3\u0084\3\u0084\3\u0084\3\u0085\3\u008= 5")=0D + buf.write("\3\u0085\3\u0085\3\u0085\3\u0086\3\u0086\3\u0086\3\u008= 6")=0D + buf.write("\3\u0086\3\u0086\3\u0086\3\u0086\3\u0086\3\u0087\3\u008= 7")=0D + buf.write("\3\u0087\3\u0087\3\u0087\3\u0087\3\u0087\3\u0088\3\u008= 8")=0D + buf.write("\3\u0088\3\u0088\3\u0088\3\u0088\3\u0089\3\u0089\3\u008= 9")=0D + buf.write("\3\u0089\3\u0089\3\u008a\3\u008a\3\u008a\3\u008a\3\u008= a")=0D + buf.write("\3\u008a\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008= b")=0D + buf.write("\3\u008b\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008= d")=0D + buf.write("\3\u008d\3\u008d\3\u008d\3\u008d\3\u008e\3\u008e\3\u008= e")=0D + buf.write("\3\u008e\3\u008e\3\u008e\3\u008f\3\u008f\3\u008f\3\u008= f")=0D + buf.write("\3\u008f\3\u008f\3\u008f\3\u008f\3\u008f\3\u0090\3\u009= 0")=0D + buf.write("\3\u0090\3\u0090\3\u0090\3\u0090\3\u0090\3\u0090\3\u009= 0")=0D + buf.write("\3\u0090\3\u0090\3\u0091\3\u0091\3\u0091\3\u0091\3\u009= 1")=0D + buf.write("\3\u0091\3\u0092\3\u0092\3\u0092\3\u0092\3\u0092\3\u009= 2")=0D + buf.write("\3\u0092\3\u0093\3\u0093\3\u0093\3\u0093\3\u0093\3\u009= 4")=0D + buf.write("\3\u0094\3\u0094\3\u0094\3\u0094\3\u0094\3\u0094\3\u009= 4")=0D + buf.write("\3\u0095\3\u0095\3\u0095\3\u0095\3\u0095\3\u0095\3\u009= 6")=0D + buf.write("\3\u0096\3\u0096\3\u0096\3\u0096\3\u0097\3\u0097\3\u009= 7")=0D + buf.write("\3\u0097\3\u0097\3\u0097\3\u0098\3\u0098\3\u0098\3\u009= 8")=0D + buf.write("\3\u0098\3\u0098\3\u0098\3\u0098\3\u0098\3\u0098\3\u009= 8")=0D + buf.write("\3\u0098\3\u0099\3\u0099\3\u0099\3\u0099\3\u0099\3\u009= 9")=0D + buf.write("\3\u0099\3\u0099\3\u0099\3\u0099\3\u0099\3\u0099\3\u009= 9")=0D + buf.write("\3\u0099\3\u0099\3\u009a\3\u009a\3\u009a\3\u009a\3\u009= a")=0D + buf.write("\3\u009a\3\u009a\3\u009a\3\u009a\3\u009a\3\u009a\3\u009= a")=0D + buf.write("\3\u009a\3\u009b\3\u009b\3\u009b\3\u009b\3\u009b\3\u009= b")=0D + buf.write("\3\u009b\3\u009b\3\u009b\3\u009b\3\u009c\3\u009c\3\u009= c")=0D + buf.write("\3\u009c\3\u009c\3\u009c\3\u009c\3\u009c\3\u009c\3\u009= d")=0D + buf.write("\3\u009d\3\u009d\3\u009d\3\u009d\3\u009d\3\u009d\3\u009= d")=0D + buf.write("\3\u009d\3\u009d\3\u009d\3\u009d\3\u009e\3\u009e\3\u009= e")=0D + buf.write("\3\u009e\3\u009e\3\u009e\3\u009e\3\u009e\3\u009f\3\u009= f")=0D + buf.write("\3\u009f\3\u009f\3\u009f\3\u009f\3\u009f\3\u009f\3\u009= f")=0D + buf.write("\3\u009f\3\u009f\3\u009f\3\u009f\3\u009f\3\u009f\3\u009= f")=0D + buf.write("\3\u009f\3\u009f\3\u00a0\3\u00a0\3\u00a0\3\u00a0\3\u00a= 0")=0D + buf.write("\3\u00a0\3\u00a0\3\u00a1\3\u00a1\3\u00a1\3\u00a1\3\u00a= 1")=0D + buf.write("\3\u00a1\3\u00a1\3\u00a2\3\u00a2\3\u00a2\3\u00a2\3\u00a= 2")=0D + buf.write("\3\u00a2\3\u00a2\3\u00a2\3\u00a2\3\u00a2\3\u00a3\3\u00a= 3")=0D + buf.write("\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a= 4")=0D + buf.write("\3\u00a4\3\u00a4\3\u00a4\3\u00a4\3\u00a4\3\u00a4\3\u00a= 4")=0D + buf.write("\3\u00a4\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a= 5")=0D + buf.write("\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a= 5")=0D + buf.write("\3\u00a5\3\u00a5\3\u00a6\3\u00a6\3\u00a6\3\u00a6\3\u00a= 6")=0D + buf.write("\3\u00a6\3\u00a6\3\u00a7\3\u00a7\3\u00a7\3\u00a7\3\u00a= 7")=0D + buf.write("\3\u00a7\3\u00a7\3\u00a7\3\u00a7\3\u00a7\3\u00a8\3\u00a= 8")=0D + buf.write("\3\u00a8\3\u00a8\3\u00a8\3\u00a8\3\u00a8\3\u00a8\3\u00a= 8")=0D + buf.write("\3\u00a9\3\u00a9\3\u00a9\3\u00a9\3\u00a9\3\u00aa\3\u00a= a")=0D + buf.write("\3\u00aa\3\u00aa\3\u00aa\3\u00aa\3\u00ab\3\u00ab\3\u00a= b")=0D + buf.write("\3\u00ab\3\u00ab\3\u00ab\3\u00ab\3\u00ab\3\u00ab\3\u00a= b")=0D + buf.write("\3\u00ab\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00a= c")=0D + buf.write("\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00a= d")=0D + buf.write("\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00a= d")=0D + buf.write("\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00ae\3\u00a= e")=0D + buf.write("\3\u00ae\3\u00ae\3\u00ae\3\u00ae\3\u00ae\3\u00ae\3\u00a= e")=0D + buf.write("\3\u00ae\3\u00ae\3\u00ae\3\u00ae\3\u00ae\3\u00ae\3\u00a= f")=0D + buf.write("\3\u00af\3\u00af\3\u00af\3\u00af\3\u00af\3\u00af\3\u00a= f")=0D + buf.write("\3\u00af\3\u00af\3\u00af\3\u00af\3\u00af\3\u00b0\3\u00b= 0")=0D + buf.write("\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b= 0")=0D + buf.write("\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b= 1")=0D + buf.write("\3\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b= 1")=0D + buf.write("\3\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b2\3\u00b= 2")=0D + buf.write("\3\u00b2\3\u00b2\3\u00b2\3\u00b2\3\u00b2\3\u00b2\3\u00b= 2")=0D + buf.write("\3\u00b2\3\u00b2\3\u00b2\3\u00b2\3\u00b2\3\u00b2\3\u00b= 2")=0D + buf.write("\3\u00b2\3\u00b2\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b= 3")=0D + buf.write("\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b= 3")=0D + buf.write("\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b3\3\u00b= 3")=0D + buf.write("\3\u00b3\3\u00b4\3\u00b4\3\u00b4\3\u00b4\3\u00b4\3\u00b= 4")=0D + buf.write("\3\u00b4\3\u00b4\3\u00b4\3\u00b4\3\u00b4\3\u00b5\3\u00b= 5")=0D + buf.write("\3\u00b5\3\u00b5\3\u00b5\3\u00b5\3\u00b5\3\u00b5\3\u00b= 5")=0D + buf.write("\3\u00b5\3\u00b5\3\u00b6\3\u00b6\3\u00b6\3\u00b6\3\u00b= 6")=0D + buf.write("\3\u00b6\3\u00b6\3\u00b6\3\u00b6\3\u00b6\3\u00b6\3\u00b= 6")=0D + buf.write("\3\u00b6\3\u00b6\3\u00b7\3\u00b7\3\u00b7\3\u00b7\3\u00b= 7")=0D + buf.write("\3\u00b7\3\u00b7\3\u00b7\3\u00b7\3\u00b7\3\u00b7\3\u00b= 7")=0D + buf.write("\3\u00b7\3\u00b7\3\u00b7\3\u00b8\3\u00b8\3\u00b8\3\u00b= 8")=0D + buf.write("\3\u00b8\3\u00b8\3\u00b8\3\u00b8\3\u00b8\3\u00b8\3\u00b= 8")=0D + buf.write("\3\u00b8\3\u00b8\3\u00b9\3\u00b9\3\u00b9\3\u00b9\3\u00b= 9")=0D + buf.write("\3\u00b9\3\u00b9\3\u00b9\3\u00b9\3\u00b9\3\u00b9\3\u00b= 9")=0D + buf.write("\3\u00b9\3\u00b9\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00b= a")=0D + buf.write("\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00b= a")=0D + buf.write("\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00bb\3\u00bb\3\u00b= b")=0D + buf.write("\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00b= b")=0D + buf.write("\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00b= c")=0D + buf.write("\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00b= c")=0D + buf.write("\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00b= c")=0D + buf.write("\3\u00bd\3\u00bd\3\u00bd\3\u00bd\3\u00bd\3\u00bd\3\u00b= d")=0D + buf.write("\3\u00bd\3\u00bd\3\u00bd\3\u00bd\3\u00bd\3\u00bd\3\u00b= e")=0D + buf.write("\3\u00be\3\u00be\3\u00be\3\u00be\3\u00be\3\u00be\3\u00b= e")=0D + buf.write("\3\u00be\3\u00be\3\u00be\3\u00be\3\u00be\3\u00be\3\u00b= e")=0D + buf.write("\3\u00bf\3\u00bf\3\u00bf\3\u00bf\3\u00bf\3\u00bf\3\u00b= f")=0D + buf.write("\3\u00c0\3\u00c0\3\u00c0\3\u00c0\3\u00c0\3\u00c0\3\u00c= 0")=0D + buf.write("\3\u00c0\3\u00c1\3\u00c1\3\u00c1\3\u00c1\3\u00c1\3\u00c= 2")=0D + buf.write("\3\u00c2\3\u00c2\3\u00c2\3\u00c2\3\u00c3\3\u00c3\3\u00c= 3")=0D + buf.write("\3\u00c3\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c= 4")=0D + buf.write("\3\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c6\3\u00c= 6")=0D + buf.write("\3\u00c6\3\u00c6\3\u00c7\3\u00c7\3\u00c7\3\u00c7\3\u00c= 7")=0D + buf.write("\3\u00c7\3\u00c7\3\u00c7\3\u00c7\3\u00c8\3\u00c8\3\u00c= 8")=0D + buf.write("\3\u00c8\3\u00c9\3\u00c9\3\u00c9\3\u00c9\3\u00c9\3\u00c= 9")=0D + buf.write("\3\u00c9\3\u00c9\3\u00ca\3\u00ca\3\u00ca\3\u00ca\3\u00c= a")=0D + buf.write("\3\u00ca\3\u00ca\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00c= b")=0D + buf.write("\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00c= b")=0D + buf.write("\3\u00cc\3\u00cc\3\u00cc\3\u00cc\3\u00cc\3\u00cc\3\u00c= c")=0D + buf.write("\3\u00cc\3\u00cc\3\u00cc\3\u00cc\3\u00cc\3\u00cd\3\u00c= d")=0D + buf.write("\3\u00cd\3\u00cd\3\u00cd\3\u00cd\3\u00cd\3\u00cd\3\u00c= e")=0D + buf.write("\3\u00ce\3\u00ce\3\u00ce\3\u00ce\3\u00ce\3\u00ce\3\u00c= e")=0D + buf.write("\3\u00ce\3\u00ce\3\u00cf\3\u00cf\3\u00cf\3\u00cf\3\u00c= f")=0D + buf.write("\3\u00cf\3\u00cf\3\u00cf\3\u00cf\3\u00d0\3\u00d0\3\u00d= 0")=0D + buf.write("\3\u00d0\3\u00d0\3\u00d0\3\u00d0\3\u00d0\3\u00d0\3\u00d= 1")=0D + buf.write("\3\u00d1\3\u00d1\3\u00d1\3\u00d2\3\u00d2\3\u00d2\3\u00d= 2")=0D + buf.write("\3\u00d2\3\u00d3\3\u00d3\3\u00d3\3\u00d3\3\u00d3\3\u00d= 3")=0D + buf.write("\3\u00d4\3\u00d4\3\u00d4\3\u00d4\3\u00d5\3\u00d5\3\u00d= 5")=0D + buf.write("\3\u00d5\3\u00d5\3\u00d6\3\u00d6\3\u00d6\3\u00d6\3\u00d= 6")=0D + buf.write("\3\u00d7\3\u00d7\3\u00d7\3\u00d7\3\u00d7\3\u00d7\3\u00d= 7")=0D + buf.write("\3\u00d7\3\u00d7\3\u00d7\3\u00d8\3\u00d8\3\u00d8\3\u00d= 8")=0D + buf.write("\3\u00d8\3\u00d8\3\u00d8\3\u00d8\3\u00d9\3\u00d9\3\u00d= 9")=0D + buf.write("\3\u00d9\3\u00d9\3\u00d9\3\u00d9\3\u00da\3\u00da\3\u00d= a")=0D + buf.write("\3\u00da\3\u00db\3\u00db\3\u00db\3\u00dc\3\u00dc\3\u00d= c")=0D + buf.write("\3\u00dc\3\u00dd\3\u00dd\3\u00dd\3\u00dd\3\u00de\3\u00d= e")=0D + buf.write("\3\u00df\3\u00df\3\u00df\3\u00df\3\u00df\3\u00df\3\u00d= f")=0D + buf.write("\3\u00df\3\u00e0\3\u00e0\3\u00e0\3\u00e0\3\u00e0\3\u00e= 0")=0D + buf.write("\3\u00e0\3\u00e0\3\u00e0\3\u00e0\3\u00e1\3\u00e1\3\u00e= 1")=0D + buf.write("\3\u00e1\3\u00e1\3\u00e1\3\u00e1\3\u00e1\3\u00e1\3\u00e= 2")=0D + buf.write("\3\u00e2\3\u00e2\3\u00e2\3\u00e2\3\u00e2\3\u00e2\3\u00e= 2")=0D + buf.write("\3\u00e3\3\u00e3\3\u00e3\3\u00e3\3\u00e3\3\u00e3\3\u00e= 3")=0D + buf.write("\3\u00e3\3\u00e4\3\u00e4\3\u00e4\3\u00e4\3\u00e4\3\u00e= 4")=0D + buf.write("\3\u00e5\3\u00e5\3\u00e5\3\u00e5\3\u00e5\3\u00e5\3\u00e= 5")=0D + buf.write("\3\u00e6\3\u00e6\3\u00e6\3\u00e6\3\u00e6\3\u00e6\3\u00e= 6")=0D + buf.write("\3\u00e6\3\u00e6\3\u00e7\3\u00e7\3\u00e7\3\u00e7\3\u00e= 7")=0D + buf.write("\3\u00e7\3\u00e7\3\u00e7\3\u00e7\3\u00e7\3\u00e7\3\u00e= 7")=0D + buf.write("\3\u00e7\3\u00e7\3\u00e7\3\u00e8\3\u00e8\3\u00e8\3\u00e= 8")=0D + buf.write("\3\u00e8\3\u00e8\3\u00e8\3\u00e8\3\u00e8\3\u00e8\3\u00e= 8")=0D + buf.write("\3\u00e8\3\u00e8\3\u00e9\3\u00e9\3\u00e9\3\u00e9\3\u00e= a")=0D + buf.write("\3\u00ea\3\u00ea\3\u00ea\3\u00ea\3\u00ea\3\u00ea\3\u00e= a")=0D + buf.write("\3\u00ea\3\u00ea\3\u00ea\3\u00ea\3\u00eb\3\u00eb\3\u00e= b")=0D + buf.write("\3\u00eb\3\u00eb\3\u00eb\3\u00eb\3\u00eb\3\u00eb\3\u00e= b")=0D + buf.write("\3\u00eb\3\u00eb\3\u00eb\3\u00ec\3\u00ec\3\u00ec\3\u00e= c")=0D + buf.write("\3\u00ec\3\u00ec\3\u00ec\3\u00ec\3\u00ec\3\u00ec\3\u00e= c")=0D + buf.write("\3\u00ec\3\u00ec\3\u00ec\3\u00ec\3\u00ed\3\u00ed\3\u00e= d")=0D + buf.write("\3\u00ed\3\u00ed\3\u00ed\3\u00ed\3\u00ed\3\u00ed\3\u00e= d")=0D + buf.write("\3\u00ed\3\u00ed\3\u00ed\3\u00ed\3\u00ed\3\u00ed\3\u00e= d")=0D + buf.write("\3\u00ed\3\u00ed\3\u00ee\3\u00ee\3\u00ee\3\u00ee\3\u00e= e")=0D + buf.write("\3\u00ee\3\u00ee\3\u00ee\3\u00ee\3\u00ee\3\u00ee\3\u00e= e")=0D + buf.write("\3\u00ee\3\u00ee\3\u00ee\3\u00ef\3\u00ef\3\u00ef\3\u00e= f")=0D + buf.write("\3\u00ef\3\u00ef\3\u00ef\3\u00ef\3\u00ef\3\u00ef\3\u00e= f")=0D + buf.write("\3\u00ef\3\u00ef\3\u00ef\3\u00ef\3\u00f0\3\u00f0\3\u00f= 0")=0D + buf.write("\3\u00f0\3\u00f0\3\u00f0\3\u00f0\3\u00f0\3\u00f0\3\u00f= 0")=0D + buf.write("\3\u00f0\3\u00f0\3\u00f0\3\u00f0\3\u00f0\3\u00f1\3\u00f= 1")=0D + buf.write("\3\u00f1\3\u00f1\3\u00f1\3\u00f1\3\u00f1\3\u00f1\3\u00f= 1")=0D + buf.write("\3\u00f1\3\u00f1\3\u00f1\3\u00f1\3\u00f1\3\u00f1\3\u00f= 2")=0D + buf.write("\3\u00f2\3\u00f2\3\u00f2\3\u00f2\3\u00f2\3\u00f2\3\u00f= 2")=0D + buf.write("\3\u00f2\3\u00f2\3\u00f2\3\u00f2\3\u00f2\3\u00f2\3\u00f= 2")=0D + buf.write("\3\u00f2\3\u00f3\3\u00f3\3\u00f3\3\u00f3\3\u00f3\3\u00f= 3")=0D + buf.write("\3\u00f3\3\u00f3\3\u00f3\3\u00f3\3\u00f3\3\u00f3\3\u00f= 3")=0D + buf.write("\3\u00f3\3\u00f3\3\u00f3\3\u00f3\3\u00f4\3\u00f4\3\u00f= 4")=0D + buf.write("\3\u00f4\3\u00f4\3\u00f4\3\u00f4\3\u00f4\3\u00f4\3\u00f= 4")=0D + buf.write("\3\u00f4\3\u00f4\3\u00f4\3\u00f4\3\u00f4\3\u00f4\3\u00f= 4")=0D + buf.write("\3\u00f5\3\u00f5\3\u00f5\3\u00f5\3\u00f5\3\u00f5\3\u00f= 5")=0D + buf.write("\3\u00f5\3\u00f5\3\u00f5\3\u00f5\3\u00f5\3\u00f6\3\u00f= 6")=0D + buf.write("\3\u00f6\3\u00f6\3\u00f6\3\u00f6\3\u00f6\3\u00f6\3\u00f= 6")=0D + buf.write("\3\u00f6\3\u00f7\3\u00f7\3\u00f7\3\u00f7\3\u00f7\3\u00f= 7")=0D + buf.write("\3\u00f7\3\u00f7\3\u00f7\3\u00f7\3\u00f7\3\u00f7\3\u00f= 7")=0D + buf.write("\3\u00f7\3\u00f7\3\u00f8\3\u00f8\3\u00f8\3\u00f8\3\u00f= 8")=0D + buf.write("\3\u00f8\3\u00f8\3\u00f8\3\u00f8\3\u00f8\3\u00f8\3\u00f= 8")=0D + buf.write("\3\u00f8\3\u00f8\3\u00f8\3\u00f8\3\u00f9\3\u00f9\3\u00f= 9")=0D + buf.write("\3\u00f9\6\u00f9\u0a44\n\u00f9\r\u00f9\16\u00f9\u0a45")= =0D + buf.write("\3\u00f9\6\u00f9\u0a49\n\u00f9\r\u00f9\16\u00f9\u0a4a")= =0D + buf.write("\5\u00f9\u0a4d\n\u00f9\3\u00fa\3\u00fa\7\u00fa\u0a51\n"= )=0D + buf.write("\u00fa\f\u00fa\16\u00fa\u0a54\13\u00fa\3\u00fb\3\u00fb"= )=0D + buf.write("\5\u00fb\u0a58\n\u00fb\3\u00fb\3\u00fb\3\u00fb\3\u00fb"= )=0D + buf.write("\3\u00fb\3\u00fb\3\u00fb\3\u00fb\7\u00fb\u0a62\n\u00fb"= )=0D + buf.write("\f\u00fb\16\u00fb\u0a65\13\u00fb\3\u00fb\3\u00fb\3\u00f= c")=0D + buf.write("\3\u00fc\5\u00fc\u0a6b\n\u00fc\3\u00fc\3\u00fc\3\u00fc"= )=0D + buf.write("\3\u00fc\3\u00fc\3\u00fc\7\u00fc\u0a73\n\u00fc\f\u00fc"= )=0D + buf.write("\16\u00fc\u0a76\13\u00fc\3\u00fc\3\u00fc\3\u00fd\3\u00f= d")=0D + buf.write("\5\u00fd\u0a7c\n\u00fd\3\u00fd\3\u00fd\3\u00fd\3\u00fd"= )=0D + buf.write("\3\u00fd\3\u00fd\3\u00fd\3\u00fd\3\u00fd\7\u00fd\u0a87"= )=0D + buf.write("\n\u00fd\f\u00fd\16\u00fd\u0a8a\13\u00fd\3\u00fd\3\u00f= d")=0D + buf.write("\3\u00fe\6\u00fe\u0a8f\n\u00fe\r\u00fe\16\u00fe\u0a90")= =0D + buf.write("\3\u00fe\3\u00fe\3\u00ff\3\u00ff\5\u00ff\u0a97\n\u00ff"= )=0D + buf.write("\3\u00ff\5\u00ff\u0a9a\n\u00ff\3\u00ff\3\u00ff\3\u0100"= )=0D + buf.write("\3\u0100\3\u0100\3\u0100\7\u0100\u0aa2\n\u0100\f\u0100"= )=0D + buf.write("\16\u0100\u0aa5\13\u0100\3\u0100\3\u0100\3\u0101\3\u010= 1")=0D + buf.write("\3\u0101\3\u0101\3\u0101\3\u0101\3\u0101\3\u0101\7\u010= 1")=0D + buf.write("\u0ab1\n\u0101\f\u0101\16\u0101\u0ab4\13\u0101\3\u0101"= )=0D + buf.write("\3\u0101\2\2\u0102\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n")= =0D + buf.write("\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'"= )=0D + buf.write("\25)\26+\27-\30/\31\61\32\63\33\65\34\67\359\36;\37=3D = ")=0D + buf.write("?!A\"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]\60_\61a\62c\63e\64g")= =0D + buf.write("\65i\66k\67m8o9q:s;u{?}@\177A\u0081B\u0083C\u008= 5")=0D + buf.write("D\u0087E\u0089F\u008bG\u008dH\u008fI\u0091J\u0093K\u009= 5")=0D + buf.write("L\u0097M\u0099N\u009bO\u009dP\u009fQ\u00a1R\u00a3S\u00a= 5")=0D + buf.write("T\u00a7U\u00a9V\u00abW\u00adX\u00afY\u00b1Z\u00b3[\u00b= 5")=0D + buf.write("\\\u00b7]\u00b9^\u00bb_\u00bd`\u00bfa\u00c1b\u00c3c\u00= c5")=0D + buf.write("d\u00c7e\u00c9f\u00cbg\u00cdh\u00cfi\u00d1j\u00d3k\u00d= 5")=0D + buf.write("l\u00d7m\u00d9n\u00dbo\u00ddp\u00dfq\u00e1r\u00e3s\u00e= 5")=0D + buf.write("t\u00e7u\u00e9v\u00ebw\u00edx\u00efy\u00f1z\u00f3{\u00f= 5")=0D + buf.write("|\u00f7}\u00f9~\u00fb\177\u00fd\u0080\u00ff\u0081\u0101= ")=0D + buf.write("\u0082\u0103\u0083\u0105\u0084\u0107\u0085\u0109\u0086"= )=0D + buf.write("\u010b\u0087\u010d\u0088\u010f\u0089\u0111\u008a\u0113"= )=0D + buf.write("\u008b\u0115\u008c\u0117\u008d\u0119\u008e\u011b\u008f"= )=0D + buf.write("\u011d\u0090\u011f\u0091\u0121\u0092\u0123\u0093\u0125"= )=0D + buf.write("\u0094\u0127\u0095\u0129\u0096\u012b\u0097\u012d\u0098"= )=0D + buf.write("\u012f\u0099\u0131\u009a\u0133\u009b\u0135\u009c\u0137"= )=0D + buf.write("\u009d\u0139\u009e\u013b\u009f\u013d\u00a0\u013f\u00a1"= )=0D + buf.write("\u0141\u00a2\u0143\u00a3\u0145\u00a4\u0147\u00a5\u0149"= )=0D + buf.write("\u00a6\u014b\u00a7\u014d\u00a8\u014f\u00a9\u0151\u00aa"= )=0D + buf.write("\u0153\u00ab\u0155\u00ac\u0157\u00ad\u0159\u00ae\u015b"= )=0D + buf.write("\u00af\u015d\u00b0\u015f\u00b1\u0161\u00b2\u0163\u00b3"= )=0D + buf.write("\u0165\u00b4\u0167\u00b5\u0169\u00b6\u016b\u00b7\u016d"= )=0D + buf.write("\u00b8\u016f\u00b9\u0171\u00ba\u0173\u00bb\u0175\u00bc"= )=0D + buf.write("\u0177\u00bd\u0179\u00be\u017b\u00bf\u017d\u00c0\u017f"= )=0D + buf.write("\u00c1\u0181\u00c2\u0183\u00c3\u0185\u00c4\u0187\u00c5"= )=0D + buf.write("\u0189\u00c6\u018b\u00c7\u018d\u00c8\u018f\u00c9\u0191"= )=0D + buf.write("\u00ca\u0193\u00cb\u0195\u00cc\u0197\u00cd\u0199\u00ce"= )=0D + buf.write("\u019b\u00cf\u019d\u00d0\u019f\u00d1\u01a1\u00d2\u01a3"= )=0D + buf.write("\u00d3\u01a5\u00d4\u01a7\u00d5\u01a9\u00d6\u01ab\u00d7"= )=0D + buf.write("\u01ad\u00d8\u01af\u00d9\u01b1\u00da\u01b3\u00db\u01b5"= )=0D + buf.write("\u00dc\u01b7\u00dd\u01b9\u00de\u01bb\u00df\u01bd\u00e0"= )=0D + buf.write("\u01bf\u00e1\u01c1\u00e2\u01c3\u00e3\u01c5\u00e4\u01c7"= )=0D + buf.write("\u00e5\u01c9\u00e6\u01cb\u00e7\u01cd\u00e8\u01cf\u00e9"= )=0D + buf.write("\u01d1\u00ea\u01d3\u00eb\u01d5\u00ec\u01d7\u00ed\u01d9"= )=0D + buf.write("\u00ee\u01db\u00ef\u01dd\u00f0\u01df\u00f1\u01e1\u00f2"= )=0D + buf.write("\u01e3\u00f3\u01e5\u00f4\u01e7\u00f5\u01e9\u00f6\u01eb"= )=0D + buf.write("\u00f7\u01ed\u00f8\u01ef\u00f9\u01f1\u00fa\u01f3\u00fb"= )=0D + buf.write("\u01f5\u00fc\u01f7\u00fd\u01f9\u00fe\u01fb\u00ff\u01fd"= )=0D + buf.write("\u0100\u01ff\u0101\u0201\u0102\3\2\t\5\2\62;CHch\3\2\62= ")=0D + buf.write(";\5\2C\\aac|\6\2\62;C\\aac|\5\2\f\f\17\17%%\4\2\13\13")= =0D + buf.write("\"\"\4\2\f\f\17\17\2\u0ac5\2\3\3\2\2\2\2\5\3\2\2\2\2\7"= )=0D + buf.write("\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3\2"= )=0D + buf.write("\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2"= )=0D + buf.write("\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2"= )=0D + buf.write("\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2"= )=0D + buf.write("\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2\2\61\3\2\2\2\2\63")= =0D + buf.write("\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3\2\2"= )=0D + buf.write("\2\2=3D\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2C\3\2\2\2\2E\3\2= ")=0D + buf.write("\2\2\2G\3\2\2\2\2I\3\2\2\2\2K\3\2\2\2\2M\3\2\2\2\2O\3")= =0D + buf.write("\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U\3\2\2\2\2W\3\2\2\2\2Y")= =0D + buf.write("\3\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2\2\2\2a\3\2\2\2\2"= )=0D + buf.write("c\3\2\2\2\2e\3\2\2\2\2g\3\2\2\2\2i\3\2\2\2\2k\3\2\2\2")= =0D + buf.write("\2m\3\2\2\2\2o\3\2\2\2\2q\3\2\2\2\2s\3\2\2\2\2u\3\2\2")= =0D + buf.write("\2\2w\3\2\2\2\2y\3\2\2\2\2{\3\2\2\2\2}\3\2\2\2\2\177\3"= )=0D + buf.write("\2\2\2\2\u0081\3\2\2\2\2\u0083\3\2\2\2\2\u0085\3\2\2\2"= )=0D + buf.write("\2\u0087\3\2\2\2\2\u0089\3\2\2\2\2\u008b\3\2\2\2\2\u008= d")=0D + buf.write("\3\2\2\2\2\u008f\3\2\2\2\2\u0091\3\2\2\2\2\u0093\3\2\2"= )=0D + buf.write("\2\2\u0095\3\2\2\2\2\u0097\3\2\2\2\2\u0099\3\2\2\2\2\u0= 09b")=0D + buf.write("\3\2\2\2\2\u009d\3\2\2\2\2\u009f\3\2\2\2\2\u00a1\3\2\2"= )=0D + buf.write("\2\2\u00a3\3\2\2\2\2\u00a5\3\2\2\2\2\u00a7\3\2\2\2\2\u0= 0a9")=0D + buf.write("\3\2\2\2\2\u00ab\3\2\2\2\2\u00ad\3\2\2\2\2\u00af\3\2\2"= )=0D + buf.write("\2\2\u00b1\3\2\2\2\2\u00b3\3\2\2\2\2\u00b5\3\2\2\2\2\u0= 0b7")=0D + buf.write("\3\2\2\2\2\u00b9\3\2\2\2\2\u00bb\3\2\2\2\2\u00bd\3\2\2"= )=0D + buf.write("\2\2\u00bf\3\2\2\2\2\u00c1\3\2\2\2\2\u00c3\3\2\2\2\2\u0= 0c5")=0D + buf.write("\3\2\2\2\2\u00c7\3\2\2\2\2\u00c9\3\2\2\2\2\u00cb\3\2\2"= )=0D + buf.write("\2\2\u00cd\3\2\2\2\2\u00cf\3\2\2\2\2\u00d1\3\2\2\2\2\u0= 0d3")=0D + buf.write("\3\2\2\2\2\u00d5\3\2\2\2\2\u00d7\3\2\2\2\2\u00d9\3\2\2"= )=0D + buf.write("\2\2\u00db\3\2\2\2\2\u00dd\3\2\2\2\2\u00df\3\2\2\2\2\u0= 0e1")=0D + buf.write("\3\2\2\2\2\u00e3\3\2\2\2\2\u00e5\3\2\2\2\2\u00e7\3\2\2"= )=0D + buf.write("\2\2\u00e9\3\2\2\2\2\u00eb\3\2\2\2\2\u00ed\3\2\2\2\2\u0= 0ef")=0D + buf.write("\3\2\2\2\2\u00f1\3\2\2\2\2\u00f3\3\2\2\2\2\u00f5\3\2\2"= )=0D + buf.write("\2\2\u00f7\3\2\2\2\2\u00f9\3\2\2\2\2\u00fb\3\2\2\2\2\u0= 0fd")=0D + buf.write("\3\2\2\2\2\u00ff\3\2\2\2\2\u0101\3\2\2\2\2\u0103\3\2\2"= )=0D + buf.write("\2\2\u0105\3\2\2\2\2\u0107\3\2\2\2\2\u0109\3\2\2\2\2\u0= 10b")=0D + buf.write("\3\2\2\2\2\u010d\3\2\2\2\2\u010f\3\2\2\2\2\u0111\3\2\2"= )=0D + buf.write("\2\2\u0113\3\2\2\2\2\u0115\3\2\2\2\2\u0117\3\2\2\2\2\u0= 119")=0D + buf.write("\3\2\2\2\2\u011b\3\2\2\2\2\u011d\3\2\2\2\2\u011f\3\2\2"= )=0D + buf.write("\2\2\u0121\3\2\2\2\2\u0123\3\2\2\2\2\u0125\3\2\2\2\2\u0= 127")=0D + buf.write("\3\2\2\2\2\u0129\3\2\2\2\2\u012b\3\2\2\2\2\u012d\3\2\2"= )=0D + buf.write("\2\2\u012f\3\2\2\2\2\u0131\3\2\2\2\2\u0133\3\2\2\2\2\u0= 135")=0D + buf.write("\3\2\2\2\2\u0137\3\2\2\2\2\u0139\3\2\2\2\2\u013b\3\2\2"= )=0D + buf.write("\2\2\u013d\3\2\2\2\2\u013f\3\2\2\2\2\u0141\3\2\2\2\2\u0= 143")=0D + buf.write("\3\2\2\2\2\u0145\3\2\2\2\2\u0147\3\2\2\2\2\u0149\3\2\2"= )=0D + buf.write("\2\2\u014b\3\2\2\2\2\u014d\3\2\2\2\2\u014f\3\2\2\2\2\u0= 151")=0D + buf.write("\3\2\2\2\2\u0153\3\2\2\2\2\u0155\3\2\2\2\2\u0157\3\2\2"= )=0D + buf.write("\2\2\u0159\3\2\2\2\2\u015b\3\2\2\2\2\u015d\3\2\2\2\2\u0= 15f")=0D + buf.write("\3\2\2\2\2\u0161\3\2\2\2\2\u0163\3\2\2\2\2\u0165\3\2\2"= )=0D + buf.write("\2\2\u0167\3\2\2\2\2\u0169\3\2\2\2\2\u016b\3\2\2\2\2\u0= 16d")=0D + buf.write("\3\2\2\2\2\u016f\3\2\2\2\2\u0171\3\2\2\2\2\u0173\3\2\2"= )=0D + buf.write("\2\2\u0175\3\2\2\2\2\u0177\3\2\2\2\2\u0179\3\2\2\2\2\u0= 17b")=0D + buf.write("\3\2\2\2\2\u017d\3\2\2\2\2\u017f\3\2\2\2\2\u0181\3\2\2"= )=0D + buf.write("\2\2\u0183\3\2\2\2\2\u0185\3\2\2\2\2\u0187\3\2\2\2\2\u0= 189")=0D + buf.write("\3\2\2\2\2\u018b\3\2\2\2\2\u018d\3\2\2\2\2\u018f\3\2\2"= )=0D + buf.write("\2\2\u0191\3\2\2\2\2\u0193\3\2\2\2\2\u0195\3\2\2\2\2\u0= 197")=0D + buf.write("\3\2\2\2\2\u0199\3\2\2\2\2\u019b\3\2\2\2\2\u019d\3\2\2"= )=0D + buf.write("\2\2\u019f\3\2\2\2\2\u01a1\3\2\2\2\2\u01a3\3\2\2\2\2\u0= 1a5")=0D + buf.write("\3\2\2\2\2\u01a7\3\2\2\2\2\u01a9\3\2\2\2\2\u01ab\3\2\2"= )=0D + buf.write("\2\2\u01ad\3\2\2\2\2\u01af\3\2\2\2\2\u01b1\3\2\2\2\2\u0= 1b3")=0D + buf.write("\3\2\2\2\2\u01b5\3\2\2\2\2\u01b7\3\2\2\2\2\u01b9\3\2\2"= )=0D + buf.write("\2\2\u01bb\3\2\2\2\2\u01bd\3\2\2\2\2\u01bf\3\2\2\2\2\u0= 1c1")=0D + buf.write("\3\2\2\2\2\u01c3\3\2\2\2\2\u01c5\3\2\2\2\2\u01c7\3\2\2"= )=0D + buf.write("\2\2\u01c9\3\2\2\2\2\u01cb\3\2\2\2\2\u01cd\3\2\2\2\2\u0= 1cf")=0D + buf.write("\3\2\2\2\2\u01d1\3\2\2\2\2\u01d3\3\2\2\2\2\u01d5\3\2\2"= )=0D + buf.write("\2\2\u01d7\3\2\2\2\2\u01d9\3\2\2\2\2\u01db\3\2\2\2\2\u0= 1dd")=0D + buf.write("\3\2\2\2\2\u01df\3\2\2\2\2\u01e1\3\2\2\2\2\u01e3\3\2\2"= )=0D + buf.write("\2\2\u01e5\3\2\2\2\2\u01e7\3\2\2\2\2\u01e9\3\2\2\2\2\u0= 1eb")=0D + buf.write("\3\2\2\2\2\u01ed\3\2\2\2\2\u01ef\3\2\2\2\2\u01f1\3\2\2"= )=0D + buf.write("\2\2\u01f3\3\2\2\2\2\u01f5\3\2\2\2\2\u01f7\3\2\2\2\2\u0= 1f9")=0D + buf.write("\3\2\2\2\2\u01fb\3\2\2\2\2\u01fd\3\2\2\2\2\u01ff\3\2\2"= )=0D + buf.write("\2\2\u0201\3\2\2\2\3\u0203\3\2\2\2\5\u0208\3\2\2\2\7\u0= 20d")=0D + buf.write("\3\2\2\2\t\u0211\3\2\2\2\13\u0219\3\2\2\2\r\u021e\3\2")= =0D + buf.write("\2\2\17\u0220\3\2\2\2\21\u022c\3\2\2\2\23\u0237\3\2\2")= =0D + buf.write("\2\25\u0242\3\2\2\2\27\u0245\3\2\2\2\31\u0248\3\2\2\2")= =0D + buf.write("\33\u024a\3\2\2\2\35\u024c\3\2\2\2\37\u024e\3\2\2\2!\u0= 255")=0D + buf.write("\3\2\2\2#\u0257\3\2\2\2%\u025f\3\2\2\2\'\u0268\3\2\2\2"= )=0D + buf.write(")\u0274\3\2\2\2+\u0276\3\2\2\2-\u0278\3\2\2\2/\u027a\3"= )=0D + buf.write("\2\2\2\61\u027c\3\2\2\2\63\u027e\3\2\2\2\65\u0280\3\2")= =0D + buf.write("\2\2\67\u0282\3\2\2\29\u0284\3\2\2\2;\u0286\3\2\2\2=3D\= u0288")=0D + buf.write("\3\2\2\2?\u028a\3\2\2\2A\u028c\3\2\2\2C\u028f\3\2\2\2")= =0D + buf.write("E\u0292\3\2\2\2G\u0295\3\2\2\2I\u0297\3\2\2\2K\u029a\3"= )=0D + buf.write("\2\2\2M\u029c\3\2\2\2O\u029e\3\2\2\2Q\u02a0\3\2\2\2S\u0= 2ab")=0D + buf.write("\3\2\2\2U\u02b3\3\2\2\2W\u02bd\3\2\2\2Y\u02c8\3\2\2\2")= =0D + buf.write("[\u02ce\3\2\2\2]\u02d5\3\2\2\2_\u02db\3\2\2\2a\u02e4\3"= )=0D + buf.write("\2\2\2c\u02eb\3\2\2\2e\u02f7\3\2\2\2g\u0305\3\2\2\2i\u0= 30d")=0D + buf.write("\3\2\2\2k\u0315\3\2\2\2m\u031a\3\2\2\2o\u0322\3\2\2\2")= =0D + buf.write("q\u032b\3\2\2\2s\u0333\3\2\2\2u\u033c\3\2\2\2w\u0348\3"= )=0D + buf.write("\2\2\2y\u034d\3\2\2\2{\u0352\3\2\2\2}\u0359\3\2\2\2\177= ")=0D + buf.write("\u035f\3\2\2\2\u0081\u0364\3\2\2\2\u0083\u036c\3\2\2\2"= )=0D + buf.write("\u0085\u0371\3\2\2\2\u0087\u0377\3\2\2\2\u0089\u037b\3"= )=0D + buf.write("\2\2\2\u008b\u0380\3\2\2\2\u008d\u0388\3\2\2\2\u008f\u0= 38d")=0D + buf.write("\3\2\2\2\u0091\u0394\3\2\2\2\u0093\u039b\3\2\2\2\u0095"= )=0D + buf.write("\u03a5\3\2\2\2\u0097\u03ab\3\2\2\2\u0099\u03b3\3\2\2\2"= )=0D + buf.write("\u009b\u03bd\3\2\2\2\u009d\u03ce\3\2\2\2\u009f\u03d5\3"= )=0D + buf.write("\2\2\2\u00a1\u03db\3\2\2\2\u00a3\u03e3\3\2\2\2\u00a5\u0= 3ea")=0D + buf.write("\3\2\2\2\u00a7\u03f1\3\2\2\2\u00a9\u03f8\3\2\2\2\u00ab"= )=0D + buf.write("\u03fe\3\2\2\2\u00ad\u040c\3\2\2\2\u00af\u0419\3\2\2\2"= )=0D + buf.write("\u00b1\u0426\3\2\2\2\u00b3\u0432\3\2\2\2\u00b5\u0437\3"= )=0D + buf.write("\2\2\2\u00b7\u0440\3\2\2\2\u00b9\u044c\3\2\2\2\u00bb\u0= 454")=0D + buf.write("\3\2\2\2\u00bd\u045f\3\2\2\2\u00bf\u0467\3\2\2\2\u00c1"= )=0D + buf.write("\u046f\3\2\2\2\u00c3\u0474\3\2\2\2\u00c5\u047c\3\2\2\2"= )=0D + buf.write("\u00c7\u0485\3\2\2\2\u00c9\u0491\3\2\2\2\u00cb\u0498\3"= )=0D + buf.write("\2\2\2\u00cd\u04a2\3\2\2\2\u00cf\u04aa\3\2\2\2\u00d1\u0= 4b2")=0D + buf.write("\3\2\2\2\u00d3\u04bb\3\2\2\2\u00d5\u04c6\3\2\2\2\u00d7"= )=0D + buf.write("\u04d0\3\2\2\2\u00d9\u04d7\3\2\2\2\u00db\u04dc\3\2\2\2"= )=0D + buf.write("\u00dd\u04e8\3\2\2\2\u00df\u04f7\3\2\2\2\u00e1\u0501\3"= )=0D + buf.write("\2\2\2\u00e3\u050c\3\2\2\2\u00e5\u0512\3\2\2\2\u00e7\u0= 516")=0D + buf.write("\3\2\2\2\u00e9\u051e\3\2\2\2\u00eb\u052c\3\2\2\2\u00ed"= )=0D + buf.write("\u053d\3\2\2\2\u00ef\u0552\3\2\2\2\u00f1\u055e\3\2\2\2"= )=0D + buf.write("\u00f3\u0568\3\2\2\2\u00f5\u0577\3\2\2\2\u00f7\u058a\3"= )=0D + buf.write("\2\2\2\u00f9\u0595\3\2\2\2\u00fb\u059f\3\2\2\2\u00fd\u0= 5ac")=0D + buf.write("\3\2\2\2\u00ff\u05b7\3\2\2\2\u0101\u05bd\3\2\2\2\u0103"= )=0D + buf.write("\u05c6\3\2\2\2\u0105\u05d0\3\2\2\2\u0107\u05d8\3\2\2\2"= )=0D + buf.write("\u0109\u05e0\3\2\2\2\u010b\u05e5\3\2\2\2\u010d\u05ee\3"= )=0D + buf.write("\2\2\2\u010f\u05f5\3\2\2\2\u0111\u05fb\3\2\2\2\u0113\u0= 600")=0D + buf.write("\3\2\2\2\u0115\u0606\3\2\2\2\u0117\u060d\3\2\2\2\u0119"= )=0D + buf.write("\u0612\3\2\2\2\u011b\u0617\3\2\2\2\u011d\u061d\3\2\2\2"= )=0D + buf.write("\u011f\u0626\3\2\2\2\u0121\u0631\3\2\2\2\u0123\u0637\3"= )=0D + buf.write("\2\2\2\u0125\u063e\3\2\2\2\u0127\u0643\3\2\2\2\u0129\u0= 64b")=0D + buf.write("\3\2\2\2\u012b\u0651\3\2\2\2\u012d\u0656\3\2\2\2\u012f"= )=0D + buf.write("\u065c\3\2\2\2\u0131\u0668\3\2\2\2\u0133\u0677\3\2\2\2"= )=0D + buf.write("\u0135\u0684\3\2\2\2\u0137\u068e\3\2\2\2\u0139\u0697\3"= )=0D + buf.write("\2\2\2\u013b\u06a3\3\2\2\2\u013d\u06ab\3\2\2\2\u013f\u0= 6bd")=0D + buf.write("\3\2\2\2\u0141\u06c4\3\2\2\2\u0143\u06cb\3\2\2\2\u0145"= )=0D + buf.write("\u06d5\3\2\2\2\u0147\u06dd\3\2\2\2\u0149\u06e6\3\2\2\2"= )=0D + buf.write("\u014b\u06f5\3\2\2\2\u014d\u06fc\3\2\2\2\u014f\u0706\3"= )=0D + buf.write("\2\2\2\u0151\u070f\3\2\2\2\u0153\u0714\3\2\2\2\u0155\u0= 71a")=0D + buf.write("\3\2\2\2\u0157\u0725\3\2\2\2\u0159\u0731\3\2\2\2\u015b"= )=0D + buf.write("\u073e\3\2\2\2\u015d\u074d\3\2\2\2\u015f\u075a\3\2\2\2"= )=0D + buf.write("\u0161\u0769\3\2\2\2\u0163\u0776\3\2\2\2\u0165\u0788\3"= )=0D + buf.write("\2\2\2\u0167\u079c\3\2\2\2\u0169\u07a7\3\2\2\2\u016b\u0= 7b2")=0D + buf.write("\3\2\2\2\u016d\u07c0\3\2\2\2\u016f\u07cf\3\2\2\2\u0171"= )=0D + buf.write("\u07dc\3\2\2\2\u0173\u07ea\3\2\2\2\u0175\u07fa\3\2\2\2"= )=0D + buf.write("\u0177\u080a\3\2\2\2\u0179\u0819\3\2\2\2\u017b\u0826\3"= )=0D + buf.write("\2\2\2\u017d\u0835\3\2\2\2\u017f\u083c\3\2\2\2\u0181\u0= 844")=0D + buf.write("\3\2\2\2\u0183\u0849\3\2\2\2\u0185\u084e\3\2\2\2\u0187"= )=0D + buf.write("\u0852\3\2\2\2\u0189\u0858\3\2\2\2\u018b\u085d\3\2\2\2"= )=0D + buf.write("\u018d\u0861\3\2\2\2\u018f\u086a\3\2\2\2\u0191\u086e\3"= )=0D + buf.write("\2\2\2\u0193\u0876\3\2\2\2\u0195\u087d\3\2\2\2\u0197\u0= 889")=0D + buf.write("\3\2\2\2\u0199\u0895\3\2\2\2\u019b\u089d\3\2\2\2\u019d"= )=0D + buf.write("\u08a7\3\2\2\2\u019f\u08b0\3\2\2\2\u01a1\u08b9\3\2\2\2"= )=0D + buf.write("\u01a3\u08bd\3\2\2\2\u01a5\u08c2\3\2\2\2\u01a7\u08c8\3"= )=0D + buf.write("\2\2\2\u01a9\u08cc\3\2\2\2\u01ab\u08d1\3\2\2\2\u01ad\u0= 8d6")=0D + buf.write("\3\2\2\2\u01af\u08e0\3\2\2\2\u01b1\u08e8\3\2\2\2\u01b3"= )=0D + buf.write("\u08ef\3\2\2\2\u01b5\u08f3\3\2\2\2\u01b7\u08f6\3\2\2\2"= )=0D + buf.write("\u01b9\u08fa\3\2\2\2\u01bb\u08fe\3\2\2\2\u01bd\u0900\3"= )=0D + buf.write("\2\2\2\u01bf\u0908\3\2\2\2\u01c1\u0912\3\2\2\2\u01c3\u0= 91b")=0D + buf.write("\3\2\2\2\u01c5\u0923\3\2\2\2\u01c7\u092b\3\2\2\2\u01c9"= )=0D + buf.write("\u0931\3\2\2\2\u01cb\u0938\3\2\2\2\u01cd\u0941\3\2\2\2"= )=0D + buf.write("\u01cf\u0950\3\2\2\2\u01d1\u095d\3\2\2\2\u01d3\u0961\3"= )=0D + buf.write("\2\2\2\u01d5\u096d\3\2\2\2\u01d7\u097a\3\2\2\2\u01d9\u0= 989")=0D + buf.write("\3\2\2\2\u01db\u099c\3\2\2\2\u01dd\u09ab\3\2\2\2\u01df"= )=0D + buf.write("\u09ba\3\2\2\2\u01e1\u09c9\3\2\2\2\u01e3\u09d8\3\2\2\2"= )=0D + buf.write("\u01e5\u09e8\3\2\2\2\u01e7\u09f9\3\2\2\2\u01e9\u0a0a\3"= )=0D + buf.write("\2\2\2\u01eb\u0a16\3\2\2\2\u01ed\u0a20\3\2\2\2\u01ef\u0= a2f")=0D + buf.write("\3\2\2\2\u01f1\u0a4c\3\2\2\2\u01f3\u0a4e\3\2\2\2\u01f5"= )=0D + buf.write("\u0a55\3\2\2\2\u01f7\u0a68\3\2\2\2\u01f9\u0a79\3\2\2\2"= )=0D + buf.write("\u01fb\u0a8e\3\2\2\2\u01fd\u0a99\3\2\2\2\u01ff\u0a9d\3"= )=0D + buf.write("\2\2\2\u0201\u0aa8\3\2\2\2\u0203\u0204\7u\2\2\u0204\u02= 05")=0D + buf.write("\7j\2\2\u0205\u0206\7q\2\2\u0206\u0207\7y\2\2\u0207\4")= =0D + buf.write("\3\2\2\2\u0208\u0209\7r\2\2\u0209\u020a\7w\2\2\u020a\u0= 20b")=0D + buf.write("\7u\2\2\u020b\u020c\7j\2\2\u020c\6\3\2\2\2\u020d\u020e"= )=0D + buf.write("\7r\2\2\u020e\u020f\7q\2\2\u020f\u0210\7r\2\2\u0210\b")= =0D + buf.write("\3\2\2\2\u0211\u0212\7%\2\2\u0212\u0213\7r\2\2\u0213\u0= 214")=0D + buf.write("\7t\2\2\u0214\u0215\7c\2\2\u0215\u0216\7i\2\2\u0216\u02= 17")=0D + buf.write("\7o\2\2\u0217\u0218\7c\2\2\u0218\n\3\2\2\2\u0219\u021a"= )=0D + buf.write("\7r\2\2\u021a\u021b\7c\2\2\u021b\u021c\7e\2\2\u021c\u02= 1d")=0D + buf.write("\7m\2\2\u021d\f\3\2\2\2\u021e\u021f\7?\2\2\u021f\16\3")= =0D + buf.write("\2\2\2\u0220\u0221\7K\2\2\u0221\u0222\7O\2\2\u0222\u022= 3")=0D + buf.write("\7C\2\2\u0223\u0224\7I\2\2\u0224\u0225\7G\2\2\u0225\u02= 26")=0D + buf.write("\7a\2\2\u0226\u0227\7V\2\2\u0227\u0228\7Q\2\2\u0228\u02= 29")=0D + buf.write("\7M\2\2\u0229\u022a\7G\2\2\u022a\u022b\7P\2\2\u022b\20"= )=0D + buf.write("\3\2\2\2\u022c\u022d\7J\2\2\u022d\u022e\7Q\2\2\u022e\u0= 22f")=0D + buf.write("\7T\2\2\u022f\u0230\7K\2\2\u0230\u0231\7\\\2\2\u0231\u0= 232")=0D + buf.write("\7Q\2\2\u0232\u0233\7P\2\2\u0233\u0234\7V\2\2\u0234\u02= 35")=0D + buf.write("\7C\2\2\u0235\u0236\7N\2\2\u0236\22\3\2\2\2\u0237\u0238= ")=0D + buf.write("\7O\2\2\u0238\u0239\7W\2\2\u0239\u023a\7N\2\2\u023a\u02= 3b")=0D + buf.write("\7V\2\2\u023b\u023c\7K\2\2\u023c\u023d\7a\2\2\u023d\u02= 3e")=0D + buf.write("\7N\2\2\u023e\u023f\7K\2\2\u023f\u0240\7P\2\2\u0240\u02= 41")=0D + buf.write("\7G\2\2\u0241\24\3\2\2\2\u0242\u0243\7>\2\2\u0243\u0244= ")=0D + buf.write("\7>\2\2\u0244\26\3\2\2\2\u0245\u0246\7@\2\2\u0246\u0247= ")=0D + buf.write("\7@\2\2\u0247\30\3\2\2\2\u0248\u0249\7-\2\2\u0249\32\3"= )=0D + buf.write("\2\2\2\u024a\u024b\7,\2\2\u024b\34\3\2\2\2\u024c\u024d"= )=0D + buf.write("\7\'\2\2\u024d\36\3\2\2\2\u024e\u024f\7h\2\2\u024f\u025= 0")=0D + buf.write("\7q\2\2\u0250\u0251\7t\2\2\u0251\u0252\7o\2\2\u0252\u02= 53")=0D + buf.write("\7c\2\2\u0253\u0254\7v\2\2\u0254 \3\2\2\2\u0255\u0256")= =0D + buf.write("\7A\2\2\u0256\"\3\2\2\2\u0257\u0258\7%\2\2\u0258\u0259"= )=0D + buf.write("\7f\2\2\u0259\u025a\7g\2\2\u025a\u025b\7h\2\2\u025b\u02= 5c")=0D + buf.write("\7k\2\2\u025c\u025d\7p\2\2\u025d\u025e\7g\2\2\u025e$\3"= )=0D + buf.write("\2\2\2\u025f\u0260\7%\2\2\u0260\u0261\7k\2\2\u0261\u026= 2")=0D + buf.write("\7p\2\2\u0262\u0263\7e\2\2\u0263\u0264\7n\2\2\u0264\u02= 65")=0D + buf.write("\7w\2\2\u0265\u0266\7f\2\2\u0266\u0267\7g\2\2\u0267&\3"= )=0D + buf.write("\2\2\2\u0268\u0269\7h\2\2\u0269\u026a\7q\2\2\u026a\u026= b")=0D + buf.write("\7t\2\2\u026b\u026c\7o\2\2\u026c\u026d\7r\2\2\u026d\u02= 6e")=0D + buf.write("\7m\2\2\u026e\u026f\7i\2\2\u026f\u0270\7v\2\2\u0270\u02= 71")=0D + buf.write("\7{\2\2\u0271\u0272\7r\2\2\u0272\u0273\7g\2\2\u0273(\3"= )=0D + buf.write("\2\2\2\u0274\u0275\7}\2\2\u0275*\3\2\2\2\u0276\u0277\7"= )=0D + buf.write("\177\2\2\u0277,\3\2\2\2\u0278\u0279\7*\2\2\u0279.\3\2")= =0D + buf.write("\2\2\u027a\u027b\7+\2\2\u027b\60\3\2\2\2\u027c\u027d\7"= )=0D + buf.write("]\2\2\u027d\62\3\2\2\2\u027e\u027f\7_\2\2\u027f\64\3\2"= )=0D + buf.write("\2\2\u0280\u0281\7\60\2\2\u0281\66\3\2\2\2\u0282\u0283"= )=0D + buf.write("\7/\2\2\u02838\3\2\2\2\u0284\u0285\7<\2\2\u0285:\3\2\2"= )=0D + buf.write("\2\u0286\u0287\7\61\2\2\u0287<\3\2\2\2\u0288\u0289\7=3D= ")=0D + buf.write("\2\2\u0289>\3\2\2\2\u028a\u028b\7.\2\2\u028b@\3\2\2\2")= =0D + buf.write("\u028c\u028d\7?\2\2\u028d\u028e\7?\2\2\u028eB\3\2\2\2")= =0D + buf.write("\u028f\u0290\7#\2\2\u0290\u0291\7?\2\2\u0291D\3\2\2\2")= =0D + buf.write("\u0292\u0293\7>\2\2\u0293\u0294\7?\2\2\u0294F\3\2\2\2")= =0D + buf.write("\u0295\u0296\7>\2\2\u0296H\3\2\2\2\u0297\u0298\7@\2\2")= =0D + buf.write("\u0298\u0299\7?\2\2\u0299J\3\2\2\2\u029a\u029b\7@\2\2")= =0D + buf.write("\u029bL\3\2\2\2\u029c\u029d\7~\2\2\u029dN\3\2\2\2\u029e= ")=0D + buf.write("\u029f\7(\2\2\u029fP\3\2\2\2\u02a0\u02a1\7f\2\2\u02a1")= =0D + buf.write("\u02a2\7g\2\2\u02a2\u02a3\7x\2\2\u02a3\u02a4\7k\2\2\u02= a4")=0D + buf.write("\u02a5\7e\2\2\u02a5\u02a6\7g\2\2\u02a6\u02a7\7r\2\2\u02= a7")=0D + buf.write("\u02a8\7c\2\2\u02a8\u02a9\7v\2\2\u02a9\u02aa\7j\2\2\u02= aa")=0D + buf.write("R\3\2\2\2\u02ab\u02ac\7h\2\2\u02ac\u02ad\7q\2\2\u02ad")= =0D + buf.write("\u02ae\7t\2\2\u02ae\u02af\7o\2\2\u02af\u02b0\7u\2\2\u02= b0")=0D + buf.write("\u02b1\7g\2\2\u02b1\u02b2\7v\2\2\u02b2T\3\2\2\2\u02b3")= =0D + buf.write("\u02b4\7h\2\2\u02b4\u02b5\7q\2\2\u02b5\u02b6\7t\2\2\u02= b6")=0D + buf.write("\u02b7\7o\2\2\u02b7\u02b8\7u\2\2\u02b8\u02b9\7g\2\2\u02= b9")=0D + buf.write("\u02ba\7v\2\2\u02ba\u02bb\7k\2\2\u02bb\u02bc\7f\2\2\u02= bc")=0D + buf.write("V\3\2\2\2\u02bd\u02be\7g\2\2\u02be\u02bf\7p\2\2\u02bf")= =0D + buf.write("\u02c0\7f\2\2\u02c0\u02c1\7h\2\2\u02c1\u02c2\7q\2\2\u02= c2")=0D + buf.write("\u02c3\7t\2\2\u02c3\u02c4\7o\2\2\u02c4\u02c5\7u\2\2\u02= c5")=0D + buf.write("\u02c6\7g\2\2\u02c6\u02c7\7v\2\2\u02c7X\3\2\2\2\u02c8")= =0D + buf.write("\u02c9\7v\2\2\u02c9\u02ca\7k\2\2\u02ca\u02cb\7v\2\2\u02= cb")=0D + buf.write("\u02cc\7n\2\2\u02cc\u02cd\7g\2\2\u02cdZ\3\2\2\2\u02ce")= =0D + buf.write("\u02cf\7h\2\2\u02cf\u02d0\7q\2\2\u02d0\u02d1\7t\2\2\u02= d1")=0D + buf.write("\u02d2\7o\2\2\u02d2\u02d3\7k\2\2\u02d3\u02d4\7f\2\2\u02= d4")=0D + buf.write("\\\3\2\2\2\u02d5\u02d6\7q\2\2\u02d6\u02d7\7p\2\2\u02d7"= )=0D + buf.write("\u02d8\7g\2\2\u02d8\u02d9\7q\2\2\u02d9\u02da\7h\2\2\u02= da")=0D + buf.write("^\3\2\2\2\u02db\u02dc\7g\2\2\u02dc\u02dd\7p\2\2\u02dd")= =0D + buf.write("\u02de\7f\2\2\u02de\u02df\7q\2\2\u02df\u02e0\7p\2\2\u02= e0")=0D + buf.write("\u02e1\7g\2\2\u02e1\u02e2\7q\2\2\u02e2\u02e3\7h\2\2\u02= e3")=0D + buf.write("`\3\2\2\2\u02e4\u02e5\7r\2\2\u02e5\u02e6\7t\2\2\u02e6")= =0D + buf.write("\u02e7\7q\2\2\u02e7\u02e8\7o\2\2\u02e8\u02e9\7r\2\2\u02= e9")=0D + buf.write("\u02ea\7v\2\2\u02eab\3\2\2\2\u02eb\u02ec\7q\2\2\u02ec")= =0D + buf.write("\u02ed\7t\2\2\u02ed\u02ee\7f\2\2\u02ee\u02ef\7g\2\2\u02= ef")=0D + buf.write("\u02f0\7t\2\2\u02f0\u02f1\7g\2\2\u02f1\u02f2\7f\2\2\u02= f2")=0D + buf.write("\u02f3\7n\2\2\u02f3\u02f4\7k\2\2\u02f4\u02f5\7u\2\2\u02= f5")=0D + buf.write("\u02f6\7v\2\2\u02f6d\3\2\2\2\u02f7\u02f8\7o\2\2\u02f8")= =0D + buf.write("\u02f9\7c\2\2\u02f9\u02fa\7z\2\2\u02fa\u02fb\7e\2\2\u02= fb")=0D + buf.write("\u02fc\7q\2\2\u02fc\u02fd\7p\2\2\u02fd\u02fe\7v\2\2\u02= fe")=0D + buf.write("\u02ff\7c\2\2\u02ff\u0300\7k\2\2\u0300\u0301\7p\2\2\u03= 01")=0D + buf.write("\u0302\7g\2\2\u0302\u0303\7t\2\2\u0303\u0304\7u\2\2\u03= 04")=0D + buf.write("f\3\2\2\2\u0305\u0306\7g\2\2\u0306\u0307\7p\2\2\u0307")= =0D + buf.write("\u0308\7f\2\2\u0308\u0309\7n\2\2\u0309\u030a\7k\2\2\u03= 0a")=0D + buf.write("\u030b\7u\2\2\u030b\u030c\7v\2\2\u030ch\3\2\2\2\u030d")= =0D + buf.write("\u030e\7g\2\2\u030e\u030f\7p\2\2\u030f\u0310\7f\2\2\u03= 10")=0D + buf.write("\u0311\7h\2\2\u0311\u0312\7q\2\2\u0312\u0313\7t\2\2\u03= 13")=0D + buf.write("\u0314\7o\2\2\u0314j\3\2\2\2\u0315\u0316\7h\2\2\u0316")= =0D + buf.write("\u0317\7q\2\2\u0317\u0318\7t\2\2\u0318\u0319\7o\2\2\u03= 19")=0D + buf.write("l\3\2\2\2\u031a\u031b\7h\2\2\u031b\u031c\7q\2\2\u031c")= =0D + buf.write("\u031d\7t\2\2\u031d\u031e\7o\2\2\u031e\u031f\7o\2\2\u03= 1f")=0D + buf.write("\u0320\7c\2\2\u0320\u0321\7r\2\2\u0321n\3\2\2\2\u0322")= =0D + buf.write("\u0323\7o\2\2\u0323\u0324\7c\2\2\u0324\u0325\7r\2\2\u03= 25")=0D + buf.write("\u0326\7v\2\2\u0326\u0327\7k\2\2\u0327\u0328\7v\2\2\u03= 28")=0D + buf.write("\u0329\7n\2\2\u0329\u032a\7g\2\2\u032ap\3\2\2\2\u032b")= =0D + buf.write("\u032c\7o\2\2\u032c\u032d\7c\2\2\u032d\u032e\7r\2\2\u03= 2e")=0D + buf.write("\u032f\7i\2\2\u032f\u0330\7w\2\2\u0330\u0331\7k\2\2\u03= 31")=0D + buf.write("\u0332\7f\2\2\u0332r\3\2\2\2\u0333\u0334\7u\2\2\u0334")= =0D + buf.write("\u0335\7w\2\2\u0335\u0336\7d\2\2\u0336\u0337\7v\2\2\u03= 37")=0D + buf.write("\u0338\7k\2\2\u0338\u0339\7v\2\2\u0339\u033a\7n\2\2\u03= 3a")=0D + buf.write("\u033b\7g\2\2\u033bt\3\2\2\2\u033c\u033d\7g\2\2\u033d")= =0D + buf.write("\u033e\7p\2\2\u033e\u033f\7f\2\2\u033f\u0340\7u\2\2\u03= 40")=0D + buf.write("\u0341\7w\2\2\u0341\u0342\7d\2\2\u0342\u0343\7v\2\2\u03= 43")=0D + buf.write("\u0344\7k\2\2\u0344\u0345\7v\2\2\u0345\u0346\7n\2\2\u03= 46")=0D + buf.write("\u0347\7g\2\2\u0347v\3\2\2\2\u0348\u0349\7j\2\2\u0349")= =0D + buf.write("\u034a\7g\2\2\u034a\u034b\7n\2\2\u034b\u034c\7r\2\2\u03= 4c")=0D + buf.write("x\3\2\2\2\u034d\u034e\7v\2\2\u034e\u034f\7g\2\2\u034f")= =0D + buf.write("\u0350\7z\2\2\u0350\u0351\7v\2\2\u0351z\3\2\2\2\u0352")= =0D + buf.write("\u0353\7q\2\2\u0353\u0354\7r\2\2\u0354\u0355\7v\2\2\u03= 55")=0D + buf.write("\u0356\7k\2\2\u0356\u0357\7q\2\2\u0357\u0358\7p\2\2\u03= 58")=0D + buf.write("|\3\2\2\2\u0359\u035a\7h\2\2\u035a\u035b\7n\2\2\u035b")= =0D + buf.write("\u035c\7c\2\2\u035c\u035d\7i\2\2\u035d\u035e\7u\2\2\u03= 5e")=0D + buf.write("~\3\2\2\2\u035f\u0360\7f\2\2\u0360\u0361\7c\2\2\u0361")= =0D + buf.write("\u0362\7v\2\2\u0362\u0363\7g\2\2\u0363\u0080\3\2\2\2\u0= 364")=0D + buf.write("\u0365\7g\2\2\u0365\u0366\7p\2\2\u0366\u0367\7f\2\2\u03= 67")=0D + buf.write("\u0368\7f\2\2\u0368\u0369\7c\2\2\u0369\u036a\7v\2\2\u03= 6a")=0D + buf.write("\u036b\7g\2\2\u036b\u0082\3\2\2\2\u036c\u036d\7{\2\2\u0= 36d")=0D + buf.write("\u036e\7g\2\2\u036e\u036f\7c\2\2\u036f\u0370\7t\2\2\u03= 70")=0D + buf.write("\u0084\3\2\2\2\u0371\u0372\7o\2\2\u0372\u0373\7q\2\2\u0= 373")=0D + buf.write("\u0374\7p\2\2\u0374\u0375\7v\2\2\u0375\u0376\7j\2\2\u03= 76")=0D + buf.write("\u0086\3\2\2\2\u0377\u0378\7f\2\2\u0378\u0379\7c\2\2\u0= 379")=0D + buf.write("\u037a\7{\2\2\u037a\u0088\3\2\2\2\u037b\u037c\7v\2\2\u0= 37c")=0D + buf.write("\u037d\7k\2\2\u037d\u037e\7o\2\2\u037e\u037f\7g\2\2\u03= 7f")=0D + buf.write("\u008a\3\2\2\2\u0380\u0381\7g\2\2\u0381\u0382\7p\2\2\u0= 382")=0D + buf.write("\u0383\7f\2\2\u0383\u0384\7v\2\2\u0384\u0385\7k\2\2\u03= 85")=0D + buf.write("\u0386\7o\2\2\u0386\u0387\7g\2\2\u0387\u008c\3\2\2\2\u0= 388")=0D + buf.write("\u0389\7j\2\2\u0389\u038a\7q\2\2\u038a\u038b\7w\2\2\u03= 8b")=0D + buf.write("\u038c\7t\2\2\u038c\u008e\3\2\2\2\u038d\u038e\7o\2\2\u0= 38e")=0D + buf.write("\u038f\7k\2\2\u038f\u0390\7p\2\2\u0390\u0391\7w\2\2\u03= 91")=0D + buf.write("\u0392\7v\2\2\u0392\u0393\7g\2\2\u0393\u0090\3\2\2\2\u0= 394")=0D + buf.write("\u0395\7u\2\2\u0395\u0396\7g\2\2\u0396\u0397\7e\2\2\u03= 97")=0D + buf.write("\u0398\7q\2\2\u0398\u0399\7p\2\2\u0399\u039a\7f\2\2\u03= 9a")=0D + buf.write("\u0092\3\2\2\2\u039b\u039c\7i\2\2\u039c\u039d\7t\2\2\u0= 39d")=0D + buf.write("\u039e\7c\2\2\u039e\u039f\7{\2\2\u039f\u03a0\7q\2\2\u03= a0")=0D + buf.write("\u03a1\7w\2\2\u03a1\u03a2\7v\2\2\u03a2\u03a3\7k\2\2\u03= a3")=0D + buf.write("\u03a4\7h\2\2\u03a4\u0094\3\2\2\2\u03a5\u03a6\7n\2\2\u0= 3a6")=0D + buf.write("\u03a7\7c\2\2\u03a7\u03a8\7d\2\2\u03a8\u03a9\7g\2\2\u03= a9")=0D + buf.write("\u03aa\7n\2\2\u03aa\u0096\3\2\2\2\u03ab\u03ac\7v\2\2\u0= 3ac")=0D + buf.write("\u03ad\7k\2\2\u03ad\u03ae\7o\2\2\u03ae\u03af\7g\2\2\u03= af")=0D + buf.write("\u03b0\7q\2\2\u03b0\u03b1\7w\2\2\u03b1\u03b2\7v\2\2\u03= b2")=0D + buf.write("\u0098\3\2\2\2\u03b3\u03b4\7k\2\2\u03b4\u03b5\7p\2\2\u0= 3b5")=0D + buf.write("\u03b6\7x\2\2\u03b6\u03b7\7g\2\2\u03b7\u03b8\7p\2\2\u03= b8")=0D + buf.write("\u03b9\7v\2\2\u03b9\u03ba\7q\2\2\u03ba\u03bb\7t\2\2\u03= bb")=0D + buf.write("\u03bc\7{\2\2\u03bc\u009a\3\2\2\2\u03bd\u03be\7a\2\2\u0= 3be")=0D + buf.write("\u03bf\7P\2\2\u03bf\u03c0\7Q\2\2\u03c0\u03c1\7P\2\2\u03= c1")=0D + buf.write("\u03c2\7a\2\2\u03c2\u03c3\7P\2\2\u03c3\u03c4\7X\2\2\u03= c4")=0D + buf.write("\u03c5\7a\2\2\u03c5\u03c6\7F\2\2\u03c6\u03c7\7C\2\2\u03= c7")=0D + buf.write("\u03c8\7V\2\2\u03c8\u03c9\7C\2\2\u03c9\u03ca\7a\2\2\u03= ca")=0D + buf.write("\u03cb\7O\2\2\u03cb\u03cc\7C\2\2\u03cc\u03cd\7R\2\2\u03= cd")=0D + buf.write("\u009c\3\2\2\2\u03ce\u03cf\7u\2\2\u03cf\u03d0\7v\2\2\u0= 3d0")=0D + buf.write("\u03d1\7t\2\2\u03d1\u03d2\7w\2\2\u03d2\u03d3\7e\2\2\u03= d3")=0D + buf.write("\u03d4\7v\2\2\u03d4\u009e\3\2\2\2\u03d5\u03d6\7w\2\2\u0= 3d6")=0D + buf.write("\u03d7\7p\2\2\u03d7\u03d8\7k\2\2\u03d8\u03d9\7q\2\2\u03= d9")=0D + buf.write("\u03da\7p\2\2\u03da\u00a0\3\2\2\2\u03db\u03dc\7D\2\2\u0= 3dc")=0D + buf.write("\u03dd\7Q\2\2\u03dd\u03de\7Q\2\2\u03de\u03df\7N\2\2\u03= df")=0D + buf.write("\u03e0\7G\2\2\u03e0\u03e1\7C\2\2\u03e1\u03e2\7P\2\2\u03= e2")=0D + buf.write("\u00a2\3\2\2\2\u03e3\u03e4\7W\2\2\u03e4\u03e5\7K\2\2\u0= 3e5")=0D + buf.write("\u03e6\7P\2\2\u03e6\u03e7\7V\2\2\u03e7\u03e8\78\2\2\u03= e8")=0D + buf.write("\u03e9\7\66\2\2\u03e9\u00a4\3\2\2\2\u03ea\u03eb\7W\2\2"= )=0D + buf.write("\u03eb\u03ec\7K\2\2\u03ec\u03ed\7P\2\2\u03ed\u03ee\7V")= =0D + buf.write("\2\2\u03ee\u03ef\7\65\2\2\u03ef\u03f0\7\64\2\2\u03f0\u0= 0a6")=0D + buf.write("\3\2\2\2\u03f1\u03f2\7W\2\2\u03f2\u03f3\7K\2\2\u03f3\u0= 3f4")=0D + buf.write("\7P\2\2\u03f4\u03f5\7V\2\2\u03f5\u03f6\7\63\2\2\u03f6")= =0D + buf.write("\u03f7\78\2\2\u03f7\u00a8\3\2\2\2\u03f8\u03f9\7W\2\2\u0= 3f9")=0D + buf.write("\u03fa\7K\2\2\u03fa\u03fb\7P\2\2\u03fb\u03fc\7V\2\2\u03= fc")=0D + buf.write("\u03fd\7:\2\2\u03fd\u00aa\3\2\2\2\u03fe\u03ff\7G\2\2\u0= 3ff")=0D + buf.write("\u0400\7H\2\2\u0400\u0401\7K\2\2\u0401\u0402\7a\2\2\u04= 02")=0D + buf.write("\u0403\7U\2\2\u0403\u0404\7V\2\2\u0404\u0405\7T\2\2\u04= 05")=0D + buf.write("\u0406\7K\2\2\u0406\u0407\7P\2\2\u0407\u0408\7I\2\2\u04= 08")=0D + buf.write("\u0409\7a\2\2\u0409\u040a\7K\2\2\u040a\u040b\7F\2\2\u04= 0b")=0D + buf.write("\u00ac\3\2\2\2\u040c\u040d\7G\2\2\u040d\u040e\7H\2\2\u0= 40e")=0D + buf.write("\u040f\7K\2\2\u040f\u0410\7a\2\2\u0410\u0411\7J\2\2\u04= 11")=0D + buf.write("\u0412\7K\2\2\u0412\u0413\7K\2\2\u0413\u0414\7a\2\2\u04= 14")=0D + buf.write("\u0415\7F\2\2\u0415\u0416\7C\2\2\u0416\u0417\7V\2\2\u04= 17")=0D + buf.write("\u0418\7G\2\2\u0418\u00ae\3\2\2\2\u0419\u041a\7G\2\2\u0= 41a")=0D + buf.write("\u041b\7H\2\2\u041b\u041c\7K\2\2\u041c\u041d\7a\2\2\u04= 1d")=0D + buf.write("\u041e\7J\2\2\u041e\u041f\7K\2\2\u041f\u0420\7K\2\2\u04= 20")=0D + buf.write("\u0421\7a\2\2\u0421\u0422\7V\2\2\u0422\u0423\7K\2\2\u04= 23")=0D + buf.write("\u0424\7O\2\2\u0424\u0425\7G\2\2\u0425\u00b0\3\2\2\2\u0= 426")=0D + buf.write("\u0427\7G\2\2\u0427\u0428\7H\2\2\u0428\u0429\7K\2\2\u04= 29")=0D + buf.write("\u042a\7a\2\2\u042a\u042b\7J\2\2\u042b\u042c\7K\2\2\u04= 2c")=0D + buf.write("\u042d\7K\2\2\u042d\u042e\7a\2\2\u042e\u042f\7T\2\2\u04= 2f")=0D + buf.write("\u0430\7G\2\2\u0430\u0431\7H\2\2\u0431\u00b2\3\2\2\2\u0= 432")=0D + buf.write("\u0433\7i\2\2\u0433\u0434\7w\2\2\u0434\u0435\7k\2\2\u04= 35")=0D + buf.write("\u0436\7f\2\2\u0436\u00b4\3\2\2\2\u0437\u0438\7e\2\2\u0= 438")=0D + buf.write("\u0439\7j\2\2\u0439\u043a\7g\2\2\u043a\u043b\7e\2\2\u04= 3b")=0D + buf.write("\u043c\7m\2\2\u043c\u043d\7d\2\2\u043d\u043e\7q\2\2\u04= 3e")=0D + buf.write("\u043f\7z\2\2\u043f\u00b6\3\2\2\2\u0440\u0441\7g\2\2\u0= 441")=0D + buf.write("\u0442\7p\2\2\u0442\u0443\7f\2\2\u0443\u0444\7e\2\2\u04= 44")=0D + buf.write("\u0445\7j\2\2\u0445\u0446\7g\2\2\u0446\u0447\7e\2\2\u04= 47")=0D + buf.write("\u0448\7m\2\2\u0448\u0449\7d\2\2\u0449\u044a\7q\2\2\u04= 4a")=0D + buf.write("\u044b\7z\2\2\u044b\u00b8\3\2\2\2\u044c\u044d\7p\2\2\u0= 44d")=0D + buf.write("\u044e\7w\2\2\u044e\u044f\7o\2\2\u044f\u0450\7g\2\2\u04= 50")=0D + buf.write("\u0451\7t\2\2\u0451\u0452\7k\2\2\u0452\u0453\7e\2\2\u04= 53")=0D + buf.write("\u00ba\3\2\2\2\u0454\u0455\7g\2\2\u0455\u0456\7p\2\2\u0= 456")=0D + buf.write("\u0457\7f\2\2\u0457\u0458\7p\2\2\u0458\u0459\7w\2\2\u04= 59")=0D + buf.write("\u045a\7o\2\2\u045a\u045b\7g\2\2\u045b\u045c\7t\2\2\u04= 5c")=0D + buf.write("\u045d\7k\2\2\u045d\u045e\7e\2\2\u045e\u00bc\3\2\2\2\u0= 45f")=0D + buf.write("\u0460\7o\2\2\u0460\u0461\7k\2\2\u0461\u0462\7p\2\2\u04= 62")=0D + buf.write("\u0463\7k\2\2\u0463\u0464\7o\2\2\u0464\u0465\7w\2\2\u04= 65")=0D + buf.write("\u0466\7o\2\2\u0466\u00be\3\2\2\2\u0467\u0468\7o\2\2\u0= 468")=0D + buf.write("\u0469\7c\2\2\u0469\u046a\7z\2\2\u046a\u046b\7k\2\2\u04= 6b")=0D + buf.write("\u046c\7o\2\2\u046c\u046d\7w\2\2\u046d\u046e\7o\2\2\u04= 6e")=0D + buf.write("\u00c0\3\2\2\2\u046f\u0470\7u\2\2\u0470\u0471\7v\2\2\u0= 471")=0D + buf.write("\u0472\7g\2\2\u0472\u0473\7r\2\2\u0473\u00c2\3\2\2\2\u0= 474")=0D + buf.write("\u0475\7f\2\2\u0475\u0476\7g\2\2\u0476\u0477\7h\2\2\u04= 77")=0D + buf.write("\u0478\7c\2\2\u0478\u0479\7w\2\2\u0479\u047a\7n\2\2\u04= 7a")=0D + buf.write("\u047b\7v\2\2\u047b\u00c4\3\2\2\2\u047c\u047d\7r\2\2\u0= 47d")=0D + buf.write("\u047e\7c\2\2\u047e\u047f\7u\2\2\u047f\u0480\7u\2\2\u04= 80")=0D + buf.write("\u0481\7y\2\2\u0481\u0482\7q\2\2\u0482\u0483\7t\2\2\u04= 83")=0D + buf.write("\u0484\7f\2\2\u0484\u00c6\3\2\2\2\u0485\u0486\7g\2\2\u0= 486")=0D + buf.write("\u0487\7p\2\2\u0487\u0488\7f\2\2\u0488\u0489\7r\2\2\u04= 89")=0D + buf.write("\u048a\7c\2\2\u048a\u048b\7u\2\2\u048b\u048c\7u\2\2\u04= 8c")=0D + buf.write("\u048d\7y\2\2\u048d\u048e\7q\2\2\u048e\u048f\7t\2\2\u04= 8f")=0D + buf.write("\u0490\7f\2\2\u0490\u00c8\3\2\2\2\u0491\u0492\7u\2\2\u0= 492")=0D + buf.write("\u0493\7v\2\2\u0493\u0494\7t\2\2\u0494\u0495\7k\2\2\u04= 95")=0D + buf.write("\u0496\7p\2\2\u0496\u0497\7i\2\2\u0497\u00ca\3\2\2\2\u0= 498")=0D + buf.write("\u0499\7g\2\2\u0499\u049a\7p\2\2\u049a\u049b\7f\2\2\u04= 9b")=0D + buf.write("\u049c\7u\2\2\u049c\u049d\7v\2\2\u049d\u049e\7t\2\2\u04= 9e")=0D + buf.write("\u049f\7k\2\2\u049f\u04a0\7p\2\2\u04a0\u04a1\7i\2\2\u04= a1")=0D + buf.write("\u00cc\3\2\2\2\u04a2\u04a3\7o\2\2\u04a3\u04a4\7k\2\2\u0= 4a4")=0D + buf.write("\u04a5\7p\2\2\u04a5\u04a6\7u\2\2\u04a6\u04a7\7k\2\2\u04= a7")=0D + buf.write("\u04a8\7|\2\2\u04a8\u04a9\7g\2\2\u04a9\u00ce\3\2\2\2\u0= 4aa")=0D + buf.write("\u04ab\7o\2\2\u04ab\u04ac\7c\2\2\u04ac\u04ad\7z\2\2\u04= ad")=0D + buf.write("\u04ae\7u\2\2\u04ae\u04af\7k\2\2\u04af\u04b0\7|\2\2\u04= b0")=0D + buf.write("\u04b1\7g\2\2\u04b1\u00d0\3\2\2\2\u04b2\u04b3\7g\2\2\u0= 4b3")=0D + buf.write("\u04b4\7p\2\2\u04b4\u04b5\7e\2\2\u04b5\u04b6\7q\2\2\u04= b6")=0D + buf.write("\u04b7\7f\2\2\u04b7\u04b8\7k\2\2\u04b8\u04b9\7p\2\2\u04= b9")=0D + buf.write("\u04ba\7i\2\2\u04ba\u00d2\3\2\2\2\u04bb\u04bc\7u\2\2\u0= 4bc")=0D + buf.write("\u04bd\7w\2\2\u04bd\u04be\7r\2\2\u04be\u04bf\7r\2\2\u04= bf")=0D + buf.write("\u04c0\7t\2\2\u04c0\u04c1\7g\2\2\u04c1\u04c2\7u\2\2\u04= c2")=0D + buf.write("\u04c3\7u\2\2\u04c3\u04c4\7k\2\2\u04c4\u04c5\7h\2\2\u04= c5")=0D + buf.write("\u00d4\3\2\2\2\u04c6\u04c7\7f\2\2\u04c7\u04c8\7k\2\2\u0= 4c8")=0D + buf.write("\u04c9\7u\2\2\u04c9\u04ca\7c\2\2\u04ca\u04cb\7d\2\2\u04= cb")=0D + buf.write("\u04cc\7n\2\2\u04cc\u04cd\7g\2\2\u04cd\u04ce\7k\2\2\u04= ce")=0D + buf.write("\u04cf\7h\2\2\u04cf\u00d6\3\2\2\2\u04d0\u04d1\7j\2\2\u0= 4d1")=0D + buf.write("\u04d2\7k\2\2\u04d2\u04d3\7f\2\2\u04d3\u04d4\7f\2\2\u04= d4")=0D + buf.write("\u04d5\7g\2\2\u04d5\u04d6\7p\2\2\u04d6\u00d8\3\2\2\2\u0= 4d7")=0D + buf.write("\u04d8\7i\2\2\u04d8\u04d9\7q\2\2\u04d9\u04da\7v\2\2\u04= da")=0D + buf.write("\u04db\7q\2\2\u04db\u00da\3\2\2\2\u04dc\u04dd\7h\2\2\u0= 4dd")=0D + buf.write("\u04de\7q\2\2\u04de\u04df\7t\2\2\u04df\u04e0\7o\2\2\u04= e0")=0D + buf.write("\u04e1\7u\2\2\u04e1\u04e2\7g\2\2\u04e2\u04e3\7v\2\2\u04= e3")=0D + buf.write("\u04e4\7i\2\2\u04e4\u04e5\7w\2\2\u04e5\u04e6\7k\2\2\u04= e6")=0D + buf.write("\u04e7\7f\2\2\u04e7\u00dc\3\2\2\2\u04e8\u04e9\7k\2\2\u0= 4e9")=0D + buf.write("\u04ea\7p\2\2\u04ea\u04eb\7e\2\2\u04eb\u04ec\7q\2\2\u04= ec")=0D + buf.write("\u04ed\7p\2\2\u04ed\u04ee\7u\2\2\u04ee\u04ef\7k\2\2\u04= ef")=0D + buf.write("\u04f0\7u\2\2\u04f0\u04f1\7v\2\2\u04f1\u04f2\7g\2\2\u04= f2")=0D + buf.write("\u04f3\7p\2\2\u04f3\u04f4\7v\2\2\u04f4\u04f5\7k\2\2\u04= f5")=0D + buf.write("\u04f6\7h\2\2\u04f6\u00de\3\2\2\2\u04f7\u04f8\7y\2\2\u0= 4f8")=0D + buf.write("\u04f9\7c\2\2\u04f9\u04fa\7t\2\2\u04fa\u04fb\7p\2\2\u04= fb")=0D + buf.write("\u04fc\7k\2\2\u04fc\u04fd\7p\2\2\u04fd\u04fe\7i\2\2\u04= fe")=0D + buf.write("\u04ff\7k\2\2\u04ff\u0500\7h\2\2\u0500\u00e0\3\2\2\2\u0= 501")=0D + buf.write("\u0502\7p\2\2\u0502\u0503\7q\2\2\u0503\u0504\7u\2\2\u05= 04")=0D + buf.write("\u0505\7w\2\2\u0505\u0506\7d\2\2\u0506\u0507\7o\2\2\u05= 07")=0D + buf.write("\u0508\7k\2\2\u0508\u0509\7v\2\2\u0509\u050a\7k\2\2\u05= 0a")=0D + buf.write("\u050b\7h\2\2\u050b\u00e2\3\2\2\2\u050c\u050d\7g\2\2\u0= 50d")=0D + buf.write("\u050e\7p\2\2\u050e\u050f\7f\2\2\u050f\u0510\7k\2\2\u05= 10")=0D + buf.write("\u0511\7h\2\2\u0511\u00e4\3\2\2\2\u0512\u0513\7m\2\2\u0= 513")=0D + buf.write("\u0514\7g\2\2\u0514\u0515\7{\2\2\u0515\u00e6\3\2\2\2\u0= 516")=0D + buf.write("\u0517\7F\2\2\u0517\u0518\7G\2\2\u0518\u0519\7H\2\2\u05= 19")=0D + buf.write("\u051a\7C\2\2\u051a\u051b\7W\2\2\u051b\u051c\7N\2\2\u05= 1c")=0D + buf.write("\u051d\7V\2\2\u051d\u00e8\3\2\2\2\u051e\u051f\7O\2\2\u0= 51f")=0D + buf.write("\u0520\7C\2\2\u0520\u0521\7P\2\2\u0521\u0522\7W\2\2\u05= 22")=0D + buf.write("\u0523\7H\2\2\u0523\u0524\7C\2\2\u0524\u0525\7E\2\2\u05= 25")=0D + buf.write("\u0526\7V\2\2\u0526\u0527\7W\2\2\u0527\u0528\7T\2\2\u05= 28")=0D + buf.write("\u0529\7K\2\2\u0529\u052a\7P\2\2\u052a\u052b\7I\2\2\u05= 2b")=0D + buf.write("\u00ea\3\2\2\2\u052c\u052d\7E\2\2\u052d\u052e\7J\2\2\u0= 52e")=0D + buf.write("\u052f\7G\2\2\u052f\u0530\7E\2\2\u0530\u0531\7M\2\2\u05= 31")=0D + buf.write("\u0532\7D\2\2\u0532\u0533\7Q\2\2\u0533\u0534\7Z\2\2\u05= 34")=0D + buf.write("\u0535\7a\2\2\u0535\u0536\7F\2\2\u0536\u0537\7G\2\2\u05= 37")=0D + buf.write("\u0538\7H\2\2\u0538\u0539\7C\2\2\u0539\u053a\7W\2\2\u05= 3a")=0D + buf.write("\u053b\7N\2\2\u053b\u053c\7V\2\2\u053c\u00ec\3\2\2\2\u0= 53d")=0D + buf.write("\u053e\7E\2\2\u053e\u053f\7J\2\2\u053f\u0540\7G\2\2\u05= 40")=0D + buf.write("\u0541\7E\2\2\u0541\u0542\7M\2\2\u0542\u0543\7D\2\2\u05= 43")=0D + buf.write("\u0544\7Q\2\2\u0544\u0545\7Z\2\2\u0545\u0546\7a\2\2\u05= 46")=0D + buf.write("\u0547\7F\2\2\u0547\u0548\7G\2\2\u0548\u0549\7H\2\2\u05= 49")=0D + buf.write("\u054a\7C\2\2\u054a\u054b\7W\2\2\u054b\u054c\7N\2\2\u05= 4c")=0D + buf.write("\u054d\7V\2\2\u054d\u054e\7a\2\2\u054e\u054f\7O\2\2\u05= 4f")=0D + buf.write("\u0550\7H\2\2\u0550\u0551\7I\2\2\u0551\u00ee\3\2\2\2\u0= 552")=0D + buf.write("\u0553\7K\2\2\u0553\u0554\7P\2\2\u0554\u0555\7V\2\2\u05= 55")=0D + buf.write("\u0556\7G\2\2\u0556\u0557\7T\2\2\u0557\u0558\7C\2\2\u05= 58")=0D + buf.write("\u0559\7E\2\2\u0559\u055a\7V\2\2\u055a\u055b\7K\2\2\u05= 5b")=0D + buf.write("\u055c\7X\2\2\u055c\u055d\7G\2\2\u055d\u00f0\3\2\2\2\u0= 55e")=0D + buf.write("\u055f\7P\2\2\u055f\u0560\7X\2\2\u0560\u0561\7a\2\2\u05= 61")=0D + buf.write("\u0562\7C\2\2\u0562\u0563\7E\2\2\u0563\u0564\7E\2\2\u05= 64")=0D + buf.write("\u0565\7G\2\2\u0565\u0566\7U\2\2\u0566\u0567\7U\2\2\u05= 67")=0D + buf.write("\u00f2\3\2\2\2\u0568\u0569\7T\2\2\u0569\u056a\7G\2\2\u0= 56a")=0D + buf.write("\u056b\7U\2\2\u056b\u056c\7G\2\2\u056c\u056d\7V\2\2\u05= 6d")=0D + buf.write("\u056e\7a\2\2\u056e\u056f\7T\2\2\u056f\u0570\7G\2\2\u05= 70")=0D + buf.write("\u0571\7S\2\2\u0571\u0572\7W\2\2\u0572\u0573\7K\2\2\u05= 73")=0D + buf.write("\u0574\7T\2\2\u0574\u0575\7G\2\2\u0575\u0576\7F\2\2\u05= 76")=0D + buf.write("\u00f4\3\2\2\2\u0577\u0578\7T\2\2\u0578\u0579\7G\2\2\u0= 579")=0D + buf.write("\u057a\7E\2\2\u057a\u057b\7Q\2\2\u057b\u057c\7P\2\2\u05= 7c")=0D + buf.write("\u057d\7P\2\2\u057d\u057e\7G\2\2\u057e\u057f\7E\2\2\u05= 7f")=0D + buf.write("\u0580\7V\2\2\u0580\u0581\7a\2\2\u0581\u0582\7T\2\2\u05= 82")=0D + buf.write("\u0583\7G\2\2\u0583\u0584\7S\2\2\u0584\u0585\7W\2\2\u05= 85")=0D + buf.write("\u0586\7K\2\2\u0586\u0587\7T\2\2\u0587\u0588\7G\2\2\u05= 88")=0D + buf.write("\u0589\7F\2\2\u0589\u00f6\3\2\2\2\u058a\u058b\7N\2\2\u0= 58b")=0D + buf.write("\u058c\7C\2\2\u058c\u058d\7V\2\2\u058d\u058e\7G\2\2\u05= 8e")=0D + buf.write("\u058f\7a\2\2\u058f\u0590\7E\2\2\u0590\u0591\7J\2\2\u05= 91")=0D + buf.write("\u0592\7G\2\2\u0592\u0593\7E\2\2\u0593\u0594\7M\2\2\u05= 94")=0D + buf.write("\u00f8\3\2\2\2\u0595\u0596\7T\2\2\u0596\u0597\7G\2\2\u0= 597")=0D + buf.write("\u0598\7C\2\2\u0598\u0599\7F\2\2\u0599\u059a\7a\2\2\u05= 9a")=0D + buf.write("\u059b\7Q\2\2\u059b\u059c\7P\2\2\u059c\u059d\7N\2\2\u05= 9d")=0D + buf.write("\u059e\7[\2\2\u059e\u00fa\3\2\2\2\u059f\u05a0\7Q\2\2\u0= 5a0")=0D + buf.write("\u05a1\7R\2\2\u05a1\u05a2\7V\2\2\u05a2\u05a3\7K\2\2\u05= a3")=0D + buf.write("\u05a4\7Q\2\2\u05a4\u05a5\7P\2\2\u05a5\u05a6\7U\2\2\u05= a6")=0D + buf.write("\u05a7\7a\2\2\u05a7\u05a8\7Q\2\2\u05a8\u05a9\7P\2\2\u05= a9")=0D + buf.write("\u05aa\7N\2\2\u05aa\u05ab\7[\2\2\u05ab\u00fc\3\2\2\2\u0= 5ac")=0D + buf.write("\u05ad\7T\2\2\u05ad\u05ae\7G\2\2\u05ae\u05af\7U\2\2\u05= af")=0D + buf.write("\u05b0\7V\2\2\u05b0\u05b1\7a\2\2\u05b1\u05b2\7U\2\2\u05= b2")=0D + buf.write("\u05b3\7V\2\2\u05b3\u05b4\7[\2\2\u05b4\u05b5\7N\2\2\u05= b5")=0D + buf.write("\u05b6\7G\2\2\u05b6\u00fe\3\2\2\2\u05b7\u05b8\7e\2\2\u0= 5b8")=0D + buf.write("\u05b9\7n\2\2\u05b9\u05ba\7c\2\2\u05ba\u05bb\7u\2\2\u05= bb")=0D + buf.write("\u05bc\7u\2\2\u05bc\u0100\3\2\2\2\u05bd\u05be\7u\2\2\u0= 5be")=0D + buf.write("\u05bf\7w\2\2\u05bf\u05c0\7d\2\2\u05c0\u05c1\7e\2\2\u05= c1")=0D + buf.write("\u05c2\7n\2\2\u05c2\u05c3\7c\2\2\u05c3\u05c4\7u\2\2\u05= c4")=0D + buf.write("\u05c5\7u\2\2\u05c5\u0102\3\2\2\2\u05c6\u05c7\7e\2\2\u0= 5c7")=0D + buf.write("\u05c8\7n\2\2\u05c8\u05c9\7c\2\2\u05c9\u05ca\7u\2\2\u05= ca")=0D + buf.write("\u05cb\7u\2\2\u05cb\u05cc\7i\2\2\u05cc\u05cd\7w\2\2\u05= cd")=0D + buf.write("\u05ce\7k\2\2\u05ce\u05cf\7f\2\2\u05cf\u0104\3\2\2\2\u0= 5d0")=0D + buf.write("\u05d1\7v\2\2\u05d1\u05d2\7{\2\2\u05d2\u05d3\7r\2\2\u05= d3")=0D + buf.write("\u05d4\7g\2\2\u05d4\u05d5\7f\2\2\u05d5\u05d6\7g\2\2\u05= d6")=0D + buf.write("\u05d7\7h\2\2\u05d7\u0106\3\2\2\2\u05d8\u05d9\7t\2\2\u0= 5d9")=0D + buf.write("\u05da\7g\2\2\u05da\u05db\7u\2\2\u05db\u05dc\7v\2\2\u05= dc")=0D + buf.write("\u05dd\7q\2\2\u05dd\u05de\7t\2\2\u05de\u05df\7g\2\2\u05= df")=0D + buf.write("\u0108\3\2\2\2\u05e0\u05e1\7u\2\2\u05e1\u05e2\7c\2\2\u0= 5e2")=0D + buf.write("\u05e3\7x\2\2\u05e3\u05e4\7g\2\2\u05e4\u010a\3\2\2\2\u0= 5e5")=0D + buf.write("\u05e6\7f\2\2\u05e6\u05e7\7g\2\2\u05e7\u05e8\7h\2\2\u05= e8")=0D + buf.write("\u05e9\7c\2\2\u05e9\u05ea\7w\2\2\u05ea\u05eb\7n\2\2\u05= eb")=0D + buf.write("\u05ec\7v\2\2\u05ec\u05ed\7u\2\2\u05ed\u010c\3\2\2\2\u0= 5ee")=0D + buf.write("\u05ef\7d\2\2\u05ef\u05f0\7c\2\2\u05f0\u05f1\7p\2\2\u05= f1")=0D + buf.write("\u05f2\7p\2\2\u05f2\u05f3\7g\2\2\u05f3\u05f4\7t\2\2\u05= f4")=0D + buf.write("\u010e\3\2\2\2\u05f5\u05f6\7c\2\2\u05f6\u05f7\7n\2\2\u0= 5f7")=0D + buf.write("\u05f8\7k\2\2\u05f8\u05f9\7i\2\2\u05f9\u05fa\7p\2\2\u05= fa")=0D + buf.write("\u0110\3\2\2\2\u05fb\u05fc\7n\2\2\u05fc\u05fd\7g\2\2\u0= 5fd")=0D + buf.write("\u05fe\7h\2\2\u05fe\u05ff\7v\2\2\u05ff\u0112\3\2\2\2\u0= 600")=0D + buf.write("\u0601\7t\2\2\u0601\u0602\7k\2\2\u0602\u0603\7i\2\2\u06= 03")=0D + buf.write("\u0604\7j\2\2\u0604\u0605\7v\2\2\u0605\u0114\3\2\2\2\u0= 606")=0D + buf.write("\u0607\7e\2\2\u0607\u0608\7g\2\2\u0608\u0609\7p\2\2\u06= 09")=0D + buf.write("\u060a\7v\2\2\u060a\u060b\7g\2\2\u060b\u060c\7t\2\2\u06= 0c")=0D + buf.write("\u0116\3\2\2\2\u060d\u060e\7n\2\2\u060e\u060f\7k\2\2\u0= 60f")=0D + buf.write("\u0610\7p\2\2\u0610\u0611\7g\2\2\u0611\u0118\3\2\2\2\u0= 612")=0D + buf.write("\u0613\7p\2\2\u0613\u0614\7c\2\2\u0614\u0615\7o\2\2\u06= 15")=0D + buf.write("\u0616\7g\2\2\u0616\u011a\3\2\2\2\u0617\u0618\7x\2\2\u0= 618")=0D + buf.write("\u0619\7c\2\2\u0619\u061a\7t\2\2\u061a\u061b\7k\2\2\u06= 1b")=0D + buf.write("\u061c\7f\2\2\u061c\u011c\3\2\2\2\u061d\u061e\7s\2\2\u0= 61e")=0D + buf.write("\u061f\7w\2\2\u061f\u0620\7g\2\2\u0620\u0621\7u\2\2\u06= 21")=0D + buf.write("\u0622\7v\2\2\u0622\u0623\7k\2\2\u0623\u0624\7q\2\2\u06= 24")=0D + buf.write("\u0625\7p\2\2\u0625\u011e\3\2\2\2\u0626\u0627\7s\2\2\u0= 627")=0D + buf.write("\u0628\7w\2\2\u0628\u0629\7g\2\2\u0629\u062a\7u\2\2\u06= 2a")=0D + buf.write("\u062b\7v\2\2\u062b\u062c\7k\2\2\u062c\u062d\7q\2\2\u06= 2d")=0D + buf.write("\u062e\7p\2\2\u062e\u062f\7k\2\2\u062f\u0630\7f\2\2\u06= 30")=0D + buf.write("\u0120\3\2\2\2\u0631\u0632\7k\2\2\u0632\u0633\7o\2\2\u0= 633")=0D + buf.write("\u0634\7c\2\2\u0634\u0635\7i\2\2\u0635\u0636\7g\2\2\u06= 36")=0D + buf.write("\u0122\3\2\2\2\u0637\u0638\7n\2\2\u0638\u0639\7q\2\2\u0= 639")=0D + buf.write("\u063a\7e\2\2\u063a\u063b\7m\2\2\u063b\u063c\7g\2\2\u06= 3c")=0D + buf.write("\u063d\7f\2\2\u063d\u0124\3\2\2\2\u063e\u063f\7t\2\2\u0= 63f")=0D + buf.write("\u0640\7w\2\2\u0640\u0641\7n\2\2\u0641\u0642\7g\2\2\u06= 42")=0D + buf.write("\u0126\3\2\2\2\u0643\u0644\7g\2\2\u0644\u0645\7p\2\2\u0= 645")=0D + buf.write("\u0646\7f\2\2\u0646\u0647\7t\2\2\u0647\u0648\7w\2\2\u06= 48")=0D + buf.write("\u0649\7n\2\2\u0649\u064a\7g\2\2\u064a\u0128\3\2\2\2\u0= 64b")=0D + buf.write("\u064c\7x\2\2\u064c\u064d\7c\2\2\u064d\u064e\7n\2\2\u06= 4e")=0D + buf.write("\u064f\7w\2\2\u064f\u0650\7g\2\2\u0650\u012a\3\2\2\2\u0= 651")=0D + buf.write("\u0652\7t\2\2\u0652\u0653\7g\2\2\u0653\u0654\7c\2\2\u06= 54")=0D + buf.write("\u0655\7f\2\2\u0655\u012c\3\2\2\2\u0656\u0657\7y\2\2\u0= 657")=0D + buf.write("\u0658\7t\2\2\u0658\u0659\7k\2\2\u0659\u065a\7v\2\2\u06= 5a")=0D + buf.write("\u065b\7g\2\2\u065b\u012e\3\2\2\2\u065c\u065d\7t\2\2\u0= 65d")=0D + buf.write("\u065e\7g\2\2\u065e\u065f\7u\2\2\u065f\u0660\7g\2\2\u06= 60")=0D + buf.write("\u0661\7v\2\2\u0661\u0662\7d\2\2\u0662\u0663\7w\2\2\u06= 63")=0D + buf.write("\u0664\7v\2\2\u0664\u0665\7v\2\2\u0665\u0666\7q\2\2\u06= 66")=0D + buf.write("\u0667\7p\2\2\u0667\u0130\3\2\2\2\u0668\u0669\7g\2\2\u0= 669")=0D + buf.write("\u066a\7p\2\2\u066a\u066b\7f\2\2\u066b\u066c\7t\2\2\u06= 6c")=0D + buf.write("\u066d\7g\2\2\u066d\u066e\7u\2\2\u066e\u066f\7g\2\2\u06= 6f")=0D + buf.write("\u0670\7v\2\2\u0670\u0671\7d\2\2\u0671\u0672\7w\2\2\u06= 72")=0D + buf.write("\u0673\7v\2\2\u0673\u0674\7v\2\2\u0674\u0675\7q\2\2\u06= 75")=0D + buf.write("\u0676\7p\2\2\u0676\u0132\3\2\2\2\u0677\u0678\7f\2\2\u0= 678")=0D + buf.write("\u0679\7g\2\2\u0679\u067a\7h\2\2\u067a\u067b\7c\2\2\u06= 7b")=0D + buf.write("\u067c\7w\2\2\u067c\u067d\7n\2\2\u067d\u067e\7v\2\2\u06= 7e")=0D + buf.write("\u067f\7u\2\2\u067f\u0680\7v\2\2\u0680\u0681\7q\2\2\u06= 81")=0D + buf.write("\u0682\7t\2\2\u0682\u0683\7g\2\2\u0683\u0134\3\2\2\2\u0= 684")=0D + buf.write("\u0685\7c\2\2\u0685\u0686\7v\2\2\u0686\u0687\7v\2\2\u06= 87")=0D + buf.write("\u0688\7t\2\2\u0688\u0689\7k\2\2\u0689\u068a\7d\2\2\u06= 8a")=0D + buf.write("\u068b\7w\2\2\u068b\u068c\7v\2\2\u068c\u068d\7g\2\2\u06= 8d")=0D + buf.write("\u0136\3\2\2\2\u068e\u068f\7x\2\2\u068f\u0690\7c\2\2\u0= 690")=0D + buf.write("\u0691\7t\2\2\u0691\u0692\7u\2\2\u0692\u0693\7v\2\2\u06= 93")=0D + buf.write("\u0694\7q\2\2\u0694\u0695\7t\2\2\u0695\u0696\7g\2\2\u06= 96")=0D + buf.write("\u0138\3\2\2\2\u0697\u0698\7g\2\2\u0698\u0699\7h\2\2\u0= 699")=0D + buf.write("\u069a\7k\2\2\u069a\u069b\7x\2\2\u069b\u069c\7c\2\2\u06= 9c")=0D + buf.write("\u069d\7t\2\2\u069d\u069e\7u\2\2\u069e\u069f\7v\2\2\u06= 9f")=0D + buf.write("\u06a0\7q\2\2\u06a0\u06a1\7t\2\2\u06a1\u06a2\7g\2\2\u06= a2")=0D + buf.write("\u013a\3\2\2\2\u06a3\u06a4\7x\2\2\u06a4\u06a5\7c\2\2\u0= 6a5")=0D + buf.write("\u06a6\7t\2\2\u06a6\u06a7\7u\2\2\u06a7\u06a8\7k\2\2\u06= a8")=0D + buf.write("\u06a9\7|\2\2\u06a9\u06aa\7g\2\2\u06aa\u013c\3\2\2\2\u0= 6ab")=0D + buf.write("\u06ac\7p\2\2\u06ac\u06ad\7c\2\2\u06ad\u06ae\7o\2\2\u06= ae")=0D + buf.write("\u06af\7g\2\2\u06af\u06b0\7x\2\2\u06b0\u06b1\7c\2\2\u06= b1")=0D + buf.write("\u06b2\7n\2\2\u06b2\u06b3\7w\2\2\u06b3\u06b4\7g\2\2\u06= b4")=0D + buf.write("\u06b5\7x\2\2\u06b5\u06b6\7c\2\2\u06b6\u06b7\7t\2\2\u06= b7")=0D + buf.write("\u06b8\7u\2\2\u06b8\u06b9\7v\2\2\u06b9\u06ba\7q\2\2\u06= ba")=0D + buf.write("\u06bb\7t\2\2\u06bb\u06bc\7g\2\2\u06bc\u013e\3\2\2\2\u0= 6bd")=0D + buf.write("\u06be\7c\2\2\u06be\u06bf\7e\2\2\u06bf\u06c0\7v\2\2\u06= c0")=0D + buf.write("\u06c1\7k\2\2\u06c1\u06c2\7q\2\2\u06c2\u06c3\7p\2\2\u06= c3")=0D + buf.write("\u0140\3\2\2\2\u06c4\u06c5\7e\2\2\u06c5\u06c6\7q\2\2\u0= 6c6")=0D + buf.write("\u06c7\7p\2\2\u06c7\u06c8\7h\2\2\u06c8\u06c9\7k\2\2\u06= c9")=0D + buf.write("\u06ca\7i\2\2\u06ca\u0142\3\2\2\2\u06cb\u06cc\7g\2\2\u0= 6cc")=0D + buf.write("\u06cd\7p\2\2\u06cd\u06ce\7f\2\2\u06ce\u06cf\7c\2\2\u06= cf")=0D + buf.write("\u06d0\7e\2\2\u06d0\u06d1\7v\2\2\u06d1\u06d2\7k\2\2\u06= d2")=0D + buf.write("\u06d3\7q\2\2\u06d3\u06d4\7p\2\2\u06d4\u0144\3\2\2\2\u0= 6d5")=0D + buf.write("\u06d6\7t\2\2\u06d6\u06d7\7g\2\2\u06d7\u06d8\7h\2\2\u06= d8")=0D + buf.write("\u06d9\7t\2\2\u06d9\u06da\7g\2\2\u06da\u06db\7u\2\2\u06= db")=0D + buf.write("\u06dc\7j\2\2\u06dc\u0146\3\2\2\2\u06dd\u06de\7k\2\2\u0= 6de")=0D + buf.write("\u06df\7p\2\2\u06df\u06e0\7v\2\2\u06e0\u06e1\7g\2\2\u06= e1")=0D + buf.write("\u06e2\7t\2\2\u06e2\u06e3\7x\2\2\u06e3\u06e4\7c\2\2\u06= e4")=0D + buf.write("\u06e5\7n\2\2\u06e5\u0148\3\2\2\2\u06e6\u06e7\7x\2\2\u0= 6e7")=0D + buf.write("\u06e8\7c\2\2\u06e8\u06e9\7t\2\2\u06e9\u06ea\7u\2\2\u06= ea")=0D + buf.write("\u06eb\7v\2\2\u06eb\u06ec\7q\2\2\u06ec\u06ed\7t\2\2\u06= ed")=0D + buf.write("\u06ee\7g\2\2\u06ee\u06ef\7f\2\2\u06ef\u06f0\7g\2\2\u06= f0")=0D + buf.write("\u06f1\7x\2\2\u06f1\u06f2\7k\2\2\u06f2\u06f3\7e\2\2\u06= f3")=0D + buf.write("\u06f4\7g\2\2\u06f4\u014a\3\2\2\2\u06f5\u06f6\7i\2\2\u0= 6f6")=0D + buf.write("\u06f7\7w\2\2\u06f7\u06f8\7k\2\2\u06f8\u06f9\7f\2\2\u06= f9")=0D + buf.write("\u06fa\7q\2\2\u06fa\u06fb\7r\2\2\u06fb\u014c\3\2\2\2\u0= 6fc")=0D + buf.write("\u06fd\7g\2\2\u06fd\u06fe\7p\2\2\u06fe\u06ff\7f\2\2\u06= ff")=0D + buf.write("\u0700\7i\2\2\u0700\u0701\7w\2\2\u0701\u0702\7k\2\2\u07= 02")=0D + buf.write("\u0703\7f\2\2\u0703\u0704\7q\2\2\u0704\u0705\7r\2\2\u07= 05")=0D + buf.write("\u014e\3\2\2\2\u0706\u0707\7f\2\2\u0707\u0708\7c\2\2\u0= 708")=0D + buf.write("\u0709\7v\2\2\u0709\u070a\7c\2\2\u070a\u070b\7v\2\2\u07= 0b")=0D + buf.write("\u070c\7{\2\2\u070c\u070d\7r\2\2\u070d\u070e\7g\2\2\u07= 0e")=0D + buf.write("\u0150\3\2\2\2\u070f\u0710\7f\2\2\u0710\u0711\7c\2\2\u0= 711")=0D + buf.write("\u0712\7v\2\2\u0712\u0713\7c\2\2\u0713\u0152\3\2\2\2\u0= 714")=0D + buf.write("\u0715\7o\2\2\u0715\u0716\7q\2\2\u0716\u0717\7f\2\2\u07= 17")=0D + buf.write("\u0718\7c\2\2\u0718\u0719\7n\2\2\u0719\u0154\3\2\2\2\u0= 71a")=0D + buf.write("\u071b\7P\2\2\u071b\u071c\7Q\2\2\u071c\u071d\7P\2\2\u07= 1d")=0D + buf.write("\u071e\7a\2\2\u071e\u071f\7F\2\2\u071f\u0720\7G\2\2\u07= 20")=0D + buf.write("\u0721\7X\2\2\u0721\u0722\7K\2\2\u0722\u0723\7E\2\2\u07= 23")=0D + buf.write("\u0724\7G\2\2\u0724\u0156\3\2\2\2\u0725\u0726\7F\2\2\u0= 726")=0D + buf.write("\u0727\7K\2\2\u0727\u0728\7U\2\2\u0728\u0729\7M\2\2\u07= 29")=0D + buf.write("\u072a\7a\2\2\u072a\u072b\7F\2\2\u072b\u072c\7G\2\2\u07= 2c")=0D + buf.write("\u072d\7X\2\2\u072d\u072e\7K\2\2\u072e\u072f\7E\2\2\u07= 2f")=0D + buf.write("\u0730\7G\2\2\u0730\u0158\3\2\2\2\u0731\u0732\7X\2\2\u0= 732")=0D + buf.write("\u0733\7K\2\2\u0733\u0734\7F\2\2\u0734\u0735\7G\2\2\u07= 35")=0D + buf.write("\u0736\7Q\2\2\u0736\u0737\7a\2\2\u0737\u0738\7F\2\2\u07= 38")=0D + buf.write("\u0739\7G\2\2\u0739\u073a\7X\2\2\u073a\u073b\7K\2\2\u07= 3b")=0D + buf.write("\u073c\7E\2\2\u073c\u073d\7G\2\2\u073d\u015a\3\2\2\2\u0= 73e")=0D + buf.write("\u073f\7P\2\2\u073f\u0740\7G\2\2\u0740\u0741\7V\2\2\u07= 41")=0D + buf.write("\u0742\7Y\2\2\u0742\u0743\7Q\2\2\u0743\u0744\7T\2\2\u07= 44")=0D + buf.write("\u0745\7M\2\2\u0745\u0746\7a\2\2\u0746\u0747\7F\2\2\u07= 47")=0D + buf.write("\u0748\7G\2\2\u0748\u0749\7X\2\2\u0749\u074a\7K\2\2\u07= 4a")=0D + buf.write("\u074b\7E\2\2\u074b\u074c\7G\2\2\u074c\u015c\3\2\2\2\u0= 74d")=0D + buf.write("\u074e\7K\2\2\u074e\u074f\7P\2\2\u074f\u0750\7R\2\2\u07= 50")=0D + buf.write("\u0751\7W\2\2\u0751\u0752\7V\2\2\u0752\u0753\7a\2\2\u07= 53")=0D + buf.write("\u0754\7F\2\2\u0754\u0755\7G\2\2\u0755\u0756\7X\2\2\u07= 56")=0D + buf.write("\u0757\7K\2\2\u0757\u0758\7E\2\2\u0758\u0759\7G\2\2\u07= 59")=0D + buf.write("\u015e\3\2\2\2\u075a\u075b\7Q\2\2\u075b\u075c\7P\2\2\u0= 75c")=0D + buf.write("\u075d\7D\2\2\u075d\u075e\7Q\2\2\u075e\u075f\7C\2\2\u07= 5f")=0D + buf.write("\u0760\7T\2\2\u0760\u0761\7F\2\2\u0761\u0762\7a\2\2\u07= 62")=0D + buf.write("\u0763\7F\2\2\u0763\u0764\7G\2\2\u0764\u0765\7X\2\2\u07= 65")=0D + buf.write("\u0766\7K\2\2\u0766\u0767\7E\2\2\u0767\u0768\7G\2\2\u07= 68")=0D + buf.write("\u0160\3\2\2\2\u0769\u076a\7Q\2\2\u076a\u076b\7V\2\2\u0= 76b")=0D + buf.write("\u076c\7J\2\2\u076c\u076d\7G\2\2\u076d\u076e\7T\2\2\u07= 6e")=0D + buf.write("\u076f\7a\2\2\u076f\u0770\7F\2\2\u0770\u0771\7G\2\2\u07= 71")=0D + buf.write("\u0772\7X\2\2\u0772\u0773\7K\2\2\u0773\u0774\7E\2\2\u07= 74")=0D + buf.write("\u0775\7G\2\2\u0775\u0162\3\2\2\2\u0776\u0777\7U\2\2\u0= 777")=0D + buf.write("\u0778\7G\2\2\u0778\u0779\7V\2\2\u0779\u077a\7W\2\2\u07= 7a")=0D + buf.write("\u077b\7R\2\2\u077b\u077c\7a\2\2\u077c\u077d\7C\2\2\u07= 7d")=0D + buf.write("\u077e\7R\2\2\u077e\u077f\7R\2\2\u077f\u0780\7N\2\2\u07= 80")=0D + buf.write("\u0781\7K\2\2\u0781\u0782\7E\2\2\u0782\u0783\7C\2\2\u07= 83")=0D + buf.write("\u0784\7V\2\2\u0784\u0785\7K\2\2\u0785\u0786\7Q\2\2\u07= 86")=0D + buf.write("\u0787\7P\2\2\u0787\u0164\3\2\2\2\u0788\u0789\7I\2\2\u0= 789")=0D + buf.write("\u078a\7G\2\2\u078a\u078b\7P\2\2\u078b\u078c\7G\2\2\u07= 8c")=0D + buf.write("\u078d\7T\2\2\u078d\u078e\7C\2\2\u078e\u078f\7N\2\2\u07= 8f")=0D + buf.write("\u0790\7a\2\2\u0790\u0791\7C\2\2\u0791\u0792\7R\2\2\u07= 92")=0D + buf.write("\u0793\7R\2\2\u0793\u0794\7N\2\2\u0794\u0795\7K\2\2\u07= 95")=0D + buf.write("\u0796\7E\2\2\u0796\u0797\7C\2\2\u0797\u0798\7V\2\2\u07= 98")=0D + buf.write("\u0799\7K\2\2\u0799\u079a\7Q\2\2\u079a\u079b\7P\2\2\u07= 9b")=0D + buf.write("\u0166\3\2\2\2\u079c\u079d\7H\2\2\u079d\u079e\7T\2\2\u0= 79e")=0D + buf.write("\u079f\7Q\2\2\u079f\u07a0\7P\2\2\u07a0\u07a1\7V\2\2\u07= a1")=0D + buf.write("\u07a2\7a\2\2\u07a2\u07a3\7R\2\2\u07a3\u07a4\7C\2\2\u07= a4")=0D + buf.write("\u07a5\7I\2\2\u07a5\u07a6\7G\2\2\u07a6\u0168\3\2\2\2\u0= 7a7")=0D + buf.write("\u07a8\7U\2\2\u07a8\u07a9\7K\2\2\u07a9\u07aa\7P\2\2\u07= aa")=0D + buf.write("\u07ab\7I\2\2\u07ab\u07ac\7N\2\2\u07ac\u07ad\7G\2\2\u07= ad")=0D + buf.write("\u07ae\7a\2\2\u07ae\u07af\7W\2\2\u07af\u07b0\7U\2\2\u07= b0")=0D + buf.write("\u07b1\7G\2\2\u07b1\u016a\3\2\2\2\u07b2\u07b3\7[\2\2\u0= 7b3")=0D + buf.write("\u07b4\7G\2\2\u07b4\u07b5\7C\2\2\u07b5\u07b6\7T\2\2\u07= b6")=0D + buf.write("\u07b7\7a\2\2\u07b7\u07b8\7U\2\2\u07b8\u07b9\7W\2\2\u07= b9")=0D + buf.write("\u07ba\7R\2\2\u07ba\u07bb\7R\2\2\u07bb\u07bc\7T\2\2\u07= bc")=0D + buf.write("\u07bd\7G\2\2\u07bd\u07be\7U\2\2\u07be\u07bf\7U\2\2\u07= bf")=0D + buf.write("\u016c\3\2\2\2\u07c0\u07c1\7O\2\2\u07c1\u07c2\7Q\2\2\u0= 7c2")=0D + buf.write("\u07c3\7P\2\2\u07c3\u07c4\7V\2\2\u07c4\u07c5\7J\2\2\u07= c5")=0D + buf.write("\u07c6\7a\2\2\u07c6\u07c7\7U\2\2\u07c7\u07c8\7W\2\2\u07= c8")=0D + buf.write("\u07c9\7R\2\2\u07c9\u07ca\7R\2\2\u07ca\u07cb\7T\2\2\u07= cb")=0D + buf.write("\u07cc\7G\2\2\u07cc\u07cd\7U\2\2\u07cd\u07ce\7U\2\2\u07= ce")=0D + buf.write("\u016e\3\2\2\2\u07cf\u07d0\7F\2\2\u07d0\u07d1\7C\2\2\u0= 7d1")=0D + buf.write("\u07d2\7[\2\2\u07d2\u07d3\7a\2\2\u07d3\u07d4\7U\2\2\u07= d4")=0D + buf.write("\u07d5\7W\2\2\u07d5\u07d6\7R\2\2\u07d6\u07d7\7R\2\2\u07= d7")=0D + buf.write("\u07d8\7T\2\2\u07d8\u07d9\7G\2\2\u07d9\u07da\7U\2\2\u07= da")=0D + buf.write("\u07db\7U\2\2\u07db\u0170\3\2\2\2\u07dc\u07dd\7J\2\2\u0= 7dd")=0D + buf.write("\u07de\7Q\2\2\u07de\u07df\7W\2\2\u07df\u07e0\7T\2\2\u07= e0")=0D + buf.write("\u07e1\7a\2\2\u07e1\u07e2\7U\2\2\u07e2\u07e3\7W\2\2\u07= e3")=0D + buf.write("\u07e4\7R\2\2\u07e4\u07e5\7R\2\2\u07e5\u07e6\7T\2\2\u07= e6")=0D + buf.write("\u07e7\7G\2\2\u07e7\u07e8\7U\2\2\u07e8\u07e9\7U\2\2\u07= e9")=0D + buf.write("\u0172\3\2\2\2\u07ea\u07eb\7O\2\2\u07eb\u07ec\7K\2\2\u0= 7ec")=0D + buf.write("\u07ed\7P\2\2\u07ed\u07ee\7W\2\2\u07ee\u07ef\7V\2\2\u07= ef")=0D + buf.write("\u07f0\7G\2\2\u07f0\u07f1\7a\2\2\u07f1\u07f2\7U\2\2\u07= f2")=0D + buf.write("\u07f3\7W\2\2\u07f3\u07f4\7R\2\2\u07f4\u07f5\7R\2\2\u07= f5")=0D + buf.write("\u07f6\7T\2\2\u07f6\u07f7\7G\2\2\u07f7\u07f8\7U\2\2\u07= f8")=0D + buf.write("\u07f9\7U\2\2\u07f9\u0174\3\2\2\2\u07fa\u07fb\7U\2\2\u0= 7fb")=0D + buf.write("\u07fc\7G\2\2\u07fc\u07fd\7E\2\2\u07fd\u07fe\7Q\2\2\u07= fe")=0D + buf.write("\u07ff\7P\2\2\u07ff\u0800\7F\2\2\u0800\u0801\7a\2\2\u08= 01")=0D + buf.write("\u0802\7U\2\2\u0802\u0803\7W\2\2\u0803\u0804\7R\2\2\u08= 04")=0D + buf.write("\u0805\7R\2\2\u0805\u0806\7T\2\2\u0806\u0807\7G\2\2\u08= 07")=0D + buf.write("\u0808\7U\2\2\u0808\u0809\7U\2\2\u0809\u0176\3\2\2\2\u0= 80a")=0D + buf.write("\u080b\7U\2\2\u080b\u080c\7V\2\2\u080c\u080d\7Q\2\2\u08= 0d")=0D + buf.write("\u080e\7T\2\2\u080e\u080f\7C\2\2\u080f\u0810\7I\2\2\u08= 10")=0D + buf.write("\u0811\7G\2\2\u0811\u0812\7a\2\2\u0812\u0813\7P\2\2\u08= 13")=0D + buf.write("\u0814\7Q\2\2\u0814\u0815\7T\2\2\u0815\u0816\7O\2\2\u08= 16")=0D + buf.write("\u0817\7C\2\2\u0817\u0818\7N\2\2\u0818\u0178\3\2\2\2\u0= 819")=0D + buf.write("\u081a\7U\2\2\u081a\u081b\7V\2\2\u081b\u081c\7Q\2\2\u08= 1c")=0D + buf.write("\u081d\7T\2\2\u081d\u081e\7C\2\2\u081e\u081f\7I\2\2\u08= 1f")=0D + buf.write("\u0820\7G\2\2\u0820\u0821\7a\2\2\u0821\u0822\7V\2\2\u08= 22")=0D + buf.write("\u0823\7K\2\2\u0823\u0824\7O\2\2\u0824\u0825\7G\2\2\u08= 25")=0D + buf.write("\u017a\3\2\2\2\u0826\u0827\7U\2\2\u0827\u0828\7V\2\2\u0= 828")=0D + buf.write("\u0829\7Q\2\2\u0829\u082a\7T\2\2\u082a\u082b\7C\2\2\u08= 2b")=0D + buf.write("\u082c\7I\2\2\u082c\u082d\7G\2\2\u082d\u082e\7a\2\2\u08= 2e")=0D + buf.write("\u082f\7Y\2\2\u082f\u0830\7C\2\2\u0830\u0831\7M\2\2\u08= 31")=0D + buf.write("\u0832\7G\2\2\u0832\u0833\7W\2\2\u0833\u0834\7R\2\2\u08= 34")=0D + buf.write("\u017c\3\2\2\2\u0835\u0836\7W\2\2\u0836\u0837\7P\2\2\u0= 837")=0D + buf.write("\u0838\7K\2\2\u0838\u0839\7S\2\2\u0839\u083a\7W\2\2\u08= 3a")=0D + buf.write("\u083b\7G\2\2\u083b\u017e\3\2\2\2\u083c\u083d\7P\2\2\u0= 83d")=0D + buf.write("\u083e\7Q\2\2\u083e\u083f\7G\2\2\u083f\u0840\7O\2\2\u08= 40")=0D + buf.write("\u0841\7R\2\2\u0841\u0842\7V\2\2\u0842\u0843\7[\2\2\u08= 43")=0D + buf.write("\u0180\3\2\2\2\u0844\u0845\7e\2\2\u0845\u0846\7q\2\2\u0= 846")=0D + buf.write("\u0847\7p\2\2\u0847\u0848\7f\2\2\u0848\u0182\3\2\2\2\u0= 849")=0D + buf.write("\u084a\7h\2\2\u084a\u084b\7k\2\2\u084b\u084c\7p\2\2\u08= 4c")=0D + buf.write("\u084d\7f\2\2\u084d\u0184\3\2\2\2\u084e\u084f\7o\2\2\u0= 84f")=0D + buf.write("\u0850\7k\2\2\u0850\u0851\7f\2\2\u0851\u0186\3\2\2\2\u0= 852")=0D + buf.write("\u0853\7v\2\2\u0853\u0854\7q\2\2\u0854\u0855\7m\2\2\u08= 55")=0D + buf.write("\u0856\7g\2\2\u0856\u0857\7p\2\2\u0857\u0188\3\2\2\2\u0= 858")=0D + buf.write("\u0859\7u\2\2\u0859\u085a\7r\2\2\u085a\u085b\7c\2\2\u08= 5b")=0D + buf.write("\u085c\7p\2\2\u085c\u018a\3\2\2\2\u085d\u085e\7f\2\2\u0= 85e")=0D + buf.write("\u085f\7w\2\2\u085f\u0860\7r\2\2\u0860\u018c\3\2\2\2\u0= 861")=0D + buf.write("\u0862\7x\2\2\u0862\u0863\7c\2\2\u0863\u0864\7t\2\2\u08= 64")=0D + buf.write("\u0865\7g\2\2\u0865\u0866\7s\2\2\u0866\u0867\7x\2\2\u08= 67")=0D + buf.write("\u0868\7c\2\2\u0868\u0869\7n\2\2\u0869\u018e\3\2\2\2\u0= 86a")=0D + buf.write("\u086b\7x\2\2\u086b\u086c\7c\2\2\u086c\u086d\7t\2\2\u08= 6d")=0D + buf.write("\u0190\3\2\2\2\u086e\u086f\7k\2\2\u086f\u0870\7f\2\2\u0= 870")=0D + buf.write("\u0871\7g\2\2\u0871\u0872\7s\2\2\u0872\u0873\7x\2\2\u08= 73")=0D + buf.write("\u0874\7c\2\2\u0874\u0875\7n\2\2\u0875\u0192\3\2\2\2\u0= 876")=0D + buf.write("\u0877\7k\2\2\u0877\u0878\7f\2\2\u0878\u0879\7g\2\2\u08= 79")=0D + buf.write("\u087a\7s\2\2\u087a\u087b\7k\2\2\u087b\u087c\7f\2\2\u08= 7c")=0D + buf.write("\u0194\3\2\2\2\u087d\u087e\7k\2\2\u087e\u087f\7f\2\2\u0= 87f")=0D + buf.write("\u0880\7g\2\2\u0880\u0881\7s\2\2\u0881\u0882\7x\2\2\u08= 82")=0D + buf.write("\u0883\7c\2\2\u0883\u0884\7n\2\2\u0884\u0885\7n\2\2\u08= 85")=0D + buf.write("\u0886\7k\2\2\u0886\u0887\7u\2\2\u0887\u0888\7v\2\2\u08= 88")=0D + buf.write("\u0196\3\2\2\2\u0889\u088a\7s\2\2\u088a\u088b\7w\2\2\u0= 88b")=0D + buf.write("\u088c\7g\2\2\u088c\u088d\7u\2\2\u088d\u088e\7v\2\2\u08= 8e")=0D + buf.write("\u088f\7k\2\2\u088f\u0890\7q\2\2\u0890\u0891\7p\2\2\u08= 91")=0D + buf.write("\u0892\7t\2\2\u0892\u0893\7g\2\2\u0893\u0894\7h\2\2\u08= 94")=0D + buf.write("\u0198\3\2\2\2\u0895\u0896\7t\2\2\u0896\u0897\7w\2\2\u0= 897")=0D + buf.write("\u0898\7n\2\2\u0898\u0899\7g\2\2\u0899\u089a\7t\2\2\u08= 9a")=0D + buf.write("\u089b\7g\2\2\u089b\u089c\7h\2\2\u089c\u019a\3\2\2\2\u0= 89d")=0D + buf.write("\u089e\7u\2\2\u089e\u089f\7v\2\2\u089f\u08a0\7t\2\2\u08= a0")=0D + buf.write("\u08a1\7k\2\2\u08a1\u08a2\7p\2\2\u08a2\u08a3\7i\2\2\u08= a3")=0D + buf.write("\u08a4\7t\2\2\u08a4\u08a5\7g\2\2\u08a5\u08a6\7h\2\2\u08= a6")=0D + buf.write("\u019c\3\2\2\2\u08a7\u08a8\7r\2\2\u08a8\u08a9\7w\2\2\u0= 8a9")=0D + buf.write("\u08aa\7u\2\2\u08aa\u08ab\7j\2\2\u08ab\u08ac\7v\2\2\u08= ac")=0D + buf.write("\u08ad\7j\2\2\u08ad\u08ae\7k\2\2\u08ae\u08af\7u\2\2\u08= af")=0D + buf.write("\u019e\3\2\2\2\u08b0\u08b1\7u\2\2\u08b1\u08b2\7g\2\2\u0= 8b2")=0D + buf.write("\u08b3\7e\2\2\u08b3\u08b4\7w\2\2\u08b4\u08b5\7t\2\2\u08= b5")=0D + buf.write("\u08b6\7k\2\2\u08b6\u08b7\7v\2\2\u08b7\u08b8\7{\2\2\u08= b8")=0D + buf.write("\u01a0\3\2\2\2\u08b9\u08ba\7i\2\2\u08ba\u08bb\7g\2\2\u0= 8bb")=0D + buf.write("\u08bc\7v\2\2\u08bc\u01a2\3\2\2\2\u08bd\u08be\7V\2\2\u0= 8be")=0D + buf.write("\u08bf\7T\2\2\u08bf\u08c0\7W\2\2\u08c0\u08c1\7G\2\2\u08= c1")=0D + buf.write("\u01a4\3\2\2\2\u08c2\u08c3\7H\2\2\u08c3\u08c4\7C\2\2\u0= 8c4")=0D + buf.write("\u08c5\7N\2\2\u08c5\u08c6\7U\2\2\u08c6\u08c7\7G\2\2\u08= c7")=0D + buf.write("\u01a6\3\2\2\2\u08c8\u08c9\7Q\2\2\u08c9\u08ca\7P\2\2\u0= 8ca")=0D + buf.write("\u08cb\7G\2\2\u08cb\u01a8\3\2\2\2\u08cc\u08cd\7Q\2\2\u0= 8cd")=0D + buf.write("\u08ce\7P\2\2\u08ce\u08cf\7G\2\2\u08cf\u08d0\7U\2\2\u08= d0")=0D + buf.write("\u01aa\3\2\2\2\u08d1\u08d2\7\\\2\2\u08d2\u08d3\7G\2\2")= =0D + buf.write("\u08d3\u08d4\7T\2\2\u08d4\u08d5\7Q\2\2\u08d5\u01ac\3\2"= )=0D + buf.write("\2\2\u08d6\u08d7\7W\2\2\u08d7\u08d8\7P\2\2\u08d8\u08d9"= )=0D + buf.write("\7F\2\2\u08d9\u08da\7G\2\2\u08da\u08db\7H\2\2\u08db\u08= dc")=0D + buf.write("\7K\2\2\u08dc\u08dd\7P\2\2\u08dd\u08de\7G\2\2\u08de\u08= df")=0D + buf.write("\7F\2\2\u08df\u01ae\3\2\2\2\u08e0\u08e1\7X\2\2\u08e1\u0= 8e2")=0D + buf.write("\7G\2\2\u08e2\u08e3\7T\2\2\u08e3\u08e4\7U\2\2\u08e4\u08= e5")=0D + buf.write("\7K\2\2\u08e5\u08e6\7Q\2\2\u08e6\u08e7\7P\2\2\u08e7\u01= b0")=0D + buf.write("\3\2\2\2\u08e8\u08e9\7n\2\2\u08e9\u08ea\7g\2\2\u08ea\u0= 8eb")=0D + buf.write("\7p\2\2\u08eb\u08ec\7i\2\2\u08ec\u08ed\7v\2\2\u08ed\u08= ee")=0D + buf.write("\7j\2\2\u08ee\u01b2\3\2\2\2\u08ef\u08f0\7C\2\2\u08f0\u0= 8f1")=0D + buf.write("\7P\2\2\u08f1\u08f2\7F\2\2\u08f2\u01b4\3\2\2\2\u08f3\u0= 8f4")=0D + buf.write("\7Q\2\2\u08f4\u08f5\7T\2\2\u08f5\u01b6\3\2\2\2\u08f6\u0= 8f7")=0D + buf.write("\7P\2\2\u08f7\u08f8\7Q\2\2\u08f8\u08f9\7V\2\2\u08f9\u01= b8")=0D + buf.write("\3\2\2\2\u08fa\u08fb\7u\2\2\u08fb\u08fc\7g\2\2\u08fc\u0= 8fd")=0D + buf.write("\7v\2\2\u08fd\u01ba\3\2\2\2\u08fe\u08ff\7\u0080\2\2\u08= ff")=0D + buf.write("\u01bc\3\2\2\2\u0900\u0901\7d\2\2\u0901\u0902\7q\2\2\u0= 902")=0D + buf.write("\u0903\7q\2\2\u0903\u0904\7n\2\2\u0904\u0905\7x\2\2\u09= 05")=0D + buf.write("\u0906\7c\2\2\u0906\u0907\7n\2\2\u0907\u01be\3\2\2\2\u0= 908")=0D + buf.write("\u0909\7u\2\2\u0909\u090a\7v\2\2\u090a\u090b\7t\2\2\u09= 0b")=0D + buf.write("\u090c\7k\2\2\u090c\u090d\7p\2\2\u090d\u090e\7i\2\2\u09= 0e")=0D + buf.write("\u090f\7x\2\2\u090f\u0910\7c\2\2\u0910\u0911\7n\2\2\u09= 11")=0D + buf.write("\u01c0\3\2\2\2\u0912\u0913\7w\2\2\u0913\u0914\7p\2\2\u0= 914")=0D + buf.write("\u0915\7k\2\2\u0915\u0916\7p\2\2\u0916\u0917\7v\2\2\u09= 17")=0D + buf.write("\u0918\7x\2\2\u0918\u0919\7c\2\2\u0919\u091a\7n\2\2\u09= 1a")=0D + buf.write("\u01c2\3\2\2\2\u091b\u091c\7v\2\2\u091c\u091d\7q\2\2\u0= 91d")=0D + buf.write("\u091e\7w\2\2\u091e\u091f\7r\2\2\u091f\u0920\7r\2\2\u09= 20")=0D + buf.write("\u0921\7g\2\2\u0921\u0922\7t\2\2\u0922\u01c4\3\2\2\2\u0= 923")=0D + buf.write("\u0924\7v\2\2\u0924\u0925\7q\2\2\u0925\u0926\7n\2\2\u09= 26")=0D + buf.write("\u0927\7q\2\2\u0927\u0928\7y\2\2\u0928\u0929\7g\2\2\u09= 29")=0D + buf.write("\u092a\7t\2\2\u092a\u01c6\3\2\2\2\u092b\u092c\7o\2\2\u0= 92c")=0D + buf.write("\u092d\7c\2\2\u092d\u092e\7v\2\2\u092e\u092f\7e\2\2\u09= 2f")=0D + buf.write("\u0930\7j\2\2\u0930\u01c8\3\2\2\2\u0931\u0932\7o\2\2\u0= 932")=0D + buf.write("\u0933\7c\2\2\u0933\u0934\7v\2\2\u0934\u0935\7e\2\2\u09= 35")=0D + buf.write("\u0936\7j\2\2\u0936\u0937\7\64\2\2\u0937\u01ca\3\2\2\2"= )=0D + buf.write("\u0938\u0939\7e\2\2\u0939\u093a\7c\2\2\u093a\u093b\7v")= =0D + buf.write("\2\2\u093b\u093c\7g\2\2\u093c\u093d\7p\2\2\u093d\u093e"= )=0D + buf.write("\7c\2\2\u093e\u093f\7v\2\2\u093f\u0940\7g\2\2\u0940\u01= cc")=0D + buf.write("\3\2\2\2\u0941\u0942\7s\2\2\u0942\u0943\7w\2\2\u0943\u0= 944")=0D + buf.write("\7g\2\2\u0944\u0945\7u\2\2\u0945\u0946\7v\2\2\u0946\u09= 47")=0D + buf.write("\7k\2\2\u0947\u0948\7q\2\2\u0948\u0949\7p\2\2\u0949\u09= 4a")=0D + buf.write("\7t\2\2\u094a\u094b\7g\2\2\u094b\u094c\7h\2\2\u094c\u09= 4d")=0D + buf.write("\7x\2\2\u094d\u094e\7c\2\2\u094e\u094f\7n\2\2\u094f\u01= ce")=0D + buf.write("\3\2\2\2\u0950\u0951\7u\2\2\u0951\u0952\7v\2\2\u0952\u0= 953")=0D + buf.write("\7t\2\2\u0953\u0954\7k\2\2\u0954\u0955\7p\2\2\u0955\u09= 56")=0D + buf.write("\7i\2\2\u0956\u0957\7t\2\2\u0957\u0958\7g\2\2\u0958\u09= 59")=0D + buf.write("\7h\2\2\u0959\u095a\7x\2\2\u095a\u095b\7c\2\2\u095b\u09= 5c")=0D + buf.write("\7n\2\2\u095c\u01d0\3\2\2\2\u095d\u095e\7o\2\2\u095e\u0= 95f")=0D + buf.write("\7c\2\2\u095f\u0960\7r\2\2\u0960\u01d2\3\2\2\2\u0961\u0= 962")=0D + buf.write("\7t\2\2\u0962\u0963\7g\2\2\u0963\u0964\7h\2\2\u0964\u09= 65")=0D + buf.write("\7t\2\2\u0965\u0966\7g\2\2\u0966\u0967\7u\2\2\u0967\u09= 68")=0D + buf.write("\7j\2\2\u0968\u0969\7i\2\2\u0969\u096a\7w\2\2\u096a\u09= 6b")=0D + buf.write("\7k\2\2\u096b\u096c\7f\2\2\u096c\u01d4\3\2\2\2\u096d\u0= 96e")=0D + buf.write("\7U\2\2\u096e\u096f\7V\2\2\u096f\u0970\7T\2\2\u0970\u09= 71")=0D + buf.write("\7K\2\2\u0971\u0972\7P\2\2\u0972\u0973\7I\2\2\u0973\u09= 74")=0D + buf.write("\7a\2\2\u0974\u0975\7V\2\2\u0975\u0976\7Q\2\2\u0976\u09= 77")=0D + buf.write("\7M\2\2\u0977\u0978\7G\2\2\u0978\u0979\7P\2\2\u0979\u01= d6")=0D + buf.write("\3\2\2\2\u097a\u097b\7Q\2\2\u097b\u097c\7R\2\2\u097c\u0= 97d")=0D + buf.write("\7V\2\2\u097d\u097e\7K\2\2\u097e\u097f\7Q\2\2\u097f\u09= 80")=0D + buf.write("\7P\2\2\u0980\u0981\7a\2\2\u0981\u0982\7F\2\2\u0982\u09= 83")=0D + buf.write("\7G\2\2\u0983\u0984\7H\2\2\u0984\u0985\7C\2\2\u0985\u09= 86")=0D + buf.write("\7W\2\2\u0986\u0987\7N\2\2\u0987\u0988\7V\2\2\u0988\u01= d8")=0D + buf.write("\3\2\2\2\u0989\u098a\7Q\2\2\u098a\u098b\7R\2\2\u098b\u0= 98c")=0D + buf.write("\7V\2\2\u098c\u098d\7K\2\2\u098d\u098e\7Q\2\2\u098e\u09= 8f")=0D + buf.write("\7P\2\2\u098f\u0990\7a\2\2\u0990\u0991\7F\2\2\u0991\u09= 92")=0D + buf.write("\7G\2\2\u0992\u0993\7H\2\2\u0993\u0994\7C\2\2\u0994\u09= 95")=0D + buf.write("\7W\2\2\u0995\u0996\7N\2\2\u0996\u0997\7V\2\2\u0997\u09= 98")=0D + buf.write("\7a\2\2\u0998\u0999\7O\2\2\u0999\u099a\7H\2\2\u099a\u09= 9b")=0D + buf.write("\7I\2\2\u099b\u01da\3\2\2\2\u099c\u099d\7P\2\2\u099d\u0= 99e")=0D + buf.write("\7W\2\2\u099e\u099f\7O\2\2\u099f\u09a0\7G\2\2\u09a0\u09= a1")=0D + buf.write("\7T\2\2\u09a1\u09a2\7K\2\2\u09a2\u09a3\7E\2\2\u09a3\u09= a4")=0D + buf.write("\7a\2\2\u09a4\u09a5\7U\2\2\u09a5\u09a6\7K\2\2\u09a6\u09= a7")=0D + buf.write("\7\\\2\2\u09a7\u09a8\7G\2\2\u09a8\u09a9\7a\2\2\u09a9\u0= 9aa")=0D + buf.write("\7\63\2\2\u09aa\u01dc\3\2\2\2\u09ab\u09ac\7P\2\2\u09ac"= )=0D + buf.write("\u09ad\7W\2\2\u09ad\u09ae\7O\2\2\u09ae\u09af\7G\2\2\u09= af")=0D + buf.write("\u09b0\7T\2\2\u09b0\u09b1\7K\2\2\u09b1\u09b2\7E\2\2\u09= b2")=0D + buf.write("\u09b3\7a\2\2\u09b3\u09b4\7U\2\2\u09b4\u09b5\7K\2\2\u09= b5")=0D + buf.write("\u09b6\7\\\2\2\u09b6\u09b7\7G\2\2\u09b7\u09b8\7a\2\2\u0= 9b8")=0D + buf.write("\u09b9\7\64\2\2\u09b9\u01de\3\2\2\2\u09ba\u09bb\7P\2\2"= )=0D + buf.write("\u09bb\u09bc\7W\2\2\u09bc\u09bd\7O\2\2\u09bd\u09be\7G")= =0D + buf.write("\2\2\u09be\u09bf\7T\2\2\u09bf\u09c0\7K\2\2\u09c0\u09c1"= )=0D + buf.write("\7E\2\2\u09c1\u09c2\7a\2\2\u09c2\u09c3\7U\2\2\u09c3\u09= c4")=0D + buf.write("\7K\2\2\u09c4\u09c5\7\\\2\2\u09c5\u09c6\7G\2\2\u09c6\u0= 9c7")=0D + buf.write("\7a\2\2\u09c7\u09c8\7\66\2\2\u09c8\u01e0\3\2\2\2\u09c9"= )=0D + buf.write("\u09ca\7P\2\2\u09ca\u09cb\7W\2\2\u09cb\u09cc\7O\2\2\u09= cc")=0D + buf.write("\u09cd\7G\2\2\u09cd\u09ce\7T\2\2\u09ce\u09cf\7K\2\2\u09= cf")=0D + buf.write("\u09d0\7E\2\2\u09d0\u09d1\7a\2\2\u09d1\u09d2\7U\2\2\u09= d2")=0D + buf.write("\u09d3\7K\2\2\u09d3\u09d4\7\\\2\2\u09d4\u09d5\7G\2\2\u0= 9d5")=0D + buf.write("\u09d6\7a\2\2\u09d6\u09d7\7:\2\2\u09d7\u01e2\3\2\2\2\u0= 9d8")=0D + buf.write("\u09d9\7F\2\2\u09d9\u09da\7K\2\2\u09da\u09db\7U\2\2\u09= db")=0D + buf.write("\u09dc\7R\2\2\u09dc\u09dd\7N\2\2\u09dd\u09de\7C\2\2\u09= de")=0D + buf.write("\u09df\7[\2\2\u09df\u09e0\7a\2\2\u09e0\u09e1\7K\2\2\u09= e1")=0D + buf.write("\u09e2\7P\2\2\u09e2\u09e3\7V\2\2\u09e3\u09e4\7a\2\2\u09= e4")=0D + buf.write("\u09e5\7F\2\2\u09e5\u09e6\7G\2\2\u09e6\u09e7\7E\2\2\u09= e7")=0D + buf.write("\u01e4\3\2\2\2\u09e8\u09e9\7F\2\2\u09e9\u09ea\7K\2\2\u0= 9ea")=0D + buf.write("\u09eb\7U\2\2\u09eb\u09ec\7R\2\2\u09ec\u09ed\7N\2\2\u09= ed")=0D + buf.write("\u09ee\7C\2\2\u09ee\u09ef\7[\2\2\u09ef\u09f0\7a\2\2\u09= f0")=0D + buf.write("\u09f1\7W\2\2\u09f1\u09f2\7K\2\2\u09f2\u09f3\7P\2\2\u09= f3")=0D + buf.write("\u09f4\7V\2\2\u09f4\u09f5\7a\2\2\u09f5\u09f6\7F\2\2\u09= f6")=0D + buf.write("\u09f7\7G\2\2\u09f7\u09f8\7E\2\2\u09f8\u01e6\3\2\2\2\u0= 9f9")=0D + buf.write("\u09fa\7F\2\2\u09fa\u09fb\7K\2\2\u09fb\u09fc\7U\2\2\u09= fc")=0D + buf.write("\u09fd\7R\2\2\u09fd\u09fe\7N\2\2\u09fe\u09ff\7C\2\2\u09= ff")=0D + buf.write("\u0a00\7[\2\2\u0a00\u0a01\7a\2\2\u0a01\u0a02\7W\2\2\u0a= 02")=0D + buf.write("\u0a03\7K\2\2\u0a03\u0a04\7P\2\2\u0a04\u0a05\7V\2\2\u0a= 05")=0D + buf.write("\u0a06\7a\2\2\u0a06\u0a07\7J\2\2\u0a07\u0a08\7G\2\2\u0a= 08")=0D + buf.write("\u0a09\7Z\2\2\u0a09\u01e8\3\2\2\2\u0a0a\u0a0b\7K\2\2\u0= a0b")=0D + buf.write("\u0a0c\7P\2\2\u0a0c\u0a0d\7U\2\2\u0a0d\u0a0e\7G\2\2\u0a= 0e")=0D + buf.write("\u0a0f\7P\2\2\u0a0f\u0a10\7U\2\2\u0a10\u0a11\7K\2\2\u0a= 11")=0D + buf.write("\u0a12\7V\2\2\u0a12\u0a13\7K\2\2\u0a13\u0a14\7X\2\2\u0a= 14")=0D + buf.write("\u0a15\7G\2\2\u0a15\u01ea\3\2\2\2\u0a16\u0a17\7U\2\2\u0= a17")=0D + buf.write("\u0a18\7G\2\2\u0a18\u0a19\7P\2\2\u0a19\u0a1a\7U\2\2\u0a= 1a")=0D + buf.write("\u0a1b\7K\2\2\u0a1b\u0a1c\7V\2\2\u0a1c\u0a1d\7K\2\2\u0a= 1d")=0D + buf.write("\u0a1e\7X\2\2\u0a1e\u0a1f\7G\2\2\u0a1f\u01ec\3\2\2\2\u0= a20")=0D + buf.write("\u0a21\7N\2\2\u0a21\u0a22\7C\2\2\u0a22\u0a23\7U\2\2\u0a= 23")=0D + buf.write("\u0a24\7V\2\2\u0a24\u0a25\7a\2\2\u0a25\u0a26\7P\2\2\u0a= 26")=0D + buf.write("\u0a27\7Q\2\2\u0a27\u0a28\7P\2\2\u0a28\u0a29\7a\2\2\u0a= 29")=0D + buf.write("\u0a2a\7O\2\2\u0a2a\u0a2b\7C\2\2\u0a2b\u0a2c\7V\2\2\u0a= 2c")=0D + buf.write("\u0a2d\7E\2\2\u0a2d\u0a2e\7J\2\2\u0a2e\u01ee\3\2\2\2\u0= a2f")=0D + buf.write("\u0a30\7H\2\2\u0a30\u0a31\7K\2\2\u0a31\u0a32\7T\2\2\u0a= 32")=0D + buf.write("\u0a33\7U\2\2\u0a33\u0a34\7V\2\2\u0a34\u0a35\7a\2\2\u0a= 35")=0D + buf.write("\u0a36\7P\2\2\u0a36\u0a37\7Q\2\2\u0a37\u0a38\7P\2\2\u0a= 38")=0D + buf.write("\u0a39\7a\2\2\u0a39\u0a3a\7O\2\2\u0a3a\u0a3b\7C\2\2\u0a= 3b")=0D + buf.write("\u0a3c\7V\2\2\u0a3c\u0a3d\7E\2\2\u0a3d\u0a3e\7J\2\2\u0a= 3e")=0D + buf.write("\u01f0\3\2\2\2\u0a3f\u0a40\7\62\2\2\u0a40\u0a41\7z\2\2"= )=0D + buf.write("\u0a41\u0a43\3\2\2\2\u0a42\u0a44\t\2\2\2\u0a43\u0a42\3"= )=0D + buf.write("\2\2\2\u0a44\u0a45\3\2\2\2\u0a45\u0a43\3\2\2\2\u0a45\u0= a46")=0D + buf.write("\3\2\2\2\u0a46\u0a4d\3\2\2\2\u0a47\u0a49\t\3\2\2\u0a48"= )=0D + buf.write("\u0a47\3\2\2\2\u0a49\u0a4a\3\2\2\2\u0a4a\u0a48\3\2\2\2"= )=0D + buf.write("\u0a4a\u0a4b\3\2\2\2\u0a4b\u0a4d\3\2\2\2\u0a4c\u0a3f\3"= )=0D + buf.write("\2\2\2\u0a4c\u0a48\3\2\2\2\u0a4d\u01f2\3\2\2\2\u0a4e\u0= a52")=0D + buf.write("\t\4\2\2\u0a4f\u0a51\t\5\2\2\u0a50\u0a4f\3\2\2\2\u0a51"= )=0D + buf.write("\u0a54\3\2\2\2\u0a52\u0a50\3\2\2\2\u0a52\u0a53\3\2\2\2"= )=0D + buf.write("\u0a53\u01f4\3\2\2\2\u0a54\u0a52\3\2\2\2\u0a55\u0a57\7"= )=0D + buf.write("%\2\2\u0a56\u0a58\5\u01fb\u00fe\2\u0a57\u0a56\3\2\2\2")= =0D + buf.write("\u0a57\u0a58\3\2\2\2\u0a58\u0a59\3\2\2\2\u0a59\u0a5a\7"= )=0D + buf.write("f\2\2\u0a5a\u0a5b\7g\2\2\u0a5b\u0a5c\7h\2\2\u0a5c\u0a5d= ")=0D + buf.write("\7k\2\2\u0a5d\u0a5e\7p\2\2\u0a5e\u0a5f\7g\2\2\u0a5f\u0a= 63")=0D + buf.write("\3\2\2\2\u0a60\u0a62\n\6\2\2\u0a61\u0a60\3\2\2\2\u0a62"= )=0D + buf.write("\u0a65\3\2\2\2\u0a63\u0a61\3\2\2\2\u0a63\u0a64\3\2\2\2"= )=0D + buf.write("\u0a64\u0a66\3\2\2\2\u0a65\u0a63\3\2\2\2\u0a66\u0a67\b"= )=0D + buf.write("\u00fb\2\2\u0a67\u01f6\3\2\2\2\u0a68\u0a6a\7%\2\2\u0a69= ")=0D + buf.write("\u0a6b\5\u01fb\u00fe\2\u0a6a\u0a69\3\2\2\2\u0a6a\u0a6b"= )=0D + buf.write("\3\2\2\2\u0a6b\u0a6c\3\2\2\2\u0a6c\u0a6d\7n\2\2\u0a6d")= =0D + buf.write("\u0a6e\7k\2\2\u0a6e\u0a6f\7p\2\2\u0a6f\u0a70\7g\2\2\u0a= 70")=0D + buf.write("\u0a74\3\2\2\2\u0a71\u0a73\n\6\2\2\u0a72\u0a71\3\2\2\2"= )=0D + buf.write("\u0a73\u0a76\3\2\2\2\u0a74\u0a72\3\2\2\2\u0a74\u0a75\3"= )=0D + buf.write("\2\2\2\u0a75\u0a77\3\2\2\2\u0a76\u0a74\3\2\2\2\u0a77\u0= a78")=0D + buf.write("\b\u00fc\2\2\u0a78\u01f8\3\2\2\2\u0a79\u0a7b\7%\2\2\u0a= 7a")=0D + buf.write("\u0a7c\5\u01fb\u00fe\2\u0a7b\u0a7a\3\2\2\2\u0a7b\u0a7c"= )=0D + buf.write("\3\2\2\2\u0a7c\u0a7d\3\2\2\2\u0a7d\u0a7e\7k\2\2\u0a7e")= =0D + buf.write("\u0a7f\7p\2\2\u0a7f\u0a80\7e\2\2\u0a80\u0a81\7n\2\2\u0a= 81")=0D + buf.write("\u0a82\7w\2\2\u0a82\u0a83\7f\2\2\u0a83\u0a84\7g\2\2\u0a= 84")=0D + buf.write("\u0a88\3\2\2\2\u0a85\u0a87\n\6\2\2\u0a86\u0a85\3\2\2\2"= )=0D + buf.write("\u0a87\u0a8a\3\2\2\2\u0a88\u0a86\3\2\2\2\u0a88\u0a89\3"= )=0D + buf.write("\2\2\2\u0a89\u0a8b\3\2\2\2\u0a8a\u0a88\3\2\2\2\u0a8b\u0= a8c")=0D + buf.write("\b\u00fd\2\2\u0a8c\u01fa\3\2\2\2\u0a8d\u0a8f\t\7\2\2\u0= a8e")=0D + buf.write("\u0a8d\3\2\2\2\u0a8f\u0a90\3\2\2\2\u0a90\u0a8e\3\2\2\2"= )=0D + buf.write("\u0a90\u0a91\3\2\2\2\u0a91\u0a92\3\2\2\2\u0a92\u0a93\b"= )=0D + buf.write("\u00fe\2\2\u0a93\u01fc\3\2\2\2\u0a94\u0a96\7\17\2\2\u0a= 95")=0D + buf.write("\u0a97\7\f\2\2\u0a96\u0a95\3\2\2\2\u0a96\u0a97\3\2\2\2"= )=0D + buf.write("\u0a97\u0a9a\3\2\2\2\u0a98\u0a9a\7\f\2\2\u0a99\u0a94\3"= )=0D + buf.write("\2\2\2\u0a99\u0a98\3\2\2\2\u0a9a\u0a9b\3\2\2\2\u0a9b\u0= a9c")=0D + buf.write("\b\u00ff\2\2\u0a9c\u01fe\3\2\2\2\u0a9d\u0a9e\7\61\2\2")= =0D + buf.write("\u0a9e\u0a9f\7\61\2\2\u0a9f\u0aa3\3\2\2\2\u0aa0\u0aa2")= =0D + buf.write("\n\b\2\2\u0aa1\u0aa0\3\2\2\2\u0aa2\u0aa5\3\2\2\2\u0aa3"= )=0D + buf.write("\u0aa1\3\2\2\2\u0aa3\u0aa4\3\2\2\2\u0aa4\u0aa6\3\2\2\2"= )=0D + buf.write("\u0aa5\u0aa3\3\2\2\2\u0aa6\u0aa7\b\u0100\2\2\u0aa7\u020= 0")=0D + buf.write("\3\2\2\2\u0aa8\u0aa9\7g\2\2\u0aa9\u0aaa\7z\2\2\u0aaa\u0= aab")=0D + buf.write("\7v\2\2\u0aab\u0aac\7g\2\2\u0aac\u0aad\7t\2\2\u0aad\u0a= ae")=0D + buf.write("\7p\2\2\u0aae\u0ab2\3\2\2\2\u0aaf\u0ab1\n\6\2\2\u0ab0")= =0D + buf.write("\u0aaf\3\2\2\2\u0ab1\u0ab4\3\2\2\2\u0ab2\u0ab0\3\2\2\2"= )=0D + buf.write("\u0ab2\u0ab3\3\2\2\2\u0ab3\u0ab5\3\2\2\2\u0ab4\u0ab2\3"= )=0D + buf.write("\2\2\2\u0ab5\u0ab6\b\u0101\2\2\u0ab6\u0202\3\2\2\2\22")= =0D + buf.write("\2\u0a45\u0a4a\u0a4c\u0a52\u0a57\u0a63\u0a6a\u0a74\u0a7= b")=0D + buf.write("\u0a88\u0a90\u0a96\u0a99\u0aa3\u0ab2\3\b\2\2")=0D + return buf.getvalue()=0D +=0D +=0D +class VfrSyntaxLexer(Lexer):=0D +=0D + atn =3D ATNDeserializer().deserialize(serializedATN())=0D +=0D + decisionsToDFA =3D [ DFA(ds, i) for i, ds in enumerate(atn.decisionToS= tate) ]=0D +=0D + T__0 =3D 1=0D + T__1 =3D 2=0D + T__2 =3D 3=0D + T__3 =3D 4=0D + T__4 =3D 5=0D + T__5 =3D 6=0D + T__6 =3D 7=0D + T__7 =3D 8=0D + T__8 =3D 9=0D + T__9 =3D 10=0D + T__10 =3D 11=0D + T__11 =3D 12=0D + T__12 =3D 13=0D + T__13 =3D 14=0D + T__14 =3D 15=0D + T__15 =3D 16=0D + Define =3D 17=0D + Include =3D 18=0D + FormPkgType =3D 19=0D + OpenBrace =3D 20=0D + CloseBrace =3D 21=0D + OpenParen =3D 22=0D + CloseParen =3D 23=0D + OpenBracket =3D 24=0D + CloseBracket =3D 25=0D + Dot =3D 26=0D + Negative =3D 27=0D + Colon =3D 28=0D + Slash =3D 29=0D + Semicolon =3D 30=0D + Comma =3D 31=0D + Equal =3D 32=0D + NotEqual =3D 33=0D + LessEqual =3D 34=0D + Less =3D 35=0D + GreaterEqual =3D 36=0D + Greater =3D 37=0D + BitWiseOr =3D 38=0D + BitWiseAnd =3D 39=0D + DevicePath =3D 40=0D + FormSet =3D 41=0D + FormSetId =3D 42=0D + EndFormSet =3D 43=0D + Title =3D 44=0D + FormId =3D 45=0D + OneOf =3D 46=0D + EndOneOf =3D 47=0D + Prompt =3D 48=0D + OrderedList =3D 49=0D + MaxContainers =3D 50=0D + EndList =3D 51=0D + EndForm =3D 52=0D + Form =3D 53=0D + FormMap =3D 54=0D + MapTitle =3D 55=0D + MapGuid =3D 56=0D + Subtitle =3D 57=0D + EndSubtitle =3D 58=0D + Help =3D 59=0D + Text =3D 60=0D + Option =3D 61=0D + FLAGS =3D 62=0D + Date =3D 63=0D + EndDate =3D 64=0D + Year =3D 65=0D + Month =3D 66=0D + Day =3D 67=0D + Time =3D 68=0D + EndTime =3D 69=0D + Hour =3D 70=0D + Minute =3D 71=0D + Second =3D 72=0D + GrayOutIf =3D 73=0D + Label =3D 74=0D + Timeout =3D 75=0D + Inventory =3D 76=0D + NonNvDataMap =3D 77=0D + Struct =3D 78=0D + Union =3D 79=0D + Boolean =3D 80=0D + Uint64 =3D 81=0D + Uint32 =3D 82=0D + Uint16 =3D 83=0D + Uint8 =3D 84=0D + EFI_STRING_ID =3D 85=0D + EFI_HII_DATE =3D 86=0D + EFI_HII_TIME =3D 87=0D + EFI_HII_REF =3D 88=0D + Uuid =3D 89=0D + CheckBox =3D 90=0D + EndCheckBox =3D 91=0D + Numeric =3D 92=0D + EndNumeric =3D 93=0D + Minimum =3D 94=0D + Maximum =3D 95=0D + Step =3D 96=0D + Default =3D 97=0D + Password =3D 98=0D + EndPassword =3D 99=0D + String =3D 100=0D + EndString =3D 101=0D + MinSize =3D 102=0D + MaxSize =3D 103=0D + Encoding =3D 104=0D + SuppressIf =3D 105=0D + DisableIf =3D 106=0D + Hidden =3D 107=0D + Goto =3D 108=0D + FormSetGuid =3D 109=0D + InconsistentIf =3D 110=0D + WarningIf =3D 111=0D + NoSubmitIf =3D 112=0D + EndIf =3D 113=0D + Key =3D 114=0D + DefaultFlag =3D 115=0D + ManufacturingFlag =3D 116=0D + CheckBoxDefaultFlag =3D 117=0D + CheckBoxDefaultMfgFlag =3D 118=0D + InteractiveFlag =3D 119=0D + NVAccessFlag =3D 120=0D + ResetRequiredFlag =3D 121=0D + ReconnectRequiredFlag =3D 122=0D + LateCheckFlag =3D 123=0D + ReadOnlyFlag =3D 124=0D + OptionOnlyFlag =3D 125=0D + RestStyleFlag =3D 126=0D + Class =3D 127=0D + Subclass =3D 128=0D + ClassGuid =3D 129=0D + TypeDef =3D 130=0D + Restore =3D 131=0D + Save =3D 132=0D + Defaults =3D 133=0D + Banner =3D 134=0D + Align =3D 135=0D + Left =3D 136=0D + Right =3D 137=0D + Center =3D 138=0D + Line =3D 139=0D + Name =3D 140=0D + VarId =3D 141=0D + Question =3D 142=0D + QuestionId =3D 143=0D + Image =3D 144=0D + Locked =3D 145=0D + Rule =3D 146=0D + EndRule =3D 147=0D + Value =3D 148=0D + Read =3D 149=0D + Write =3D 150=0D + ResetButton =3D 151=0D + EndResetButton =3D 152=0D + DefaultStore =3D 153=0D + Attribute =3D 154=0D + Varstore =3D 155=0D + Efivarstore =3D 156=0D + VarSize =3D 157=0D + NameValueVarStore =3D 158=0D + Action =3D 159=0D + Config =3D 160=0D + EndAction =3D 161=0D + Refresh =3D 162=0D + Interval =3D 163=0D + VarstoreDevice =3D 164=0D + GuidOp =3D 165=0D + EndGuidOp =3D 166=0D + DataType =3D 167=0D + Data =3D 168=0D + Modal =3D 169=0D + ClassNonDevice =3D 170=0D + ClassDiskDevice =3D 171=0D + ClassVideoDevice =3D 172=0D + ClassNetworkDevice =3D 173=0D + ClassInputDevice =3D 174=0D + ClassOnBoardDevice =3D 175=0D + ClassOtherDevice =3D 176=0D + SubclassSetupApplication =3D 177=0D + SubclassGeneralApplication =3D 178=0D + SubclassFrontPage =3D 179=0D + SubclassSingleUse =3D 180=0D + YearSupppressFlag =3D 181=0D + MonthSuppressFlag =3D 182=0D + DaySuppressFlag =3D 183=0D + HourSupppressFlag =3D 184=0D + MinuteSuppressFlag =3D 185=0D + SecondSuppressFlag =3D 186=0D + StorageNormalFlag =3D 187=0D + StorageTimeFlag =3D 188=0D + StorageWakeUpFlag =3D 189=0D + UniQueFlag =3D 190=0D + NoEmptyFlag =3D 191=0D + Cond =3D 192=0D + Find =3D 193=0D + Mid =3D 194=0D + Tok =3D 195=0D + Span =3D 196=0D + Dup =3D 197=0D + VarEqVal =3D 198=0D + Var =3D 199=0D + IdEqVal =3D 200=0D + IdEqId =3D 201=0D + IdEqValList =3D 202=0D + QuestionRef =3D 203=0D + RuleRef =3D 204=0D + StringRef =3D 205=0D + PushThis =3D 206=0D + Security =3D 207=0D + Get =3D 208=0D + TrueSymbol =3D 209=0D + FalseSymbol =3D 210=0D + One =3D 211=0D + Ones =3D 212=0D + Zero =3D 213=0D + Undefined =3D 214=0D + Version =3D 215=0D + Length =3D 216=0D + AND =3D 217=0D + OR =3D 218=0D + NOT =3D 219=0D + Set =3D 220=0D + BitWiseNot =3D 221=0D + BoolVal =3D 222=0D + StringVal =3D 223=0D + UnIntVal =3D 224=0D + ToUpper =3D 225=0D + ToLower =3D 226=0D + Match =3D 227=0D + Match2 =3D 228=0D + Catenate =3D 229=0D + QuestionRefVal =3D 230=0D + StringRefVal =3D 231=0D + Map =3D 232=0D + RefreshGuid =3D 233=0D + StringToken =3D 234=0D + OptionDefault =3D 235=0D + OptionDefaultMfg =3D 236=0D + NumericSizeOne =3D 237=0D + NumericSizeTwo =3D 238=0D + NumericSizeFour =3D 239=0D + NumericSizeEight =3D 240=0D + DisPlayIntDec =3D 241=0D + DisPlayUIntDec =3D 242=0D + DisPlayUIntHex =3D 243=0D + Insensitive =3D 244=0D + Sensitive =3D 245=0D + LastNonMatch =3D 246=0D + FirstNonMatch =3D 247=0D + Number =3D 248=0D + StringIdentifier =3D 249=0D + ComplexDefine =3D 250=0D + LineDefinition =3D 251=0D + IncludeDefinition =3D 252=0D + Whitespace =3D 253=0D + Newline =3D 254=0D + LineComment =3D 255=0D + Extern =3D 256=0D +=0D + channelNames =3D [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]=0D +=0D + modeNames =3D [ "DEFAULT_MODE" ]=0D +=0D + literalNames =3D [ "",=0D + "'show'", "'push'", "'pop'", "'#pragma'", "'pack'", "'=3D'", "= 'IMAGE_TOKEN'",=0D + "'HORIZONTAL'", "'MULTI_LINE'", "'<<'", "'>>'", "'+'", "'*'",= =0D + "'%'", "'format'", "'?'", "'#define'", "'#include'", "'formpkg= type'",=0D + "'{'", "'}'", "'('", "')'", "'['", "']'", "'.'", "'-'", "':'",= =0D + "'/'", "';'", "','", "'=3D=3D'", "'!=3D'", "'<=3D'", "'<'", "'= >=3D'",=0D + "'>'", "'|'", "'&'", "'devicepath'", "'formset'", "'formsetid'= ",=0D + "'endformset'", "'title'", "'formid'", "'oneof'", "'endoneof'"= ,=0D + "'prompt'", "'orderedlist'", "'maxcontainers'", "'endlist'",=0D + "'endform'", "'form'", "'formmap'", "'maptitle'", "'mapguid'",= =0D + "'subtitle'", "'endsubtitle'", "'help'", "'text'", "'option'",= =0D + "'flags'", "'date'", "'enddate'", "'year'", "'month'", "'day'"= ,=0D + "'time'", "'endtime'", "'hour'", "'minute'", "'second'", "'gra= youtif'",=0D + "'label'", "'timeout'", "'inventory'", "'_NON_NV_DATA_MAP'",=0D + "'struct'", "'union'", "'BOOLEAN'", "'UINT64'", "'UINT32'",=0D + "'UINT16'", "'UINT8'", "'EFI_STRING_ID'", "'EFI_HII_DATE'",=0D + "'EFI_HII_TIME'", "'EFI_HII_REF'", "'guid'", "'checkbox'", "'e= ndcheckbox'",=0D + "'numeric'", "'endnumeric'", "'minimum'", "'maximum'", "'step'= ",=0D + "'default'", "'password'", "'endpassword'", "'string'", "'ends= tring'",=0D + "'minsize'", "'maxsize'", "'encoding'", "'suppressif'", "'disa= bleif'",=0D + "'hidden'", "'goto'", "'formsetguid'", "'inconsistentif'", "'w= arningif'",=0D + "'nosubmitif'", "'endif'", "'key'", "'DEFAULT'", "'MANUFACTURI= NG'",=0D + "'CHECKBOX_DEFAULT'", "'CHECKBOX_DEFAULT_MFG'", "'INTERACTIVE'= ",=0D + "'NV_ACCESS'", "'RESET_REQUIRED'", "'RECONNECT_REQUIRED'", "'L= ATE_CHECK'",=0D + "'READ_ONLY'", "'OPTIONS_ONLY'", "'REST_STYLE'", "'class'",=0D + "'subclass'", "'classguid'", "'typedef'", "'restore'", "'save'= ",=0D + "'defaults'", "'banner'", "'align'", "'left'", "'right'", "'ce= nter'",=0D + "'line'", "'name'", "'varid'", "'question'", "'questionid'",=0D + "'image'", "'locked'", "'rule'", "'endrule'", "'value'", "'rea= d'",=0D + "'write'", "'resetbutton'", "'endresetbutton'", "'defaultstore= '",=0D + "'attribute'", "'varstore'", "'efivarstore'", "'varsize'", "'n= amevaluevarstore'",=0D + "'action'", "'config'", "'endaction'", "'refresh'", "'interval= '",=0D + "'varstoredevice'", "'guidop'", "'endguidop'", "'datatype'",=0D + "'data'", "'modal'", "'NON_DEVICE'", "'DISK_DEVICE'", "'VIDEO_= DEVICE'",=0D + "'NETWORK_DEVICE'", "'INPUT_DEVICE'", "'ONBOARD_DEVICE'", "'OT= HER_DEVICE'",=0D + "'SETUP_APPLICATION'", "'GENERAL_APPLICATION'", "'FRONT_PAGE'"= ,=0D + "'SINGLE_USE'", "'YEAR_SUPPRESS'", "'MONTH_SUPPRESS'", "'DAY_S= UPPRESS'",=0D + "'HOUR_SUPPRESS'", "'MINUTE_SUPPRESS'", "'SECOND_SUPPRESS'",=0D + "'STORAGE_NORMAL'", "'STORAGE_TIME'", "'STORAGE_WAKEUP'", "'UN= IQUE'",=0D + "'NOEMPTY'", "'cond'", "'find'", "'mid'", "'token'", "'span'",= =0D + "'dup'", "'vareqval'", "'var'", "'ideqval'", "'ideqid'", "'ide= qvallist'",=0D + "'questionref'", "'ruleref'", "'stringref'", "'pushthis'", "'s= ecurity'",=0D + "'get'", "'TRUE'", "'FALSE'", "'ONE'", "'ONES'", "'ZERO'", "'U= NDEFINED'",=0D + "'VERSION'", "'length'", "'AND'", "'OR'", "'NOT'", "'set'",=0D + "'~'", "'boolval'", "'stringval'", "'unintval'", "'toupper'",= =0D + "'tolower'", "'match'", "'match2'", "'catenate'", "'questionre= fval'",=0D + "'stringrefval'", "'map'", "'refreshguid'", "'STRING_TOKEN'",= =0D + "'OPTION_DEFAULT'", "'OPTION_DEFAULT_MFG'", "'NUMERIC_SIZE_1'"= ,=0D + "'NUMERIC_SIZE_2'", "'NUMERIC_SIZE_4'", "'NUMERIC_SIZE_8'",=0D + "'DISPLAY_INT_DEC'", "'DISPLAY_UINT_DEC'", "'DISPLAY_UINT_HEX'= ",=0D + "'INSENSITIVE'", "'SENSITIVE'", "'LAST_NON_MATCH'", "'FIRST_NO= N_MATCH'" ]=0D +=0D + symbolicNames =3D [ "",=0D + "Define", "Include", "FormPkgType", "OpenBrace", "CloseBrace",= =0D + "OpenParen", "CloseParen", "OpenBracket", "CloseBracket", "Dot= ",=0D + "Negative", "Colon", "Slash", "Semicolon", "Comma", "Equal",=0D + "NotEqual", "LessEqual", "Less", "GreaterEqual", "Greater",=0D + "BitWiseOr", "BitWiseAnd", "DevicePath", "FormSet", "FormSetId= ",=0D + "EndFormSet", "Title", "FormId", "OneOf", "EndOneOf", "Prompt"= ,=0D + "OrderedList", "MaxContainers", "EndList", "EndForm", "Form",= =0D + "FormMap", "MapTitle", "MapGuid", "Subtitle", "EndSubtitle",=0D + "Help", "Text", "Option", "FLAGS", "Date", "EndDate", "Year",= =0D + "Month", "Day", "Time", "EndTime", "Hour", "Minute", "Second",= =0D + "GrayOutIf", "Label", "Timeout", "Inventory", "NonNvDataMap",= =0D + "Struct", "Union", "Boolean", "Uint64", "Uint32", "Uint16",=0D + "Uint8", "EFI_STRING_ID", "EFI_HII_DATE", "EFI_HII_TIME", "EFI= _HII_REF",=0D + "Uuid", "CheckBox", "EndCheckBox", "Numeric", "EndNumeric",=0D + "Minimum", "Maximum", "Step", "Default", "Password", "EndPassw= ord",=0D + "String", "EndString", "MinSize", "MaxSize", "Encoding", "Supp= ressIf",=0D + "DisableIf", "Hidden", "Goto", "FormSetGuid", "InconsistentIf"= ,=0D + "WarningIf", "NoSubmitIf", "EndIf", "Key", "DefaultFlag", "Man= ufacturingFlag",=0D + "CheckBoxDefaultFlag", "CheckBoxDefaultMfgFlag", "InteractiveF= lag",=0D + "NVAccessFlag", "ResetRequiredFlag", "ReconnectRequiredFlag",= =0D + "LateCheckFlag", "ReadOnlyFlag", "OptionOnlyFlag", "RestStyleF= lag",=0D + "Class", "Subclass", "ClassGuid", "TypeDef", "Restore", "Save"= ,=0D + "Defaults", "Banner", "Align", "Left", "Right", "Center", "Lin= e",=0D + "Name", "VarId", "Question", "QuestionId", "Image", "Locked",= =0D + "Rule", "EndRule", "Value", "Read", "Write", "ResetButton",=0D + "EndResetButton", "DefaultStore", "Attribute", "Varstore", "Ef= ivarstore",=0D + "VarSize", "NameValueVarStore", "Action", "Config", "EndAction= ",=0D + "Refresh", "Interval", "VarstoreDevice", "GuidOp", "EndGuidOp"= ,=0D + "DataType", "Data", "Modal", "ClassNonDevice", "ClassDiskDevic= e",=0D + "ClassVideoDevice", "ClassNetworkDevice", "ClassInputDevice",= =0D + "ClassOnBoardDevice", "ClassOtherDevice", "SubclassSetupApplic= ation",=0D + "SubclassGeneralApplication", "SubclassFrontPage", "SubclassSi= ngleUse",=0D + "YearSupppressFlag", "MonthSuppressFlag", "DaySuppressFlag",=0D + "HourSupppressFlag", "MinuteSuppressFlag", "SecondSuppressFlag= ",=0D + "StorageNormalFlag", "StorageTimeFlag", "StorageWakeUpFlag",=0D + "UniQueFlag", "NoEmptyFlag", "Cond", "Find", "Mid", "Tok", "Sp= an",=0D + "Dup", "VarEqVal", "Var", "IdEqVal", "IdEqId", "IdEqValList",= =0D + "QuestionRef", "RuleRef", "StringRef", "PushThis", "Security",= =0D + "Get", "TrueSymbol", "FalseSymbol", "One", "Ones", "Zero", "Un= defined",=0D + "Version", "Length", "AND", "OR", "NOT", "Set", "BitWiseNot",= =0D + "BoolVal", "StringVal", "UnIntVal", "ToUpper", "ToLower", "Mat= ch",=0D + "Match2", "Catenate", "QuestionRefVal", "StringRefVal", "Map",= =0D + "RefreshGuid", "StringToken", "OptionDefault", "OptionDefaultM= fg",=0D + "NumericSizeOne", "NumericSizeTwo", "NumericSizeFour", "Numeri= cSizeEight",=0D + "DisPlayIntDec", "DisPlayUIntDec", "DisPlayUIntHex", "Insensit= ive",=0D + "Sensitive", "LastNonMatch", "FirstNonMatch", "Number", "Strin= gIdentifier",=0D + "ComplexDefine", "LineDefinition", "IncludeDefinition", "White= space",=0D + "Newline", "LineComment", "Extern" ]=0D +=0D + ruleNames =3D [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6"= ,=0D + "T__7", "T__8", "T__9", "T__10", "T__11", "T__12", "T__1= 3",=0D + "T__14", "T__15", "Define", "Include", "FormPkgType",=0D + "OpenBrace", "CloseBrace", "OpenParen", "CloseParen",=0D + "OpenBracket", "CloseBracket", "Dot", "Negative", "Colon= ",=0D + "Slash", "Semicolon", "Comma", "Equal", "NotEqual", "Les= sEqual",=0D + "Less", "GreaterEqual", "Greater", "BitWiseOr", "BitWise= And",=0D + "DevicePath", "FormSet", "FormSetId", "EndFormSet", "Tit= le",=0D + "FormId", "OneOf", "EndOneOf", "Prompt", "OrderedList",= =0D + "MaxContainers", "EndList", "EndForm", "Form", "FormMap"= ,=0D + "MapTitle", "MapGuid", "Subtitle", "EndSubtitle", "Help"= ,=0D + "Text", "Option", "FLAGS", "Date", "EndDate", "Year",=0D + "Month", "Day", "Time", "EndTime", "Hour", "Minute", "Se= cond",=0D + "GrayOutIf", "Label", "Timeout", "Inventory", "NonNvData= Map",=0D + "Struct", "Union", "Boolean", "Uint64", "Uint32", "Uint1= 6",=0D + "Uint8", "EFI_STRING_ID", "EFI_HII_DATE", "EFI_HII_TIME"= ,=0D + "EFI_HII_REF", "Uuid", "CheckBox", "EndCheckBox", "Numer= ic",=0D + "EndNumeric", "Minimum", "Maximum", "Step", "Default",=0D + "Password", "EndPassword", "String", "EndString", "MinSi= ze",=0D + "MaxSize", "Encoding", "SuppressIf", "DisableIf", "Hidde= n",=0D + "Goto", "FormSetGuid", "InconsistentIf", "WarningIf",=0D + "NoSubmitIf", "EndIf", "Key", "DefaultFlag", "Manufactur= ingFlag",=0D + "CheckBoxDefaultFlag", "CheckBoxDefaultMfgFlag", "Intera= ctiveFlag",=0D + "NVAccessFlag", "ResetRequiredFlag", "ReconnectRequiredF= lag",=0D + "LateCheckFlag", "ReadOnlyFlag", "OptionOnlyFlag", "Rest= StyleFlag",=0D + "Class", "Subclass", "ClassGuid", "TypeDef", "Restore",= =0D + "Save", "Defaults", "Banner", "Align", "Left", "Right",= =0D + "Center", "Line", "Name", "VarId", "Question", "Question= Id",=0D + "Image", "Locked", "Rule", "EndRule", "Value", "Read",=0D + "Write", "ResetButton", "EndResetButton", "DefaultStore"= ,=0D + "Attribute", "Varstore", "Efivarstore", "VarSize", "Name= ValueVarStore",=0D + "Action", "Config", "EndAction", "Refresh", "Interval",= =0D + "VarstoreDevice", "GuidOp", "EndGuidOp", "DataType", "Da= ta",=0D + "Modal", "ClassNonDevice", "ClassDiskDevice", "ClassVide= oDevice",=0D + "ClassNetworkDevice", "ClassInputDevice", "ClassOnBoardD= evice",=0D + "ClassOtherDevice", "SubclassSetupApplication", "Subclas= sGeneralApplication",=0D + "SubclassFrontPage", "SubclassSingleUse", "YearSupppress= Flag",=0D + "MonthSuppressFlag", "DaySuppressFlag", "HourSupppressFl= ag",=0D + "MinuteSuppressFlag", "SecondSuppressFlag", "StorageNorm= alFlag",=0D + "StorageTimeFlag", "StorageWakeUpFlag", "UniQueFlag",=0D + "NoEmptyFlag", "Cond", "Find", "Mid", "Tok", "Span", "Du= p",=0D + "VarEqVal", "Var", "IdEqVal", "IdEqId", "IdEqValList",=0D + "QuestionRef", "RuleRef", "StringRef", "PushThis", "Secu= rity",=0D + "Get", "TrueSymbol", "FalseSymbol", "One", "Ones", "Zero= ",=0D + "Undefined", "Version", "Length", "AND", "OR", "NOT",=0D + "Set", "BitWiseNot", "BoolVal", "StringVal", "UnIntVal",= =0D + "ToUpper", "ToLower", "Match", "Match2", "Catenate", "Qu= estionRefVal",=0D + "StringRefVal", "Map", "RefreshGuid", "StringToken", "Op= tionDefault",=0D + "OptionDefaultMfg", "NumericSizeOne", "NumericSizeTwo",= =0D + "NumericSizeFour", "NumericSizeEight", "DisPlayIntDec",= =0D + "DisPlayUIntDec", "DisPlayUIntHex", "Insensitive", "Sens= itive",=0D + "LastNonMatch", "FirstNonMatch", "Number", "StringIdenti= fier",=0D + "ComplexDefine", "LineDefinition", "IncludeDefinition",= =0D + "Whitespace", "Newline", "LineComment", "Extern" ]=0D +=0D + grammarFileName =3D "VfrSyntax.g4"=0D +=0D + def __init__(self, input=3DNone, output:TextIO =3D sys.stdout):=0D + super().__init__(input, output)=0D + self.checkVersion("4.7.2")=0D + self._interp =3D LexerATNSimulator(self, self.atn, self.decisionsT= oDFA, PredictionContextCache())=0D + self._actions =3D None=0D + self._predicates =3D None=0D diff --git a/BaseTools/Source/Python/VfrCompiler/VfrSyntaxParser.py b/BaseT= ools/Source/Python/VfrCompiler/VfrSyntaxParser.py new file mode 100644 index 0000000000..b6af21b795 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrSyntaxParser.py @@ -0,0 +1,20460 @@ +# Generated from VfrSyntax.g4 by ANTLR 4.7.2=0D +# encoding: utf-8=0D +from antlr4 import *=0D +from io import StringIO=0D +from typing import TextIO=0D +import sys=0D +=0D +=0D +=0D +from VfrCompiler.CommonCtypes import *=0D +from VfrCompiler.VfrFormPkg import *=0D +from VfrCompiler.VfrUtility import *=0D +from VfrCompiler.VfrTree import *=0D +=0D +=0D +def serializedATN():=0D + with StringIO() as buf:=0D + buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u0= 102")=0D + buf.write("\u0ba3\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7"= )=0D + 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= ")=0D + buf.write("\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23\t\23= ")=0D + buf.write("\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31= ")=0D + buf.write("\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36= ")=0D + buf.write("\4\37\t\37\4 \t \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t")= =0D + buf.write("&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4,\t,\4-\t-\4.\t.\4")= =0D + buf.write("/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t\64"= )=0D + buf.write("\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t")= =0D + buf.write(";\4<\t<\4=3D\t=3D\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4= D\t")=0D + buf.write("D\4E\tE\4F\tF\4G\tG\4H\tH\4I\tI\4J\tJ\4K\tK\4L\tL\4M\t"= )=0D + buf.write("M\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT\4U\tU\4V\t"= )=0D + buf.write("V\4W\tW\4X\tX\4Y\tY\4Z\tZ\4[\t[\4\\\t\\\4]\t]\4^\t^\4")= =0D + buf.write("_\t_\4`\t`\4a\ta\4b\tb\4c\tc\4d\td\4e\te\4f\tf\4g\tg\4"= )=0D + buf.write("h\th\4i\ti\4j\tj\4k\tk\4l\tl\4m\tm\4n\tn\4o\to\4p\tp\4"= )=0D + buf.write("q\tq\4r\tr\4s\ts\4t\tt\4u\tu\4v\tv\4w\tw\4x\tx\4y\ty\4"= )=0D + buf.write("z\tz\4{\t{\4|\t|\4}\t}\4~\t~\4\177\t\177\4\u0080\t\u008= 0")=0D + buf.write("\4\u0081\t\u0081\4\u0082\t\u0082\4\u0083\t\u0083\4\u008= 4")=0D + buf.write("\t\u0084\4\u0085\t\u0085\4\u0086\t\u0086\4\u0087\t\u008= 7")=0D + buf.write("\4\u0088\t\u0088\4\u0089\t\u0089\4\u008a\t\u008a\4\u008= b")=0D + buf.write("\t\u008b\4\u008c\t\u008c\4\u008d\t\u008d\4\u008e\t\u008= e")=0D + buf.write("\4\u008f\t\u008f\4\u0090\t\u0090\4\u0091\t\u0091\4\u009= 2")=0D + buf.write("\t\u0092\4\u0093\t\u0093\4\u0094\t\u0094\4\u0095\t\u009= 5")=0D + buf.write("\4\u0096\t\u0096\4\u0097\t\u0097\4\u0098\t\u0098\4\u009= 9")=0D + buf.write("\t\u0099\4\u009a\t\u009a\4\u009b\t\u009b\4\u009c\t\u009= c")=0D + buf.write("\4\u009d\t\u009d\4\u009e\t\u009e\4\u009f\t\u009f\4\u00a= 0")=0D + buf.write("\t\u00a0\4\u00a1\t\u00a1\4\u00a2\t\u00a2\4\u00a3\t\u00a= 3")=0D + buf.write("\4\u00a4\t\u00a4\4\u00a5\t\u00a5\4\u00a6\t\u00a6\4\u00a= 7")=0D + buf.write("\t\u00a7\4\u00a8\t\u00a8\4\u00a9\t\u00a9\4\u00aa\t\u00a= a")=0D + buf.write("\4\u00ab\t\u00ab\4\u00ac\t\u00ac\4\u00ad\t\u00ad\4\u00a= e")=0D + buf.write("\t\u00ae\4\u00af\t\u00af\4\u00b0\t\u00b0\4\u00b1\t\u00b= 1")=0D + buf.write("\4\u00b2\t\u00b2\4\u00b3\t\u00b3\4\u00b4\t\u00b4\4\u00b= 5")=0D + buf.write("\t\u00b5\4\u00b6\t\u00b6\4\u00b7\t\u00b7\4\u00b8\t\u00b= 8")=0D + buf.write("\4\u00b9\t\u00b9\4\u00ba\t\u00ba\4\u00bb\t\u00bb\4\u00b= c")=0D + buf.write("\t\u00bc\4\u00bd\t\u00bd\4\u00be\t\u00be\4\u00bf\t\u00b= f")=0D + buf.write("\4\u00c0\t\u00c0\4\u00c1\t\u00c1\4\u00c2\t\u00c2\4\u00c= 3")=0D + buf.write("\t\u00c3\4\u00c4\t\u00c4\4\u00c5\t\u00c5\4\u00c6\t\u00c= 6")=0D + buf.write("\4\u00c7\t\u00c7\4\u00c8\t\u00c8\4\u00c9\t\u00c9\4\u00c= a")=0D + buf.write("\t\u00ca\4\u00cb\t\u00cb\3\2\3\2\3\2\7\2\u019a\n\2\f\2"= )=0D + buf.write("\16\2\u019d\13\2\3\2\3\2\3\3\3\3\3\4\3\4\3\4\5\4\u01a6"= )=0D + buf.write("\n\4\3\4\3\4\5\4\u01aa\n\4\3\5\5\5\u01ad\n\5\3\6\3\6\3"= )=0D + buf.write("\6\3\6\3\6\3\6\5\6\u01b5\n\6\3\6\3\6\3\7\5\7\u01ba\n\7"= )=0D + buf.write("\3\7\3\7\5\7\u01be\n\7\3\7\5\7\u01c1\n\7\3\7\3\7\3\7\3"= )=0D + buf.write("\7\5\7\u01c7\n\7\3\7\3\7\3\b\5\b\u01cc\n\b\3\b\3\b\5\b"= )=0D + buf.write("\u01d0\n\b\3\b\5\b\u01d3\n\b\3\b\3\b\3\b\3\b\5\b\u01d9"= )=0D + buf.write("\n\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3"= )=0D + buf.write("\t\3\t\3\t\3\t\7\t\u01eb\n\t\f\t\16\t\u01ee\13\t\3\n\3"= )=0D + buf.write("\n\3\n\3\n\3\n\5\n\u01f5\n\n\3\n\3\n\3\13\3\13\3\13\3")= =0D + buf.write("\13\3\13\5\13\u01fe\n\13\3\13\3\13\3\f\3\f\3\f\3\f\3\f"= )=0D + buf.write("\5\f\u0207\n\f\3\f\3\f\3\r\3\r\3\r\3\r\3\r\5\r\u0210\n"= )=0D + buf.write("\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16\5\16\u0219\n\16\3")= =0D + buf.write("\16\3\16\3\17\3\17\3\17\3\17\3\17\5\17\u0222\n\17\3\17"= )=0D + buf.write("\3\17\3\20\3\20\3\20\3\20\3\20\5\20\u022b\n\20\3\20\3")= =0D + buf.write("\20\3\21\3\21\3\21\3\21\3\21\5\21\u0234\n\21\3\21\3\21"= )=0D + buf.write("\3\22\3\22\3\22\3\22\3\22\5\22\u023d\n\22\3\22\3\22\3")= =0D + buf.write("\23\3\23\3\23\3\23\3\23\5\23\u0246\n\23\3\23\3\23\3\24"= )=0D + buf.write("\3\24\5\24\u024c\n\24\3\24\3\24\3\24\3\24\3\25\3\25\5")= =0D + buf.write("\25\u0254\n\25\3\25\3\25\3\25\3\25\3\26\3\26\5\26\u025c= ")=0D + buf.write("\n\26\3\26\3\26\3\26\3\26\3\27\3\27\5\27\u0264\n\27\3")= =0D + buf.write("\27\3\27\3\27\3\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30")= =0D + buf.write("\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30= ")=0D + buf.write("\3\30\3\30\3\30\3\30\3\30\3\30\5\30\u0282\n\30\3\30\3")= =0D + buf.write("\30\3\30\3\30\3\30\5\30\u0289\n\30\3\30\3\30\3\30\3\30"= )=0D + buf.write("\3\30\5\30\u0290\n\30\3\30\3\30\3\30\3\30\3\31\3\31\3")= =0D + buf.write("\31\5\31\u0299\n\31\3\31\3\31\5\31\u029d\n\31\3\31\3\31= ")=0D + buf.write("\5\31\u02a1\n\31\3\32\3\32\3\32\7\32\u02a6\n\32\f\32\16= ")=0D + buf.write("\32\u02a9\13\32\3\33\3\33\3\34\3\34\3\35\7\35\u02b0\n")= =0D + buf.write("\35\f\35\16\35\u02b3\13\35\3\36\3\36\3\36\3\36\3\36\3")= =0D + buf.write("\36\3\36\3\36\3\36\3\36\5\36\u02bf\n\36\3\37\3\37\3\37"= )=0D + buf.write("\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\5\37= ")=0D + buf.write("\u02ce\n\37\3\37\3\37\3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3")= =0D + buf.write(" \3 \3 \3 \3 \3 \3 \5 \u02e3\n \3 \3 \3 \3 \5 \u02e9\n"= )=0D + buf.write(" \3 \3 \3 \3 \3 \3 \3 \3 \3 \3!\3!\3!\3!\3!\3!\3!\3!\3"= )=0D + buf.write("!\3!\3!\3!\3!\3!\3!\3!\3!\5!\u0305\n!\3!\3!\3!\3!\5!\u0= 30b")=0D + buf.write("\n!\3!\3!\3!\3!\3!\7!\u0312\n!\f!\16!\u0315\13!\3!\3!")= =0D + buf.write("\3!\3!\3!\3!\3!\3!\3!\3!\3!\3!\3!\3!\3!\3!\5!\u0327\n")= =0D + buf.write("!\3!\3!\3!\3!\3!\3\"\3\"\3#\3#\3#\3#\3#\3#\3#\5#\u0337"= )=0D + buf.write("\n#\3#\3#\3#\3#\3#\3#\3#\6#\u0340\n#\r#\16#\u0341\3#\3"= )=0D + buf.write("#\3#\3#\3#\3$\3$\3$\3$\3$\3$\3$\3%\3%\3%\3%\3%\3%\3%\3"= )=0D + buf.write("&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3&\3\'\3\'"= )=0D + buf.write("\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u0373\n\'"= )=0D + buf.write("\3\'\3\'\3(\3(\3(\3(\3(\3)\3)\3)\3*\3*\3*\3*\5*\u0383")= =0D + buf.write("\n*\3*\3*\3*\3*\3*\5*\u038a\n*\3*\3*\3*\3*\5*\u0390\n")= =0D + buf.write("*\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3,\3,\3,\3"= )=0D + buf.write(",\3,\3,\3,\3,\5,\u03a8\n,\3-\3-\3-\3-\3-\3-\3-\7-\u03b1= ")=0D + buf.write("\n-\f-\16-\u03b4\13-\5-\u03b6\n-\3.\5.\u03b9\n.\3.\3.")= =0D + buf.write("\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3")= =0D + buf.write(".\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\7.\u03de= ")=0D + buf.write("\n.\f.\16.\u03e1\13.\3.\5.\u03e4\n.\3/\3/\3/\3/\3/\3/")= =0D + buf.write("\3/\3\60\3\60\3\61\3\61\5\61\u03f1\n\61\3\62\3\62\3\62"= )=0D + buf.write("\7\62\u03f6\n\62\f\62\16\62\u03f9\13\62\3\63\3\63\3\63"= )=0D + buf.write("\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\7\63= ")=0D + buf.write("\u0408\n\63\f\63\16\63\u040b\13\63\3\63\3\63\3\63\3\64"= )=0D + buf.write("\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64= ")=0D + buf.write("\3\64\3\64\3\64\5\64\u041f\n\64\3\65\3\65\3\65\3\65\3")= =0D + buf.write("\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65")= =0D + buf.write("\3\65\3\65\7\65\u0432\n\65\f\65\16\65\u0435\13\65\3\65"= )=0D + buf.write("\7\65\u0438\n\65\f\65\16\65\u043b\13\65\3\65\3\65\3\65"= )=0D + buf.write("\3\66\3\66\3\66\3\67\3\67\3\67\38\38\38\38\38\38\38\3")= =0D + buf.write("9\39\39\59\u0450\n9\3:\3:\3:\3:\3:\3:\3:\3:\3:\3:\3:\5"= )=0D + buf.write(":\u045d\n:\3:\3:\5:\u0461\n:\3:\3:\3:\5:\u0466\n:\3:\3"= )=0D + buf.write(":\7:\u046a\n:\f:\16:\u046d\13:\5:\u046f\n:\3:\3:\5:\u04= 73")=0D + buf.write("\n:\3;\3;\5;\u0477\n;\3<\3<\3<\7<\u047c\n<\f<\16<\u047f= ")=0D + buf.write("\13<\3=3D\3=3D\3>\3>\3>\3>\3>\3>\3>\3>\3>\3>\3>\3>\3>\3= >\3")=0D + buf.write(">\3>\3>\3>\3>\3>\3>\5>\u0498\n>\3>\3>\3>\3>\3>\3>\7>\u0= 4a0")=0D + buf.write("\n>\f>\16>\u04a3\13>\3>\3>\3>\3>\3>\5>\u04aa\n>\3>\3>")= =0D + buf.write("\5>\u04ae\n>\3>\3>\3?\3?\5?\u04b4\n?\3@\3@\5@\u04b8\n")= =0D + buf.write("@\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3"= )=0D + buf.write("A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3A\3"= )=0D + buf.write("A\3A\3A\3A\3A\3A\3A\3A\3A\5A\u04e6\nA\3A\3A\5A\u04ea\n"= )=0D + buf.write("A\3A\3A\3A\3A\3A\5A\u04f1\nA\3A\3A\3A\3A\5A\u04f7\nA\3"= )=0D + buf.write("A\3A\5A\u04fb\nA\3A\3A\3B\3B\3B\7B\u0502\nB\fB\16B\u050= 5")=0D + buf.write("\13B\3C\3C\5C\u0509\nC\3D\3D\3D\3D\3D\3D\3D\3D\3D\3D\5"= )=0D + buf.write("D\u0515\nD\3D\3D\3D\3E\3E\3E\3E\3E\3E\5E\u0520\nE\3F\3"= )=0D + buf.write("F\3F\3F\3F\3F\3F\3F\3F\3F\3F\5F\u052d\nF\3G\3G\3G\3G\3"= )=0D + buf.write("G\3G\3G\3G\3G\3G\3G\3G\3G\7G\u053c\nG\fG\16G\u053f\13")= =0D + buf.write("G\3G\3G\5G\u0543\nG\3G\3G\3G\5G\u0548\nG\3H\3H\3H\3H\3"= )=0D + buf.write("H\3H\3H\3H\3H\3H\3H\3H\3H\7H\u0557\nH\fH\16H\u055a\13")= =0D + buf.write("H\3H\3H\5H\u055e\nH\3H\3H\3H\5H\u0563\nH\3I\3I\3I\3I\3"= )=0D + buf.write("I\3I\5I\u056b\nI\3J\3J\3J\3J\3J\3K\3K\3K\3K\3K\3K\3K\3"= )=0D + buf.write("K\3L\3L\3L\3L\3L\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\5"= )=0D + buf.write("M\u058b\nM\3M\3M\3M\5M\u0590\nM\3N\7N\u0593\nN\fN\16N")= =0D + buf.write("\u0596\13N\3O\3O\3O\3O\3O\3O\3O\5O\u059f\nO\3P\3P\3P\3"= )=0D + buf.write("P\3P\3P\3P\3P\5P\u05a9\nP\3Q\3Q\3Q\3Q\3Q\3Q\3Q\3Q\7Q\u0= 5b3")=0D + buf.write("\nQ\fQ\16Q\u05b6\13Q\3Q\3Q\5Q\u05ba\nQ\3Q\3Q\3Q\5Q\u05b= f")=0D + buf.write("\nQ\3R\3R\3R\3R\3R\3R\3R\3R\7R\u05c9\nR\fR\16R\u05cc\13= ")=0D + buf.write("R\3R\3R\5R\u05d0\nR\3R\3R\3R\5R\u05d5\nR\3S\3S\3S\3S\3"= )=0D + buf.write("S\3S\3S\3S\5S\u05df\nS\3S\3S\3S\3S\5S\u05e5\nS\3T\3T\3"= )=0D + buf.write("T\3T\3U\3U\3V\3V\3V\3V\3V\3V\3V\3V\3V\3V\3V\3V\3V\3V\3"= )=0D + buf.write("V\3V\3V\3V\3V\5V\u0600\nV\3V\3V\7V\u0604\nV\fV\16V\u060= 7")=0D + buf.write("\13V\3V\3V\3W\3W\3W\7W\u060e\nW\fW\16W\u0611\13W\3X\3")= =0D + buf.write("X\3X\3X\3X\3X\3X\3X\3X\3X\3X\5X\u061e\nX\3Y\3Y\3Y\3Y\3"= )=0D + buf.write("Z\3Z\3Z\3Z\3[\7[\u0629\n[\f[\16[\u062c\13[\3\\\3\\\5\\"= )=0D + buf.write("\u0630\n\\\3]\3]\5]\u0634\n]\3^\3^\3^\3^\3^\3^\3^\3^\3"= )=0D + buf.write("^\5^\u063f\n^\3^\3^\3^\3^\5^\u0645\n^\3^\3^\3^\3^\3_\3"= )=0D + buf.write("_\3_\7_\u064e\n_\f_\16_\u0651\13_\3`\3`\3`\3`\3`\3`\5")= =0D + buf.write("`\u0659\n`\3a\3a\3a\3a\3a\3a\3a\3a\5a\u0663\na\3a\3a\3"= )=0D + buf.write("a\3a\3a\3a\3a\3a\3a\3a\3a\3b\3b\3b\7b\u0673\nb\fb\16b")= =0D + buf.write("\u0676\13b\3c\3c\5c\u067a\nc\3d\3d\5d\u067e\nd\3e\3e\3"= )=0D + buf.write("e\3e\3e\3e\3e\3e\3e\5e\u0689\ne\3e\3e\3e\3e\5e\u068f\n"= )=0D + buf.write("e\3e\3e\3e\3e\3e\3f\3f\3f\5f\u0699\nf\3f\3f\3f\3f\3f\5"= )=0D + buf.write("f\u06a0\nf\3f\3f\3f\3f\3f\3f\5f\u06a8\nf\3g\3g\3g\7g\u0= 6ad")=0D + buf.write("\ng\fg\16g\u06b0\13g\3h\3h\3h\3h\3h\3h\3h\3h\3h\5h\u06b= b")=0D + buf.write("\nh\3i\3i\3i\3i\3i\3i\3i\3i\3i\5i\u06c6\ni\3i\5i\u06c9"= )=0D + buf.write("\ni\3i\3i\3i\3i\3j\3j\3j\7j\u06d2\nj\fj\16j\u06d5\13j")= =0D + buf.write("\3k\3k\5k\u06d9\nk\3l\3l\3l\3l\3l\3l\3l\3l\5l\u06e3\n")= =0D + buf.write("l\3l\3l\3l\3l\5l\u06e9\nl\3l\3l\3l\3l\3l\3l\3l\3l\3l\3"= )=0D + buf.write("l\3l\3l\3m\3m\3m\7m\u06fa\nm\fm\16m\u06fd\13m\3n\3n\3")= =0D + buf.write("n\5n\u0702\nn\3o\3o\3o\3o\3o\3o\3o\3o\5o\u070c\no\3o\3"= )=0D + buf.write("o\3o\3o\5o\u0712\no\3o\3o\3o\3o\3o\3o\3o\3o\3o\3o\3o\3"= )=0D + buf.write("o\5o\u0720\no\3o\3o\3o\3o\3p\3p\3p\7p\u0729\np\fp\16p")= =0D + buf.write("\u072c\13p\3q\3q\5q\u0730\nq\3r\3r\3r\3r\3r\3r\3r\5r\u0= 739")=0D + buf.write("\nr\3r\3r\3r\3r\3r\5r\u0740\nr\3r\3r\3r\3r\3s\3s\3s\7")= =0D + buf.write("s\u0749\ns\fs\16s\u074c\13s\3t\3t\3t\3t\5t\u0752\nt\3")= =0D + buf.write("u\3u\3u\3u\3u\3u\3u\3u\5u\u075c\nu\3u\3u\3u\3u\3u\3u\3"= )=0D + buf.write("u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3"= )=0D + buf.write("u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3"= )=0D + buf.write("u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3"= )=0D + buf.write("u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\3u\5u\u07a7\nu\3u\7"= )=0D + buf.write("u\u07aa\nu\fu\16u\u07ad\13u\5u\u07af\nu\3u\3u\3u\3v\3")= =0D + buf.write("v\3v\3v\3v\3v\3v\3v\3v\3v\3v\3v\5v\u07c0\nv\3v\3v\3v\3"= )=0D + buf.write("v\5v\u07c6\nv\3w\3w\3w\7w\u07cb\nw\fw\16w\u07ce\13w\3")= =0D + buf.write("x\3x\3y\3y\3y\3y\3y\3y\3y\3y\5y\u07da\ny\3y\3y\3y\3y\3"= )=0D + buf.write("y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3"= )=0D + buf.write("y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3"= )=0D + buf.write("y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3"= )=0D + buf.write("y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\3y\5y\u0825\n"= )=0D + buf.write("y\3y\7y\u0828\ny\fy\16y\u082b\13y\5y\u082d\ny\3y\3y\3")= =0D + buf.write("y\3z\3z\3z\3z\3z\3z\3z\3z\3z\3z\3z\3z\5z\u083e\nz\3z\3"= )=0D + buf.write("z\3z\3z\5z\u0844\nz\3{\3{\3{\7{\u0849\n{\f{\16{\u084c")= =0D + buf.write("\13{\3|\3|\3}\3}\3}\3}\5}\u0854\n}\3~\3~\3~\3~\3~\3\177= ")=0D + buf.write("\3\177\3\u0080\3\u0080\3\u0081\3\u0081\3\u0081\3\u0081"= )=0D + buf.write("\3\u0081\3\u0081\5\u0081\u0865\n\u0081\3\u0082\3\u0082"= )=0D + buf.write("\3\u0082\3\u0082\5\u0082\u086b\n\u0082\3\u0083\3\u0083"= )=0D + buf.write("\3\u0083\3\u0083\7\u0083\u0871\n\u0083\f\u0083\16\u0083= ")=0D + buf.write("\u0874\13\u0083\3\u0083\3\u0083\3\u0083\3\u0084\3\u0084= ")=0D + buf.write("\3\u0084\3\u0084\3\u0084\3\u0084\7\u0084\u087f\n\u0084"= )=0D + buf.write("\f\u0084\16\u0084\u0882\13\u0084\3\u0084\3\u0084\5\u008= 4")=0D + buf.write("\u0886\n\u0084\3\u0084\3\u0084\3\u0084\3\u0085\3\u0085"= )=0D + buf.write("\3\u0085\3\u0085\3\u0085\3\u0085\7\u0085\u0891\n\u0085"= )=0D + buf.write("\f\u0085\16\u0085\u0894\13\u0085\3\u0085\3\u0085\5\u008= 5")=0D + buf.write("\u0898\n\u0085\3\u0085\3\u0085\3\u0085\3\u0086\3\u0086"= )=0D + buf.write("\3\u0086\3\u0086\3\u0086\3\u0086\7\u0086\u08a3\n\u0086"= )=0D + buf.write("\f\u0086\16\u0086\u08a6\13\u0086\3\u0086\3\u0086\5\u008= 6")=0D + buf.write("\u08aa\n\u0086\3\u0086\3\u0086\3\u0086\7\u0086\u08af\n"= )=0D + buf.write("\u0086\f\u0086\16\u0086\u08b2\13\u0086\3\u0086\3\u0086"= )=0D + buf.write("\3\u0086\3\u0087\3\u0087\3\u0087\3\u0087\3\u0087\3\u008= 7")=0D + buf.write("\7\u0087\u08bd\n\u0087\f\u0087\16\u0087\u08c0\13\u0087"= )=0D + buf.write("\3\u0087\3\u0087\5\u0087\u08c4\n\u0087\3\u0087\3\u0087"= )=0D + buf.write("\3\u0087\7\u0087\u08c9\n\u0087\f\u0087\16\u0087\u08cc")= =0D + buf.write("\13\u0087\3\u0087\3\u0087\3\u0087\3\u0088\3\u0088\3\u00= 88")=0D + buf.write("\3\u0088\3\u0088\3\u0088\3\u0088\3\u0088\3\u0088\3\u008= 8")=0D + buf.write("\3\u0088\3\u0088\3\u0088\7\u0088\u08de\n\u0088\f\u0088"= )=0D + buf.write("\16\u0088\u08e1\13\u0088\3\u0088\3\u0088\5\u0088\u08e5"= )=0D + buf.write("\n\u0088\3\u0088\3\u0088\3\u0088\3\u0088\3\u0089\3\u008= 9")=0D + buf.write("\3\u0089\5\u0089\u08ee\n\u0089\3\u008a\3\u008a\3\u008a"= )=0D + buf.write("\3\u008a\3\u008a\3\u008a\3\u008a\3\u008a\3\u008a\3\u008= a")=0D + buf.write("\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008= b")=0D + buf.write("\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008= b")=0D + buf.write("\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008b\3\u008= b")=0D + buf.write("\5\u008b\u090f\n\u008b\3\u008b\3\u008b\3\u008c\3\u008c"= )=0D + buf.write("\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008= c")=0D + buf.write("\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008= c")=0D + buf.write("\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008c\3\u008= c")=0D + buf.write("\3\u008c\3\u008c\3\u008c\7\u008c\u092d\n\u008c\f\u008c"= )=0D + buf.write("\16\u008c\u0930\13\u008c\5\u008c\u0932\n\u008c\3\u008c"= )=0D + buf.write("\3\u008c\3\u008c\3\u008c\5\u008c\u0938\n\u008c\3\u008c"= )=0D + buf.write("\3\u008c\3\u008d\3\u008d\3\u008d\3\u008d\3\u008e\3\u008= e")=0D + buf.write("\5\u008e\u0942\n\u008e\3\u008e\3\u008e\3\u008e\3\u008e"= )=0D + buf.write("\3\u008e\3\u008e\3\u008e\3\u008e\3\u008e\3\u008e\3\u008= e")=0D + buf.write("\3\u008e\3\u008e\3\u008e\3\u008e\3\u008e\3\u008e\5\u008= e")=0D + buf.write("\u0955\n\u008e\3\u008f\3\u008f\3\u008f\3\u008f\3\u008f"= )=0D + buf.write("\3\u008f\3\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008= f")=0D + buf.write("\u0962\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u0968\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u096e\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u0974\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u097a\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u0980\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u0986\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u098c\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u0992\n\u008f\3\u008f\3\u008f\3\u008f\3\u008f\5\u008f"= )=0D + buf.write("\u0998\n\u008f\5\u008f\u099a\n\u008f\3\u008f\7\u008f\u0= 99d")=0D + buf.write("\n\u008f\f\u008f\16\u008f\u09a0\13\u008f\5\u008f\u09a2"= )=0D + buf.write("\n\u008f\3\u008f\3\u008f\7\u008f\u09a6\n\u008f\f\u008f"= )=0D + buf.write("\16\u008f\u09a9\13\u008f\3\u008f\5\u008f\u09ac\n\u008f"= )=0D + buf.write("\3\u008f\3\u008f\3\u0090\3\u0090\3\u0090\3\u0090\3\u009= 0")=0D + buf.write("\5\u0090\u09b5\n\u0090\3\u0090\3\u0090\7\u0090\u09b9\n"= )=0D + buf.write("\u0090\f\u0090\16\u0090\u09bc\13\u0090\3\u0090\3\u0090"= )=0D + buf.write("\3\u0090\3\u0091\3\u0091\3\u0091\3\u0092\3\u0092\3\u009= 3")=0D + buf.write("\3\u0093\3\u0093\7\u0093\u09c9\n\u0093\f\u0093\16\u0093= ")=0D + buf.write("\u09cc\13\u0093\3\u0094\3\u0094\3\u0094\7\u0094\u09d1")= =0D + buf.write("\n\u0094\f\u0094\16\u0094\u09d4\13\u0094\3\u0095\3\u009= 5")=0D + buf.write("\3\u0095\7\u0095\u09d9\n\u0095\f\u0095\16\u0095\u09dc")= =0D + buf.write("\13\u0095\3\u0096\3\u0096\3\u0096\7\u0096\u09e1\n\u0096= ")=0D + buf.write("\f\u0096\16\u0096\u09e4\13\u0096\3\u0097\3\u0097\3\u009= 7")=0D + buf.write("\7\u0097\u09e9\n\u0097\f\u0097\16\u0097\u09ec\13\u0097"= )=0D + buf.write("\3\u0098\3\u0098\7\u0098\u09f0\n\u0098\f\u0098\16\u0098= ")=0D + buf.write("\u09f3\13\u0098\3\u0099\3\u0099\3\u0099\3\u0099\5\u0099= ")=0D + buf.write("\u09f9\n\u0099\3\u009a\3\u009a\7\u009a\u09fd\n\u009a\f"= )=0D + buf.write("\u009a\16\u009a\u0a00\13\u009a\3\u009b\3\u009b\3\u009b"= )=0D + buf.write("\3\u009b\3\u009b\3\u009b\3\u009b\3\u009b\5\u009b\u0a0a"= )=0D + buf.write("\n\u009b\3\u009c\3\u009c\7\u009c\u0a0e\n\u009c\f\u009c"= )=0D + buf.write("\16\u009c\u0a11\13\u009c\3\u009d\3\u009d\3\u009d\3\u009= d")=0D + buf.write("\5\u009d\u0a17\n\u009d\3\u009e\3\u009e\7\u009e\u0a1b\n"= )=0D + buf.write("\u009e\f\u009e\16\u009e\u0a1e\13\u009e\3\u009f\3\u009f"= )=0D + buf.write("\3\u009f\3\u009f\5\u009f\u0a24\n\u009f\3\u00a0\3\u00a0"= )=0D + buf.write("\7\u00a0\u0a28\n\u00a0\f\u00a0\16\u00a0\u0a2b\13\u00a0"= )=0D + buf.write("\3\u00a1\3\u00a1\3\u00a1\3\u00a1\3\u00a1\3\u00a1\5\u00a= 1")=0D + buf.write("\u0a33\n\u00a1\3\u00a2\3\u00a2\3\u00a2\7\u00a2\u0a38\n"= )=0D + buf.write("\u00a2\f\u00a2\16\u00a2\u0a3b\13\u00a2\3\u00a2\3\u00a2"= )=0D + buf.write("\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a= 3")=0D + buf.write("\3\u00a3\3\u00a3\3\u00a3\3\u00a3\3\u00a3\5\u00a3\u0a4b"= )=0D + buf.write("\n\u00a3\3\u00a4\3\u00a4\3\u00a4\3\u00a4\3\u00a4\3\u00a= 4")=0D + buf.write("\3\u00a4\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a5\3\u00a= 5")=0D + buf.write("\3\u00a5\3\u00a6\3\u00a6\3\u00a6\3\u00a6\3\u00a6\3\u00a= 6")=0D + buf.write("\3\u00a6\3\u00a6\3\u00a6\3\u00a7\3\u00a7\3\u00a7\3\u00a= 7")=0D + buf.write("\3\u00a8\3\u00a8\3\u00a8\3\u00a8\3\u00a8\3\u00a8\3\u00a= 8")=0D + buf.write("\3\u00a8\3\u00a8\3\u00a8\3\u00a8\5\u00a8\u0a73\n\u00a8"= )=0D + buf.write("\3\u00a9\3\u00a9\3\u00aa\3\u00aa\3\u00aa\3\u00aa\3\u00a= a")=0D + buf.write("\3\u00aa\3\u00aa\3\u00aa\3\u00aa\3\u00aa\3\u00aa\3\u00a= a")=0D + buf.write("\3\u00aa\3\u00aa\3\u00aa\5\u00aa\u0a86\n\u00aa\3\u00ab"= )=0D + buf.write("\3\u00ab\3\u00ab\3\u00ab\3\u00ab\3\u00ab\3\u00ab\3\u00a= b")=0D + buf.write("\3\u00ab\3\u00ab\3\u00ab\3\u00ab\5\u00ab\u0a94\n\u00ab"= )=0D + buf.write("\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00a= c")=0D + buf.write("\3\u00ac\3\u00ac\3\u00ac\3\u00ac\3\u00ac\5\u00ac\u0aa2"= )=0D + buf.write("\n\u00ac\3\u00ad\3\u00ad\3\u00ad\3\u00ad\6\u00ad\u0aa8"= )=0D + buf.write("\n\u00ad\r\u00ad\16\u00ad\u0aa9\3\u00ae\3\u00ae\3\u00ae= ")=0D + buf.write("\3\u00ae\3\u00ae\3\u00ae\3\u00ae\7\u00ae\u0ab3\n\u00ae"= )=0D + buf.write("\f\u00ae\16\u00ae\u0ab6\13\u00ae\5\u00ae\u0ab8\n\u00ae"= )=0D + buf.write("\3\u00af\3\u00af\3\u00af\3\u00af\5\u00af\u0abe\n\u00af"= )=0D + buf.write("\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b0\3\u00b1\3\u00b= 1")=0D + buf.write("\3\u00b1\3\u00b1\3\u00b1\3\u00b2\3\u00b2\3\u00b2\3\u00b= 2")=0D + buf.write("\3\u00b2\3\u00b2\3\u00b2\5\u00b2\u0ad1\n\u00b2\3\u00b2"= )=0D + buf.write("\3\u00b2\3\u00b3\3\u00b3\3\u00b4\3\u00b4\3\u00b4\3\u00b= 4")=0D + buf.write("\3\u00b4\3\u00b5\3\u00b5\3\u00b6\3\u00b6\3\u00b6\3\u00b= 6")=0D + buf.write("\3\u00b6\3\u00b6\3\u00b6\5\u00b6\u0ae5\n\u00b6\3\u00b6"= )=0D + buf.write("\3\u00b6\3\u00b7\3\u00b7\3\u00b8\3\u00b8\3\u00b8\3\u00b= 8")=0D + buf.write("\3\u00b8\3\u00b8\3\u00b8\3\u00b8\3\u00b8\3\u00b8\5\u00b= 8")=0D + buf.write("\u0af5\n\u00b8\3\u00b9\3\u00b9\3\u00b9\3\u00b9\3\u00b9"= )=0D + buf.write("\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00ba\3\u00bb\3\u00b= b")=0D + buf.write("\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00b= b")=0D + buf.write("\5\u00bb\u0b0a\n\u00bb\3\u00bb\3\u00bb\3\u00bb\3\u00bb"= )=0D + buf.write("\3\u00bb\5\u00bb\u0b11\n\u00bb\3\u00bb\3\u00bb\3\u00bb"= )=0D + buf.write("\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00bc\3\u00bd\3\u00b= d")=0D + buf.write("\3\u00bd\3\u00bd\3\u00bd\3\u00be\3\u00be\3\u00be\3\u00b= e")=0D + buf.write("\3\u00be\5\u00be\u0b25\n\u00be\3\u00be\3\u00be\3\u00be"= )=0D + buf.write("\3\u00be\3\u00bf\3\u00bf\3\u00bf\3\u00bf\3\u00bf\3\u00c= 0")=0D + buf.write("\3\u00c0\3\u00c0\3\u00c0\3\u00c0\3\u00c1\3\u00c1\3\u00c= 1")=0D + buf.write("\3\u00c1\3\u00c1\3\u00c2\3\u00c2\3\u00c2\3\u00c2\3\u00c= 2")=0D + buf.write("\3\u00c2\3\u00c2\5\u00c2\u0b41\n\u00c2\3\u00c2\3\u00c2"= )=0D + buf.write("\3\u00c2\3\u00c2\3\u00c3\3\u00c3\3\u00c3\3\u00c3\3\u00c= 3")=0D + buf.write("\5\u00c3\u0b4c\n\u00c3\3\u00c4\3\u00c4\3\u00c4\3\u00c4"= )=0D + buf.write("\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c5\3\u00c= 5")=0D + buf.write("\3\u00c5\3\u00c5\3\u00c5\7\u00c5\u0b5c\n\u00c5\f\u00c5"= )=0D + buf.write("\16\u00c5\u0b5f\13\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c= 5")=0D + buf.write("\3\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c6\3\u00c6\3\u00c= 7")=0D + buf.write("\3\u00c7\3\u00c7\3\u00c7\3\u00c7\3\u00c7\3\u00c7\3\u00c= 7")=0D + buf.write("\3\u00c7\3\u00c8\3\u00c8\3\u00c8\3\u00c8\3\u00c8\3\u00c= 8")=0D + buf.write("\3\u00c8\3\u00c8\3\u00c8\3\u00c9\3\u00c9\3\u00c9\3\u00c= 9")=0D + buf.write("\3\u00c9\3\u00c9\3\u00c9\7\u00c9\u0b84\n\u00c9\f\u00c9"= )=0D + buf.write("\16\u00c9\u0b87\13\u00c9\3\u00c9\3\u00c9\3\u00c9\3\u00c= 9")=0D + buf.write("\3\u00c9\3\u00c9\3\u00c9\3\u00c9\3\u00ca\3\u00ca\3\u00c= b")=0D + buf.write("\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00cb\3\u00c= b")=0D + buf.write("\3\u00cb\7\u00cb\u0b9c\n\u00cb\f\u00cb\16\u00cb\u0b9f")= =0D + buf.write("\13\u00cb\3\u00cb\3\u00cb\3\u00cb\2\2\u00cc\2\4\6\b\n")= =0D + buf.write("\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<")= =0D + buf.write(">@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0080\u0082\u0084\u0= 086")=0D + buf.write("\u0088\u008a\u008c\u008e\u0090\u0092\u0094\u0096\u0098"= )=0D + buf.write("\u009a\u009c\u009e\u00a0\u00a2\u00a4\u00a6\u00a8\u00aa"= )=0D + buf.write("\u00ac\u00ae\u00b0\u00b2\u00b4\u00b6\u00b8\u00ba\u00bc"= )=0D + buf.write("\u00be\u00c0\u00c2\u00c4\u00c6\u00c8\u00ca\u00cc\u00ce"= )=0D + buf.write("\u00d0\u00d2\u00d4\u00d6\u00d8\u00da\u00dc\u00de\u00e0"= )=0D + buf.write("\u00e2\u00e4\u00e6\u00e8\u00ea\u00ec\u00ee\u00f0\u00f2"= )=0D + buf.write("\u00f4\u00f6\u00f8\u00fa\u00fc\u00fe\u0100\u0102\u0104"= )=0D + buf.write("\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116"= )=0D + buf.write("\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128"= )=0D + buf.write("\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0138\u013a"= )=0D + buf.write("\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u014a\u014c"= )=0D + buf.write("\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e"= )=0D + buf.write("\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170"= )=0D + buf.write("\u0172\u0174\u0176\u0178\u017a\u017c\u017e\u0180\u0182"= )=0D + buf.write("\u0184\u0186\u0188\u018a\u018c\u018e\u0190\u0192\u0194"= )=0D + buf.write("\2\20\3\2\4\5\4\2\u00ac\u00b2\u00fa\u00fa\4\2\u00b3\u00= b6")=0D + buf.write("\u00fa\u00fa\4\2\n\n\u00fa\u00fa\5\2\u00b7\u00b9\u00bd"= )=0D + buf.write("\u00bf\u00fa\u00fa\4\2\u00ba\u00bf\u00fa\u00fa\3\2\u008= 5")=0D + buf.write("\u0086\3\2\u008a\u008c\3\2RV\3\2\u00fa\u00fb\3\2\u00ef"= )=0D + buf.write("\u00f2\4\2\u00d3\u00d9\u00fa\u00fa\3\2\u00f6\u00f7\3\2"= )=0D + buf.write("\u00f8\u00fa\2\u0c6e\2\u019b\3\2\2\2\4\u01a0\3\2\2\2\6"= )=0D + buf.write("\u01a2\3\2\2\2\b\u01ac\3\2\2\2\n\u01ae\3\2\2\2\f\u01b9"= )=0D + buf.write("\3\2\2\2\16\u01cb\3\2\2\2\20\u01ec\3\2\2\2\22\u01ef\3")= =0D + buf.write("\2\2\2\24\u01f8\3\2\2\2\26\u0201\3\2\2\2\30\u020a\3\2")= =0D + buf.write("\2\2\32\u0213\3\2\2\2\34\u021c\3\2\2\2\36\u0225\3\2\2")= =0D + buf.write("\2 \u022e\3\2\2\2\"\u0237\3\2\2\2$\u0240\3\2\2\2&\u0249= ")=0D + buf.write("\3\2\2\2(\u0251\3\2\2\2*\u0259\3\2\2\2,\u0261\3\2\2\2")= =0D + buf.write(".\u0269\3\2\2\2\60\u0295\3\2\2\2\62\u02a2\3\2\2\2\64\u0= 2aa")=0D + buf.write("\3\2\2\2\66\u02ac\3\2\2\28\u02b1\3\2\2\2:\u02be\3\2\2")= =0D + buf.write("\2<\u02c0\3\2\2\2>\u02d1\3\2\2\2@\u02f3\3\2\2\2B\u032d"= )=0D + buf.write("\3\2\2\2D\u032f\3\2\2\2F\u0348\3\2\2\2H\u034f\3\2\2\2")= =0D + buf.write("J\u0356\3\2\2\2L\u0366\3\2\2\2N\u0376\3\2\2\2P\u037b\3"= )=0D + buf.write("\2\2\2R\u0382\3\2\2\2T\u0391\3\2\2\2V\u03a7\3\2\2\2X\u0= 3b5")=0D + buf.write("\3\2\2\2Z\u03e3\3\2\2\2\\\u03e5\3\2\2\2^\u03ec\3\2\2\2"= )=0D + buf.write("`\u03f0\3\2\2\2b\u03f2\3\2\2\2d\u03fa\3\2\2\2f\u041e\3"= )=0D + buf.write("\2\2\2h\u0420\3\2\2\2j\u043f\3\2\2\2l\u0442\3\2\2\2n\u0= 445")=0D + buf.write("\3\2\2\2p\u044f\3\2\2\2r\u0451\3\2\2\2t\u0476\3\2\2\2")= =0D + buf.write("v\u0478\3\2\2\2x\u0480\3\2\2\2z\u0482\3\2\2\2|\u04b3\3"= )=0D + buf.write("\2\2\2~\u04b7\3\2\2\2\u0080\u04b9\3\2\2\2\u0082\u04fe")= =0D + buf.write("\3\2\2\2\u0084\u0508\3\2\2\2\u0086\u050a\3\2\2\2\u0088"= )=0D + buf.write("\u051f\3\2\2\2\u008a\u052c\3\2\2\2\u008c\u052e\3\2\2\2"= )=0D + buf.write("\u008e\u0549\3\2\2\2\u0090\u0564\3\2\2\2\u0092\u056c\3"= )=0D + buf.write("\2\2\2\u0094\u0571\3\2\2\2\u0096\u0579\3\2\2\2\u0098\u0= 57e")=0D + buf.write("\3\2\2\2\u009a\u0594\3\2\2\2\u009c\u059e\3\2\2\2\u009e"= )=0D + buf.write("\u05a8\3\2\2\2\u00a0\u05aa\3\2\2\2\u00a2\u05c0\3\2\2\2"= )=0D + buf.write("\u00a4\u05d6\3\2\2\2\u00a6\u05e6\3\2\2\2\u00a8\u05ea\3"= )=0D + buf.write("\2\2\2\u00aa\u05ec\3\2\2\2\u00ac\u060a\3\2\2\2\u00ae\u0= 61d")=0D + buf.write("\3\2\2\2\u00b0\u061f\3\2\2\2\u00b2\u0623\3\2\2\2\u00b4"= )=0D + buf.write("\u062a\3\2\2\2\u00b6\u062f\3\2\2\2\u00b8\u0633\3\2\2\2"= )=0D + buf.write("\u00ba\u0635\3\2\2\2\u00bc\u064a\3\2\2\2\u00be\u0658\3"= )=0D + buf.write("\2\2\2\u00c0\u065a\3\2\2\2\u00c2\u066f\3\2\2\2\u00c4\u0= 679")=0D + buf.write("\3\2\2\2\u00c6\u067d\3\2\2\2\u00c8\u067f\3\2\2\2\u00ca"= )=0D + buf.write("\u0695\3\2\2\2\u00cc\u06a9\3\2\2\2\u00ce\u06ba\3\2\2\2"= )=0D + buf.write("\u00d0\u06bc\3\2\2\2\u00d2\u06ce\3\2\2\2\u00d4\u06d8\3"= )=0D + buf.write("\2\2\2\u00d6\u06da\3\2\2\2\u00d8\u06f6\3\2\2\2\u00da\u0= 701")=0D + buf.write("\3\2\2\2\u00dc\u0703\3\2\2\2\u00de\u0725\3\2\2\2\u00e0"= )=0D + buf.write("\u072f\3\2\2\2\u00e2\u0731\3\2\2\2\u00e4\u0745\3\2\2\2"= )=0D + buf.write("\u00e6\u0751\3\2\2\2\u00e8\u0753\3\2\2\2\u00ea\u07b3\3"= )=0D + buf.write("\2\2\2\u00ec\u07c7\3\2\2\2\u00ee\u07cf\3\2\2\2\u00f0\u0= 7d1")=0D + buf.write("\3\2\2\2\u00f2\u0831\3\2\2\2\u00f4\u0845\3\2\2\2\u00f6"= )=0D + buf.write("\u084d\3\2\2\2\u00f8\u0853\3\2\2\2\u00fa\u0855\3\2\2\2"= )=0D + buf.write("\u00fc\u085a\3\2\2\2\u00fe\u085c\3\2\2\2\u0100\u0864\3"= )=0D + buf.write("\2\2\2\u0102\u086a\3\2\2\2\u0104\u086c\3\2\2\2\u0106\u0= 878")=0D + buf.write("\3\2\2\2\u0108\u088a\3\2\2\2\u010a\u089c\3\2\2\2\u010c"= )=0D + buf.write("\u08b6\3\2\2\2\u010e\u08d0\3\2\2\2\u0110\u08ed\3\2\2\2"= )=0D + buf.write("\u0112\u08ef\3\2\2\2\u0114\u08f9\3\2\2\2\u0116\u0912\3"= )=0D + buf.write("\2\2\2\u0118\u093b\3\2\2\2\u011a\u093f\3\2\2\2\u011c\u0= 956")=0D + buf.write("\3\2\2\2\u011e\u09af\3\2\2\2\u0120\u09c0\3\2\2\2\u0122"= )=0D + buf.write("\u09c3\3\2\2\2\u0124\u09c5\3\2\2\2\u0126\u09cd\3\2\2\2"= )=0D + buf.write("\u0128\u09d5\3\2\2\2\u012a\u09dd\3\2\2\2\u012c\u09e5\3"= )=0D + buf.write("\2\2\2\u012e\u09ed\3\2\2\2\u0130\u09f8\3\2\2\2\u0132\u0= 9fa")=0D + buf.write("\3\2\2\2\u0134\u0a09\3\2\2\2\u0136\u0a0b\3\2\2\2\u0138"= )=0D + buf.write("\u0a16\3\2\2\2\u013a\u0a18\3\2\2\2\u013c\u0a23\3\2\2\2"= )=0D + buf.write("\u013e\u0a25\3\2\2\2\u0140\u0a32\3\2\2\2\u0142\u0a39\3"= )=0D + buf.write("\2\2\2\u0144\u0a4a\3\2\2\2\u0146\u0a4c\3\2\2\2\u0148\u0= a53")=0D + buf.write("\3\2\2\2\u014a\u0a5a\3\2\2\2\u014c\u0a63\3\2\2\2\u014e"= )=0D + buf.write("\u0a72\3\2\2\2\u0150\u0a74\3\2\2\2\u0152\u0a76\3\2\2\2"= )=0D + buf.write("\u0154\u0a87\3\2\2\2\u0156\u0a95\3\2\2\2\u0158\u0aa3\3"= )=0D + buf.write("\2\2\2\u015a\u0ab7\3\2\2\2\u015c\u0ab9\3\2\2\2\u015e\u0= abf")=0D + buf.write("\3\2\2\2\u0160\u0ac4\3\2\2\2\u0162\u0ac9\3\2\2\2\u0164"= )=0D + buf.write("\u0ad4\3\2\2\2\u0166\u0ad6\3\2\2\2\u0168\u0adb\3\2\2\2"= )=0D + buf.write("\u016a\u0add\3\2\2\2\u016c\u0ae8\3\2\2\2\u016e\u0af4\3"= )=0D + buf.write("\2\2\2\u0170\u0af6\3\2\2\2\u0172\u0afb\3\2\2\2\u0174\u0= b00")=0D + buf.write("\3\2\2\2\u0176\u0b15\3\2\2\2\u0178\u0b1a\3\2\2\2\u017a"= )=0D + buf.write("\u0b1f\3\2\2\2\u017c\u0b2a\3\2\2\2\u017e\u0b2f\3\2\2\2"= )=0D + buf.write("\u0180\u0b34\3\2\2\2\u0182\u0b39\3\2\2\2\u0184\u0b4b\3"= )=0D + buf.write("\2\2\2\u0186\u0b4d\3\2\2\2\u0188\u0b56\3\2\2\2\u018a\u0= b68")=0D + buf.write("\3\2\2\2\u018c\u0b6a\3\2\2\2\u018e\u0b73\3\2\2\2\u0190"= )=0D + buf.write("\u0b7c\3\2\2\2\u0192\u0b90\3\2\2\2\u0194\u0b92\3\2\2\2"= )=0D + buf.write("\u0196\u019a\5\n\6\2\u0197\u019a\5\f\7\2\u0198\u019a\5"= )=0D + buf.write("\16\b\2\u0199\u0196\3\2\2\2\u0199\u0197\3\2\2\2\u0199")= =0D + buf.write("\u0198\3\2\2\2\u019a\u019d\3\2\2\2\u019b\u0199\3\2\2\2"= )=0D + buf.write("\u019b\u019c\3\2\2\2\u019c\u019e\3\2\2\2\u019d\u019b\3"= )=0D + buf.write("\2\2\2\u019e\u019f\5.\30\2\u019f\3\3\2\2\2\u01a0\u01a1"= )=0D + buf.write("\7\3\2\2\u01a1\5\3\2\2\2\u01a2\u01a5\t\2\2\2\u01a3\u01a= 4")=0D + buf.write("\7!\2\2\u01a4\u01a6\7\u00fb\2\2\u01a5\u01a3\3\2\2\2\u01= a5")=0D + buf.write("\u01a6\3\2\2\2\u01a6\u01a9\3\2\2\2\u01a7\u01a8\7!\2\2")= =0D + buf.write("\u01a8\u01aa\7\u00fa\2\2\u01a9\u01a7\3\2\2\2\u01a9\u01a= a")=0D + buf.write("\3\2\2\2\u01aa\7\3\2\2\2\u01ab\u01ad\7\u00fa\2\2\u01ac"= )=0D + buf.write("\u01ab\3\2\2\2\u01ac\u01ad\3\2\2\2\u01ad\t\3\2\2\2\u01a= e")=0D + buf.write("\u01af\7\6\2\2\u01af\u01b0\7\7\2\2\u01b0\u01b4\7\30\2")= =0D + buf.write("\2\u01b1\u01b5\5\4\3\2\u01b2\u01b5\5\6\4\2\u01b3\u01b5"= )=0D + buf.write("\5\b\5\2\u01b4\u01b1\3\2\2\2\u01b4\u01b2\3\2\2\2\u01b4"= )=0D + buf.write("\u01b3\3\2\2\2\u01b4\u01b5\3\2\2\2\u01b5\u01b6\3\2\2\2"= )=0D + buf.write("\u01b6\u01b7\7\31\2\2\u01b7\13\3\2\2\2\u01b8\u01ba\7\u0= 084")=0D + buf.write("\2\2\u01b9\u01b8\3\2\2\2\u01b9\u01ba\3\2\2\2\u01ba\u01b= b")=0D + buf.write("\3\2\2\2\u01bb\u01bd\7P\2\2\u01bc\u01be\7O\2\2\u01bd\u0= 1bc")=0D + buf.write("\3\2\2\2\u01bd\u01be\3\2\2\2\u01be\u01c0\3\2\2\2\u01bf"= )=0D + buf.write("\u01c1\7\u00fb\2\2\u01c0\u01bf\3\2\2\2\u01c0\u01c1\3\2"= )=0D + buf.write("\2\2\u01c1\u01c2\3\2\2\2\u01c2\u01c3\7\26\2\2\u01c3\u01= c4")=0D + buf.write("\5\20\t\2\u01c4\u01c6\7\27\2\2\u01c5\u01c7\7\u00fb\2\2"= )=0D + buf.write("\u01c6\u01c5\3\2\2\2\u01c6\u01c7\3\2\2\2\u01c7\u01c8\3"= )=0D + buf.write("\2\2\2\u01c8\u01c9\7 \2\2\u01c9\r\3\2\2\2\u01ca\u01cc")= =0D + buf.write("\7\u0084\2\2\u01cb\u01ca\3\2\2\2\u01cb\u01cc\3\2\2\2\u0= 1cc")=0D + buf.write("\u01cd\3\2\2\2\u01cd\u01cf\7Q\2\2\u01ce\u01d0\7O\2\2\u0= 1cf")=0D + buf.write("\u01ce\3\2\2\2\u01cf\u01d0\3\2\2\2\u01d0\u01d2\3\2\2\2"= )=0D + buf.write("\u01d1\u01d3\7\u00fb\2\2\u01d2\u01d1\3\2\2\2\u01d2\u01d= 3")=0D + buf.write("\3\2\2\2\u01d3\u01d4\3\2\2\2\u01d4\u01d5\7\26\2\2\u01d5= ")=0D + buf.write("\u01d6\5\20\t\2\u01d6\u01d8\7\27\2\2\u01d7\u01d9\7\u00f= b")=0D + buf.write("\2\2\u01d8\u01d7\3\2\2\2\u01d8\u01d9\3\2\2\2\u01d9\u01d= a")=0D + buf.write("\3\2\2\2\u01da\u01db\7 \2\2\u01db\17\3\2\2\2\u01dc\u01e= b")=0D + buf.write("\5\22\n\2\u01dd\u01eb\5\24\13\2\u01de\u01eb\5\26\f\2\u0= 1df")=0D + buf.write("\u01eb\5\30\r\2\u01e0\u01eb\5\32\16\2\u01e1\u01eb\5\34"= )=0D + buf.write("\17\2\u01e2\u01eb\5\36\20\2\u01e3\u01eb\5 \21\2\u01e4")= =0D + buf.write("\u01eb\5\"\22\2\u01e5\u01eb\5$\23\2\u01e6\u01eb\5&\24")= =0D + buf.write("\2\u01e7\u01eb\5(\25\2\u01e8\u01eb\5*\26\2\u01e9\u01eb"= )=0D + buf.write("\5,\27\2\u01ea\u01dc\3\2\2\2\u01ea\u01dd\3\2\2\2\u01ea"= )=0D + buf.write("\u01de\3\2\2\2\u01ea\u01df\3\2\2\2\u01ea\u01e0\3\2\2\2"= )=0D + buf.write("\u01ea\u01e1\3\2\2\2\u01ea\u01e2\3\2\2\2\u01ea\u01e3\3"= )=0D + buf.write("\2\2\2\u01ea\u01e4\3\2\2\2\u01ea\u01e5\3\2\2\2\u01ea\u0= 1e6")=0D + buf.write("\3\2\2\2\u01ea\u01e7\3\2\2\2\u01ea\u01e8\3\2\2\2\u01ea"= )=0D + buf.write("\u01e9\3\2\2\2\u01eb\u01ee\3\2\2\2\u01ec\u01ea\3\2\2\2"= )=0D + buf.write("\u01ec\u01ed\3\2\2\2\u01ed\21\3\2\2\2\u01ee\u01ec\3\2")= =0D + buf.write("\2\2\u01ef\u01f0\7S\2\2\u01f0\u01f4\7\u00fb\2\2\u01f1")= =0D + buf.write("\u01f2\7\32\2\2\u01f2\u01f3\7\u00fa\2\2\u01f3\u01f5\7")= =0D + buf.write("\33\2\2\u01f4\u01f1\3\2\2\2\u01f4\u01f5\3\2\2\2\u01f5")= =0D + buf.write("\u01f6\3\2\2\2\u01f6\u01f7\7 \2\2\u01f7\23\3\2\2\2\u01f= 8")=0D + buf.write("\u01f9\7T\2\2\u01f9\u01fd\7\u00fb\2\2\u01fa\u01fb\7\32"= )=0D + buf.write("\2\2\u01fb\u01fc\7\u00fa\2\2\u01fc\u01fe\7\33\2\2\u01fd= ")=0D + buf.write("\u01fa\3\2\2\2\u01fd\u01fe\3\2\2\2\u01fe\u01ff\3\2\2\2"= )=0D + buf.write("\u01ff\u0200\7 \2\2\u0200\25\3\2\2\2\u0201\u0202\7U\2")= =0D + buf.write("\2\u0202\u0206\7\u00fb\2\2\u0203\u0204\7\32\2\2\u0204")= =0D + buf.write("\u0205\7\u00fa\2\2\u0205\u0207\7\33\2\2\u0206\u0203\3")= =0D + buf.write("\2\2\2\u0206\u0207\3\2\2\2\u0207\u0208\3\2\2\2\u0208\u0= 209")=0D + buf.write("\7 \2\2\u0209\27\3\2\2\2\u020a\u020b\7V\2\2\u020b\u020f= ")=0D + buf.write("\7\u00fb\2\2\u020c\u020d\7\32\2\2\u020d\u020e\7\u00fa")= =0D + buf.write("\2\2\u020e\u0210\7\33\2\2\u020f\u020c\3\2\2\2\u020f\u02= 10")=0D + buf.write("\3\2\2\2\u0210\u0211\3\2\2\2\u0211\u0212\7 \2\2\u0212")= =0D + buf.write("\31\3\2\2\2\u0213\u0214\7R\2\2\u0214\u0218\7\u00fb\2\2"= )=0D + buf.write("\u0215\u0216\7\32\2\2\u0216\u0217\7\u00fa\2\2\u0217\u02= 19")=0D + buf.write("\7\33\2\2\u0218\u0215\3\2\2\2\u0218\u0219\3\2\2\2\u0219= ")=0D + buf.write("\u021a\3\2\2\2\u021a\u021b\7 \2\2\u021b\33\3\2\2\2\u021= c")=0D + buf.write("\u021d\7W\2\2\u021d\u0221\7\u00fb\2\2\u021e\u021f\7\32"= )=0D + buf.write("\2\2\u021f\u0220\7\u00fa\2\2\u0220\u0222\7\33\2\2\u0221= ")=0D + buf.write("\u021e\3\2\2\2\u0221\u0222\3\2\2\2\u0222\u0223\3\2\2\2"= )=0D + buf.write("\u0223\u0224\7 \2\2\u0224\35\3\2\2\2\u0225\u0226\7X\2")= =0D + buf.write("\2\u0226\u022a\7\u00fb\2\2\u0227\u0228\7\32\2\2\u0228")= =0D + buf.write("\u0229\7\u00fa\2\2\u0229\u022b\7\33\2\2\u022a\u0227\3")= =0D + buf.write("\2\2\2\u022a\u022b\3\2\2\2\u022b\u022c\3\2\2\2\u022c\u0= 22d")=0D + buf.write("\7 \2\2\u022d\37\3\2\2\2\u022e\u022f\7Y\2\2\u022f\u0233= ")=0D + buf.write("\7\u00fb\2\2\u0230\u0231\7\32\2\2\u0231\u0232\7\u00fa")= =0D + buf.write("\2\2\u0232\u0234\7\33\2\2\u0233\u0230\3\2\2\2\u0233\u02= 34")=0D + buf.write("\3\2\2\2\u0234\u0235\3\2\2\2\u0235\u0236\7 \2\2\u0236")= =0D + buf.write("!\3\2\2\2\u0237\u0238\7Z\2\2\u0238\u023c\7\u00fb\2\2\u0= 239")=0D + buf.write("\u023a\7\32\2\2\u023a\u023b\7\u00fa\2\2\u023b\u023d\7")= =0D + buf.write("\33\2\2\u023c\u0239\3\2\2\2\u023c\u023d\3\2\2\2\u023d")= =0D + buf.write("\u023e\3\2\2\2\u023e\u023f\7 \2\2\u023f#\3\2\2\2\u0240"= )=0D + buf.write("\u0241\7\u00fb\2\2\u0241\u0245\7\u00fb\2\2\u0242\u0243"= )=0D + buf.write("\7\32\2\2\u0243\u0244\7\u00fa\2\2\u0244\u0246\7\33\2\2"= )=0D + buf.write("\u0245\u0242\3\2\2\2\u0245\u0246\3\2\2\2\u0246\u0247\3"= )=0D + buf.write("\2\2\2\u0247\u0248\7 \2\2\u0248%\3\2\2\2\u0249\u024b\7"= )=0D + buf.write("S\2\2\u024a\u024c\7\u00fb\2\2\u024b\u024a\3\2\2\2\u024b= ")=0D + buf.write("\u024c\3\2\2\2\u024c\u024d\3\2\2\2\u024d\u024e\7\36\2")= =0D + buf.write("\2\u024e\u024f\7\u00fa\2\2\u024f\u0250\7 \2\2\u0250\'")= =0D + buf.write("\3\2\2\2\u0251\u0253\7T\2\2\u0252\u0254\7\u00fb\2\2\u02= 53")=0D + buf.write("\u0252\3\2\2\2\u0253\u0254\3\2\2\2\u0254\u0255\3\2\2\2"= )=0D + buf.write("\u0255\u0256\7\36\2\2\u0256\u0257\7\u00fa\2\2\u0257\u02= 58")=0D + buf.write("\7 \2\2\u0258)\3\2\2\2\u0259\u025b\7U\2\2\u025a\u025c")= =0D + buf.write("\7\u00fb\2\2\u025b\u025a\3\2\2\2\u025b\u025c\3\2\2\2\u0= 25c")=0D + buf.write("\u025d\3\2\2\2\u025d\u025e\7\36\2\2\u025e\u025f\7\u00fa= ")=0D + buf.write("\2\2\u025f\u0260\7 \2\2\u0260+\3\2\2\2\u0261\u0263\7V")= =0D + buf.write("\2\2\u0262\u0264\7\u00fb\2\2\u0263\u0262\3\2\2\2\u0263"= )=0D + buf.write("\u0264\3\2\2\2\u0264\u0265\3\2\2\2\u0265\u0266\7\36\2")= =0D + buf.write("\2\u0266\u0267\7\u00fa\2\2\u0267\u0268\7 \2\2\u0268-\3"= )=0D + buf.write("\2\2\2\u0269\u026a\7+\2\2\u026a\u026b\7[\2\2\u026b\u026= c")=0D + buf.write("\7\b\2\2\u026c\u026d\5L\'\2\u026d\u026e\7!\2\2\u026e\u0= 26f")=0D + buf.write("\7.\2\2\u026f\u0270\7\b\2\2\u0270\u0271\7\u00ec\2\2\u02= 71")=0D + buf.write("\u0272\7\30\2\2\u0272\u0273\7\u00fa\2\2\u0273\u0274\7")= =0D + buf.write("\31\2\2\u0274\u0275\7!\2\2\u0275\u0276\7=3D\2\2\u0276\u= 0277")=0D + buf.write("\7\b\2\2\u0277\u0278\7\u00ec\2\2\u0278\u0279\7\30\2\2")= =0D + buf.write("\u0279\u027a\7\u00fa\2\2\u027a\u027b\7\31\2\2\u027b\u02= 81")=0D + buf.write("\7!\2\2\u027c\u027d\7\u0083\2\2\u027d\u027e\7\b\2\2\u02= 7e")=0D + buf.write("\u027f\5\60\31\2\u027f\u0280\7!\2\2\u0280\u0282\3\2\2")= =0D + buf.write("\2\u0281\u027c\3\2\2\2\u0281\u0282\3\2\2\2\u0282\u0288"= )=0D + buf.write("\3\2\2\2\u0283\u0284\7\u0081\2\2\u0284\u0285\7\b\2\2\u0= 285")=0D + buf.write("\u0286\5\62\32\2\u0286\u0287\7!\2\2\u0287\u0289\3\2\2")= =0D + buf.write("\2\u0288\u0283\3\2\2\2\u0288\u0289\3\2\2\2\u0289\u028f"= )=0D + buf.write("\3\2\2\2\u028a\u028b\7\u0082\2\2\u028b\u028c\7\b\2\2\u0= 28c")=0D + buf.write("\u028d\5\66\34\2\u028d\u028e\7!\2\2\u028e\u0290\3\2\2")= =0D + buf.write("\2\u028f\u028a\3\2\2\2\u028f\u0290\3\2\2\2\u0290\u0291"= )=0D + buf.write("\3\2\2\2\u0291\u0292\58\35\2\u0292\u0293\7-\2\2\u0293")= =0D + buf.write("\u0294\7 \2\2\u0294/\3\2\2\2\u0295\u0298\5L\'\2\u0296")= =0D + buf.write("\u0297\7(\2\2\u0297\u0299\5L\'\2\u0298\u0296\3\2\2\2\u0= 298")=0D + buf.write("\u0299\3\2\2\2\u0299\u029c\3\2\2\2\u029a\u029b\7(\2\2")= =0D + buf.write("\u029b\u029d\5L\'\2\u029c\u029a\3\2\2\2\u029c\u029d\3")= =0D + buf.write("\2\2\2\u029d\u02a0\3\2\2\2\u029e\u029f\7(\2\2\u029f\u02= a1")=0D + buf.write("\5L\'\2\u02a0\u029e\3\2\2\2\u02a0\u02a1\3\2\2\2\u02a1")= =0D + buf.write("\61\3\2\2\2\u02a2\u02a7\5\64\33\2\u02a3\u02a4\7(\2\2\u0= 2a4")=0D + buf.write("\u02a6\5\64\33\2\u02a5\u02a3\3\2\2\2\u02a6\u02a9\3\2\2"= )=0D + buf.write("\2\u02a7\u02a5\3\2\2\2\u02a7\u02a8\3\2\2\2\u02a8\63\3")= =0D + buf.write("\2\2\2\u02a9\u02a7\3\2\2\2\u02aa\u02ab\t\3\2\2\u02ab\65= ")=0D + buf.write("\3\2\2\2\u02ac\u02ad\t\4\2\2\u02ad\67\3\2\2\2\u02ae\u02= b0")=0D + buf.write("\5:\36\2\u02af\u02ae\3\2\2\2\u02b0\u02b3\3\2\2\2\u02b1"= )=0D + buf.write("\u02af\3\2\2\2\u02b1\u02b2\3\2\2\2\u02b29\3\2\2\2\u02b3= ")=0D + buf.write("\u02b1\3\2\2\2\u02b4\u02bf\5d\63\2\u02b5\u02bf\5h\65\2"= )=0D + buf.write("\u02b6\u02bf\5j\66\2\u02b7\u02bf\5> \2\u02b8\u02bf\5@")= =0D + buf.write("!\2\u02b9\u02bf\5D#\2\u02ba\u02bf\5<\37\2\u02bb\u02bf")= =0D + buf.write("\5F$\2\u02bc\u02bf\5H%\2\u02bd\u02bf\5\u011c\u008f\2\u0= 2be")=0D + buf.write("\u02b4\3\2\2\2\u02be\u02b5\3\2\2\2\u02be\u02b6\3\2\2\2"= )=0D + buf.write("\u02be\u02b7\3\2\2\2\u02be\u02b8\3\2\2\2\u02be\u02b9\3"= )=0D + buf.write("\2\2\2\u02be\u02ba\3\2\2\2\u02be\u02bb\3\2\2\2\u02be\u0= 2bc")=0D + buf.write("\3\2\2\2\u02be\u02bd\3\2\2\2\u02bf;\3\2\2\2\u02c0\u02c1= ")=0D + buf.write("\7\u009b\2\2\u02c1\u02c2\7\u00fb\2\2\u02c2\u02c3\7!\2")= =0D + buf.write("\2\u02c3\u02c4\7\62\2\2\u02c4\u02c5\7\b\2\2\u02c5\u02c6= ")=0D + buf.write("\7\u00ec\2\2\u02c6\u02c7\7\30\2\2\u02c7\u02c8\7\u00fa")= =0D + buf.write("\2\2\u02c8\u02cd\7\31\2\2\u02c9\u02ca\7!\2\2\u02ca\u02c= b")=0D + buf.write("\7\u009c\2\2\u02cb\u02cc\7\b\2\2\u02cc\u02ce\7\u00fa\2"= )=0D + buf.write("\2\u02cd\u02c9\3\2\2\2\u02cd\u02ce\3\2\2\2\u02ce\u02cf"= )=0D + buf.write("\3\2\2\2\u02cf\u02d0\7 \2\2\u02d0=3D\3\2\2\2\u02d1\u02e= 2")=0D + buf.write("\7\u009d\2\2\u02d2\u02d3\7\u00fb\2\2\u02d3\u02e3\7!\2")= =0D + buf.write("\2\u02d4\u02d5\7V\2\2\u02d5\u02e3\7!\2\2\u02d6\u02d7\7"= )=0D + buf.write("U\2\2\u02d7\u02e3\7!\2\2\u02d8\u02d9\7T\2\2\u02d9\u02e3= ")=0D + buf.write("\7!\2\2\u02da\u02db\7S\2\2\u02db\u02e3\7!\2\2\u02dc\u02= dd")=0D + buf.write("\7X\2\2\u02dd\u02e3\7!\2\2\u02de\u02df\7Y\2\2\u02df\u02= e3")=0D + buf.write("\7!\2\2\u02e0\u02e1\7Z\2\2\u02e1\u02e3\7!\2\2\u02e2\u02= d2")=0D + buf.write("\3\2\2\2\u02e2\u02d4\3\2\2\2\u02e2\u02d6\3\2\2\2\u02e2"= )=0D + buf.write("\u02d8\3\2\2\2\u02e2\u02da\3\2\2\2\u02e2\u02dc\3\2\2\2"= )=0D + buf.write("\u02e2\u02de\3\2\2\2\u02e2\u02e0\3\2\2\2\u02e3\u02e8\3"= )=0D + buf.write("\2\2\2\u02e4\u02e5\7\u008f\2\2\u02e5\u02e6\7\b\2\2\u02e= 6")=0D + buf.write("\u02e7\7\u00fa\2\2\u02e7\u02e9\7!\2\2\u02e8\u02e4\3\2")= =0D + buf.write("\2\2\u02e8\u02e9\3\2\2\2\u02e9\u02ea\3\2\2\2\u02ea\u02e= b")=0D + buf.write("\7\u008e\2\2\u02eb\u02ec\7\b\2\2\u02ec\u02ed\7\u00fb\2"= )=0D + buf.write("\2\u02ed\u02ee\7!\2\2\u02ee\u02ef\7[\2\2\u02ef\u02f0\7"= )=0D + buf.write("\b\2\2\u02f0\u02f1\5L\'\2\u02f1\u02f2\7 \2\2\u02f2?\3")= =0D + buf.write("\2\2\2\u02f3\u0304\7\u009e\2\2\u02f4\u02f5\7\u00fb\2\2"= )=0D + buf.write("\u02f5\u0305\7!\2\2\u02f6\u02f7\7V\2\2\u02f7\u0305\7!")= =0D + buf.write("\2\2\u02f8\u02f9\7U\2\2\u02f9\u0305\7!\2\2\u02fa\u02fb"= )=0D + buf.write("\7T\2\2\u02fb\u0305\7!\2\2\u02fc\u02fd\7S\2\2\u02fd\u03= 05")=0D + buf.write("\7!\2\2\u02fe\u02ff\7X\2\2\u02ff\u0305\7!\2\2\u0300\u03= 01")=0D + buf.write("\7Y\2\2\u0301\u0305\7!\2\2\u0302\u0303\7Z\2\2\u0303\u03= 05")=0D + buf.write("\7!\2\2\u0304\u02f4\3\2\2\2\u0304\u02f6\3\2\2\2\u0304")= =0D + buf.write("\u02f8\3\2\2\2\u0304\u02fa\3\2\2\2\u0304\u02fc\3\2\2\2"= )=0D + buf.write("\u0304\u02fe\3\2\2\2\u0304\u0300\3\2\2\2\u0304\u0302\3"= )=0D + buf.write("\2\2\2\u0305\u030a\3\2\2\2\u0306\u0307\7\u008f\2\2\u030= 7")=0D + buf.write("\u0308\7\b\2\2\u0308\u0309\7\u00fa\2\2\u0309\u030b\7!")= =0D + buf.write("\2\2\u030a\u0306\3\2\2\2\u030a\u030b\3\2\2\2\u030b\u030= c")=0D + buf.write("\3\2\2\2\u030c\u030d\7\u009c\2\2\u030d\u030e\7\b\2\2\u0= 30e")=0D + buf.write("\u0313\5B\"\2\u030f\u0310\7(\2\2\u0310\u0312\5B\"\2\u03= 11")=0D + buf.write("\u030f\3\2\2\2\u0312\u0315\3\2\2\2\u0313\u0311\3\2\2\2"= )=0D + buf.write("\u0313\u0314\3\2\2\2\u0314\u0316\3\2\2\2\u0315\u0313\3"= )=0D + buf.write("\2\2\2\u0316\u0326\7!\2\2\u0317\u0318\7\u008e\2\2\u0318= ")=0D + buf.write("\u0319\7\b\2\2\u0319\u031a\7\u00fb\2\2\u031a\u0327\7!")= =0D + buf.write("\2\2\u031b\u031c\7\u008e\2\2\u031c\u031d\7\b\2\2\u031d"= )=0D + buf.write("\u031e\7\u00ec\2\2\u031e\u031f\7\30\2\2\u031f\u0320\7")= =0D + buf.write("\u00fa\2\2\u0320\u0321\7\31\2\2\u0321\u0322\7!\2\2\u032= 2")=0D + buf.write("\u0323\7\u009f\2\2\u0323\u0324\7\b\2\2\u0324\u0325\7\u0= 0fa")=0D + buf.write("\2\2\u0325\u0327\7!\2\2\u0326\u0317\3\2\2\2\u0326\u031b= ")=0D + buf.write("\3\2\2\2\u0327\u0328\3\2\2\2\u0328\u0329\7[\2\2\u0329")= =0D + buf.write("\u032a\7\b\2\2\u032a\u032b\5L\'\2\u032b\u032c\7 \2\2\u0= 32c")=0D + buf.write("A\3\2\2\2\u032d\u032e\7\u00fa\2\2\u032eC\3\2\2\2\u032f"= )=0D + buf.write("\u0330\7\u00a0\2\2\u0330\u0331\7\u00fb\2\2\u0331\u0336"= )=0D + buf.write("\7!\2\2\u0332\u0333\7\u008f\2\2\u0333\u0334\7\b\2\2\u03= 34")=0D + buf.write("\u0335\7\u00fa\2\2\u0335\u0337\7!\2\2\u0336\u0332\3\2")= =0D + buf.write("\2\2\u0336\u0337\3\2\2\2\u0337\u033f\3\2\2\2\u0338\u033= 9")=0D + buf.write("\7\u008e\2\2\u0339\u033a\7\b\2\2\u033a\u033b\7\u00ec\2"= )=0D + buf.write("\2\u033b\u033c\7\30\2\2\u033c\u033d\7\u00fa\2\2\u033d")= =0D + buf.write("\u033e\7\31\2\2\u033e\u0340\7!\2\2\u033f\u0338\3\2\2\2"= )=0D + buf.write("\u0340\u0341\3\2\2\2\u0341\u033f\3\2\2\2\u0341\u0342\3"= )=0D + buf.write("\2\2\2\u0342\u0343\3\2\2\2\u0343\u0344\7[\2\2\u0344\u03= 45")=0D + buf.write("\7\b\2\2\u0345\u0346\5L\'\2\u0346\u0347\7 \2\2\u0347E")= =0D + buf.write("\3\2\2\2\u0348\u0349\7l\2\2\u0349\u034a\5\u0124\u0093")= =0D + buf.write("\2\u034a\u034b\7 \2\2\u034b\u034c\58\35\2\u034c\u034d")= =0D + buf.write("\7s\2\2\u034d\u034e\7 \2\2\u034eG\3\2\2\2\u034f\u0350")= =0D + buf.write("\7k\2\2\u0350\u0351\5\u0124\u0093\2\u0351\u0352\7 \2\2"= )=0D + buf.write("\u0352\u0353\58\35\2\u0353\u0354\7s\2\2\u0354\u0355\7")= =0D + buf.write(" \2\2\u0355I\3\2\2\2\u0356\u0357\7\u00fa\2\2\u0357\u035= 8")=0D + buf.write("\7!\2\2\u0358\u0359\7\u00fa\2\2\u0359\u035a\7!\2\2\u035= a")=0D + buf.write("\u035b\7\u00fa\2\2\u035b\u035c\7!\2\2\u035c\u035d\7\u00= fa")=0D + buf.write("\2\2\u035d\u035e\7!\2\2\u035e\u035f\7\u00fa\2\2\u035f")= =0D + buf.write("\u0360\7!\2\2\u0360\u0361\7\u00fa\2\2\u0361\u0362\7!\2"= )=0D + buf.write("\2\u0362\u0363\7\u00fa\2\2\u0363\u0364\7!\2\2\u0364\u03= 65")=0D + buf.write("\7\u00fa\2\2\u0365K\3\2\2\2\u0366\u0367\7\26\2\2\u0367"= )=0D + buf.write("\u0368\7\u00fa\2\2\u0368\u0369\7!\2\2\u0369\u036a\7\u00= fa")=0D + buf.write("\2\2\u036a\u036b\7!\2\2\u036b\u036c\7\u00fa\2\2\u036c")= =0D + buf.write("\u0372\7!\2\2\u036d\u036e\7\26\2\2\u036e\u036f\5J&\2\u0= 36f")=0D + buf.write("\u0370\7\27\2\2\u0370\u0373\3\2\2\2\u0371\u0373\5J&\2")= =0D + buf.write("\u0372\u036d\3\2\2\2\u0372\u0371\3\2\2\2\u0373\u0374\3"= )=0D + buf.write("\2\2\2\u0374\u0375\7\27\2\2\u0375M\3\2\2\2\u0376\u0377"= )=0D + buf.write("\7\u00ec\2\2\u0377\u0378\7\30\2\2\u0378\u0379\7\u00fa")= =0D + buf.write("\2\2\u0379\u037a\7\31\2\2\u037aO\3\2\2\2\u037b\u037c\5"= )=0D + buf.write("R*\2\u037c\u037d\5T+\2\u037dQ\3\2\2\2\u037e\u037f\7\u00= 8e")=0D + buf.write("\2\2\u037f\u0380\7\b\2\2\u0380\u0381\7\u00fb\2\2\u0381"= )=0D + buf.write("\u0383\7!\2\2\u0382\u037e\3\2\2\2\u0382\u0383\3\2\2\2")= =0D + buf.write("\u0383\u0389\3\2\2\2\u0384\u0385\7\u008f\2\2\u0385\u038= 6")=0D + buf.write("\7\b\2\2\u0386\u0387\5X-\2\u0387\u0388\7!\2\2\u0388\u03= 8a")=0D + buf.write("\3\2\2\2\u0389\u0384\3\2\2\2\u0389\u038a\3\2\2\2\u038a"= )=0D + buf.write("\u038f\3\2\2\2\u038b\u038c\7\u0091\2\2\u038c\u038d\7\b"= )=0D + buf.write("\2\2\u038d\u038e\7\u00fa\2\2\u038e\u0390\7!\2\2\u038f")= =0D + buf.write("\u038b\3\2\2\2\u038f\u0390\3\2\2\2\u0390S\3\2\2\2\u0391= ")=0D + buf.write("\u0392\7\62\2\2\u0392\u0393\7\b\2\2\u0393\u0394\7\u00ec= ")=0D + buf.write("\2\2\u0394\u0395\7\30\2\2\u0395\u0396\7\u00fa\2\2\u0396= ")=0D + buf.write("\u0397\7\31\2\2\u0397\u0398\7!\2\2\u0398\u0399\7=3D\2\2= ")=0D + buf.write("\u0399\u039a\7\b\2\2\u039a\u039b\7\u00ec\2\2\u039b\u039= c")=0D + buf.write("\7\30\2\2\u039c\u039d\7\u00fa\2\2\u039d\u039e\7\31\2\2"= )=0D + buf.write("\u039eU\3\2\2\2\u039f\u03a8\7~\2\2\u03a0\u03a8\7y\2\2")= =0D + buf.write("\u03a1\u03a8\7{\2\2\u03a2\u03a8\7\u0080\2\2\u03a3\u03a8= ")=0D + buf.write("\7|\2\2\u03a4\u03a8\7\177\2\2\u03a5\u03a8\7z\2\2\u03a6"= )=0D + buf.write("\u03a8\7}\2\2\u03a7\u039f\3\2\2\2\u03a7\u03a0\3\2\2\2")= =0D + buf.write("\u03a7\u03a1\3\2\2\2\u03a7\u03a2\3\2\2\2\u03a7\u03a3\3"= )=0D + buf.write("\2\2\2\u03a7\u03a4\3\2\2\2\u03a7\u03a5\3\2\2\2\u03a7\u0= 3a6")=0D + buf.write("\3\2\2\2\u03a8W\3\2\2\2\u03a9\u03aa\7\u00fb\2\2\u03aa")= =0D + buf.write("\u03ab\7\32\2\2\u03ab\u03ac\7\u00fa\2\2\u03ac\u03b6\7")= =0D + buf.write("\33\2\2\u03ad\u03b2\7\u00fb\2\2\u03ae\u03af\7\34\2\2\u0= 3af")=0D + buf.write("\u03b1\5\u015c\u00af\2\u03b0\u03ae\3\2\2\2\u03b1\u03b4"= )=0D + buf.write("\3\2\2\2\u03b2\u03b0\3\2\2\2\u03b2\u03b3\3\2\2\2\u03b3"= )=0D + buf.write("\u03b6\3\2\2\2\u03b4\u03b2\3\2\2\2\u03b5\u03a9\3\2\2\2"= )=0D + buf.write("\u03b5\u03ad\3\2\2\2\u03b6Y\3\2\2\2\u03b7\u03b9\7\35\2"= )=0D + buf.write("\2\u03b8\u03b7\3\2\2\2\u03b8\u03b9\3\2\2\2\u03b9\u03ba"= )=0D + buf.write("\3\2\2\2\u03ba\u03e4\7\u00fa\2\2\u03bb\u03e4\7\u00d3\2"= )=0D + buf.write("\2\u03bc\u03e4\7\u00d4\2\2\u03bd\u03e4\7\u00d5\2\2\u03b= e")=0D + buf.write("\u03e4\7\u00d6\2\2\u03bf\u03e4\7\u00d7\2\2\u03c0\u03c1"= )=0D + buf.write("\7\u00fa\2\2\u03c1\u03c2\7\36\2\2\u03c2\u03c3\7\u00fa")= =0D + buf.write("\2\2\u03c3\u03c4\7\36\2\2\u03c4\u03e4\7\u00fa\2\2\u03c5= ")=0D + buf.write("\u03c6\7\u00fa\2\2\u03c6\u03c7\7\37\2\2\u03c7\u03c8\7")= =0D + buf.write("\u00fa\2\2\u03c8\u03c9\7\37\2\2\u03c9\u03e4\7\u00fa\2")= =0D + buf.write("\2\u03ca\u03cb\7\u00fa\2\2\u03cb\u03cc\7 \2\2\u03cc\u03= cd")=0D + buf.write("\7\u00fa\2\2\u03cd\u03ce\7 \2\2\u03ce\u03cf\5L\'\2\u03c= f")=0D + buf.write("\u03d0\7 \2\2\u03d0\u03d1\7\u00ec\2\2\u03d1\u03d2\7\30"= )=0D + buf.write("\2\2\u03d2\u03d3\7\u00fa\2\2\u03d3\u03d4\7\31\2\2\u03d4= ")=0D + buf.write("\u03e4\3\2\2\2\u03d5\u03d6\7\u00ec\2\2\u03d6\u03d7\7\30= ")=0D + buf.write("\2\2\u03d7\u03d8\7\u00fa\2\2\u03d8\u03e4\7\31\2\2\u03d9= ")=0D + buf.write("\u03da\7\26\2\2\u03da\u03df\7\u00fa\2\2\u03db\u03dc\7")= =0D + buf.write("!\2\2\u03dc\u03de\7\u00fa\2\2\u03dd\u03db\3\2\2\2\u03de= ")=0D + buf.write("\u03e1\3\2\2\2\u03df\u03dd\3\2\2\2\u03df\u03e0\3\2\2\2"= )=0D + buf.write("\u03e0\u03e2\3\2\2\2\u03e1\u03df\3\2\2\2\u03e2\u03e4\7"= )=0D + buf.write("\27\2\2\u03e3\u03b8\3\2\2\2\u03e3\u03bb\3\2\2\2\u03e3")= =0D + buf.write("\u03bc\3\2\2\2\u03e3\u03bd\3\2\2\2\u03e3\u03be\3\2\2\2"= )=0D + buf.write("\u03e3\u03bf\3\2\2\2\u03e3\u03c0\3\2\2\2\u03e3\u03c5\3"= )=0D + buf.write("\2\2\2\u03e3\u03ca\3\2\2\2\u03e3\u03d5\3\2\2\2\u03e3\u0= 3d9")=0D + buf.write("\3\2\2\2\u03e4[\3\2\2\2\u03e5\u03e6\7\u0092\2\2\u03e6")= =0D + buf.write("\u03e7\7\b\2\2\u03e7\u03e8\7\t\2\2\u03e8\u03e9\7\30\2")= =0D + buf.write("\2\u03e9\u03ea\7\u00fa\2\2\u03ea\u03eb\7\31\2\2\u03eb")= =0D + buf.write("]\3\2\2\2\u03ec\u03ed\7\u0093\2\2\u03ed_\3\2\2\2\u03ee"= )=0D + buf.write("\u03f1\5\\/\2\u03ef\u03f1\5^\60\2\u03f0\u03ee\3\2\2\2")= =0D + buf.write("\u03f0\u03ef\3\2\2\2\u03f1a\3\2\2\2\u03f2\u03f7\5`\61")= =0D + buf.write("\2\u03f3\u03f4\7!\2\2\u03f4\u03f6\5`\61\2\u03f5\u03f3")= =0D + buf.write("\3\2\2\2\u03f6\u03f9\3\2\2\2\u03f7\u03f5\3\2\2\2\u03f7"= )=0D + buf.write("\u03f8\3\2\2\2\u03f8c\3\2\2\2\u03f9\u03f7\3\2\2\2\u03fa= ")=0D + buf.write("\u03fb\7\67\2\2\u03fb\u03fc\7/\2\2\u03fc\u03fd\7\b\2\2"= )=0D + buf.write("\u03fd\u03fe\7\u00fa\2\2\u03fe\u03ff\7!\2\2\u03ff\u0400= ")=0D + buf.write("\7.\2\2\u0400\u0401\7\b\2\2\u0401\u0402\7\u00ec\2\2\u04= 02")=0D + buf.write("\u0403\7\30\2\2\u0403\u0404\7\u00fa\2\2\u0404\u0405\7")= =0D + buf.write("\31\2\2\u0405\u0409\7 \2\2\u0406\u0408\5f\64\2\u0407\u0= 406")=0D + buf.write("\3\2\2\2\u0408\u040b\3\2\2\2\u0409\u0407\3\2\2\2\u0409"= )=0D + buf.write("\u040a\3\2\2\2\u040a\u040c\3\2\2\2\u040b\u0409\3\2\2\2"= )=0D + buf.write("\u040c\u040d\7\66\2\2\u040d\u040e\7 \2\2\u040ee\3\2\2")= =0D + buf.write("\2\u040f\u041f\5j\66\2\u0410\u041f\5l\67\2\u0411\u041f"= )=0D + buf.write("\5n8\2\u0412\u041f\5\u00a4S\2\u0413\u041f\5p9\2\u0414")= =0D + buf.write("\u041f\5\u0088E\2\u0415\u041f\5\u00f8}\2\u0416\u041f\5"= )=0D + buf.write("\u0118\u008d\2\u0417\u041f\5\u011a\u008e\2\u0418\u041f"= )=0D + buf.write("\5\u0110\u0089\2\u0419\u041f\5\u011c\u008f\2\u041a\u041= f")=0D + buf.write("\5\u0120\u0091\2\u041b\u041c\5\u0096L\2\u041c\u041d\7")= =0D + buf.write(" \2\2\u041d\u041f\3\2\2\2\u041e\u040f\3\2\2\2\u041e\u04= 10")=0D + buf.write("\3\2\2\2\u041e\u0411\3\2\2\2\u041e\u0412\3\2\2\2\u041e"= )=0D + buf.write("\u0413\3\2\2\2\u041e\u0414\3\2\2\2\u041e\u0415\3\2\2\2"= )=0D + buf.write("\u041e\u0416\3\2\2\2\u041e\u0417\3\2\2\2\u041e\u0418\3"= )=0D + buf.write("\2\2\2\u041e\u0419\3\2\2\2\u041e\u041a\3\2\2\2\u041e\u0= 41b")=0D + buf.write("\3\2\2\2\u041fg\3\2\2\2\u0420\u0421\78\2\2\u0421\u0422"= )=0D + buf.write("\7/\2\2\u0422\u0423\7\b\2\2\u0423\u0424\7\u00fa\2\2\u04= 24")=0D + buf.write("\u0433\7!\2\2\u0425\u0426\79\2\2\u0426\u0427\7\b\2\2\u0= 427")=0D + buf.write("\u0428\7\u00ec\2\2\u0428\u0429\7\30\2\2\u0429\u042a\7")= =0D + buf.write("\u00fa\2\2\u042a\u042b\7\31\2\2\u042b\u042c\7 \2\2\u042= c")=0D + buf.write("\u042d\7:\2\2\u042d\u042e\7\b\2\2\u042e\u042f\5L\'\2\u0= 42f")=0D + buf.write("\u0430\7 \2\2\u0430\u0432\3\2\2\2\u0431\u0425\3\2\2\2")= =0D + buf.write("\u0432\u0435\3\2\2\2\u0433\u0431\3\2\2\2\u0433\u0434\3"= )=0D + buf.write("\2\2\2\u0434\u0439\3\2\2\2\u0435\u0433\3\2\2\2\u0436\u0= 438")=0D + buf.write("\5f\64\2\u0437\u0436\3\2\2\2\u0438\u043b\3\2\2\2\u0439"= )=0D + buf.write("\u0437\3\2\2\2\u0439\u043a\3\2\2\2\u043a\u043c\3\2\2\2"= )=0D + buf.write("\u043b\u0439\3\2\2\2\u043c\u043d\7\66\2\2\u043d\u043e")= =0D + buf.write("\7 \2\2\u043ei\3\2\2\2\u043f\u0440\5\\/\2\u0440\u0441")= =0D + buf.write("\7 \2\2\u0441k\3\2\2\2\u0442\u0443\5^\60\2\u0443\u0444"= )=0D + buf.write("\7 \2\2\u0444m\3\2\2\2\u0445\u0446\7\u0094\2\2\u0446\u0= 447")=0D + buf.write("\7\u00fb\2\2\u0447\u0448\7!\2\2\u0448\u0449\5\u0124\u00= 93")=0D + buf.write("\2\u0449\u044a\7\u0095\2\2\u044a\u044b\7 \2\2\u044bo\3"= )=0D + buf.write("\2\2\2\u044c\u0450\5r:\2\u044d\u0450\5z>\2\u044e\u0450"= )=0D + buf.write("\5~@\2\u044f\u044c\3\2\2\2\u044f\u044d\3\2\2\2\u044f\u0= 44e")=0D + buf.write("\3\2\2\2\u0450q\3\2\2\2\u0451\u0452\7;\2\2\u0452\u0453"= )=0D + buf.write("\7>\2\2\u0453\u0454\7\b\2\2\u0454\u0455\7\u00ec\2\2\u04= 55")=0D + buf.write("\u0456\7\30\2\2\u0456\u0457\7\u00fa\2\2\u0457\u045c\7")= =0D + buf.write("\31\2\2\u0458\u0459\7!\2\2\u0459\u045a\7@\2\2\u045a\u04= 5b")=0D + buf.write("\7\b\2\2\u045b\u045d\5v<\2\u045c\u0458\3\2\2\2\u045c\u0= 45d")=0D + buf.write("\3\2\2\2\u045d\u0472\3\2\2\2\u045e\u045f\7!\2\2\u045f")= =0D + buf.write("\u0461\5b\62\2\u0460\u045e\3\2\2\2\u0460\u0461\3\2\2\2"= )=0D + buf.write("\u0461\u0462\3\2\2\2\u0462\u0473\7 \2\2\u0463\u0464\7")= =0D + buf.write("!\2\2\u0464\u0466\5b\62\2\u0465\u0463\3\2\2\2\u0465\u04= 66")=0D + buf.write("\3\2\2\2\u0466\u046e\3\2\2\2\u0467\u046b\7!\2\2\u0468")= =0D + buf.write("\u046a\5t;\2\u0469\u0468\3\2\2\2\u046a\u046d\3\2\2\2\u0= 46b")=0D + buf.write("\u0469\3\2\2\2\u046b\u046c\3\2\2\2\u046c\u046f\3\2\2\2"= )=0D + buf.write("\u046d\u046b\3\2\2\2\u046e\u0467\3\2\2\2\u046e\u046f\3"= )=0D + buf.write("\2\2\2\u046f\u0470\3\2\2\2\u0470\u0471\7<\2\2\u0471\u04= 73")=0D + buf.write("\7 \2\2\u0472\u0460\3\2\2\2\u0472\u0465\3\2\2\2\u0473")= =0D + buf.write("s\3\2\2\2\u0474\u0477\5p9\2\u0475\u0477\5\u0088E\2\u047= 6")=0D + buf.write("\u0474\3\2\2\2\u0476\u0475\3\2\2\2\u0477u\3\2\2\2\u0478= ")=0D + buf.write("\u047d\5x=3D\2\u0479\u047a\7(\2\2\u047a\u047c\5x=3D\2\u= 047b")=0D + buf.write("\u0479\3\2\2\2\u047c\u047f\3\2\2\2\u047d\u047b\3\2\2\2"= )=0D + buf.write("\u047d\u047e\3\2\2\2\u047ew\3\2\2\2\u047f\u047d\3\2\2")= =0D + buf.write("\2\u0480\u0481\t\5\2\2\u0481y\3\2\2\2\u0482\u0483\7>\2"= )=0D + buf.write("\2\u0483\u0484\7=3D\2\2\u0484\u0485\7\b\2\2\u0485\u0486= ")=0D + buf.write("\7\u00ec\2\2\u0486\u0487\7\30\2\2\u0487\u0488\7\u00fa")= =0D + buf.write("\2\2\u0488\u0489\7\31\2\2\u0489\u048a\7!\2\2\u048a\u048= b")=0D + buf.write("\7>\2\2\u048b\u048c\7\b\2\2\u048c\u048d\7\u00ec\2\2\u04= 8d")=0D + buf.write("\u048e\7\30\2\2\u048e\u048f\7\u00fa\2\2\u048f\u0497\7")= =0D + buf.write("\31\2\2\u0490\u0491\7!\2\2\u0491\u0492\7>\2\2\u0492\u04= 93")=0D + buf.write("\7\b\2\2\u0493\u0494\7\u00ec\2\2\u0494\u0495\7\30\2\2")= =0D + buf.write("\u0495\u0496\7\u00fa\2\2\u0496\u0498\7\31\2\2\u0497\u04= 90")=0D + buf.write("\3\2\2\2\u0497\u0498\3\2\2\2\u0498\u04a9\3\2\2\2\u0499"= )=0D + buf.write("\u049a\7!\2\2\u049a\u049b\7@\2\2\u049b\u049c\7\b\2\2\u0= 49c")=0D + buf.write("\u04a1\5|?\2\u049d\u049e\7(\2\2\u049e\u04a0\5|?\2\u049f= ")=0D + buf.write("\u049d\3\2\2\2\u04a0\u04a3\3\2\2\2\u04a1\u049f\3\2\2\2"= )=0D + buf.write("\u04a1\u04a2\3\2\2\2\u04a2\u04a4\3\2\2\2\u04a3\u04a1\3"= )=0D + buf.write("\2\2\2\u04a4\u04a5\7!\2\2\u04a5\u04a6\7t\2\2\u04a6\u04a= 7")=0D + buf.write("\7\b\2\2\u04a7\u04a8\7\u00fa\2\2\u04a8\u04aa\3\2\2\2\u0= 4a9")=0D + buf.write("\u0499\3\2\2\2\u04a9\u04aa\3\2\2\2\u04aa\u04ad\3\2\2\2"= )=0D + buf.write("\u04ab\u04ac\7!\2\2\u04ac\u04ae\5b\62\2\u04ad\u04ab\3")= =0D + buf.write("\2\2\2\u04ad\u04ae\3\2\2\2\u04ae\u04af\3\2\2\2\u04af\u0= 4b0")=0D + buf.write("\7 \2\2\u04b0{\3\2\2\2\u04b1\u04b4\7\u00fa\2\2\u04b2\u0= 4b4")=0D + buf.write("\5V,\2\u04b3\u04b1\3\2\2\2\u04b3\u04b2\3\2\2\2\u04b4}")= =0D + buf.write("\3\2\2\2\u04b5\u04b8\5\u0080A\2\u04b6\u04b8\5\u0086D\2"= )=0D + buf.write("\u04b7\u04b5\3\2\2\2\u04b7\u04b6\3\2\2\2\u04b8\177\3\2"= )=0D + buf.write("\2\2\u04b9\u04e9\7n\2\2\u04ba\u04bb\7*\2\2\u04bb\u04bc"= )=0D + buf.write("\7\b\2\2\u04bc\u04bd\7\u00ec\2\2\u04bd\u04be\7\30\2\2")= =0D + buf.write("\u04be\u04bf\7\u00fa\2\2\u04bf\u04c0\7\31\2\2\u04c0\u04= c1")=0D + buf.write("\7!\2\2\u04c1\u04c2\7o\2\2\u04c2\u04c3\7\b\2\2\u04c3\u0= 4c4")=0D + buf.write("\5L\'\2\u04c4\u04c5\7!\2\2\u04c5\u04c6\7/\2\2\u04c6\u04= c7")=0D + buf.write("\7\b\2\2\u04c7\u04c8\7\u00fa\2\2\u04c8\u04c9\7!\2\2\u04= c9")=0D + buf.write("\u04ca\7\u0090\2\2\u04ca\u04cb\7\b\2\2\u04cb\u04cc\7\u0= 0fa")=0D + buf.write("\2\2\u04cc\u04cd\7!\2\2\u04cd\u04ea\3\2\2\2\u04ce\u04cf= ")=0D + buf.write("\7o\2\2\u04cf\u04d0\7\b\2\2\u04d0\u04d1\5L\'\2\u04d1\u0= 4d2")=0D + buf.write("\7!\2\2\u04d2\u04d3\7/\2\2\u04d3\u04d4\7\b\2\2\u04d4\u0= 4d5")=0D + buf.write("\7\u00fa\2\2\u04d5\u04d6\7!\2\2\u04d6\u04d7\7\u0090\2")= =0D + buf.write("\2\u04d7\u04d8\7\b\2\2\u04d8\u04d9\7\u00fa\2\2\u04d9\u0= 4da")=0D + buf.write("\7!\2\2\u04da\u04ea\3\2\2\2\u04db\u04dc\7/\2\2\u04dc\u0= 4dd")=0D + buf.write("\7\b\2\2\u04dd\u04de\7\u00fa\2\2\u04de\u04df\7!\2\2\u04= df")=0D + buf.write("\u04e0\7\u0090\2\2\u04e0\u04e5\7\b\2\2\u04e1\u04e2\7\u0= 0fb")=0D + buf.write("\2\2\u04e2\u04e6\7!\2\2\u04e3\u04e4\7\u00fa\2\2\u04e4")= =0D + buf.write("\u04e6\7!\2\2\u04e5\u04e1\3\2\2\2\u04e5\u04e3\3\2\2\2")= =0D + buf.write("\u04e6\u04ea\3\2\2\2\u04e7\u04e8\7\u00fa\2\2\u04e8\u04e= a")=0D + buf.write("\7!\2\2\u04e9\u04ba\3\2\2\2\u04e9\u04ce\3\2\2\2\u04e9")= =0D + buf.write("\u04db\3\2\2\2\u04e9\u04e7\3\2\2\2\u04e9\u04ea\3\2\2\2"= )=0D + buf.write("\u04ea\u04eb\3\2\2\2\u04eb\u04f0\5P)\2\u04ec\u04ed\7!")= =0D + buf.write("\2\2\u04ed\u04ee\7@\2\2\u04ee\u04ef\7\b\2\2\u04ef\u04f1= ")=0D + buf.write("\5\u0082B\2\u04f0\u04ec\3\2\2\2\u04f0\u04f1\3\2\2\2\u04= f1")=0D + buf.write("\u04f6\3\2\2\2\u04f2\u04f3\7!\2\2\u04f3\u04f4\7t\2\2\u0= 4f4")=0D + buf.write("\u04f5\7\b\2\2\u04f5\u04f7\7\u00fa\2\2\u04f6\u04f2\3\2"= )=0D + buf.write("\2\2\u04f6\u04f7\3\2\2\2\u04f7\u04fa\3\2\2\2\u04f8\u04f= 9")=0D + buf.write("\7!\2\2\u04f9\u04fb\5\u00b4[\2\u04fa\u04f8\3\2\2\2\u04f= a")=0D + buf.write("\u04fb\3\2\2\2\u04fb\u04fc\3\2\2\2\u04fc\u04fd\7 \2\2")= =0D + buf.write("\u04fd\u0081\3\2\2\2\u04fe\u0503\5\u0084C\2\u04ff\u0500= ")=0D + buf.write("\7(\2\2\u0500\u0502\5\u0084C\2\u0501\u04ff\3\2\2\2\u050= 2")=0D + buf.write("\u0505\3\2\2\2\u0503\u0501\3\2\2\2\u0503\u0504\3\2\2\2"= )=0D + buf.write("\u0504\u0083\3\2\2\2\u0505\u0503\3\2\2\2\u0506\u0509\7"= )=0D + buf.write("\u00fa\2\2\u0507\u0509\5V,\2\u0508\u0506\3\2\2\2\u0508"= )=0D + buf.write("\u0507\3\2\2\2\u0509\u0085\3\2\2\2\u050a\u050b\7\u0099"= )=0D + buf.write("\2\2\u050b\u050c\7\u009b\2\2\u050c\u050d\7\b\2\2\u050d"= )=0D + buf.write("\u050e\7\u00fb\2\2\u050e\u050f\7!\2\2\u050f\u0510\5T+")= =0D + buf.write("\2\u0510\u0514\7!\2\2\u0511\u0512\5b\62\2\u0512\u0513")= =0D + buf.write("\7!\2\2\u0513\u0515\3\2\2\2\u0514\u0511\3\2\2\2\u0514")= =0D + buf.write("\u0515\3\2\2\2\u0515\u0516\3\2\2\2\u0516\u0517\7\u009a"= )=0D + buf.write("\2\2\u0517\u0518\7 \2\2\u0518\u0087\3\2\2\2\u0519\u0520= ")=0D + buf.write("\5\u00b8]\2\u051a\u0520\5\u00e8u\2\u051b\u0520\5\u00c6"= )=0D + buf.write("d\2\u051c\u0520\5\u00d4k\2\u051d\u0520\5\u00e2r\2\u051e= ")=0D + buf.write("\u0520\5\u00f0y\2\u051f\u0519\3\2\2\2\u051f\u051a\3\2")= =0D + buf.write("\2\2\u051f\u051b\3\2\2\2\u051f\u051c\3\2\2\2\u051f\u051= d")=0D + buf.write("\3\2\2\2\u051f\u051e\3\2\2\2\u0520\u0089\3\2\2\2\u0521"= )=0D + buf.write("\u0522\5`\61\2\u0522\u0523\7!\2\2\u0523\u052d\3\2\2\2")= =0D + buf.write("\u0524\u052d\5\u008cG\2\u0525\u052d\5\u008eH\2\u0526\u0= 52d")=0D + buf.write("\5\u0090I\2\u0527\u052d\5\u0092J\2\u0528\u052d\5\u0094"= )=0D + buf.write("K\2\u0529\u052d\5\u011c\u008f\2\u052a\u052d\5\u0096L\2"= )=0D + buf.write("\u052b\u052d\5\u0098M\2\u052c\u0521\3\2\2\2\u052c\u0524= ")=0D + buf.write("\3\2\2\2\u052c\u0525\3\2\2\2\u052c\u0526\3\2\2\2\u052c"= )=0D + buf.write("\u0527\3\2\2\2\u052c\u0528\3\2\2\2\u052c\u0529\3\2\2\2"= )=0D + buf.write("\u052c\u052a\3\2\2\2\u052c\u052b\3\2\2\2\u052d\u008b\3"= )=0D + buf.write("\2\2\2\u052e\u052f\7p\2\2\u052f\u0530\7\62\2\2\u0530\u0= 531")=0D + buf.write("\7\b\2\2\u0531\u0532\7\u00ec\2\2\u0532\u0533\7\30\2\2")= =0D + buf.write("\u0533\u0534\7\u00fa\2\2\u0534\u0535\7\31\2\2\u0535\u05= 42")=0D + buf.write("\7!\2\2\u0536\u0537\7@\2\2\u0537\u0538\7\b\2\2\u0538\u0= 53d")=0D + buf.write("\5\u009eP\2\u0539\u053a\7(\2\2\u053a\u053c\5\u009eP\2")= =0D + buf.write("\u053b\u0539\3\2\2\2\u053c\u053f\3\2\2\2\u053d\u053b\3"= )=0D + buf.write("\2\2\2\u053d\u053e\3\2\2\2\u053e\u0540\3\2\2\2\u053f\u0= 53d")=0D + buf.write("\3\2\2\2\u0540\u0541\7!\2\2\u0541\u0543\3\2\2\2\u0542")= =0D + buf.write("\u0536\3\2\2\2\u0542\u0543\3\2\2\2\u0543\u0544\3\2\2\2"= )=0D + buf.write("\u0544\u0545\5\u0124\u0093\2\u0545\u0547\7s\2\2\u0546")= =0D + buf.write("\u0548\7 \2\2\u0547\u0546\3\2\2\2\u0547\u0548\3\2\2\2")= =0D + buf.write("\u0548\u008d\3\2\2\2\u0549\u054a\7r\2\2\u054a\u054b\7")= =0D + buf.write("\62\2\2\u054b\u054c\7\b\2\2\u054c\u054d\7\u00ec\2\2\u05= 4d")=0D + buf.write("\u054e\7\30\2\2\u054e\u054f\7\u00fa\2\2\u054f\u0550\7")= =0D + buf.write("\31\2\2\u0550\u055d\7!\2\2\u0551\u0552\7@\2\2\u0552\u05= 53")=0D + buf.write("\7\b\2\2\u0553\u0558\5\u009eP\2\u0554\u0555\7(\2\2\u055= 5")=0D + buf.write("\u0557\5\u009eP\2\u0556\u0554\3\2\2\2\u0557\u055a\3\2")= =0D + buf.write("\2\2\u0558\u0556\3\2\2\2\u0558\u0559\3\2\2\2\u0559\u055= b")=0D + buf.write("\3\2\2\2\u055a\u0558\3\2\2\2\u055b\u055c\7!\2\2\u055c")= =0D + buf.write("\u055e\3\2\2\2\u055d\u0551\3\2\2\2\u055d\u055e\3\2\2\2"= )=0D + buf.write("\u055e\u055f\3\2\2\2\u055f\u0560\5\u0124\u0093\2\u0560"= )=0D + buf.write("\u0562\7s\2\2\u0561\u0563\7 \2\2\u0562\u0561\3\2\2\2\u0= 562")=0D + buf.write("\u0563\3\2\2\2\u0563\u008f\3\2\2\2\u0564\u0565\7l\2\2")= =0D + buf.write("\u0565\u0566\5\u0124\u0093\2\u0566\u0567\7 \2\2\u0567")= =0D + buf.write("\u0568\5\u00b4[\2\u0568\u056a\7s\2\2\u0569\u056b\7 \2")= =0D + buf.write("\2\u056a\u0569\3\2\2\2\u056a\u056b\3\2\2\2\u056b\u0091"= )=0D + buf.write("\3\2\2\2\u056c\u056d\7\u00a4\2\2\u056d\u056e\7\u00a5\2"= )=0D + buf.write("\2\u056e\u056f\7\b\2\2\u056f\u0570\7\u00fa\2\2\u0570\u0= 093")=0D + buf.write("\3\2\2\2\u0571\u0572\7\u00a6\2\2\u0572\u0573\7\b\2\2\u0= 573")=0D + buf.write("\u0574\7\u00ec\2\2\u0574\u0575\7\30\2\2\u0575\u0576\7")= =0D + buf.write("\u00fa\2\2\u0576\u0577\7\31\2\2\u0577\u0578\7!\2\2\u057= 8")=0D + buf.write("\u0095\3\2\2\2\u0579\u057a\7\u00eb\2\2\u057a\u057b\7\b"= )=0D + buf.write("\2\2\u057b\u057c\5L\'\2\u057c\u057d\7!\2\2\u057d\u0097"= )=0D + buf.write("\3\2\2\2\u057e\u057f\7q\2\2\u057f\u0580\7\62\2\2\u0580"= )=0D + buf.write("\u0581\7\b\2\2\u0581\u0582\7\u00ec\2\2\u0582\u0583\7\30= ")=0D + buf.write("\2\2\u0583\u0584\7\u00fa\2\2\u0584\u0585\7\31\2\2\u0585= ")=0D + buf.write("\u058a\7!\2\2\u0586\u0587\7M\2\2\u0587\u0588\7\b\2\2\u0= 588")=0D + buf.write("\u0589\7\u00fa\2\2\u0589\u058b\7!\2\2\u058a\u0586\3\2")= =0D + buf.write("\2\2\u058a\u058b\3\2\2\2\u058b\u058c\3\2\2\2\u058c\u058= d")=0D + buf.write("\5\u0124\u0093\2\u058d\u058f\7s\2\2\u058e\u0590\7 \2\2"= )=0D + buf.write("\u058f\u058e\3\2\2\2\u058f\u0590\3\2\2\2\u0590\u0099\3"= )=0D + buf.write("\2\2\2\u0591\u0593\5\u008aF\2\u0592\u0591\3\2\2\2\u0593= ")=0D + buf.write("\u0596\3\2\2\2\u0594\u0592\3\2\2\2\u0594\u0595\3\2\2\2"= )=0D + buf.write("\u0595\u009b\3\2\2\2\u0596\u0594\3\2\2\2\u0597\u059f\5"= )=0D + buf.write("\u00a0Q\2\u0598\u059f\5\u00a2R\2\u0599\u059f\5\u00a6T")= =0D + buf.write("\2\u059a\u059f\5\u00a4S\2\u059b\u059f\5\u00a8U\2\u059c"= )=0D + buf.write("\u059f\5\u00b0Y\2\u059d\u059f\5\u00b2Z\2\u059e\u0597\3"= )=0D + buf.write("\2\2\2\u059e\u0598\3\2\2\2\u059e\u0599\3\2\2\2\u059e\u0= 59a")=0D + buf.write("\3\2\2\2\u059e\u059b\3\2\2\2\u059e\u059c\3\2\2\2\u059e"= )=0D + buf.write("\u059d\3\2\2\2\u059f\u009d\3\2\2\2\u05a0\u05a9\7\u00fa"= )=0D + buf.write("\2\2\u05a1\u05a9\7y\2\2\u05a2\u05a9\7v\2\2\u05a3\u05a9"= )=0D + buf.write("\7u\2\2\u05a4\u05a9\7{\2\2\u05a5\u05a9\7|\2\2\u05a6\u05= a9")=0D + buf.write("\7z\2\2\u05a7\u05a9\7}\2\2\u05a8\u05a0\3\2\2\2\u05a8\u0= 5a1")=0D + buf.write("\3\2\2\2\u05a8\u05a2\3\2\2\2\u05a8\u05a3\3\2\2\2\u05a8"= )=0D + buf.write("\u05a4\3\2\2\2\u05a8\u05a5\3\2\2\2\u05a8\u05a6\3\2\2\2"= )=0D + buf.write("\u05a8\u05a7\3\2\2\2\u05a9\u009f\3\2\2\2\u05aa\u05ab\7"= )=0D + buf.write("k\2\2\u05ab\u05ac\5\u0124\u0093\2\u05ac\u05b9\7 \2\2\u0= 5ad")=0D + buf.write("\u05ae\7@\2\2\u05ae\u05af\7\b\2\2\u05af\u05b4\5\u009e")= =0D + buf.write("P\2\u05b0\u05b1\7(\2\2\u05b1\u05b3\5\u009eP\2\u05b2\u05= b0")=0D + buf.write("\3\2\2\2\u05b3\u05b6\3\2\2\2\u05b4\u05b2\3\2\2\2\u05b4"= )=0D + buf.write("\u05b5\3\2\2\2\u05b5\u05b7\3\2\2\2\u05b6\u05b4\3\2\2\2"= )=0D + buf.write("\u05b7\u05b8\7!\2\2\u05b8\u05ba\3\2\2\2\u05b9\u05ad\3")= =0D + buf.write("\2\2\2\u05b9\u05ba\3\2\2\2\u05ba\u05bb\3\2\2\2\u05bb\u0= 5bc")=0D + buf.write("\5\u00b4[\2\u05bc\u05be\7s\2\2\u05bd\u05bf\7 \2\2\u05be= ")=0D + buf.write("\u05bd\3\2\2\2\u05be\u05bf\3\2\2\2\u05bf\u00a1\3\2\2\2"= )=0D + buf.write("\u05c0\u05c1\7K\2\2\u05c1\u05c2\5\u0124\u0093\2\u05c2")= =0D + buf.write("\u05cf\7 \2\2\u05c3\u05c4\7@\2\2\u05c4\u05c5\7\b\2\2\u0= 5c5")=0D + buf.write("\u05ca\5\u009eP\2\u05c6\u05c7\7(\2\2\u05c7\u05c9\5\u009= e")=0D + buf.write("P\2\u05c8\u05c6\3\2\2\2\u05c9\u05cc\3\2\2\2\u05ca\u05c8= ")=0D + buf.write("\3\2\2\2\u05ca\u05cb\3\2\2\2\u05cb\u05cd\3\2\2\2\u05cc"= )=0D + buf.write("\u05ca\3\2\2\2\u05cd\u05ce\7!\2\2\u05ce\u05d0\3\2\2\2")= =0D + buf.write("\u05cf\u05c3\3\2\2\2\u05cf\u05d0\3\2\2\2\u05d0\u05d1\3"= )=0D + buf.write("\2\2\2\u05d1\u05d2\5\u00b4[\2\u05d2\u05d4\7s\2\2\u05d3"= )=0D + buf.write("\u05d5\7 \2\2\u05d4\u05d3\3\2\2\2\u05d4\u05d5\3\2\2\2")= =0D + buf.write("\u05d5\u00a3\3\2\2\2\u05d6\u05de\7c\2\2\u05d7\u05d8\5")= =0D + buf.write("\u00a6T\2\u05d8\u05d9\7!\2\2\u05d9\u05df\3\2\2\2\u05da"= )=0D + buf.write("\u05db\7\b\2\2\u05db\u05dc\5Z.\2\u05dc\u05dd\7!\2\2\u05= dd")=0D + buf.write("\u05df\3\2\2\2\u05de\u05d7\3\2\2\2\u05de\u05da\3\2\2\2"= )=0D + buf.write("\u05df\u05e4\3\2\2\2\u05e0\u05e1\7\u009b\2\2\u05e1\u05e= 2")=0D + buf.write("\7\b\2\2\u05e2\u05e3\7\u00fb\2\2\u05e3\u05e5\7!\2\2\u05= e4")=0D + buf.write("\u05e0\3\2\2\2\u05e4\u05e5\3\2\2\2\u05e5\u00a5\3\2\2\2"= )=0D + buf.write("\u05e6\u05e7\7\u0096\2\2\u05e7\u05e8\7\b\2\2\u05e8\u05e= 9")=0D + buf.write("\5\u0124\u0093\2\u05e9\u00a7\3\2\2\2\u05ea\u05eb\5\u00a= a")=0D + buf.write("V\2\u05eb\u00a9\3\2\2\2\u05ec\u05ed\7?\2\2\u05ed\u05ee"= )=0D + buf.write("\7>\2\2\u05ee\u05ef\7\b\2\2\u05ef\u05f0\7\u00ec\2\2\u05= f0")=0D + buf.write("\u05f1\7\30\2\2\u05f1\u05f2\7\u00fa\2\2\u05f2\u05f3\7")= =0D + buf.write("\31\2\2\u05f3\u05f4\7!\2\2\u05f4\u05f5\7\u0096\2\2\u05f= 5")=0D + buf.write("\u05f6\7\b\2\2\u05f6\u05f7\5Z.\2\u05f7\u05f8\7!\2\2\u05= f8")=0D + buf.write("\u05f9\7@\2\2\u05f9\u05fa\7\b\2\2\u05fa\u05ff\5\u00ac")= =0D + buf.write("W\2\u05fb\u05fc\7!\2\2\u05fc\u05fd\7t\2\2\u05fd\u05fe")= =0D + buf.write("\7\b\2\2\u05fe\u0600\7\u00fa\2\2\u05ff\u05fb\3\2\2\2\u0= 5ff")=0D + buf.write("\u0600\3\2\2\2\u0600\u0605\3\2\2\2\u0601\u0602\7!\2\2")= =0D + buf.write("\u0602\u0604\5\\/\2\u0603\u0601\3\2\2\2\u0604\u0607\3")= =0D + buf.write("\2\2\2\u0605\u0603\3\2\2\2\u0605\u0606\3\2\2\2\u0606\u0= 608")=0D + buf.write("\3\2\2\2\u0607\u0605\3\2\2\2\u0608\u0609\7 \2\2\u0609")= =0D + buf.write("\u00ab\3\2\2\2\u060a\u060f\5\u00aeX\2\u060b\u060c\7(\2"= )=0D + buf.write("\2\u060c\u060e\5\u00aeX\2\u060d\u060b\3\2\2\2\u060e\u06= 11")=0D + buf.write("\3\2\2\2\u060f\u060d\3\2\2\2\u060f\u0610\3\2\2\2\u0610"= )=0D + buf.write("\u00ad\3\2\2\2\u0611\u060f\3\2\2\2\u0612\u061e\7\u00fa"= )=0D + buf.write("\2\2\u0613\u061e\7\u00ed\2\2\u0614\u061e\7\u00ee\2\2\u0= 615")=0D + buf.write("\u061e\7y\2\2\u0616\u061e\7{\2\2\u0617\u061e\7\u0080\2"= )=0D + buf.write("\2\u0618\u061e\7|\2\2\u0619\u061e\7v\2\2\u061a\u061e\7"= )=0D + buf.write("u\2\2\u061b\u061e\7z\2\2\u061c\u061e\7}\2\2\u061d\u0612= ")=0D + buf.write("\3\2\2\2\u061d\u0613\3\2\2\2\u061d\u0614\3\2\2\2\u061d"= )=0D + buf.write("\u0615\3\2\2\2\u061d\u0616\3\2\2\2\u061d\u0617\3\2\2\2"= )=0D + buf.write("\u061d\u0618\3\2\2\2\u061d\u0619\3\2\2\2\u061d\u061a\3"= )=0D + buf.write("\2\2\2\u061d\u061b\3\2\2\2\u061d\u061c\3\2\2\2\u061e\u0= 0af")=0D + buf.write("\3\2\2\2\u061f\u0620\7\u0097\2\2\u0620\u0621\5\u0124\u0= 093")=0D + buf.write("\2\u0621\u0622\7 \2\2\u0622\u00b1\3\2\2\2\u0623\u0624")= =0D + buf.write("\7\u0098\2\2\u0624\u0625\5\u0124\u0093\2\u0625\u0626\7"= )=0D + buf.write(" \2\2\u0626\u00b3\3\2\2\2\u0627\u0629\5\u00b6\\\2\u0628= ")=0D + buf.write("\u0627\3\2\2\2\u0629\u062c\3\2\2\2\u062a\u0628\3\2\2\2"= )=0D + buf.write("\u062a\u062b\3\2\2\2\u062b\u00b5\3\2\2\2\u062c\u062a\3"= )=0D + buf.write("\2\2\2\u062d\u0630\5\u008aF\2\u062e\u0630\5\u009cO\2\u0= 62f")=0D + buf.write("\u062d\3\2\2\2\u062f\u062e\3\2\2\2\u0630\u00b7\3\2\2\2"= )=0D + buf.write("\u0631\u0634\5\u00ba^\2\u0632\u0634\5\u00c0a\2\u0633\u0= 631")=0D + buf.write("\3\2\2\2\u0633\u0632\3\2\2\2\u0634\u00b9\3\2\2\2\u0635"= )=0D + buf.write("\u0636\7\\\2\2\u0636\u0637\5R*\2\u0637\u0638\5T+\2\u063= 8")=0D + buf.write("\u063e\7!\2\2\u0639\u063a\7@\2\2\u063a\u063b\7\b\2\2\u0= 63b")=0D + buf.write("\u063c\5\u00bc_\2\u063c\u063d\7!\2\2\u063d\u063f\3\2\2"= )=0D + buf.write("\2\u063e\u0639\3\2\2\2\u063e\u063f\3\2\2\2\u063f\u0644"= )=0D + buf.write("\3\2\2\2\u0640\u0641\7t\2\2\u0641\u0642\7\b\2\2\u0642")= =0D + buf.write("\u0643\7\u00fa\2\2\u0643\u0645\7!\2\2\u0644\u0640\3\2")= =0D + buf.write("\2\2\u0644\u0645\3\2\2\2\u0645\u0646\3\2\2\2\u0646\u064= 7")=0D + buf.write("\5\u00b4[\2\u0647\u0648\7]\2\2\u0648\u0649\7 \2\2\u0649= ")=0D + buf.write("\u00bb\3\2\2\2\u064a\u064f\5\u00be`\2\u064b\u064c\7(\2"= )=0D + buf.write("\2\u064c\u064e\5\u00be`\2\u064d\u064b\3\2\2\2\u064e\u06= 51")=0D + buf.write("\3\2\2\2\u064f\u064d\3\2\2\2\u064f\u0650\3\2\2\2\u0650"= )=0D + buf.write("\u00bd\3\2\2\2\u0651\u064f\3\2\2\2\u0652\u0659\7\u00fa"= )=0D + buf.write("\2\2\u0653\u0659\7u\2\2\u0654\u0659\7v\2\2\u0655\u0659"= )=0D + buf.write("\7w\2\2\u0656\u0659\7x\2\2\u0657\u0659\5V,\2\u0658\u065= 2")=0D + buf.write("\3\2\2\2\u0658\u0653\3\2\2\2\u0658\u0654\3\2\2\2\u0658"= )=0D + buf.write("\u0655\3\2\2\2\u0658\u0656\3\2\2\2\u0658\u0657\3\2\2\2"= )=0D + buf.write("\u0659\u00bf\3\2\2\2\u065a\u065b\7\u00a1\2\2\u065b\u065= c")=0D + buf.write("\5P)\2\u065c\u0662\7!\2\2\u065d\u065e\7@\2\2\u065e\u065= f")=0D + buf.write("\7\b\2\2\u065f\u0660\5\u00c2b\2\u0660\u0661\7!\2\2\u066= 1")=0D + buf.write("\u0663\3\2\2\2\u0662\u065d\3\2\2\2\u0662\u0663\3\2\2\2"= )=0D + buf.write("\u0663\u0664\3\2\2\2\u0664\u0665\7\u00a2\2\2\u0665\u066= 6")=0D + buf.write("\7\b\2\2\u0666\u0667\7\u00ec\2\2\u0667\u0668\7\30\2\2")= =0D + buf.write("\u0668\u0669\7\u00fa\2\2\u0669\u066a\7\31\2\2\u066a\u06= 6b")=0D + buf.write("\7!\2\2\u066b\u066c\5\u009aN\2\u066c\u066d\7\u00a3\2\2"= )=0D + buf.write("\u066d\u066e\7 \2\2\u066e\u00c1\3\2\2\2\u066f\u0674\5")= =0D + buf.write("\u00c4c\2\u0670\u0671\7(\2\2\u0671\u0673\5\u00c4c\2\u06= 72")=0D + buf.write("\u0670\3\2\2\2\u0673\u0676\3\2\2\2\u0674\u0672\3\2\2\2"= )=0D + buf.write("\u0674\u0675\3\2\2\2\u0675\u00c3\3\2\2\2\u0676\u0674\3"= )=0D + buf.write("\2\2\2\u0677\u067a\7\u00fa\2\2\u0678\u067a\5V,\2\u0679"= )=0D + buf.write("\u0677\3\2\2\2\u0679\u0678\3\2\2\2\u067a\u00c5\3\2\2\2"= )=0D + buf.write("\u067b\u067e\5\u00c8e\2\u067c\u067e\5\u00d0i\2\u067d\u0= 67b")=0D + buf.write("\3\2\2\2\u067d\u067c\3\2\2\2\u067e\u00c7\3\2\2\2\u067f"= )=0D + buf.write("\u0680\7^\2\2\u0680\u0681\5R*\2\u0681\u0682\5T+\2\u0682= ")=0D + buf.write("\u0688\7!\2\2\u0683\u0684\7@\2\2\u0684\u0685\7\b\2\2\u0= 685")=0D + buf.write("\u0686\5\u00ccg\2\u0686\u0687\7!\2\2\u0687\u0689\3\2\2"= )=0D + buf.write("\2\u0688\u0683\3\2\2\2\u0688\u0689\3\2\2\2\u0689\u068e"= )=0D + buf.write("\3\2\2\2\u068a\u068b\7t\2\2\u068b\u068c\7\b\2\2\u068c")= =0D + buf.write("\u068d\7\u00fa\2\2\u068d\u068f\7!\2\2\u068e\u068a\3\2")= =0D + buf.write("\2\2\u068e\u068f\3\2\2\2\u068f\u0690\3\2\2\2\u0690\u069= 1")=0D + buf.write("\5\u00caf\2\u0691\u0692\5\u00b4[\2\u0692\u0693\7_\2\2")= =0D + buf.write("\u0693\u0694\7 \2\2\u0694\u00c9\3\2\2\2\u0695\u0696\7")= =0D + buf.write("`\2\2\u0696\u0698\7\b\2\2\u0697\u0699\7\35\2\2\u0698\u0= 697")=0D + buf.write("\3\2\2\2\u0698\u0699\3\2\2\2\u0699\u069a\3\2\2\2\u069a"= )=0D + buf.write("\u069b\7\u00fa\2\2\u069b\u069c\7!\2\2\u069c\u069d\7a\2"= )=0D + buf.write("\2\u069d\u069f\7\b\2\2\u069e\u06a0\7\35\2\2\u069f\u069e= ")=0D + buf.write("\3\2\2\2\u069f\u06a0\3\2\2\2\u06a0\u06a1\3\2\2\2\u06a1"= )=0D + buf.write("\u06a2\7\u00fa\2\2\u06a2\u06a7\7!\2\2\u06a3\u06a4\7b\2"= )=0D + buf.write("\2\u06a4\u06a5\7\b\2\2\u06a5\u06a6\7\u00fa\2\2\u06a6\u0= 6a8")=0D + buf.write("\7!\2\2\u06a7\u06a3\3\2\2\2\u06a7\u06a8\3\2\2\2\u06a8")= =0D + buf.write("\u00cb\3\2\2\2\u06a9\u06ae\5\u00ceh\2\u06aa\u06ab\7(\2"= )=0D + buf.write("\2\u06ab\u06ad\5\u00ceh\2\u06ac\u06aa\3\2\2\2\u06ad\u06= b0")=0D + buf.write("\3\2\2\2\u06ae\u06ac\3\2\2\2\u06ae\u06af\3\2\2\2\u06af"= )=0D + buf.write("\u00cd\3\2\2\2\u06b0\u06ae\3\2\2\2\u06b1\u06bb\7\u00fa"= )=0D + buf.write("\2\2\u06b2\u06bb\7\u00ef\2\2\u06b3\u06bb\7\u00f0\2\2\u0= 6b4")=0D + buf.write("\u06bb\7\u00f1\2\2\u06b5\u06bb\7\u00f2\2\2\u06b6\u06bb"= )=0D + buf.write("\7\u00f3\2\2\u06b7\u06bb\7\u00f4\2\2\u06b8\u06bb\7\u00f= 5")=0D + buf.write("\2\2\u06b9\u06bb\5V,\2\u06ba\u06b1\3\2\2\2\u06ba\u06b2"= )=0D + buf.write("\3\2\2\2\u06ba\u06b3\3\2\2\2\u06ba\u06b4\3\2\2\2\u06ba"= )=0D + buf.write("\u06b5\3\2\2\2\u06ba\u06b6\3\2\2\2\u06ba\u06b7\3\2\2\2"= )=0D + buf.write("\u06ba\u06b8\3\2\2\2\u06ba\u06b9\3\2\2\2\u06bb\u00cf\3"= )=0D + buf.write("\2\2\2\u06bc\u06bd\7\60\2\2\u06bd\u06be\5R*\2\u06be\u06= bf")=0D + buf.write("\5T+\2\u06bf\u06c5\7!\2\2\u06c0\u06c1\7@\2\2\u06c1\u06c= 2")=0D + buf.write("\7\b\2\2\u06c2\u06c3\5\u00d2j\2\u06c3\u06c4\7!\2\2\u06c= 4")=0D + buf.write("\u06c6\3\2\2\2\u06c5\u06c0\3\2\2\2\u06c5\u06c6\3\2\2\2"= )=0D + buf.write("\u06c6\u06c8\3\2\2\2\u06c7\u06c9\5\u00caf\2\u06c8\u06c7= ")=0D + buf.write("\3\2\2\2\u06c8\u06c9\3\2\2\2\u06c9\u06ca\3\2\2\2\u06ca"= )=0D + buf.write("\u06cb\5\u00b4[\2\u06cb\u06cc\7\61\2\2\u06cc\u06cd\7 ")= =0D + buf.write("\2\2\u06cd\u00d1\3\2\2\2\u06ce\u06d3\5\u00ceh\2\u06cf")= =0D + buf.write("\u06d0\7(\2\2\u06d0\u06d2\5\u00ceh\2\u06d1\u06cf\3\2\2"= )=0D + buf.write("\2\u06d2\u06d5\3\2\2\2\u06d3\u06d1\3\2\2\2\u06d3\u06d4"= )=0D + buf.write("\3\2\2\2\u06d4\u00d3\3\2\2\2\u06d5\u06d3\3\2\2\2\u06d6"= )=0D + buf.write("\u06d9\5\u00d6l\2\u06d7\u06d9\5\u00dco\2\u06d8\u06d6\3"= )=0D + buf.write("\2\2\2\u06d8\u06d7\3\2\2\2\u06d9\u00d5\3\2\2\2\u06da\u0= 6db")=0D + buf.write("\7f\2\2\u06db\u06dc\5P)\2\u06dc\u06e2\7!\2\2\u06dd\u06d= e")=0D + buf.write("\7@\2\2\u06de\u06df\7\b\2\2\u06df\u06e0\5\u00d8m\2\u06e= 0")=0D + buf.write("\u06e1\7!\2\2\u06e1\u06e3\3\2\2\2\u06e2\u06dd\3\2\2\2")= =0D + buf.write("\u06e2\u06e3\3\2\2\2\u06e3\u06e8\3\2\2\2\u06e4\u06e5\7"= )=0D + buf.write("t\2\2\u06e5\u06e6\7\b\2\2\u06e6\u06e7\7\u00fa\2\2\u06e7= ")=0D + buf.write("\u06e9\7!\2\2\u06e8\u06e4\3\2\2\2\u06e8\u06e9\3\2\2\2")= =0D + buf.write("\u06e9\u06ea\3\2\2\2\u06ea\u06eb\7h\2\2\u06eb\u06ec\7")= =0D + buf.write("\b\2\2\u06ec\u06ed\7\u00fa\2\2\u06ed\u06ee\7!\2\2\u06ee= ")=0D + buf.write("\u06ef\7i\2\2\u06ef\u06f0\7\b\2\2\u06f0\u06f1\7\u00fa")= =0D + buf.write("\2\2\u06f1\u06f2\7!\2\2\u06f2\u06f3\5\u00b4[\2\u06f3\u0= 6f4")=0D + buf.write("\7g\2\2\u06f4\u06f5\7 \2\2\u06f5\u00d7\3\2\2\2\u06f6\u0= 6fb")=0D + buf.write("\5\u00dan\2\u06f7\u06f8\7(\2\2\u06f8\u06fa\5\u00dan\2")= =0D + buf.write("\u06f9\u06f7\3\2\2\2\u06fa\u06fd\3\2\2\2\u06fb\u06f9\3"= )=0D + buf.write("\2\2\2\u06fb\u06fc\3\2\2\2\u06fc\u00d9\3\2\2\2\u06fd\u0= 6fb")=0D + buf.write("\3\2\2\2\u06fe\u0702\7\u00fa\2\2\u06ff\u0702\7\13\2\2")= =0D + buf.write("\u0700\u0702\5V,\2\u0701\u06fe\3\2\2\2\u0701\u06ff\3\2"= )=0D + buf.write("\2\2\u0701\u0700\3\2\2\2\u0702\u00db\3\2\2\2\u0703\u070= 4")=0D + buf.write("\7d\2\2\u0704\u0705\5P)\2\u0705\u070b\7!\2\2\u0706\u070= 7")=0D + buf.write("\7@\2\2\u0707\u0708\7\b\2\2\u0708\u0709\5\u00dep\2\u070= 9")=0D + buf.write("\u070a\7!\2\2\u070a\u070c\3\2\2\2\u070b\u0706\3\2\2\2")= =0D + buf.write("\u070b\u070c\3\2\2\2\u070c\u0711\3\2\2\2\u070d\u070e\7"= )=0D + buf.write("t\2\2\u070e\u070f\7\b\2\2\u070f\u0710\7\u00fa\2\2\u0710= ")=0D + buf.write("\u0712\7!\2\2\u0711\u070d\3\2\2\2\u0711\u0712\3\2\2\2")= =0D + buf.write("\u0712\u0713\3\2\2\2\u0713\u0714\7h\2\2\u0714\u0715\7")= =0D + buf.write("\b\2\2\u0715\u0716\7\u00fa\2\2\u0716\u0717\7!\2\2\u0717= ")=0D + buf.write("\u0718\7i\2\2\u0718\u0719\7\b\2\2\u0719\u071a\7\u00fa")= =0D + buf.write("\2\2\u071a\u071f\7!\2\2\u071b\u071c\7j\2\2\u071c\u071d"= )=0D + buf.write("\7\b\2\2\u071d\u071e\7\u00fa\2\2\u071e\u0720\7!\2\2\u07= 1f")=0D + buf.write("\u071b\3\2\2\2\u071f\u0720\3\2\2\2\u0720\u0721\3\2\2\2"= )=0D + buf.write("\u0721\u0722\5\u00b4[\2\u0722\u0723\7e\2\2\u0723\u0724"= )=0D + buf.write("\7 \2\2\u0724\u00dd\3\2\2\2\u0725\u072a\5\u00e0q\2\u072= 6")=0D + buf.write("\u0727\7(\2\2\u0727\u0729\5\u00e0q\2\u0728\u0726\3\2\2"= )=0D + buf.write("\2\u0729\u072c\3\2\2\2\u072a\u0728\3\2\2\2\u072a\u072b"= )=0D + buf.write("\3\2\2\2\u072b\u00df\3\2\2\2\u072c\u072a\3\2\2\2\u072d"= )=0D + buf.write("\u0730\7\u00fa\2\2\u072e\u0730\5V,\2\u072f\u072d\3\2\2"= )=0D + buf.write("\2\u072f\u072e\3\2\2\2\u0730\u00e1\3\2\2\2\u0731\u0732"= )=0D + buf.write("\7\63\2\2\u0732\u0733\5P)\2\u0733\u0738\7!\2\2\u0734\u0= 735")=0D + buf.write("\7\64\2\2\u0735\u0736\7\b\2\2\u0736\u0737\7\u00fa\2\2")= =0D + buf.write("\u0737\u0739\7!\2\2\u0738\u0734\3\2\2\2\u0738\u0739\3")= =0D + buf.write("\2\2\2\u0739\u073f\3\2\2\2\u073a\u073b\7@\2\2\u073b\u07= 3c")=0D + buf.write("\7\b\2\2\u073c\u073d\5\u00e4s\2\u073d\u073e\7!\2\2\u073= e")=0D + buf.write("\u0740\3\2\2\2\u073f\u073a\3\2\2\2\u073f\u0740\3\2\2\2"= )=0D + buf.write("\u0740\u0741\3\2\2\2\u0741\u0742\5\u00b4[\2\u0742\u0743= ")=0D + buf.write("\7\65\2\2\u0743\u0744\7 \2\2\u0744\u00e3\3\2\2\2\u0745"= )=0D + buf.write("\u074a\5\u00e6t\2\u0746\u0747\7(\2\2\u0747\u0749\5\u00e= 6")=0D + buf.write("t\2\u0748\u0746\3\2\2\2\u0749\u074c\3\2\2\2\u074a\u0748= ")=0D + buf.write("\3\2\2\2\u074a\u074b\3\2\2\2\u074b\u00e5\3\2\2\2\u074c"= )=0D + buf.write("\u074a\3\2\2\2\u074d\u0752\7\u00fa\2\2\u074e\u0752\7\u0= 0c0")=0D + buf.write("\2\2\u074f\u0752\7\u00c1\2\2\u0750\u0752\5V,\2\u0751\u0= 74d")=0D + buf.write("\3\2\2\2\u0751\u074e\3\2\2\2\u0751\u074f\3\2\2\2\u0751"= )=0D + buf.write("\u0750\3\2\2\2\u0752\u00e7\3\2\2\2\u0753\u07ae\7A\2\2")= =0D + buf.write("\u0754\u0755\5P)\2\u0755\u075b\7!\2\2\u0756\u0757\7@\2"= )=0D + buf.write("\2\u0757\u0758\7\b\2\2\u0758\u0759\5\u00ecw\2\u0759\u07= 5a")=0D + buf.write("\7!\2\2\u075a\u075c\3\2\2\2\u075b\u0756\3\2\2\2\u075b")= =0D + buf.write("\u075c\3\2\2\2\u075c\u075d\3\2\2\2\u075d\u075e\5\u00b4"= )=0D + buf.write("[\2\u075e\u07af\3\2\2\2\u075f\u0760\7C\2\2\u0760\u0761"= )=0D + buf.write("\7\u008f\2\2\u0761\u0762\7\b\2\2\u0762\u0763\7\u00fb\2"= )=0D + buf.write("\2\u0763\u0764\7\34\2\2\u0764\u0765\7\u00fb\2\2\u0765")= =0D + buf.write("\u0766\7!\2\2\u0766\u0767\7\62\2\2\u0767\u0768\7\b\2\2"= )=0D + buf.write("\u0768\u0769\7\u00ec\2\2\u0769\u076a\7\30\2\2\u076a\u07= 6b")=0D + buf.write("\7\u00fa\2\2\u076b\u076c\7\31\2\2\u076c\u076d\7!\2\2\u0= 76d")=0D + buf.write("\u076e\7=3D\2\2\u076e\u076f\7\b\2\2\u076f\u0770\7\u00ec= ")=0D + buf.write("\2\2\u0770\u0771\7\30\2\2\u0771\u0772\7\u00fa\2\2\u0772= ")=0D + buf.write("\u0773\7\31\2\2\u0773\u0774\7!\2\2\u0774\u0775\5\u00ea"= )=0D + buf.write("v\2\u0775\u0776\7D\2\2\u0776\u0777\7\u008f\2\2\u0777\u0= 778")=0D + buf.write("\7\b\2\2\u0778\u0779\7\u00fb\2\2\u0779\u077a\7\34\2\2")= =0D + buf.write("\u077a\u077b\7\u00fb\2\2\u077b\u077c\7!\2\2\u077c\u077d= ")=0D + buf.write("\7\62\2\2\u077d\u077e\7\b\2\2\u077e\u077f\7\u00ec\2\2")= =0D + buf.write("\u077f\u0780\7\30\2\2\u0780\u0781\7\u00fa\2\2\u0781\u07= 82")=0D + buf.write("\7\31\2\2\u0782\u0783\7!\2\2\u0783\u0784\7=3D\2\2\u0784= ")=0D + buf.write("\u0785\7\b\2\2\u0785\u0786\7\u00ec\2\2\u0786\u0787\7\30= ")=0D + buf.write("\2\2\u0787\u0788\7\u00fa\2\2\u0788\u0789\7\31\2\2\u0789= ")=0D + buf.write("\u078a\7!\2\2\u078a\u078b\5\u00eav\2\u078b\u078c\7E\2")= =0D + buf.write("\2\u078c\u078d\7\u008f\2\2\u078d\u078e\7\b\2\2\u078e\u0= 78f")=0D + buf.write("\7\u00fb\2\2\u078f\u0790\7\34\2\2\u0790\u0791\7\u00fb")= =0D + buf.write("\2\2\u0791\u0792\7!\2\2\u0792\u0793\7\62\2\2\u0793\u079= 4")=0D + buf.write("\7\b\2\2\u0794\u0795\7\u00ec\2\2\u0795\u0796\7\30\2\2")= =0D + buf.write("\u0796\u0797\7\u00fa\2\2\u0797\u0798\7\31\2\2\u0798\u07= 99")=0D + buf.write("\7!\2\2\u0799\u079a\7=3D\2\2\u079a\u079b\7\b\2\2\u079b\= u079c")=0D + buf.write("\7\u00ec\2\2\u079c\u079d\7\30\2\2\u079d\u079e\7\u00fa")= =0D + buf.write("\2\2\u079e\u079f\7\31\2\2\u079f\u07a0\7!\2\2\u07a0\u07a= 6")=0D + buf.write("\5\u00eav\2\u07a1\u07a2\7@\2\2\u07a2\u07a3\7\b\2\2\u07a= 3")=0D + buf.write("\u07a4\5\u00ecw\2\u07a4\u07a5\7!\2\2\u07a5\u07a7\3\2\2"= )=0D + buf.write("\2\u07a6\u07a1\3\2\2\2\u07a6\u07a7\3\2\2\2\u07a7\u07ab"= )=0D + buf.write("\3\2\2\2\u07a8\u07aa\5\u008cG\2\u07a9\u07a8\3\2\2\2\u07= aa")=0D + buf.write("\u07ad\3\2\2\2\u07ab\u07a9\3\2\2\2\u07ab\u07ac\3\2\2\2"= )=0D + buf.write("\u07ac\u07af\3\2\2\2\u07ad\u07ab\3\2\2\2\u07ae\u0754\3"= )=0D + buf.write("\2\2\2\u07ae\u075f\3\2\2\2\u07af\u07b0\3\2\2\2\u07b0\u0= 7b1")=0D + buf.write("\7B\2\2\u07b1\u07b2\7 \2\2\u07b2\u00e9\3\2\2\2\u07b3\u0= 7b4")=0D + buf.write("\7`\2\2\u07b4\u07b5\7\b\2\2\u07b5\u07b6\7\u00fa\2\2\u07= b6")=0D + buf.write("\u07b7\7!\2\2\u07b7\u07b8\7a\2\2\u07b8\u07b9\7\b\2\2\u0= 7b9")=0D + buf.write("\u07ba\7\u00fa\2\2\u07ba\u07bf\7!\2\2\u07bb\u07bc\7b\2"= )=0D + buf.write("\2\u07bc\u07bd\7\b\2\2\u07bd\u07be\7\u00fa\2\2\u07be\u0= 7c0")=0D + buf.write("\7!\2\2\u07bf\u07bb\3\2\2\2\u07bf\u07c0\3\2\2\2\u07c0")= =0D + buf.write("\u07c5\3\2\2\2\u07c1\u07c2\7c\2\2\u07c2\u07c3\7\b\2\2")= =0D + buf.write("\u07c3\u07c4\7\u00fa\2\2\u07c4\u07c6\7!\2\2\u07c5\u07c1= ")=0D + buf.write("\3\2\2\2\u07c5\u07c6\3\2\2\2\u07c6\u00eb\3\2\2\2\u07c7"= )=0D + buf.write("\u07cc\5\u00eex\2\u07c8\u07c9\7(\2\2\u07c9\u07cb\5\u00e= e")=0D + buf.write("x\2\u07ca\u07c8\3\2\2\2\u07cb\u07ce\3\2\2\2\u07cc\u07ca= ")=0D + buf.write("\3\2\2\2\u07cc\u07cd\3\2\2\2\u07cd\u00ed\3\2\2\2\u07ce"= )=0D + buf.write("\u07cc\3\2\2\2\u07cf\u07d0\t\6\2\2\u07d0\u00ef\3\2\2\2"= )=0D + buf.write("\u07d1\u082c\7F\2\2\u07d2\u07d3\5P)\2\u07d3\u07d9\7!\2"= )=0D + buf.write("\2\u07d4\u07d5\7@\2\2\u07d5\u07d6\7\b\2\2\u07d6\u07d7")= =0D + buf.write("\5\u00f4{\2\u07d7\u07d8\7!\2\2\u07d8\u07da\3\2\2\2\u07d= 9")=0D + buf.write("\u07d4\3\2\2\2\u07d9\u07da\3\2\2\2\u07da\u07db\3\2\2\2"= )=0D + buf.write("\u07db\u07dc\5\u00b4[\2\u07dc\u082d\3\2\2\2\u07dd\u07de= ")=0D + buf.write("\7H\2\2\u07de\u07df\7\u008f\2\2\u07df\u07e0\7\b\2\2\u07= e0")=0D + buf.write("\u07e1\7\u00fb\2\2\u07e1\u07e2\7\34\2\2\u07e2\u07e3\7")= =0D + buf.write("\u00fb\2\2\u07e3\u07e4\7!\2\2\u07e4\u07e5\7\62\2\2\u07e= 5")=0D + buf.write("\u07e6\7\b\2\2\u07e6\u07e7\7\u00ec\2\2\u07e7\u07e8\7\30= ")=0D + buf.write("\2\2\u07e8\u07e9\7\u00fa\2\2\u07e9\u07ea\7\31\2\2\u07ea= ")=0D + buf.write("\u07eb\7!\2\2\u07eb\u07ec\7=3D\2\2\u07ec\u07ed\7\b\2\2\= u07ed")=0D + buf.write("\u07ee\7\u00ec\2\2\u07ee\u07ef\7\30\2\2\u07ef\u07f0\7")= =0D + buf.write("\u00fa\2\2\u07f0\u07f1\7\31\2\2\u07f1\u07f2\7!\2\2\u07f= 2")=0D + buf.write("\u07f3\5\u00f2z\2\u07f3\u07f4\7I\2\2\u07f4\u07f5\7\u008= f")=0D + buf.write("\2\2\u07f5\u07f6\7\b\2\2\u07f6\u07f7\7\u00fb\2\2\u07f7"= )=0D + buf.write("\u07f8\7\34\2\2\u07f8\u07f9\7\u00fb\2\2\u07f9\u07fa\7")= =0D + buf.write("!\2\2\u07fa\u07fb\7\62\2\2\u07fb\u07fc\7\b\2\2\u07fc\u0= 7fd")=0D + buf.write("\7\u00ec\2\2\u07fd\u07fe\7\30\2\2\u07fe\u07ff\7\u00fa")= =0D + buf.write("\2\2\u07ff\u0800\7\31\2\2\u0800\u0801\7!\2\2\u0801\u080= 2")=0D + buf.write("\7=3D\2\2\u0802\u0803\7\b\2\2\u0803\u0804\7\u00ec\2\2\u= 0804")=0D + buf.write("\u0805\7\30\2\2\u0805\u0806\7\u00fa\2\2\u0806\u0807\7")= =0D + buf.write("\31\2\2\u0807\u0808\7!\2\2\u0808\u0809\5\u00f2z\2\u0809= ")=0D + buf.write("\u080a\7J\2\2\u080a\u080b\7\u008f\2\2\u080b\u080c\7\b")= =0D + buf.write("\2\2\u080c\u080d\7\u00fb\2\2\u080d\u080e\7\34\2\2\u080e= ")=0D + buf.write("\u080f\7\u00fb\2\2\u080f\u0810\7!\2\2\u0810\u0811\7\62"= )=0D + buf.write("\2\2\u0811\u0812\7\b\2\2\u0812\u0813\7\u00ec\2\2\u0813"= )=0D + buf.write("\u0814\7\30\2\2\u0814\u0815\7\u00fa\2\2\u0815\u0816\7")= =0D + buf.write("\31\2\2\u0816\u0817\7!\2\2\u0817\u0818\7=3D\2\2\u0818\u= 0819")=0D + buf.write("\7\b\2\2\u0819\u081a\7\u00ec\2\2\u081a\u081b\7\30\2\2")= =0D + buf.write("\u081b\u081c\7\u00fa\2\2\u081c\u081d\7\31\2\2\u081d\u08= 1e")=0D + buf.write("\7!\2\2\u081e\u0824\5\u00f2z\2\u081f\u0820\7@\2\2\u0820= ")=0D + buf.write("\u0821\7\b\2\2\u0821\u0822\5\u00f4{\2\u0822\u0823\7!\2"= )=0D + buf.write("\2\u0823\u0825\3\2\2\2\u0824\u081f\3\2\2\2\u0824\u0825"= )=0D + buf.write("\3\2\2\2\u0825\u0829\3\2\2\2\u0826\u0828\5\u008cG\2\u08= 27")=0D + buf.write("\u0826\3\2\2\2\u0828\u082b\3\2\2\2\u0829\u0827\3\2\2\2"= )=0D + buf.write("\u0829\u082a\3\2\2\2\u082a\u082d\3\2\2\2\u082b\u0829\3"= )=0D + buf.write("\2\2\2\u082c\u07d2\3\2\2\2\u082c\u07dd\3\2\2\2\u082d\u0= 82e")=0D + buf.write("\3\2\2\2\u082e\u082f\7G\2\2\u082f\u0830\7 \2\2\u0830\u0= 0f1")=0D + buf.write("\3\2\2\2\u0831\u0832\7`\2\2\u0832\u0833\7\b\2\2\u0833")= =0D + buf.write("\u0834\7\u00fa\2\2\u0834\u0835\7!\2\2\u0835\u0836\7a\2"= )=0D + buf.write("\2\u0836\u0837\7\b\2\2\u0837\u0838\7\u00fa\2\2\u0838\u0= 83d")=0D + buf.write("\7!\2\2\u0839\u083a\7b\2\2\u083a\u083b\7\b\2\2\u083b\u0= 83c")=0D + buf.write("\7\u00fa\2\2\u083c\u083e\7!\2\2\u083d\u0839\3\2\2\2\u08= 3d")=0D + buf.write("\u083e\3\2\2\2\u083e\u0843\3\2\2\2\u083f\u0840\7c\2\2")= =0D + buf.write("\u0840\u0841\7\b\2\2\u0841\u0842\7\u00fa\2\2\u0842\u084= 4")=0D + buf.write("\7!\2\2\u0843\u083f\3\2\2\2\u0843\u0844\3\2\2\2\u0844")= =0D + buf.write("\u00f3\3\2\2\2\u0845\u084a\5\u00f6|\2\u0846\u0847\7(\2"= )=0D + buf.write("\2\u0847\u0849\5\u00f6|\2\u0848\u0846\3\2\2\2\u0849\u08= 4c")=0D + buf.write("\3\2\2\2\u084a\u0848\3\2\2\2\u084a\u084b\3\2\2\2\u084b"= )=0D + buf.write("\u00f5\3\2\2\2\u084c\u084a\3\2\2\2\u084d\u084e\t\7\2\2"= )=0D + buf.write("\u084e\u00f7\3\2\2\2\u084f\u0854\5\u0104\u0083\2\u0850"= )=0D + buf.write("\u0854\5\u00fc\177\2\u0851\u0854\5\u00fe\u0080\2\u0852"= )=0D + buf.write("\u0854\5\u010e\u0088\2\u0853\u084f\3\2\2\2\u0853\u0850"= )=0D + buf.write("\3\2\2\2\u0853\u0851\3\2\2\2\u0853\u0852\3\2\2\2\u0854"= )=0D + buf.write("\u00f9\3\2\2\2\u0855\u0856\5\u0104\u0083\2\u0856\u0857"= )=0D + buf.write("\5\u010a\u0086\2\u0857\u0858\5\u010c\u0087\2\u0858\u085= 9")=0D + buf.write("\5\u010e\u0088\2\u0859\u00fb\3\2\2\2\u085a\u085b\5\u010= a")=0D + buf.write("\u0086\2\u085b\u00fd\3\2\2\2\u085c\u085d\5\u010c\u0087"= )=0D + buf.write("\2\u085d\u00ff\3\2\2\2\u085e\u0865\5p9\2\u085f\u0865\5"= )=0D + buf.write("\u0088E\2\u0860\u0865\5\u00f8}\2\u0861\u0865\5\u0118\u0= 08d")=0D + buf.write("\2\u0862\u0865\5\u011c\u008f\2\u0863\u0865\5\u0110\u008= 9")=0D + buf.write("\2\u0864\u085e\3\2\2\2\u0864\u085f\3\2\2\2\u0864\u0860"= )=0D + buf.write("\3\2\2\2\u0864\u0861\3\2\2\2\u0864\u0862\3\2\2\2\u0864"= )=0D + buf.write("\u0863\3\2\2\2\u0865\u0101\3\2\2\2\u0866\u086b\5p9\2\u0= 867")=0D + buf.write("\u086b\5\u0088E\2\u0868\u086b\5\u0118\u008d\2\u0869\u08= 6b")=0D + buf.write("\5\u0110\u0089\2\u086a\u0866\3\2\2\2\u086a\u0867\3\2\2"= )=0D + buf.write("\2\u086a\u0868\3\2\2\2\u086a\u0869\3\2\2\2\u086b\u0103"= )=0D + buf.write("\3\2\2\2\u086c\u086d\7l\2\2\u086d\u086e\5\u0124\u0093")= =0D + buf.write("\2\u086e\u0872\7 \2\2\u086f\u0871\5\u0100\u0081\2\u0870= ")=0D + buf.write("\u086f\3\2\2\2\u0871\u0874\3\2\2\2\u0872\u0870\3\2\2\2"= )=0D + buf.write("\u0872\u0873\3\2\2\2\u0873\u0875\3\2\2\2\u0874\u0872\3"= )=0D + buf.write("\2\2\2\u0875\u0876\7s\2\2\u0876\u0877\7 \2\2\u0877\u010= 5")=0D + buf.write("\3\2\2\2\u0878\u0885\7k\2\2\u0879\u087a\7@\2\2\u087a\u0= 87b")=0D + buf.write("\7\b\2\2\u087b\u0880\5\u009eP\2\u087c\u087d\7(\2\2\u087= d")=0D + buf.write("\u087f\5\u009eP\2\u087e\u087c\3\2\2\2\u087f\u0882\3\2")= =0D + buf.write("\2\2\u0880\u087e\3\2\2\2\u0880\u0881\3\2\2\2\u0881\u088= 3")=0D + buf.write("\3\2\2\2\u0882\u0880\3\2\2\2\u0883\u0884\7!\2\2\u0884")= =0D + buf.write("\u0886\3\2\2\2\u0885\u0879\3\2\2\2\u0885\u0886\3\2\2\2"= )=0D + buf.write("\u0886\u0887\3\2\2\2\u0887\u0888\5\u0124\u0093\2\u0888"= )=0D + buf.write("\u0889\7 \2\2\u0889\u0107\3\2\2\2\u088a\u0897\7K\2\2\u0= 88b")=0D + buf.write("\u088c\7@\2\2\u088c\u088d\7\b\2\2\u088d\u0892\5\u009e")= =0D + buf.write("P\2\u088e\u088f\7(\2\2\u088f\u0891\5\u009eP\2\u0890\u08= 8e")=0D + buf.write("\3\2\2\2\u0891\u0894\3\2\2\2\u0892\u0890\3\2\2\2\u0892"= )=0D + buf.write("\u0893\3\2\2\2\u0893\u0895\3\2\2\2\u0894\u0892\3\2\2\2"= )=0D + buf.write("\u0895\u0896\7!\2\2\u0896\u0898\3\2\2\2\u0897\u088b\3")= =0D + buf.write("\2\2\2\u0897\u0898\3\2\2\2\u0898\u0899\3\2\2\2\u0899\u0= 89a")=0D + buf.write("\5\u0124\u0093\2\u089a\u089b\7 \2\2\u089b\u0109\3\2\2")= =0D + buf.write("\2\u089c\u08a9\7k\2\2\u089d\u089e\7@\2\2\u089e\u089f\7"= )=0D + buf.write("\b\2\2\u089f\u08a4\5\u009eP\2\u08a0\u08a1\7(\2\2\u08a1"= )=0D + buf.write("\u08a3\5\u009eP\2\u08a2\u08a0\3\2\2\2\u08a3\u08a6\3\2")= =0D + buf.write("\2\2\u08a4\u08a2\3\2\2\2\u08a4\u08a5\3\2\2\2\u08a5\u08a= 7")=0D + buf.write("\3\2\2\2\u08a6\u08a4\3\2\2\2\u08a7\u08a8\7!\2\2\u08a8")= =0D + buf.write("\u08aa\3\2\2\2\u08a9\u089d\3\2\2\2\u08a9\u08aa\3\2\2\2"= )=0D + buf.write("\u08aa\u08ab\3\2\2\2\u08ab\u08ac\5\u0124\u0093\2\u08ac"= )=0D + buf.write("\u08b0\7 \2\2\u08ad\u08af\5\u0100\u0081\2\u08ae\u08ad")= =0D + buf.write("\3\2\2\2\u08af\u08b2\3\2\2\2\u08b0\u08ae\3\2\2\2\u08b0"= )=0D + buf.write("\u08b1\3\2\2\2\u08b1\u08b3\3\2\2\2\u08b2\u08b0\3\2\2\2"= )=0D + buf.write("\u08b3\u08b4\7s\2\2\u08b4\u08b5\7 \2\2\u08b5\u010b\3\2"= )=0D + buf.write("\2\2\u08b6\u08c3\7K\2\2\u08b7\u08b8\7@\2\2\u08b8\u08b9"= )=0D + buf.write("\7\b\2\2\u08b9\u08be\5\u009eP\2\u08ba\u08bb\7(\2\2\u08b= b")=0D + buf.write("\u08bd\5\u009eP\2\u08bc\u08ba\3\2\2\2\u08bd\u08c0\3\2")= =0D + buf.write("\2\2\u08be\u08bc\3\2\2\2\u08be\u08bf\3\2\2\2\u08bf\u08c= 1")=0D + buf.write("\3\2\2\2\u08c0\u08be\3\2\2\2\u08c1\u08c2\7!\2\2\u08c2")= =0D + buf.write("\u08c4\3\2\2\2\u08c3\u08b7\3\2\2\2\u08c3\u08c4\3\2\2\2"= )=0D + buf.write("\u08c4\u08c5\3\2\2\2\u08c5\u08c6\5\u0124\u0093\2\u08c6"= )=0D + buf.write("\u08ca\7 \2\2\u08c7\u08c9\5\u0100\u0081\2\u08c8\u08c7")= =0D + buf.write("\3\2\2\2\u08c9\u08cc\3\2\2\2\u08ca\u08c8\3\2\2\2\u08ca"= )=0D + buf.write("\u08cb\3\2\2\2\u08cb\u08cd\3\2\2\2\u08cc\u08ca\3\2\2\2"= )=0D + buf.write("\u08cd\u08ce\7s\2\2\u08ce\u08cf\7 \2\2\u08cf\u010d\3\2"= )=0D + buf.write("\2\2\u08d0\u08d1\7p\2\2\u08d1\u08d2\7\62\2\2\u08d2\u08d= 3")=0D + buf.write("\7\b\2\2\u08d3\u08d4\7\u00ec\2\2\u08d4\u08d5\7\30\2\2")= =0D + buf.write("\u08d5\u08d6\7\u00fa\2\2\u08d6\u08d7\7\31\2\2\u08d7\u08= e4")=0D + buf.write("\7!\2\2\u08d8\u08d9\7@\2\2\u08d9\u08da\7\b\2\2\u08da\u0= 8df")=0D + buf.write("\5\u009eP\2\u08db\u08dc\7(\2\2\u08dc\u08de\5\u009eP\2")= =0D + buf.write("\u08dd\u08db\3\2\2\2\u08de\u08e1\3\2\2\2\u08df\u08dd\3"= )=0D + buf.write("\2\2\2\u08df\u08e0\3\2\2\2\u08e0\u08e2\3\2\2\2\u08e1\u0= 8df")=0D + buf.write("\3\2\2\2\u08e2\u08e3\7!\2\2\u08e3\u08e5\3\2\2\2\u08e4")= =0D + buf.write("\u08d8\3\2\2\2\u08e4\u08e5\3\2\2\2\u08e5\u08e6\3\2\2\2"= )=0D + buf.write("\u08e6\u08e7\5\u0124\u0093\2\u08e7\u08e8\7s\2\2\u08e8")= =0D + buf.write("\u08e9\7 \2\2\u08e9\u010f\3\2\2\2\u08ea\u08ee\5\u0112")= =0D + buf.write("\u008a\2\u08eb\u08ee\5\u0114\u008b\2\u08ec\u08ee\5\u011= 6")=0D + buf.write("\u008c\2\u08ed\u08ea\3\2\2\2\u08ed\u08eb\3\2\2\2\u08ed"= )=0D + buf.write("\u08ec\3\2\2\2\u08ee\u0111\3\2\2\2\u08ef\u08f0\7m\2\2")= =0D + buf.write("\u08f0\u08f1\7\u0096\2\2\u08f1\u08f2\7\b\2\2\u08f2\u08f= 3")=0D + buf.write("\7\u00fa\2\2\u08f3\u08f4\7!\2\2\u08f4\u08f5\7t\2\2\u08f= 5")=0D + buf.write("\u08f6\7\b\2\2\u08f6\u08f7\7\u00fa\2\2\u08f7\u08f8\7 ")= =0D + buf.write("\2\2\u08f8\u0113\3\2\2\2\u08f9\u08fa\7N\2\2\u08fa\u08fb= ")=0D + buf.write("\7=3D\2\2\u08fb\u08fc\7\b\2\2\u08fc\u08fd\7\u00ec\2\2\u= 08fd")=0D + buf.write("\u08fe\7\30\2\2\u08fe\u08ff\7\u00fa\2\2\u08ff\u0900\7")= =0D + buf.write("\31\2\2\u0900\u0901\7!\2\2\u0901\u0902\7>\2\2\u0902\u09= 03")=0D + buf.write("\7\b\2\2\u0903\u0904\7\u00ec\2\2\u0904\u0905\7\30\2\2")= =0D + buf.write("\u0905\u0906\7\u00fa\2\2\u0906\u0907\7\31\2\2\u0907\u09= 0e")=0D + buf.write("\7!\2\2\u0908\u0909\7>\2\2\u0909\u090a\7\b\2\2\u090a\u0= 90b")=0D + buf.write("\7\u00ec\2\2\u090b\u090c\7\30\2\2\u090c\u090d\7\u00fa")= =0D + buf.write("\2\2\u090d\u090f\7\31\2\2\u090e\u0908\3\2\2\2\u090e\u09= 0f")=0D + buf.write("\3\2\2\2\u090f\u0910\3\2\2\2\u0910\u0911\7 \2\2\u0911")= =0D + buf.write("\u0115\3\2\2\2\u0912\u0913\t\b\2\2\u0913\u0914\7\u0087"= )=0D + buf.write("\2\2\u0914\u0915\7!\2\2\u0915\u0916\7/\2\2\u0916\u0917"= )=0D + buf.write("\7\b\2\2\u0917\u0918\7\u00fa\2\2\u0918\u0919\7!\2\2\u09= 19")=0D + buf.write("\u091a\7\62\2\2\u091a\u091b\7\b\2\2\u091b\u091c\7\u00ec= ")=0D + buf.write("\2\2\u091c\u091d\7\30\2\2\u091d\u091e\7\u00fa\2\2\u091e= ")=0D + buf.write("\u091f\7\31\2\2\u091f\u0920\7!\2\2\u0920\u0921\7=3D\2\2= ")=0D + buf.write("\u0921\u0922\7\b\2\2\u0922\u0923\7\u00ec\2\2\u0923\u092= 4")=0D + buf.write("\7\30\2\2\u0924\u0925\7\u00fa\2\2\u0925\u0931\7\31\2\2"= )=0D + buf.write("\u0926\u0927\7!\2\2\u0927\u0928\7@\2\2\u0928\u0929\7\b"= )=0D + buf.write("\2\2\u0929\u092e\5\u009eP\2\u092a\u092b\7(\2\2\u092b\u0= 92d")=0D + buf.write("\5\u009eP\2\u092c\u092a\3\2\2\2\u092d\u0930\3\2\2\2\u09= 2e")=0D + buf.write("\u092c\3\2\2\2\u092e\u092f\3\2\2\2\u092f\u0932\3\2\2\2"= )=0D + buf.write("\u0930\u092e\3\2\2\2\u0931\u0926\3\2\2\2\u0931\u0932\3"= )=0D + buf.write("\2\2\2\u0932\u0937\3\2\2\2\u0933\u0934\7!\2\2\u0934\u09= 35")=0D + buf.write("\7t\2\2\u0935\u0936\7\b\2\2\u0936\u0938\7\u00fa\2\2\u09= 37")=0D + buf.write("\u0933\3\2\2\2\u0937\u0938\3\2\2\2\u0938\u0939\3\2\2\2"= )=0D + buf.write("\u0939\u093a\7 \2\2\u093a\u0117\3\2\2\2\u093b\u093c\7")= =0D + buf.write("L\2\2\u093c\u093d\7\u00fa\2\2\u093d\u093e\7 \2\2\u093e"= )=0D + buf.write("\u0119\3\2\2\2\u093f\u0941\7\u0088\2\2\u0940\u0942\7!")= =0D + buf.write("\2\2\u0941\u0940\3\2\2\2\u0941\u0942\3\2\2\2\u0942\u094= 3")=0D + buf.write("\3\2\2\2\u0943\u0944\7.\2\2\u0944\u0945\7\b\2\2\u0945")= =0D + buf.write("\u0946\7\u00ec\2\2\u0946\u0947\7\30\2\2\u0947\u0948\7")= =0D + buf.write("\u00fa\2\2\u0948\u0949\7\31\2\2\u0949\u0954\7!\2\2\u094= a")=0D + buf.write("\u094b\7\u008d\2\2\u094b\u094c\7\u00fa\2\2\u094c\u094d"= )=0D + buf.write("\7!\2\2\u094d\u094e\7\u0089\2\2\u094e\u094f\t\t\2\2\u09= 4f")=0D + buf.write("\u0955\7 \2\2\u0950\u0951\7M\2\2\u0951\u0952\7\b\2\2\u0= 952")=0D + buf.write("\u0953\7\u00fa\2\2\u0953\u0955\7 \2\2\u0954\u094a\3\2")= =0D + buf.write("\2\2\u0954\u0950\3\2\2\2\u0955\u011b\3\2\2\2\u0956\u095= 7")=0D + buf.write("\7\u00a7\2\2\u0957\u0958\7[\2\2\u0958\u0959\7\b\2\2\u09= 59")=0D + buf.write("\u09a1\5L\'\2\u095a\u095b\7!\2\2\u095b\u095c\7\u00a9\2"= )=0D + buf.write("\2\u095c\u0999\7\b\2\2\u095d\u0961\7S\2\2\u095e\u095f")= =0D + buf.write("\7\32\2\2\u095f\u0960\7\u00fa\2\2\u0960\u0962\7\33\2\2"= )=0D + buf.write("\u0961\u095e\3\2\2\2\u0961\u0962\3\2\2\2\u0962\u099a\3"= )=0D + buf.write("\2\2\2\u0963\u0967\7T\2\2\u0964\u0965\7\32\2\2\u0965\u0= 966")=0D + buf.write("\7\u00fa\2\2\u0966\u0968\7\33\2\2\u0967\u0964\3\2\2\2")= =0D + buf.write("\u0967\u0968\3\2\2\2\u0968\u099a\3\2\2\2\u0969\u096d\7"= )=0D + buf.write("U\2\2\u096a\u096b\7\32\2\2\u096b\u096c\7\u00fa\2\2\u096= c")=0D + buf.write("\u096e\7\33\2\2\u096d\u096a\3\2\2\2\u096d\u096e\3\2\2")= =0D + buf.write("\2\u096e\u099a\3\2\2\2\u096f\u0973\7V\2\2\u0970\u0971")= =0D + buf.write("\7\32\2\2\u0971\u0972\7\u00fa\2\2\u0972\u0974\7\33\2\2"= )=0D + buf.write("\u0973\u0970\3\2\2\2\u0973\u0974\3\2\2\2\u0974\u099a\3"= )=0D + buf.write("\2\2\2\u0975\u0979\7R\2\2\u0976\u0977\7\32\2\2\u0977\u0= 978")=0D + buf.write("\7\u00fa\2\2\u0978\u097a\7\33\2\2\u0979\u0976\3\2\2\2")= =0D + buf.write("\u0979\u097a\3\2\2\2\u097a\u099a\3\2\2\2\u097b\u097f\7"= )=0D + buf.write("W\2\2\u097c\u097d\7\32\2\2\u097d\u097e\7\u00fa\2\2\u097= e")=0D + buf.write("\u0980\7\33\2\2\u097f\u097c\3\2\2\2\u097f\u0980\3\2\2")= =0D + buf.write("\2\u0980\u099a\3\2\2\2\u0981\u0985\7X\2\2\u0982\u0983")= =0D + buf.write("\7\32\2\2\u0983\u0984\7\u00fa\2\2\u0984\u0986\7\33\2\2"= )=0D + buf.write("\u0985\u0982\3\2\2\2\u0985\u0986\3\2\2\2\u0986\u099a\3"= )=0D + buf.write("\2\2\2\u0987\u098b\7Y\2\2\u0988\u0989\7\32\2\2\u0989\u0= 98a")=0D + buf.write("\7\u00fa\2\2\u098a\u098c\7\33\2\2\u098b\u0988\3\2\2\2")= =0D + buf.write("\u098b\u098c\3\2\2\2\u098c\u099a\3\2\2\2\u098d\u0991\7"= )=0D + buf.write("Z\2\2\u098e\u098f\7\32\2\2\u098f\u0990\7\u00fa\2\2\u099= 0")=0D + buf.write("\u0992\7\33\2\2\u0991\u098e\3\2\2\2\u0991\u0992\3\2\2")= =0D + buf.write("\2\u0992\u099a\3\2\2\2\u0993\u0997\7\u00fb\2\2\u0994\u0= 995")=0D + buf.write("\7\32\2\2\u0995\u0996\7\u00fa\2\2\u0996\u0998\7\33\2\2"= )=0D + buf.write("\u0997\u0994\3\2\2\2\u0997\u0998\3\2\2\2\u0998\u099a\3"= )=0D + buf.write("\2\2\2\u0999\u095d\3\2\2\2\u0999\u0963\3\2\2\2\u0999\u0= 969")=0D + buf.write("\3\2\2\2\u0999\u096f\3\2\2\2\u0999\u0975\3\2\2\2\u0999"= )=0D + buf.write("\u097b\3\2\2\2\u0999\u0981\3\2\2\2\u0999\u0987\3\2\2\2"= )=0D + buf.write("\u0999\u098d\3\2\2\2\u0999\u0993\3\2\2\2\u099a\u099e\3"= )=0D + buf.write("\2\2\2\u099b\u099d\5\u011e\u0090\2\u099c\u099b\3\2\2\2"= )=0D + buf.write("\u099d\u09a0\3\2\2\2\u099e\u099c\3\2\2\2\u099e\u099f\3"= )=0D + buf.write("\2\2\2\u099f\u09a2\3\2\2\2\u09a0\u099e\3\2\2\2\u09a1\u0= 95a")=0D + buf.write("\3\2\2\2\u09a1\u09a2\3\2\2\2\u09a2\u09ab\3\2\2\2\u09a3"= )=0D + buf.write("\u09a7\7!\2\2\u09a4\u09a6\5\u011c\u008f\2\u09a5\u09a4")= =0D + buf.write("\3\2\2\2\u09a6\u09a9\3\2\2\2\u09a7\u09a5\3\2\2\2\u09a7"= )=0D + buf.write("\u09a8\3\2\2\2\u09a8\u09aa\3\2\2\2\u09a9\u09a7\3\2\2\2"= )=0D + buf.write("\u09aa\u09ac\7\u00a8\2\2\u09ab\u09a3\3\2\2\2\u09ab\u09a= c")=0D + buf.write("\3\2\2\2\u09ac\u09ad\3\2\2\2\u09ad\u09ae\7 \2\2\u09ae")= =0D + buf.write("\u011d\3\2\2\2\u09af\u09b0\7!\2\2\u09b0\u09b4\7\u00aa")= =0D + buf.write("\2\2\u09b1\u09b2\7\32\2\2\u09b2\u09b3\7\u00fa\2\2\u09b3= ")=0D + buf.write("\u09b5\7\33\2\2\u09b4\u09b1\3\2\2\2\u09b4\u09b5\3\2\2")= =0D + buf.write("\2\u09b5\u09ba\3\2\2\2\u09b6\u09b7\7\34\2\2\u09b7\u09b9= ")=0D + buf.write("\5\u015c\u00af\2\u09b8\u09b6\3\2\2\2\u09b9\u09bc\3\2\2"= )=0D + buf.write("\2\u09ba\u09b8\3\2\2\2\u09ba\u09bb\3\2\2\2\u09bb\u09bd"= )=0D + buf.write("\3\2\2\2\u09bc\u09ba\3\2\2\2\u09bd\u09be\7\b\2\2\u09be"= )=0D + buf.write("\u09bf\7\u00fa\2\2\u09bf\u011f\3\2\2\2\u09c0\u09c1\5\u0= 122")=0D + buf.write("\u0092\2\u09c1\u09c2\7 \2\2\u09c2\u0121\3\2\2\2\u09c3")= =0D + buf.write("\u09c4\7\u00ab\2\2\u09c4\u0123\3\2\2\2\u09c5\u09ca\5\u0= 128")=0D + buf.write("\u0095\2\u09c6\u09c7\7\u00dc\2\2\u09c7\u09c9\5\u0128\u0= 095")=0D + buf.write("\2\u09c8\u09c6\3\2\2\2\u09c9\u09cc\3\2\2\2\u09ca\u09c8"= )=0D + buf.write("\3\2\2\2\u09ca\u09cb\3\2\2\2\u09cb\u0125\3\2\2\2\u09cc"= )=0D + buf.write("\u09ca\3\2\2\2\u09cd\u09d2\5\u0128\u0095\2\u09ce\u09cf"= )=0D + buf.write("\7\u00dc\2\2\u09cf\u09d1\5\u0128\u0095\2\u09d0\u09ce\3"= )=0D + buf.write("\2\2\2\u09d1\u09d4\3\2\2\2\u09d2\u09d0\3\2\2\2\u09d2\u0= 9d3")=0D + buf.write("\3\2\2\2\u09d3\u0127\3\2\2\2\u09d4\u09d2\3\2\2\2\u09d5"= )=0D + buf.write("\u09da\5\u012a\u0096\2\u09d6\u09d7\7\u00db\2\2\u09d7\u0= 9d9")=0D + buf.write("\5\u012a\u0096\2\u09d8\u09d6\3\2\2\2\u09d9\u09dc\3\2\2"= )=0D + buf.write("\2\u09da\u09d8\3\2\2\2\u09da\u09db\3\2\2\2\u09db\u0129"= )=0D + buf.write("\3\2\2\2\u09dc\u09da\3\2\2\2\u09dd\u09e2\5\u012c\u0097"= )=0D + buf.write("\2\u09de\u09df\7(\2\2\u09df\u09e1\5\u012c\u0097\2\u09e0= ")=0D + buf.write("\u09de\3\2\2\2\u09e1\u09e4\3\2\2\2\u09e2\u09e0\3\2\2\2"= )=0D + buf.write("\u09e2\u09e3\3\2\2\2\u09e3\u012b\3\2\2\2\u09e4\u09e2\3"= )=0D + buf.write("\2\2\2\u09e5\u09ea\5\u012e\u0098\2\u09e6\u09e7\7)\2\2")= =0D + buf.write("\u09e7\u09e9\5\u012e\u0098\2\u09e8\u09e6\3\2\2\2\u09e9"= )=0D + buf.write("\u09ec\3\2\2\2\u09ea\u09e8\3\2\2\2\u09ea\u09eb\3\2\2\2"= )=0D + buf.write("\u09eb\u012d\3\2\2\2\u09ec\u09ea\3\2\2\2\u09ed\u09f1\5"= )=0D + buf.write("\u0132\u009a\2\u09ee\u09f0\5\u0130\u0099\2\u09ef\u09ee"= )=0D + buf.write("\3\2\2\2\u09f0\u09f3\3\2\2\2\u09f1\u09ef\3\2\2\2\u09f1"= )=0D + buf.write("\u09f2\3\2\2\2\u09f2\u012f\3\2\2\2\u09f3\u09f1\3\2\2\2"= )=0D + buf.write("\u09f4\u09f5\7\"\2\2\u09f5\u09f9\5\u0132\u009a\2\u09f6"= )=0D + buf.write("\u09f7\7#\2\2\u09f7\u09f9\5\u0132\u009a\2\u09f8\u09f4")= =0D + buf.write("\3\2\2\2\u09f8\u09f6\3\2\2\2\u09f9\u0131\3\2\2\2\u09fa"= )=0D + buf.write("\u09fe\5\u0136\u009c\2\u09fb\u09fd\5\u0134\u009b\2\u09f= c")=0D + buf.write("\u09fb\3\2\2\2\u09fd\u0a00\3\2\2\2\u09fe\u09fc\3\2\2\2"= )=0D + buf.write("\u09fe\u09ff\3\2\2\2\u09ff\u0133\3\2\2\2\u0a00\u09fe\3"= )=0D + buf.write("\2\2\2\u0a01\u0a02\7%\2\2\u0a02\u0a0a\5\u0136\u009c\2")= =0D + buf.write("\u0a03\u0a04\7$\2\2\u0a04\u0a0a\5\u0136\u009c\2\u0a05")= =0D + buf.write("\u0a06\7\'\2\2\u0a06\u0a0a\5\u0136\u009c\2\u0a07\u0a08"= )=0D + buf.write("\7&\2\2\u0a08\u0a0a\5\u0136\u009c\2\u0a09\u0a01\3\2\2")= =0D + buf.write("\2\u0a09\u0a03\3\2\2\2\u0a09\u0a05\3\2\2\2\u0a09\u0a07"= )=0D + buf.write("\3\2\2\2\u0a0a\u0135\3\2\2\2\u0a0b\u0a0f\5\u013a\u009e"= )=0D + buf.write("\2\u0a0c\u0a0e\5\u0138\u009d\2\u0a0d\u0a0c\3\2\2\2\u0a0= e")=0D + buf.write("\u0a11\3\2\2\2\u0a0f\u0a0d\3\2\2\2\u0a0f\u0a10\3\2\2\2"= )=0D + buf.write("\u0a10\u0137\3\2\2\2\u0a11\u0a0f\3\2\2\2\u0a12\u0a13\7"= )=0D + buf.write("\f\2\2\u0a13\u0a17\5\u013a\u009e\2\u0a14\u0a15\7\r\2\2"= )=0D + buf.write("\u0a15\u0a17\5\u013a\u009e\2\u0a16\u0a12\3\2\2\2\u0a16"= )=0D + buf.write("\u0a14\3\2\2\2\u0a17\u0139\3\2\2\2\u0a18\u0a1c\5\u013e"= )=0D + buf.write("\u00a0\2\u0a19\u0a1b\5\u013c\u009f\2\u0a1a\u0a19\3\2\2"= )=0D + buf.write("\2\u0a1b\u0a1e\3\2\2\2\u0a1c\u0a1a\3\2\2\2\u0a1c\u0a1d"= )=0D + buf.write("\3\2\2\2\u0a1d\u013b\3\2\2\2\u0a1e\u0a1c\3\2\2\2\u0a1f"= )=0D + buf.write("\u0a20\7\16\2\2\u0a20\u0a24\5\u013e\u00a0\2\u0a21\u0a22= ")=0D + buf.write("\7\35\2\2\u0a22\u0a24\5\u013e\u00a0\2\u0a23\u0a1f\3\2")= =0D + buf.write("\2\2\u0a23\u0a21\3\2\2\2\u0a24\u013d\3\2\2\2\u0a25\u0a2= 9")=0D + buf.write("\5\u0142\u00a2\2\u0a26\u0a28\5\u0140\u00a1\2\u0a27\u0a2= 6")=0D + buf.write("\3\2\2\2\u0a28\u0a2b\3\2\2\2\u0a29\u0a27\3\2\2\2\u0a29"= )=0D + buf.write("\u0a2a\3\2\2\2\u0a2a\u013f\3\2\2\2\u0a2b\u0a29\3\2\2\2"= )=0D + buf.write("\u0a2c\u0a2d\7\17\2\2\u0a2d\u0a33\5\u0142\u00a2\2\u0a2e= ")=0D + buf.write("\u0a2f\7\37\2\2\u0a2f\u0a33\5\u0142\u00a2\2\u0a30\u0a31= ")=0D + buf.write("\7\20\2\2\u0a31\u0a33\5\u0142\u00a2\2\u0a32\u0a2c\3\2")= =0D + buf.write("\2\2\u0a32\u0a2e\3\2\2\2\u0a32\u0a30\3\2\2\2\u0a33\u014= 1")=0D + buf.write("\3\2\2\2\u0a34\u0a35\7\30\2\2\u0a35\u0a36\t\n\2\2\u0a36= ")=0D + buf.write("\u0a38\7\31\2\2\u0a37\u0a34\3\2\2\2\u0a38\u0a3b\3\2\2")= =0D + buf.write("\2\u0a39\u0a37\3\2\2\2\u0a39\u0a3a\3\2\2\2\u0a3a\u0a3c"= )=0D + buf.write("\3\2\2\2\u0a3b\u0a39\3\2\2\2\u0a3c\u0a3d\5\u0144\u00a3"= )=0D + buf.write("\2\u0a3d\u0143\3\2\2\2\u0a3e\u0a4b\5\u0146\u00a4\2\u0a3= f")=0D + buf.write("\u0a4b\5\u0148\u00a5\2\u0a40\u0a4b\5\u014a\u00a6\2\u0a4= 1")=0D + buf.write("\u0a4b\5\u014c\u00a7\2\u0a42\u0a4b\5\u014e\u00a8\2\u0a4= 3")=0D + buf.write("\u0a4b\5\u016c\u00b7\2\u0a44\u0a4b\5\u016e\u00b8\2\u0a4= 5")=0D + buf.write("\u0a4b\5\u0184\u00c3\2\u0a46\u0a4b\5\u0194\u00cb\2\u0a4= 7")=0D + buf.write("\u0a48\7\u00dd\2\2\u0a48\u0a4b\5\u0144\u00a3\2\u0a49\u0= a4b")=0D + buf.write("\5\u014a\u00a6\2\u0a4a\u0a3e\3\2\2\2\u0a4a\u0a3f\3\2\2"= )=0D + buf.write("\2\u0a4a\u0a40\3\2\2\2\u0a4a\u0a41\3\2\2\2\u0a4a\u0a42"= )=0D + buf.write("\3\2\2\2\u0a4a\u0a43\3\2\2\2\u0a4a\u0a44\3\2\2\2\u0a4a"= )=0D + buf.write("\u0a45\3\2\2\2\u0a4a\u0a46\3\2\2\2\u0a4a\u0a47\3\2\2\2"= )=0D + buf.write("\u0a4a\u0a49\3\2\2\2\u0a4b\u0145\3\2\2\2\u0a4c\u0a4d\7"= )=0D + buf.write("\u00e7\2\2\u0a4d\u0a4e\7\30\2\2\u0a4e\u0a4f\5\u0126\u00= 94")=0D + buf.write("\2\u0a4f\u0a50\7!\2\2\u0a50\u0a51\5\u0126\u0094\2\u0a51= ")=0D + buf.write("\u0a52\7\31\2\2\u0a52\u0147\3\2\2\2\u0a53\u0a54\7\u00e5= ")=0D + buf.write("\2\2\u0a54\u0a55\7\30\2\2\u0a55\u0a56\5\u0126\u0094\2")= =0D + buf.write("\u0a56\u0a57\7!\2\2\u0a57\u0a58\5\u0126\u0094\2\u0a58")= =0D + buf.write("\u0a59\7\31\2\2\u0a59\u0149\3\2\2\2\u0a5a\u0a5b\7\u00e6= ")=0D + buf.write("\2\2\u0a5b\u0a5c\7\30\2\2\u0a5c\u0a5d\5\u0126\u0094\2")= =0D + buf.write("\u0a5d\u0a5e\7!\2\2\u0a5e\u0a5f\5\u0126\u0094\2\u0a5f")= =0D + buf.write("\u0a60\7!\2\2\u0a60\u0a61\5L\'\2\u0a61\u0a62\7\31\2\2")= =0D + buf.write("\u0a62\u014b\3\2\2\2\u0a63\u0a64\7\30\2\2\u0a64\u0a65")= =0D + buf.write("\5\u0126\u0094\2\u0a65\u0a66\7\31\2\2\u0a66\u014d\3\2")= =0D + buf.write("\2\2\u0a67\u0a73\5\u0150\u00a9\2\u0a68\u0a73\5\u0152\u0= 0aa")=0D + buf.write("\2\u0a69\u0a73\5\u0154\u00ab\2\u0a6a\u0a73\5\u0156\u00a= c")=0D + buf.write("\2\u0a6b\u0a73\5\u0158\u00ad\2\u0a6c\u0a73\5\u015e\u00b= 0")=0D + buf.write("\2\u0a6d\u0a73\5\u0160\u00b1\2\u0a6e\u0a73\5\u0162\u00b= 2")=0D + buf.write("\2\u0a6f\u0a73\5\u0164\u00b3\2\u0a70\u0a73\5\u0166\u00b= 4")=0D + buf.write("\2\u0a71\u0a73\5\u016a\u00b6\2\u0a72\u0a67\3\2\2\2\u0a7= 2")=0D + buf.write("\u0a68\3\2\2\2\u0a72\u0a69\3\2\2\2\u0a72\u0a6a\3\2\2\2"= )=0D + buf.write("\u0a72\u0a6b\3\2\2\2\u0a72\u0a6c\3\2\2\2\u0a72\u0a6d\3"= )=0D + buf.write("\2\2\2\u0a72\u0a6e\3\2\2\2\u0a72\u0a6f\3\2\2\2\u0a72\u0= a70")=0D + buf.write("\3\2\2\2\u0a72\u0a71\3\2\2\2\u0a73\u014f\3\2\2\2\u0a74"= )=0D + buf.write("\u0a75\7\u00c7\2\2\u0a75\u0151\3\2\2\2\u0a76\u0a77\7\u0= 0c8")=0D + buf.write("\2\2\u0a77\u0a78\7\u00c9\2\2\u0a78\u0a79\7\30\2\2\u0a79= ")=0D + buf.write("\u0a7a\7\u00fa\2\2\u0a7a\u0a85\7\31\2\2\u0a7b\u0a7c\7")= =0D + buf.write("\"\2\2\u0a7c\u0a86\7\u00fa\2\2\u0a7d\u0a7e\7$\2\2\u0a7e= ")=0D + buf.write("\u0a86\7\u00fa\2\2\u0a7f\u0a80\7%\2\2\u0a80\u0a86\7\u00= fa")=0D + buf.write("\2\2\u0a81\u0a82\7&\2\2\u0a82\u0a86\7\u00fa\2\2\u0a83")= =0D + buf.write("\u0a84\7\'\2\2\u0a84\u0a86\7\u00fa\2\2\u0a85\u0a7b\3\2"= )=0D + buf.write("\2\2\u0a85\u0a7d\3\2\2\2\u0a85\u0a7f\3\2\2\2\u0a85\u0a8= 1")=0D + buf.write("\3\2\2\2\u0a85\u0a83\3\2\2\2\u0a86\u0153\3\2\2\2\u0a87"= )=0D + buf.write("\u0a88\7\u00ca\2\2\u0a88\u0a93\5\u015a\u00ae\2\u0a89\u0= a8a")=0D + buf.write("\7\"\2\2\u0a8a\u0a94\7\u00fa\2\2\u0a8b\u0a8c\7$\2\2\u0a= 8c")=0D + buf.write("\u0a94\7\u00fa\2\2\u0a8d\u0a8e\7%\2\2\u0a8e\u0a94\7\u00= fa")=0D + buf.write("\2\2\u0a8f\u0a90\7&\2\2\u0a90\u0a94\7\u00fa\2\2\u0a91")= =0D + buf.write("\u0a92\7\'\2\2\u0a92\u0a94\7\u00fa\2\2\u0a93\u0a89\3\2"= )=0D + buf.write("\2\2\u0a93\u0a8b\3\2\2\2\u0a93\u0a8d\3\2\2\2\u0a93\u0a8= f")=0D + buf.write("\3\2\2\2\u0a93\u0a91\3\2\2\2\u0a94\u0155\3\2\2\2\u0a95"= )=0D + buf.write("\u0a96\7\u00cb\2\2\u0a96\u0aa1\5\u015a\u00ae\2\u0a97\u0= a98")=0D + buf.write("\7\"\2\2\u0a98\u0aa2\5\u015a\u00ae\2\u0a99\u0a9a\7$\2")= =0D + buf.write("\2\u0a9a\u0aa2\5\u015a\u00ae\2\u0a9b\u0a9c\7%\2\2\u0a9c= ")=0D + buf.write("\u0aa2\5\u015a\u00ae\2\u0a9d\u0a9e\7&\2\2\u0a9e\u0aa2")= =0D + buf.write("\5\u015a\u00ae\2\u0a9f\u0aa0\7\'\2\2\u0aa0\u0aa2\5\u015= a")=0D + buf.write("\u00ae\2\u0aa1\u0a97\3\2\2\2\u0aa1\u0a99\3\2\2\2\u0aa1"= )=0D + buf.write("\u0a9b\3\2\2\2\u0aa1\u0a9d\3\2\2\2\u0aa1\u0a9f\3\2\2\2"= )=0D + buf.write("\u0aa2\u0157\3\2\2\2\u0aa3\u0aa4\7\u00cc\2\2\u0aa4\u0aa= 5")=0D + buf.write("\5\u015a\u00ae\2\u0aa5\u0aa7\7\"\2\2\u0aa6\u0aa8\7\u00f= a")=0D + buf.write("\2\2\u0aa7\u0aa6\3\2\2\2\u0aa8\u0aa9\3\2\2\2\u0aa9\u0aa= 7")=0D + buf.write("\3\2\2\2\u0aa9\u0aaa\3\2\2\2\u0aaa\u0159\3\2\2\2\u0aab"= )=0D + buf.write("\u0aac\7\u00fb\2\2\u0aac\u0aad\7\32\2\2\u0aad\u0aae\7")= =0D + buf.write("\u00fa\2\2\u0aae\u0ab8\7\33\2\2\u0aaf\u0ab4\7\u00fb\2")= =0D + buf.write("\2\u0ab0\u0ab1\7\34\2\2\u0ab1\u0ab3\5\u015c\u00af\2\u0a= b2")=0D + buf.write("\u0ab0\3\2\2\2\u0ab3\u0ab6\3\2\2\2\u0ab4\u0ab2\3\2\2\2"= )=0D + buf.write("\u0ab4\u0ab5\3\2\2\2\u0ab5\u0ab8\3\2\2\2\u0ab6\u0ab4\3"= )=0D + buf.write("\2\2\2\u0ab7\u0aab\3\2\2\2\u0ab7\u0aaf\3\2\2\2\u0ab8\u0= 15b")=0D + buf.write("\3\2\2\2\u0ab9\u0abd\7\u00fb\2\2\u0aba\u0abb\7\32\2\2")= =0D + buf.write("\u0abb\u0abc\7\u00fa\2\2\u0abc\u0abe\7\33\2\2\u0abd\u0a= ba")=0D + buf.write("\3\2\2\2\u0abd\u0abe\3\2\2\2\u0abe\u015d\3\2\2\2\u0abf"= )=0D + buf.write("\u0ac0\7\u00cd\2\2\u0ac0\u0ac1\7\30\2\2\u0ac1\u0ac2\t")= =0D + buf.write("\13\2\2\u0ac2\u0ac3\7\31\2\2\u0ac3\u015f\3\2\2\2\u0ac4"= )=0D + buf.write("\u0ac5\7\u00ce\2\2\u0ac5\u0ac6\7\30\2\2\u0ac6\u0ac7\7")= =0D + buf.write("\u00fb\2\2\u0ac7\u0ac8\7\31\2\2\u0ac8\u0161\3\2\2\2\u0a= c9")=0D + buf.write("\u0aca\7\u00cf\2\2\u0aca\u0ad0\7\30\2\2\u0acb\u0acc\7")= =0D + buf.write("\u00ec\2\2\u0acc\u0acd\7\30\2\2\u0acd\u0ace\7\u00fa\2")= =0D + buf.write("\2\u0ace\u0ad1\7\31\2\2\u0acf\u0ad1\7\u00fa\2\2\u0ad0")= =0D + buf.write("\u0acb\3\2\2\2\u0ad0\u0acf\3\2\2\2\u0ad1\u0ad2\3\2\2\2"= )=0D + buf.write("\u0ad2\u0ad3\7\31\2\2\u0ad3\u0163\3\2\2\2\u0ad4\u0ad5")= =0D + buf.write("\7\u00d0\2\2\u0ad5\u0165\3\2\2\2\u0ad6\u0ad7\7\u00d1\2"= )=0D + buf.write("\2\u0ad7\u0ad8\7\30\2\2\u0ad8\u0ad9\5L\'\2\u0ad9\u0ada"= )=0D + buf.write("\7\31\2\2\u0ada\u0167\3\2\2\2\u0adb\u0adc\t\f\2\2\u0adc= ")=0D + buf.write("\u0169\3\2\2\2\u0add\u0ade\7\u00d2\2\2\u0ade\u0adf\7\30= ")=0D + buf.write("\2\2\u0adf\u0ae4\5X-\2\u0ae0\u0ae1\7(\2\2\u0ae1\u0ae2")= =0D + buf.write("\7@\2\2\u0ae2\u0ae3\7\b\2\2\u0ae3\u0ae5\5\u0168\u00b5")= =0D + buf.write("\2\u0ae4\u0ae0\3\2\2\2\u0ae4\u0ae5\3\2\2\2\u0ae5\u0ae6"= )=0D + buf.write("\3\2\2\2\u0ae6\u0ae7\7\31\2\2\u0ae7\u016b\3\2\2\2\u0ae8= ")=0D + buf.write("\u0ae9\t\r\2\2\u0ae9\u016d\3\2\2\2\u0aea\u0af5\5\u0170"= )=0D + buf.write("\u00b9\2\u0aeb\u0af5\5\u0172\u00ba\2\u0aec\u0af5\5\u017= 4")=0D + buf.write("\u00bb\2\u0aed\u0af5\5\u0176\u00bc\2\u0aee\u0af5\5\u017= 8")=0D + buf.write("\u00bd\2\u0aef\u0af5\5\u017a\u00be\2\u0af0\u0af5\5\u017= c")=0D + buf.write("\u00bf\2\u0af1\u0af5\5\u017e\u00c0\2\u0af2\u0af5\5\u018= 0")=0D + buf.write("\u00c1\2\u0af3\u0af5\5\u0182\u00c2\2\u0af4\u0aea\3\2\2"= )=0D + buf.write("\2\u0af4\u0aeb\3\2\2\2\u0af4\u0aec\3\2\2\2\u0af4\u0aed"= )=0D + buf.write("\3\2\2\2\u0af4\u0aee\3\2\2\2\u0af4\u0aef\3\2\2\2\u0af4"= )=0D + buf.write("\u0af0\3\2\2\2\u0af4\u0af1\3\2\2\2\u0af4\u0af2\3\2\2\2"= )=0D + buf.write("\u0af4\u0af3\3\2\2\2\u0af5\u016f\3\2\2\2\u0af6\u0af7\7"= )=0D + buf.write("\u00da\2\2\u0af7\u0af8\7\30\2\2\u0af8\u0af9\5\u0126\u00= 94")=0D + buf.write("\2\u0af9\u0afa\7\31\2\2\u0afa\u0171\3\2\2\2\u0afb\u0afc= ")=0D + buf.write("\7\u00df\2\2\u0afc\u0afd\7\30\2\2\u0afd\u0afe\5\u0126")= =0D + buf.write("\u0094\2\u0afe\u0aff\7\31\2\2\u0aff\u0173\3\2\2\2\u0b00= ")=0D + buf.write("\u0b01\7\u00e8\2\2\u0b01\u0b09\7\30\2\2\u0b02\u0b03\7")= =0D + buf.write("*\2\2\u0b03\u0b04\7\b\2\2\u0b04\u0b05\7\u00ec\2\2\u0b05= ")=0D + buf.write("\u0b06\7\30\2\2\u0b06\u0b07\7\u00fa\2\2\u0b07\u0b08\7")= =0D + buf.write("\31\2\2\u0b08\u0b0a\7!\2\2\u0b09\u0b02\3\2\2\2\u0b09\u0= b0a")=0D + buf.write("\3\2\2\2\u0b0a\u0b10\3\2\2\2\u0b0b\u0b0c\7[\2\2\u0b0c")= =0D + buf.write("\u0b0d\7\b\2\2\u0b0d\u0b0e\5L\'\2\u0b0e\u0b0f\7!\2\2\u0= b0f")=0D + buf.write("\u0b11\3\2\2\2\u0b10\u0b0b\3\2\2\2\u0b10\u0b11\3\2\2\2"= )=0D + buf.write("\u0b11\u0b12\3\2\2\2\u0b12\u0b13\5\u0126\u0094\2\u0b13"= )=0D + buf.write("\u0b14\7\31\2\2\u0b14\u0175\3\2\2\2\u0b15\u0b16\7\u00e9= ")=0D + buf.write("\2\2\u0b16\u0b17\7\30\2\2\u0b17\u0b18\5\u0126\u0094\2")= =0D + buf.write("\u0b18\u0b19\7\31\2\2\u0b19\u0177\3\2\2\2\u0b1a\u0b1b")= =0D + buf.write("\7\u00e0\2\2\u0b1b\u0b1c\7\30\2\2\u0b1c\u0b1d\5\u0126")= =0D + buf.write("\u0094\2\u0b1d\u0b1e\7\31\2\2\u0b1e\u0179\3\2\2\2\u0b1f= ")=0D + buf.write("\u0b24\7\u00e1\2\2\u0b20\u0b21\7\21\2\2\u0b21\u0b22\7")= =0D + buf.write("\b\2\2\u0b22\u0b23\7\u00fa\2\2\u0b23\u0b25\7!\2\2\u0b24= ")=0D + buf.write("\u0b20\3\2\2\2\u0b24\u0b25\3\2\2\2\u0b25\u0b26\3\2\2\2"= )=0D + buf.write("\u0b26\u0b27\7\30\2\2\u0b27\u0b28\5\u0126\u0094\2\u0b28= ")=0D + buf.write("\u0b29\7\31\2\2\u0b29\u017b\3\2\2\2\u0b2a\u0b2b\7\u00e2= ")=0D + buf.write("\2\2\u0b2b\u0b2c\7\30\2\2\u0b2c\u0b2d\5\u0126\u0094\2")= =0D + buf.write("\u0b2d\u0b2e\7\31\2\2\u0b2e\u017d\3\2\2\2\u0b2f\u0b30")= =0D + buf.write("\7\u00e3\2\2\u0b30\u0b31\7\30\2\2\u0b31\u0b32\5\u0126")= =0D + buf.write("\u0094\2\u0b32\u0b33\7\31\2\2\u0b33\u017f\3\2\2\2\u0b34= ")=0D + buf.write("\u0b35\7\u00e4\2\2\u0b35\u0b36\7\30\2\2\u0b36\u0b37\5")= =0D + buf.write("\u0126\u0094\2\u0b37\u0b38\7\31\2\2\u0b38\u0181\3\2\2")= =0D + buf.write("\2\u0b39\u0b3a\7\u00de\2\2\u0b3a\u0b3b\7\30\2\2\u0b3b")= =0D + buf.write("\u0b40\5X-\2\u0b3c\u0b3d\7(\2\2\u0b3d\u0b3e\7@\2\2\u0b3= e")=0D + buf.write("\u0b3f\7\b\2\2\u0b3f\u0b41\5\u0168\u00b5\2\u0b40\u0b3c"= )=0D + buf.write("\3\2\2\2\u0b40\u0b41\3\2\2\2\u0b41\u0b42\3\2\2\2\u0b42"= )=0D + buf.write("\u0b43\7!\2\2\u0b43\u0b44\5\u0126\u0094\2\u0b44\u0b45")= =0D + buf.write("\7\31\2\2\u0b45\u0183\3\2\2\2\u0b46\u0b4c\5\u0186\u00c4= ")=0D + buf.write("\2\u0b47\u0b4c\5\u0188\u00c5\2\u0b48\u0b4c\5\u018c\u00c= 7")=0D + buf.write("\2\u0b49\u0b4c\5\u018e\u00c8\2\u0b4a\u0b4c\5\u0190\u00c= 9")=0D + buf.write("\2\u0b4b\u0b46\3\2\2\2\u0b4b\u0b47\3\2\2\2\u0b4b\u0b48"= )=0D + buf.write("\3\2\2\2\u0b4b\u0b49\3\2\2\2\u0b4b\u0b4a\3\2\2\2\u0b4c"= )=0D + buf.write("\u0185\3\2\2\2\u0b4d\u0b4e\7\u00c2\2\2\u0b4e\u0b4f\7\30= ")=0D + buf.write("\2\2\u0b4f\u0b50\5\u0126\u0094\2\u0b50\u0b51\7\22\2\2")= =0D + buf.write("\u0b51\u0b52\5\u0126\u0094\2\u0b52\u0b53\7\36\2\2\u0b53= ")=0D + buf.write("\u0b54\5\u0126\u0094\2\u0b54\u0b55\7\31\2\2\u0b55\u0187= ")=0D + buf.write("\3\2\2\2\u0b56\u0b57\7\u00c3\2\2\u0b57\u0b58\7\30\2\2")= =0D + buf.write("\u0b58\u0b5d\5\u018a\u00c6\2\u0b59\u0b5a\7(\2\2\u0b5a")= =0D + buf.write("\u0b5c\5\u018a\u00c6\2\u0b5b\u0b59\3\2\2\2\u0b5c\u0b5f"= )=0D + buf.write("\3\2\2\2\u0b5d\u0b5b\3\2\2\2\u0b5d\u0b5e\3\2\2\2\u0b5e"= )=0D + buf.write("\u0b60\3\2\2\2\u0b5f\u0b5d\3\2\2\2\u0b60\u0b61\7!\2\2")= =0D + buf.write("\u0b61\u0b62\5\u0126\u0094\2\u0b62\u0b63\7!\2\2\u0b63")= =0D + buf.write("\u0b64\5\u0126\u0094\2\u0b64\u0b65\7!\2\2\u0b65\u0b66")= =0D + buf.write("\5\u0126\u0094\2\u0b66\u0b67\7\31\2\2\u0b67\u0189\3\2")= =0D + buf.write("\2\2\u0b68\u0b69\t\16\2\2\u0b69\u018b\3\2\2\2\u0b6a\u0b= 6b")=0D + buf.write("\7\u00c4\2\2\u0b6b\u0b6c\7\30\2\2\u0b6c\u0b6d\5\u0126")= =0D + buf.write("\u0094\2\u0b6d\u0b6e\7!\2\2\u0b6e\u0b6f\5\u0126\u0094")= =0D + buf.write("\2\u0b6f\u0b70\7!\2\2\u0b70\u0b71\5\u0126\u0094\2\u0b71= ")=0D + buf.write("\u0b72\7\31\2\2\u0b72\u018d\3\2\2\2\u0b73\u0b74\7\u00c5= ")=0D + buf.write("\2\2\u0b74\u0b75\7\30\2\2\u0b75\u0b76\5\u0126\u0094\2")= =0D + buf.write("\u0b76\u0b77\7!\2\2\u0b77\u0b78\5\u0126\u0094\2\u0b78")= =0D + buf.write("\u0b79\7!\2\2\u0b79\u0b7a\5\u0126\u0094\2\u0b7a\u0b7b")= =0D + buf.write("\7\31\2\2\u0b7b\u018f\3\2\2\2\u0b7c\u0b7d\7\u00c6\2\2")= =0D + buf.write("\u0b7d\u0b7e\7\30\2\2\u0b7e\u0b7f\7@\2\2\u0b7f\u0b80\7"= )=0D + buf.write("\b\2\2\u0b80\u0b85\5\u0192\u00ca\2\u0b81\u0b82\7(\2\2")= =0D + buf.write("\u0b82\u0b84\5\u0192\u00ca\2\u0b83\u0b81\3\2\2\2\u0b84"= )=0D + buf.write("\u0b87\3\2\2\2\u0b85\u0b83\3\2\2\2\u0b85\u0b86\3\2\2\2"= )=0D + buf.write("\u0b86\u0b88\3\2\2\2\u0b87\u0b85\3\2\2\2\u0b88\u0b89\7"= )=0D + buf.write("!\2\2\u0b89\u0b8a\5\u0126\u0094\2\u0b8a\u0b8b\7!\2\2\u0= b8b")=0D + buf.write("\u0b8c\5\u0126\u0094\2\u0b8c\u0b8d\7!\2\2\u0b8d\u0b8e")= =0D + buf.write("\5\u0126\u0094\2\u0b8e\u0b8f\7\31\2\2\u0b8f\u0191\3\2")= =0D + buf.write("\2\2\u0b90\u0b91\t\17\2\2\u0b91\u0193\3\2\2\2\u0b92\u0b= 93")=0D + buf.write("\7\u00ea\2\2\u0b93\u0b94\7\30\2\2\u0b94\u0b95\5\u0126")= =0D + buf.write("\u0094\2\u0b95\u0b9d\7\36\2\2\u0b96\u0b97\5\u0124\u0093= ")=0D + buf.write("\2\u0b97\u0b98\7!\2\2\u0b98\u0b99\5\u0124\u0093\2\u0b99= ")=0D + buf.write("\u0b9a\7 \2\2\u0b9a\u0b9c\3\2\2\2\u0b9b\u0b96\3\2\2\2")= =0D + buf.write("\u0b9c\u0b9f\3\2\2\2\u0b9d\u0b9b\3\2\2\2\u0b9d\u0b9e\3"= )=0D + buf.write("\2\2\2\u0b9e\u0ba0\3\2\2\2\u0b9f\u0b9d\3\2\2\2\u0ba0\u0= ba1")=0D + buf.write("\7\31\2\2\u0ba1\u0195\3\2\2\2\u00f0\u0199\u019b\u01a5")= =0D + buf.write("\u01a9\u01ac\u01b4\u01b9\u01bd\u01c0\u01c6\u01cb\u01cf"= )=0D + buf.write("\u01d2\u01d8\u01ea\u01ec\u01f4\u01fd\u0206\u020f\u0218"= )=0D + buf.write("\u0221\u022a\u0233\u023c\u0245\u024b\u0253\u025b\u0263"= )=0D + buf.write("\u0281\u0288\u028f\u0298\u029c\u02a0\u02a7\u02b1\u02be"= )=0D + buf.write("\u02cd\u02e2\u02e8\u0304\u030a\u0313\u0326\u0336\u0341"= )=0D + buf.write("\u0372\u0382\u0389\u038f\u03a7\u03b2\u03b5\u03b8\u03df"= )=0D + buf.write("\u03e3\u03f0\u03f7\u0409\u041e\u0433\u0439\u044f\u045c"= )=0D + buf.write("\u0460\u0465\u046b\u046e\u0472\u0476\u047d\u0497\u04a1"= )=0D + buf.write("\u04a9\u04ad\u04b3\u04b7\u04e5\u04e9\u04f0\u04f6\u04fa"= )=0D + buf.write("\u0503\u0508\u0514\u051f\u052c\u053d\u0542\u0547\u0558"= )=0D + buf.write("\u055d\u0562\u056a\u058a\u058f\u0594\u059e\u05a8\u05b4"= )=0D + buf.write("\u05b9\u05be\u05ca\u05cf\u05d4\u05de\u05e4\u05ff\u0605"= )=0D + buf.write("\u060f\u061d\u062a\u062f\u0633\u063e\u0644\u064f\u0658"= )=0D + buf.write("\u0662\u0674\u0679\u067d\u0688\u068e\u0698\u069f\u06a7"= )=0D + buf.write("\u06ae\u06ba\u06c5\u06c8\u06d3\u06d8\u06e2\u06e8\u06fb"= )=0D + buf.write("\u0701\u070b\u0711\u071f\u072a\u072f\u0738\u073f\u074a"= )=0D + buf.write("\u0751\u075b\u07a6\u07ab\u07ae\u07bf\u07c5\u07cc\u07d9"= )=0D + buf.write("\u0824\u0829\u082c\u083d\u0843\u084a\u0853\u0864\u086a"= )=0D + buf.write("\u0872\u0880\u0885\u0892\u0897\u08a4\u08a9\u08b0\u08be"= )=0D + buf.write("\u08c3\u08ca\u08df\u08e4\u08ed\u090e\u092e\u0931\u0937"= )=0D + buf.write("\u0941\u0954\u0961\u0967\u096d\u0973\u0979\u097f\u0985"= )=0D + buf.write("\u098b\u0991\u0997\u0999\u099e\u09a1\u09a7\u09ab\u09b4"= )=0D + buf.write("\u09ba\u09ca\u09d2\u09da\u09e2\u09ea\u09f1\u09f8\u09fe"= )=0D + buf.write("\u0a09\u0a0f\u0a16\u0a1c\u0a23\u0a29\u0a32\u0a39\u0a4a"= )=0D + buf.write("\u0a72\u0a85\u0a93\u0aa1\u0aa9\u0ab4\u0ab7\u0abd\u0ad0"= )=0D + buf.write("\u0ae4\u0af4\u0b09\u0b10\u0b24\u0b40\u0b4b\u0b5d\u0b85"= )=0D + buf.write("\u0b9d")=0D + return buf.getvalue()=0D +=0D +=0D +class VfrSyntaxParser ( Parser ):=0D +=0D + grammarFileName =3D "VfrSyntax.g4"=0D +=0D + atn =3D ATNDeserializer().deserialize(serializedATN())=0D +=0D + decisionsToDFA =3D [ DFA(ds, i) for i, ds in enumerate(atn.decisionToS= tate) ]=0D +=0D + sharedContextCache =3D PredictionContextCache()=0D +=0D + literalNames =3D [ "", "'show'", "'push'", "'pop'", "'#pragma= '",=0D + "'pack'", "'=3D'", "'IMAGE_TOKEN'", "'HORIZONTAL'", "= 'MULTI_LINE'",=0D + "'<<'", "'>>'", "'+'", "'*'", "'%'", "'format'", "'?'= ",=0D + "'#define'", "'#include'", "'formpkgtype'", "'{'",=0D + "'}'", "'('", "')'", "'['", "']'", "'.'", "'-'", "':'= ",=0D + "'/'", "';'", "','", "'=3D=3D'", "'!=3D'", "'<=3D'", = "'<'",=0D + "'>=3D'", "'>'", "'|'", "'&'", "'devicepath'", "'form= set'",=0D + "'formsetid'", "'endformset'", "'title'", "'formid'",= =0D + "'oneof'", "'endoneof'", "'prompt'", "'orderedlist'",= =0D + "'maxcontainers'", "'endlist'", "'endform'", "'form'"= ,=0D + "'formmap'", "'maptitle'", "'mapguid'", "'subtitle'",= =0D + "'endsubtitle'", "'help'", "'text'", "'option'", "'fl= ags'",=0D + "'date'", "'enddate'", "'year'", "'month'", "'day'",= =0D + "'time'", "'endtime'", "'hour'", "'minute'", "'second= '",=0D + "'grayoutif'", "'label'", "'timeout'", "'inventory'",= =0D + "'_NON_NV_DATA_MAP'", "'struct'", "'union'", "'BOOLEA= N'",=0D + "'UINT64'", "'UINT32'", "'UINT16'", "'UINT8'", "'EFI_= STRING_ID'",=0D + "'EFI_HII_DATE'", "'EFI_HII_TIME'", "'EFI_HII_REF'",= =0D + "'guid'", "'checkbox'", "'endcheckbox'", "'numeric'",= =0D + "'endnumeric'", "'minimum'", "'maximum'", "'step'",=0D + "'default'", "'password'", "'endpassword'", "'string'= ",=0D + "'endstring'", "'minsize'", "'maxsize'", "'encoding'"= ,=0D + "'suppressif'", "'disableif'", "'hidden'", "'goto'",= =0D + "'formsetguid'", "'inconsistentif'", "'warningif'",=0D + "'nosubmitif'", "'endif'", "'key'", "'DEFAULT'", "'MA= NUFACTURING'",=0D + "'CHECKBOX_DEFAULT'", "'CHECKBOX_DEFAULT_MFG'", "'INT= ERACTIVE'",=0D + "'NV_ACCESS'", "'RESET_REQUIRED'", "'RECONNECT_REQUIR= ED'",=0D + "'LATE_CHECK'", "'READ_ONLY'", "'OPTIONS_ONLY'", "'RE= ST_STYLE'",=0D + "'class'", "'subclass'", "'classguid'", "'typedef'",= =0D + "'restore'", "'save'", "'defaults'", "'banner'", "'al= ign'",=0D + "'left'", "'right'", "'center'", "'line'", "'name'",= =0D + "'varid'", "'question'", "'questionid'", "'image'",=0D + "'locked'", "'rule'", "'endrule'", "'value'", "'read'= ",=0D + "'write'", "'resetbutton'", "'endresetbutton'", "'def= aultstore'",=0D + "'attribute'", "'varstore'", "'efivarstore'", "'varsi= ze'",=0D + "'namevaluevarstore'", "'action'", "'config'", "'enda= ction'",=0D + "'refresh'", "'interval'", "'varstoredevice'", "'guid= op'",=0D + "'endguidop'", "'datatype'", "'data'", "'modal'", "'N= ON_DEVICE'",=0D + "'DISK_DEVICE'", "'VIDEO_DEVICE'", "'NETWORK_DEVICE'"= ,=0D + "'INPUT_DEVICE'", "'ONBOARD_DEVICE'", "'OTHER_DEVICE'= ",=0D + "'SETUP_APPLICATION'", "'GENERAL_APPLICATION'", "'FRO= NT_PAGE'",=0D + "'SINGLE_USE'", "'YEAR_SUPPRESS'", "'MONTH_SUPPRESS'"= ,=0D + "'DAY_SUPPRESS'", "'HOUR_SUPPRESS'", "'MINUTE_SUPPRES= S'",=0D + "'SECOND_SUPPRESS'", "'STORAGE_NORMAL'", "'STORAGE_TI= ME'",=0D + "'STORAGE_WAKEUP'", "'UNIQUE'", "'NOEMPTY'", "'cond'"= ,=0D + "'find'", "'mid'", "'token'", "'span'", "'dup'", "'va= reqval'",=0D + "'var'", "'ideqval'", "'ideqid'", "'ideqvallist'",=0D + "'questionref'", "'ruleref'", "'stringref'", "'pushth= is'",=0D + "'security'", "'get'", "'TRUE'", "'FALSE'", "'ONE'",= =0D + "'ONES'", "'ZERO'", "'UNDEFINED'", "'VERSION'", "'len= gth'",=0D + "'AND'", "'OR'", "'NOT'", "'set'", "'~'", "'boolval'"= ,=0D + "'stringval'", "'unintval'", "'toupper'", "'tolower'"= ,=0D + "'match'", "'match2'", "'catenate'", "'questionrefval= '",=0D + "'stringrefval'", "'map'", "'refreshguid'", "'STRING_= TOKEN'",=0D + "'OPTION_DEFAULT'", "'OPTION_DEFAULT_MFG'", "'NUMERIC= _SIZE_1'",=0D + "'NUMERIC_SIZE_2'", "'NUMERIC_SIZE_4'", "'NUMERIC_SIZ= E_8'",=0D + "'DISPLAY_INT_DEC'", "'DISPLAY_UINT_DEC'", "'DISPLAY_= UINT_HEX'",=0D + "'INSENSITIVE'", "'SENSITIVE'", "'LAST_NON_MATCH'",=0D + "'FIRST_NON_MATCH'" ]=0D +=0D + symbolicNames =3D [ "", "", "", ""= ,=0D + "", "", "", "",= =0D + "", "", "", "",= =0D + "", "", "", "",= =0D + "", "Define", "Include", "FormPkgType", "Op= enBrace",=0D + "CloseBrace", "OpenParen", "CloseParen", "OpenBracke= t",=0D + "CloseBracket", "Dot", "Negative", "Colon", "Slash",= =0D + "Semicolon", "Comma", "Equal", "NotEqual", "LessEqua= l",=0D + "Less", "GreaterEqual", "Greater", "BitWiseOr", "Bit= WiseAnd",=0D + "DevicePath", "FormSet", "FormSetId", "EndFormSet",= =0D + "Title", "FormId", "OneOf", "EndOneOf", "Prompt",=0D + "OrderedList", "MaxContainers", "EndList", "EndForm"= ,=0D + "Form", "FormMap", "MapTitle", "MapGuid", "Subtitle"= ,=0D + "EndSubtitle", "Help", "Text", "Option", "FLAGS",=0D + "Date", "EndDate", "Year", "Month", "Day", "Time",=0D + "EndTime", "Hour", "Minute", "Second", "GrayOutIf",= =0D + "Label", "Timeout", "Inventory", "NonNvDataMap", "St= ruct",=0D + "Union", "Boolean", "Uint64", "Uint32", "Uint16",=0D + "Uint8", "EFI_STRING_ID", "EFI_HII_DATE", "EFI_HII_T= IME",=0D + "EFI_HII_REF", "Uuid", "CheckBox", "EndCheckBox",=0D + "Numeric", "EndNumeric", "Minimum", "Maximum", "Step= ",=0D + "Default", "Password", "EndPassword", "String", "End= String",=0D + "MinSize", "MaxSize", "Encoding", "SuppressIf", "Dis= ableIf",=0D + "Hidden", "Goto", "FormSetGuid", "InconsistentIf",=0D + "WarningIf", "NoSubmitIf", "EndIf", "Key", "DefaultF= lag",=0D + "ManufacturingFlag", "CheckBoxDefaultFlag", "CheckBo= xDefaultMfgFlag",=0D + "InteractiveFlag", "NVAccessFlag", "ResetRequiredFla= g",=0D + "ReconnectRequiredFlag", "LateCheckFlag", "ReadOnlyF= lag",=0D + "OptionOnlyFlag", "RestStyleFlag", "Class", "Subclas= s",=0D + "ClassGuid", "TypeDef", "Restore", "Save", "Defaults= ",=0D + "Banner", "Align", "Left", "Right", "Center", "Line"= ,=0D + "Name", "VarId", "Question", "QuestionId", "Image",= =0D + "Locked", "Rule", "EndRule", "Value", "Read", "Write= ",=0D + "ResetButton", "EndResetButton", "DefaultStore", "At= tribute",=0D + "Varstore", "Efivarstore", "VarSize", "NameValueVarS= tore",=0D + "Action", "Config", "EndAction", "Refresh", "Interva= l",=0D + "VarstoreDevice", "GuidOp", "EndGuidOp", "DataType",= =0D + "Data", "Modal", "ClassNonDevice", "ClassDiskDevice"= ,=0D + "ClassVideoDevice", "ClassNetworkDevice", "ClassInpu= tDevice",=0D + "ClassOnBoardDevice", "ClassOtherDevice", "SubclassS= etupApplication",=0D + "SubclassGeneralApplication", "SubclassFrontPage",=0D + "SubclassSingleUse", "YearSupppressFlag", "MonthSupp= ressFlag",=0D + "DaySuppressFlag", "HourSupppressFlag", "MinuteSuppr= essFlag",=0D + "SecondSuppressFlag", "StorageNormalFlag", "StorageT= imeFlag",=0D + "StorageWakeUpFlag", "UniQueFlag", "NoEmptyFlag",=0D + "Cond", "Find", "Mid", "Tok", "Span", "Dup", "VarEqV= al",=0D + "Var", "IdEqVal", "IdEqId", "IdEqValList", "Question= Ref",=0D + "RuleRef", "StringRef", "PushThis", "Security", "Get= ",=0D + "TrueSymbol", "FalseSymbol", "One", "Ones", "Zero",= =0D + "Undefined", "Version", "Length", "AND", "OR", "NOT"= ,=0D + "Set", "BitWiseNot", "BoolVal", "StringVal", "UnIntV= al",=0D + "ToUpper", "ToLower", "Match", "Match2", "Catenate",= =0D + "QuestionRefVal", "StringRefVal", "Map", "RefreshGui= d",=0D + "StringToken", "OptionDefault", "OptionDefaultMfg",= =0D + "NumericSizeOne", "NumericSizeTwo", "NumericSizeFour= ",=0D + "NumericSizeEight", "DisPlayIntDec", "DisPlayUIntDec= ",=0D + "DisPlayUIntHex", "Insensitive", "Sensitive", "LastN= onMatch",=0D + "FirstNonMatch", "Number", "StringIdentifier", "Comp= lexDefine",=0D + "LineDefinition", "IncludeDefinition", "Whitespace",= =0D + "Newline", "LineComment", "Extern" ]=0D +=0D + RULE_vfrProgram =3D 0=0D + RULE_pragmaPackShowDef =3D 1=0D + RULE_pragmaPackStackDef =3D 2=0D + RULE_pragmaPackNumber =3D 3=0D + RULE_vfrPragmaPackDefinition =3D 4=0D + RULE_vfrDataStructDefinition =3D 5=0D + RULE_vfrDataUnionDefinition =3D 6=0D + RULE_vfrDataStructFields =3D 7=0D + RULE_dataStructField64 =3D 8=0D + RULE_dataStructField32 =3D 9=0D + RULE_dataStructField16 =3D 10=0D + RULE_dataStructField8 =3D 11=0D + RULE_dataStructFieldBool =3D 12=0D + RULE_dataStructFieldString =3D 13=0D + RULE_dataStructFieldDate =3D 14=0D + RULE_dataStructFieldTime =3D 15=0D + RULE_dataStructFieldRef =3D 16=0D + RULE_dataStructFieldUser =3D 17=0D + RULE_dataStructBitField64 =3D 18=0D + RULE_dataStructBitField32 =3D 19=0D + RULE_dataStructBitField16 =3D 20=0D + RULE_dataStructBitField8 =3D 21=0D + RULE_vfrFormSetDefinition =3D 22=0D + RULE_classguidDefinition =3D 23=0D + RULE_classDefinition =3D 24=0D + RULE_validClassNames =3D 25=0D + RULE_subclassDefinition =3D 26=0D + RULE_vfrFormSetList =3D 27=0D + RULE_vfrFormSet =3D 28=0D + RULE_vfrStatementDefaultStore =3D 29=0D + RULE_vfrStatementVarStoreLinear =3D 30=0D + RULE_vfrStatementVarStoreEfi =3D 31=0D + RULE_vfrVarStoreEfiAttr =3D 32=0D + RULE_vfrStatementVarStoreNameValue =3D 33=0D + RULE_vfrStatementDisableIfFormSet =3D 34=0D + RULE_vfrStatementSuppressIfFormSet =3D 35=0D + RULE_guidSubDefinition =3D 36=0D + RULE_guidDefinition =3D 37=0D + RULE_getStringId =3D 38=0D + RULE_vfrQuestionHeader =3D 39=0D + RULE_vfrQuestionBaseInfo =3D 40=0D + RULE_vfrStatementHeader =3D 41=0D + RULE_questionheaderFlagsField =3D 42=0D + RULE_vfrStorageVarId =3D 43=0D + RULE_vfrConstantValueField =3D 44=0D + RULE_vfrImageTag =3D 45=0D + RULE_vfrLockedTag =3D 46=0D + RULE_vfrStatementStatTag =3D 47=0D + RULE_vfrStatementStatTagList =3D 48=0D + RULE_vfrFormDefinition =3D 49=0D + RULE_vfrForm =3D 50=0D + RULE_vfrFormMapDefinition =3D 51=0D + RULE_vfrStatementImage =3D 52=0D + RULE_vfrStatementLocked =3D 53=0D + RULE_vfrStatementRules =3D 54=0D + RULE_vfrStatementStat =3D 55=0D + RULE_vfrStatementSubTitle =3D 56=0D + RULE_vfrStatementSubTitleComponent =3D 57=0D + RULE_vfrSubtitleFlags =3D 58=0D + RULE_subtitleFlagsField =3D 59=0D + RULE_vfrStatementStaticText =3D 60=0D + RULE_staticTextFlagsField =3D 61=0D + RULE_vfrStatementCrossReference =3D 62=0D + RULE_vfrStatementGoto =3D 63=0D + RULE_vfrGotoFlags =3D 64=0D + RULE_gotoFlagsField =3D 65=0D + RULE_vfrStatementResetButton =3D 66=0D + RULE_vfrStatementQuestions =3D 67=0D + RULE_vfrStatementQuestionTag =3D 68=0D + RULE_vfrStatementInconsistentIf =3D 69=0D + RULE_vfrStatementNoSubmitIf =3D 70=0D + RULE_vfrStatementDisableIfQuest =3D 71=0D + RULE_vfrStatementRefresh =3D 72=0D + RULE_vfrStatementVarstoreDevice =3D 73=0D + RULE_vfrStatementRefreshEvent =3D 74=0D + RULE_vfrStatementWarningIf =3D 75=0D + RULE_vfrStatementQuestionTagList =3D 76=0D + RULE_vfrStatementQuestionOptionTag =3D 77=0D + RULE_flagsField =3D 78=0D + RULE_vfrStatementSuppressIfQuest =3D 79=0D + RULE_vfrStatementGrayOutIfQuest =3D 80=0D + RULE_vfrStatementDefault =3D 81=0D + RULE_vfrStatementValue =3D 82=0D + RULE_vfrStatementOptions =3D 83=0D + RULE_vfrStatementOneOfOption =3D 84=0D + RULE_vfrOneOfOptionFlags =3D 85=0D + RULE_oneofoptionFlagsField =3D 86=0D + RULE_vfrStatementRead =3D 87=0D + RULE_vfrStatementWrite =3D 88=0D + RULE_vfrStatementQuestionOptionList =3D 89=0D + RULE_vfrStatementQuestionOption =3D 90=0D + RULE_vfrStatementBooleanType =3D 91=0D + RULE_vfrStatementCheckBox =3D 92=0D + RULE_vfrCheckBoxFlags =3D 93=0D + RULE_checkboxFlagsField =3D 94=0D + RULE_vfrStatementAction =3D 95=0D + RULE_vfrActionFlags =3D 96=0D + RULE_actionFlagsField =3D 97=0D + RULE_vfrStatementNumericType =3D 98=0D + RULE_vfrStatementNumeric =3D 99=0D + RULE_vfrSetMinMaxStep =3D 100=0D + RULE_vfrNumericFlags =3D 101=0D + RULE_numericFlagsField =3D 102=0D + RULE_vfrStatementOneOf =3D 103=0D + RULE_vfrOneofFlagsField =3D 104=0D + RULE_vfrStatementStringType =3D 105=0D + RULE_vfrStatementString =3D 106=0D + RULE_vfrStringFlagsField =3D 107=0D + RULE_stringFlagsField =3D 108=0D + RULE_vfrStatementPassword =3D 109=0D + RULE_vfrPasswordFlagsField =3D 110=0D + RULE_passwordFlagsField =3D 111=0D + RULE_vfrStatementOrderedList =3D 112=0D + RULE_vfrOrderedListFlags =3D 113=0D + RULE_orderedlistFlagsField =3D 114=0D + RULE_vfrStatementDate =3D 115=0D + RULE_minMaxDateStepDefault =3D 116=0D + RULE_vfrDateFlags =3D 117=0D + RULE_dateFlagsField =3D 118=0D + RULE_vfrStatementTime =3D 119=0D + RULE_minMaxTimeStepDefault =3D 120=0D + RULE_vfrTimeFlags =3D 121=0D + RULE_timeFlagsField =3D 122=0D + RULE_vfrStatementConditional =3D 123=0D + RULE_vfrStatementConditionalNew =3D 124=0D + RULE_vfrStatementSuppressIfStat =3D 125=0D + RULE_vfrStatementGrayOutIfStat =3D 126=0D + RULE_vfrStatementStatList =3D 127=0D + RULE_vfrStatementStatListOld =3D 128=0D + RULE_vfrStatementDisableIfStat =3D 129=0D + RULE_vfrStatementgrayoutIfSuppressIf =3D 130=0D + RULE_vfrStatementsuppressIfGrayOutIf =3D 131=0D + RULE_vfrStatementSuppressIfStatNew =3D 132=0D + RULE_vfrStatementGrayOutIfStatNew =3D 133=0D + RULE_vfrStatementInconsistentIfStat =3D 134=0D + RULE_vfrStatementInvalid =3D 135=0D + RULE_vfrStatementInvalidHidden =3D 136=0D + RULE_vfrStatementInvalidInventory =3D 137=0D + RULE_vfrStatementInvalidSaveRestoreDefaults =3D 138=0D + RULE_vfrStatementLabel =3D 139=0D + RULE_vfrStatementBanner =3D 140=0D + RULE_vfrStatementExtension =3D 141=0D + RULE_vfrExtensionData =3D 142=0D + RULE_vfrStatementModal =3D 143=0D + RULE_vfrModalTag =3D 144=0D + RULE_vfrStatementExpression =3D 145=0D + RULE_vfrStatementExpressionSub =3D 146=0D + RULE_andTerm =3D 147=0D + RULE_bitwiseorTerm =3D 148=0D + RULE_bitwiseandTerm =3D 149=0D + RULE_equalTerm =3D 150=0D + RULE_equalTermSupplementary =3D 151=0D + RULE_compareTerm =3D 152=0D + RULE_compareTermSupplementary =3D 153=0D + RULE_shiftTerm =3D 154=0D + RULE_shiftTermSupplementary =3D 155=0D + RULE_addMinusTerm =3D 156=0D + RULE_addMinusTermSupplementary =3D 157=0D + RULE_multdivmodTerm =3D 158=0D + RULE_multdivmodTermSupplementary =3D 159=0D + RULE_castTerm =3D 160=0D + RULE_atomTerm =3D 161=0D + RULE_vfrExpressionCatenate =3D 162=0D + RULE_vfrExpressionMatch =3D 163=0D + RULE_vfrExpressionMatch2 =3D 164=0D + RULE_vfrExpressionParen =3D 165=0D + RULE_vfrExpressionBuildInFunction =3D 166=0D + RULE_dupExp =3D 167=0D + RULE_vareqvalExp =3D 168=0D + RULE_ideqvalExp =3D 169=0D + RULE_ideqidExp =3D 170=0D + RULE_ideqvallistExp =3D 171=0D + RULE_vfrQuestionDataFieldName =3D 172=0D + RULE_arrayName =3D 173=0D + RULE_questionref1Exp =3D 174=0D + RULE_rulerefExp =3D 175=0D + RULE_stringref1Exp =3D 176=0D + RULE_pushthisExp =3D 177=0D + RULE_securityExp =3D 178=0D + RULE_numericVarStoreType =3D 179=0D + RULE_getExp =3D 180=0D + RULE_vfrExpressionConstant =3D 181=0D + RULE_vfrExpressionUnaryOp =3D 182=0D + RULE_lengthExp =3D 183=0D + RULE_bitwisenotExp =3D 184=0D + RULE_question23refExp =3D 185=0D + RULE_stringref2Exp =3D 186=0D + RULE_toboolExp =3D 187=0D + RULE_tostringExp =3D 188=0D + RULE_unintExp =3D 189=0D + RULE_toupperExp =3D 190=0D + RULE_tolwerExp =3D 191=0D + RULE_setExp =3D 192=0D + RULE_vfrExpressionTernaryOp =3D 193=0D + RULE_conditionalExp =3D 194=0D + RULE_findExp =3D 195=0D + RULE_findFormat =3D 196=0D + RULE_midExp =3D 197=0D + RULE_tokenExp =3D 198=0D + RULE_spanExp =3D 199=0D + RULE_spanFlags =3D 200=0D + RULE_vfrExpressionMap =3D 201=0D +=0D + ruleNames =3D [ "vfrProgram", "pragmaPackShowDef", "pragmaPackStackDe= f",=0D + "pragmaPackNumber", "vfrPragmaPackDefinition", "vfrData= StructDefinition",=0D + "vfrDataUnionDefinition", "vfrDataStructFields", "dataS= tructField64",=0D + "dataStructField32", "dataStructField16", "dataStructFi= eld8",=0D + "dataStructFieldBool", "dataStructFieldString", "dataSt= ructFieldDate",=0D + "dataStructFieldTime", "dataStructFieldRef", "dataStruc= tFieldUser",=0D + "dataStructBitField64", "dataStructBitField32", "dataSt= ructBitField16",=0D + "dataStructBitField8", "vfrFormSetDefinition", "classgu= idDefinition",=0D + "classDefinition", "validClassNames", "subclassDefiniti= on",=0D + "vfrFormSetList", "vfrFormSet", "vfrStatementDefaultSto= re",=0D + "vfrStatementVarStoreLinear", "vfrStatementVarStoreEfi"= ,=0D + "vfrVarStoreEfiAttr", "vfrStatementVarStoreNameValue",= =0D + "vfrStatementDisableIfFormSet", "vfrStatementSuppressIf= FormSet",=0D + "guidSubDefinition", "guidDefinition", "getStringId",=0D + "vfrQuestionHeader", "vfrQuestionBaseInfo", "vfrStateme= ntHeader",=0D + "questionheaderFlagsField", "vfrStorageVarId", "vfrCons= tantValueField",=0D + "vfrImageTag", "vfrLockedTag", "vfrStatementStatTag",=0D + "vfrStatementStatTagList", "vfrFormDefinition", "vfrFor= m",=0D + "vfrFormMapDefinition", "vfrStatementImage", "vfrStatem= entLocked",=0D + "vfrStatementRules", "vfrStatementStat", "vfrStatementS= ubTitle",=0D + "vfrStatementSubTitleComponent", "vfrSubtitleFlags",=0D + "subtitleFlagsField", "vfrStatementStaticText", "static= TextFlagsField",=0D + "vfrStatementCrossReference", "vfrStatementGoto", "vfrG= otoFlags",=0D + "gotoFlagsField", "vfrStatementResetButton", "vfrStatem= entQuestions",=0D + "vfrStatementQuestionTag", "vfrStatementInconsistentIf"= ,=0D + "vfrStatementNoSubmitIf", "vfrStatementDisableIfQuest",= =0D + "vfrStatementRefresh", "vfrStatementVarstoreDevice",=0D + "vfrStatementRefreshEvent", "vfrStatementWarningIf",=0D + "vfrStatementQuestionTagList", "vfrStatementQuestionOpt= ionTag",=0D + "flagsField", "vfrStatementSuppressIfQuest", "vfrStatem= entGrayOutIfQuest",=0D + "vfrStatementDefault", "vfrStatementValue", "vfrStateme= ntOptions",=0D + "vfrStatementOneOfOption", "vfrOneOfOptionFlags", "oneo= foptionFlagsField",=0D + "vfrStatementRead", "vfrStatementWrite", "vfrStatementQ= uestionOptionList",=0D + "vfrStatementQuestionOption", "vfrStatementBooleanType"= ,=0D + "vfrStatementCheckBox", "vfrCheckBoxFlags", "checkboxFl= agsField",=0D + "vfrStatementAction", "vfrActionFlags", "actionFlagsFie= ld",=0D + "vfrStatementNumericType", "vfrStatementNumeric", "vfrS= etMinMaxStep",=0D + "vfrNumericFlags", "numericFlagsField", "vfrStatementOn= eOf",=0D + "vfrOneofFlagsField", "vfrStatementStringType", "vfrSta= tementString",=0D + "vfrStringFlagsField", "stringFlagsField", "vfrStatemen= tPassword",=0D + "vfrPasswordFlagsField", "passwordFlagsField", "vfrStat= ementOrderedList",=0D + "vfrOrderedListFlags", "orderedlistFlagsField", "vfrSta= tementDate",=0D + "minMaxDateStepDefault", "vfrDateFlags", "dateFlagsFiel= d",=0D + "vfrStatementTime", "minMaxTimeStepDefault", "vfrTimeFl= ags",=0D + "timeFlagsField", "vfrStatementConditional", "vfrStatem= entConditionalNew",=0D + "vfrStatementSuppressIfStat", "vfrStatementGrayOutIfSta= t",=0D + "vfrStatementStatList", "vfrStatementStatListOld", "vfr= StatementDisableIfStat",=0D + "vfrStatementgrayoutIfSuppressIf", "vfrStatementsuppres= sIfGrayOutIf",=0D + "vfrStatementSuppressIfStatNew", "vfrStatementGrayOutIf= StatNew",=0D + "vfrStatementInconsistentIfStat", "vfrStatementInvalid"= ,=0D + "vfrStatementInvalidHidden", "vfrStatementInvalidInvent= ory",=0D + "vfrStatementInvalidSaveRestoreDefaults", "vfrStatement= Label",=0D + "vfrStatementBanner", "vfrStatementExtension", "vfrExte= nsionData",=0D + "vfrStatementModal", "vfrModalTag", "vfrStatementExpres= sion",=0D + "vfrStatementExpressionSub", "andTerm", "bitwiseorTerm"= ,=0D + "bitwiseandTerm", "equalTerm", "equalTermSupplementary"= ,=0D + "compareTerm", "compareTermSupplementary", "shiftTerm",= =0D + "shiftTermSupplementary", "addMinusTerm", "addMinusTerm= Supplementary",=0D + "multdivmodTerm", "multdivmodTermSupplementary", "castT= erm",=0D + "atomTerm", "vfrExpressionCatenate", "vfrExpressionMatc= h",=0D + "vfrExpressionMatch2", "vfrExpressionParen", "vfrExpres= sionBuildInFunction",=0D + "dupExp", "vareqvalExp", "ideqvalExp", "ideqidExp", "id= eqvallistExp",=0D + "vfrQuestionDataFieldName", "arrayName", "questionref1E= xp",=0D + "rulerefExp", "stringref1Exp", "pushthisExp", "security= Exp",=0D + "numericVarStoreType", "getExp", "vfrExpressionConstant= ",=0D + "vfrExpressionUnaryOp", "lengthExp", "bitwisenotExp",=0D + "question23refExp", "stringref2Exp", "toboolExp", "tost= ringExp",=0D + "unintExp", "toupperExp", "tolwerExp", "setExp", "vfrEx= pressionTernaryOp",=0D + "conditionalExp", "findExp", "findFormat", "midExp",=0D + "tokenExp", "spanExp", "spanFlags", "vfrExpressionMap" = ]=0D +=0D + EOF =3D Token.EOF=0D + T__0=3D1=0D + T__1=3D2=0D + T__2=3D3=0D + T__3=3D4=0D + T__4=3D5=0D + T__5=3D6=0D + T__6=3D7=0D + T__7=3D8=0D + T__8=3D9=0D + T__9=3D10=0D + T__10=3D11=0D + T__11=3D12=0D + T__12=3D13=0D + T__13=3D14=0D + T__14=3D15=0D + T__15=3D16=0D + Define=3D17=0D + Include=3D18=0D + FormPkgType=3D19=0D + OpenBrace=3D20=0D + CloseBrace=3D21=0D + OpenParen=3D22=0D + CloseParen=3D23=0D + OpenBracket=3D24=0D + CloseBracket=3D25=0D + Dot=3D26=0D + Negative=3D27=0D + Colon=3D28=0D + Slash=3D29=0D + Semicolon=3D30=0D + Comma=3D31=0D + Equal=3D32=0D + NotEqual=3D33=0D + LessEqual=3D34=0D + Less=3D35=0D + GreaterEqual=3D36=0D + Greater=3D37=0D + BitWiseOr=3D38=0D + BitWiseAnd=3D39=0D + DevicePath=3D40=0D + FormSet=3D41=0D + FormSetId=3D42=0D + EndFormSet=3D43=0D + Title=3D44=0D + FormId=3D45=0D + OneOf=3D46=0D + EndOneOf=3D47=0D + Prompt=3D48=0D + OrderedList=3D49=0D + MaxContainers=3D50=0D + EndList=3D51=0D + EndForm=3D52=0D + Form=3D53=0D + FormMap=3D54=0D + MapTitle=3D55=0D + MapGuid=3D56=0D + Subtitle=3D57=0D + EndSubtitle=3D58=0D + Help=3D59=0D + Text=3D60=0D + Option=3D61=0D + FLAGS=3D62=0D + Date=3D63=0D + EndDate=3D64=0D + Year=3D65=0D + Month=3D66=0D + Day=3D67=0D + Time=3D68=0D + EndTime=3D69=0D + Hour=3D70=0D + Minute=3D71=0D + Second=3D72=0D + GrayOutIf=3D73=0D + Label=3D74=0D + Timeout=3D75=0D + Inventory=3D76=0D + NonNvDataMap=3D77=0D + Struct=3D78=0D + Union=3D79=0D + Boolean=3D80=0D + Uint64=3D81=0D + Uint32=3D82=0D + Uint16=3D83=0D + Uint8=3D84=0D + EFI_STRING_ID=3D85=0D + EFI_HII_DATE=3D86=0D + EFI_HII_TIME=3D87=0D + EFI_HII_REF=3D88=0D + Uuid=3D89=0D + CheckBox=3D90=0D + EndCheckBox=3D91=0D + Numeric=3D92=0D + EndNumeric=3D93=0D + Minimum=3D94=0D + Maximum=3D95=0D + Step=3D96=0D + Default=3D97=0D + Password=3D98=0D + EndPassword=3D99=0D + String=3D100=0D + EndString=3D101=0D + MinSize=3D102=0D + MaxSize=3D103=0D + Encoding=3D104=0D + SuppressIf=3D105=0D + DisableIf=3D106=0D + Hidden=3D107=0D + Goto=3D108=0D + FormSetGuid=3D109=0D + InconsistentIf=3D110=0D + WarningIf=3D111=0D + NoSubmitIf=3D112=0D + EndIf=3D113=0D + Key=3D114=0D + DefaultFlag=3D115=0D + ManufacturingFlag=3D116=0D + CheckBoxDefaultFlag=3D117=0D + CheckBoxDefaultMfgFlag=3D118=0D + InteractiveFlag=3D119=0D + NVAccessFlag=3D120=0D + ResetRequiredFlag=3D121=0D + ReconnectRequiredFlag=3D122=0D + LateCheckFlag=3D123=0D + ReadOnlyFlag=3D124=0D + OptionOnlyFlag=3D125=0D + RestStyleFlag=3D126=0D + Class=3D127=0D + Subclass=3D128=0D + ClassGuid=3D129=0D + TypeDef=3D130=0D + Restore=3D131=0D + Save=3D132=0D + Defaults=3D133=0D + Banner=3D134=0D + Align=3D135=0D + Left=3D136=0D + Right=3D137=0D + Center=3D138=0D + Line=3D139=0D + Name=3D140=0D + VarId=3D141=0D + Question=3D142=0D + QuestionId=3D143=0D + Image=3D144=0D + Locked=3D145=0D + Rule=3D146=0D + EndRule=3D147=0D + Value=3D148=0D + Read=3D149=0D + Write=3D150=0D + ResetButton=3D151=0D + EndResetButton=3D152=0D + DefaultStore=3D153=0D + Attribute=3D154=0D + Varstore=3D155=0D + Efivarstore=3D156=0D + VarSize=3D157=0D + NameValueVarStore=3D158=0D + Action=3D159=0D + Config=3D160=0D + EndAction=3D161=0D + Refresh=3D162=0D + Interval=3D163=0D + VarstoreDevice=3D164=0D + GuidOp=3D165=0D + EndGuidOp=3D166=0D + DataType=3D167=0D + Data=3D168=0D + Modal=3D169=0D + ClassNonDevice=3D170=0D + ClassDiskDevice=3D171=0D + ClassVideoDevice=3D172=0D + ClassNetworkDevice=3D173=0D + ClassInputDevice=3D174=0D + ClassOnBoardDevice=3D175=0D + ClassOtherDevice=3D176=0D + SubclassSetupApplication=3D177=0D + SubclassGeneralApplication=3D178=0D + SubclassFrontPage=3D179=0D + SubclassSingleUse=3D180=0D + YearSupppressFlag=3D181=0D + MonthSuppressFlag=3D182=0D + DaySuppressFlag=3D183=0D + HourSupppressFlag=3D184=0D + MinuteSuppressFlag=3D185=0D + SecondSuppressFlag=3D186=0D + StorageNormalFlag=3D187=0D + StorageTimeFlag=3D188=0D + StorageWakeUpFlag=3D189=0D + UniQueFlag=3D190=0D + NoEmptyFlag=3D191=0D + Cond=3D192=0D + Find=3D193=0D + Mid=3D194=0D + Tok=3D195=0D + Span=3D196=0D + Dup=3D197=0D + VarEqVal=3D198=0D + Var=3D199=0D + IdEqVal=3D200=0D + IdEqId=3D201=0D + IdEqValList=3D202=0D + QuestionRef=3D203=0D + RuleRef=3D204=0D + StringRef=3D205=0D + PushThis=3D206=0D + Security=3D207=0D + Get=3D208=0D + TrueSymbol=3D209=0D + FalseSymbol=3D210=0D + One=3D211=0D + Ones=3D212=0D + Zero=3D213=0D + Undefined=3D214=0D + Version=3D215=0D + Length=3D216=0D + AND=3D217=0D + OR=3D218=0D + NOT=3D219=0D + Set=3D220=0D + BitWiseNot=3D221=0D + BoolVal=3D222=0D + StringVal=3D223=0D + UnIntVal=3D224=0D + ToUpper=3D225=0D + ToLower=3D226=0D + Match=3D227=0D + Match2=3D228=0D + Catenate=3D229=0D + QuestionRefVal=3D230=0D + StringRefVal=3D231=0D + Map=3D232=0D + RefreshGuid=3D233=0D + StringToken=3D234=0D + OptionDefault=3D235=0D + OptionDefaultMfg=3D236=0D + NumericSizeOne=3D237=0D + NumericSizeTwo=3D238=0D + NumericSizeFour=3D239=0D + NumericSizeEight=3D240=0D + DisPlayIntDec=3D241=0D + DisPlayUIntDec=3D242=0D + DisPlayUIntHex=3D243=0D + Insensitive=3D244=0D + Sensitive=3D245=0D + LastNonMatch=3D246=0D + FirstNonMatch=3D247=0D + Number=3D248=0D + StringIdentifier=3D249=0D + ComplexDefine=3D250=0D + LineDefinition=3D251=0D + IncludeDefinition=3D252=0D + Whitespace=3D253=0D + Newline=3D254=0D + LineComment=3D255=0D + Extern=3D256=0D +=0D + def __init__(self, input:TokenStream, output:TextIO =3D sys.stdout):=0D + super().__init__(input, output)=0D + self.checkVersion("4.7.2")=0D + self._interp =3D ParserATNSimulator(self, self.atn, self.decisions= ToDFA, self.sharedContextCache)=0D + self._predicates =3D None=0D +=0D +=0D +=0D +=0D + class VfrProgramContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def vfrFormSetDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormSetDefi= nitionContext,0)=0D +=0D +=0D + def vfrPragmaPackDefinition(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrPragma= PackDefinitionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrPragmaP= ackDefinitionContext,i)=0D +=0D +=0D + def vfrDataStructDefinition(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrDataSt= ructDefinitionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrDataStr= uctDefinitionContext,i)=0D +=0D +=0D + def vfrDataUnionDefinition(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrDataUn= ionDefinitionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrDataUni= onDefinitionContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrProgram=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrProgram" ):=0D + return visitor.visitVfrProgram(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrProgram(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrProgramContext(self, self._ctx, se= lf.state)=0D + self.enterRule(localctx, 0, self.RULE_vfrProgram)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 409=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.T__3 or ((((_la - 78)) & ~0x3f)= =3D=3D 0 and ((1 << (_la - 78)) & ((1 << (VfrSyntaxParser.Struct - 78)) | = (1 << (VfrSyntaxParser.Union - 78)) | (1 << (VfrSyntaxParser.TypeDef - 78))= )) !=3D 0):=0D + self.state =3D 407=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,0,self._c= tx)=0D + if la_ =3D=3D 1:=0D + self.state =3D 404=0D + self.vfrPragmaPackDefinition()=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + self.state =3D 405=0D + self.vfrDataStructDefinition()=0D + pass=0D +=0D + elif la_ =3D=3D 3:=0D + self.state =3D 406=0D + self.vfrDataUnionDefinition()=0D + pass=0D +=0D +=0D + self.state =3D 411=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 412=0D + self.vfrFormSetDefinition()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class PragmaPackShowDefContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_pragmaPackShowDef=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitPragmaPackShowDef" ):=0D + return visitor.visitPragmaPackShowDef(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def pragmaPackShowDef(self):=0D +=0D + localctx =3D VfrSyntaxParser.PragmaPackShowDefContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 2, self.RULE_pragmaPackShowDef)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 414=0D + self.match(VfrSyntaxParser.T__0)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class PragmaPackStackDefContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_pragmaPackStackDef=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitPragmaPackStackDef" ):=0D + return visitor.visitPragmaPackStackDef(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def pragmaPackStackDef(self):=0D +=0D + localctx =3D VfrSyntaxParser.PragmaPackStackDefContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 4, self.RULE_pragmaPackStackDef)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 416=0D + _la =3D self._input.LA(1)=0D + if not(_la=3D=3DVfrSyntaxParser.T__1 or _la=3D=3DVfrSyntaxPars= er.T__2):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + self.state =3D 419=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,2,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 417=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 418=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D +=0D +=0D + self.state =3D 423=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 421=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 422=0D + self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class PragmaPackNumberContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_pragmaPackNumber=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitPragmaPackNumber" ):=0D + return visitor.visitPragmaPackNumber(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def pragmaPackNumber(self):=0D +=0D + localctx =3D VfrSyntaxParser.PragmaPackNumberContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 6, self.RULE_pragmaPackNumber)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 426=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Number:=0D + self.state =3D 425=0D + self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrPragmaPackDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def pragmaPackShowDef(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.PragmaPackShow= DefContext,0)=0D +=0D +=0D + def pragmaPackStackDef(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.PragmaPackStac= kDefContext,0)=0D +=0D +=0D + def pragmaPackNumber(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.PragmaPackNumb= erContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrPragmaPackDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrPragmaPackDefinition" ):=0D + return visitor.visitVfrPragmaPackDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrPragmaPackDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrPragmaPackDefinitionContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 8, self.RULE_vfrPragmaPackDefinition)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 428=0D + self.match(VfrSyntaxParser.T__3)=0D + self.state =3D 429=0D + self.match(VfrSyntaxParser.T__4)=0D + self.state =3D 430=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 434=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,5,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 431=0D + self.pragmaPackShowDef()=0D +=0D + elif la_ =3D=3D 2:=0D + self.state =3D 432=0D + self.pragmaPackStackDef()=0D +=0D + elif la_ =3D=3D 3:=0D + self.state =3D 433=0D + self.pragmaPackNumber()=0D +=0D +=0D + self.state =3D 436=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrDataStructDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.N1 =3D None # Token=0D + self.N2 =3D None # Token=0D +=0D + def Struct(self):=0D + return self.getToken(VfrSyntaxParser.Struct, 0)=0D +=0D + def OpenBrace(self):=0D + return self.getToken(VfrSyntaxParser.OpenBrace, 0)=0D +=0D + def vfrDataStructFields(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrDataStructF= ieldsContext,0)=0D +=0D +=0D + def CloseBrace(self):=0D + return self.getToken(VfrSyntaxParser.CloseBrace, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def TypeDef(self):=0D + return self.getToken(VfrSyntaxParser.TypeDef, 0)=0D +=0D + def NonNvDataMap(self):=0D + return self.getToken(VfrSyntaxParser.NonNvDataMap, 0)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrDataStructDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrDataStructDefinition" ):=0D + return visitor.visitVfrDataStructDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrDataStructDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrDataStructDefinitionContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 10, self.RULE_vfrDataStructDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 439=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.TypeDef:=0D + self.state =3D 438=0D + self.match(VfrSyntaxParser.TypeDef)=0D +=0D +=0D + self.state =3D 441=0D + self.match(VfrSyntaxParser.Struct)=0D + self.state =3D 443=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.NonNvDataMap:=0D + self.state =3D 442=0D + self.match(VfrSyntaxParser.NonNvDataMap)=0D +=0D +=0D + self.state =3D 446=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 445=0D + localctx.N1 =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D +=0D +=0D + self.state =3D 448=0D + self.match(VfrSyntaxParser.OpenBrace)=0D + self.state =3D 449=0D + self.vfrDataStructFields(False)=0D + self.state =3D 450=0D + self.match(VfrSyntaxParser.CloseBrace)=0D + self.state =3D 452=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 451=0D + localctx.N2 =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D +=0D +=0D + self.state =3D 454=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrDataUnionDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.N1 =3D None # Token=0D + self.N2 =3D None # Token=0D +=0D + def Union(self):=0D + return self.getToken(VfrSyntaxParser.Union, 0)=0D +=0D + def OpenBrace(self):=0D + return self.getToken(VfrSyntaxParser.OpenBrace, 0)=0D +=0D + def vfrDataStructFields(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrDataStructF= ieldsContext,0)=0D +=0D +=0D + def CloseBrace(self):=0D + return self.getToken(VfrSyntaxParser.CloseBrace, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def TypeDef(self):=0D + return self.getToken(VfrSyntaxParser.TypeDef, 0)=0D +=0D + def NonNvDataMap(self):=0D + return self.getToken(VfrSyntaxParser.NonNvDataMap, 0)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrDataUnionDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrDataUnionDefinition" ):=0D + return visitor.visitVfrDataUnionDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrDataUnionDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrDataUnionDefinitionContext(self, s= elf._ctx, self.state)=0D + self.enterRule(localctx, 12, self.RULE_vfrDataUnionDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 457=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.TypeDef:=0D + self.state =3D 456=0D + self.match(VfrSyntaxParser.TypeDef)=0D +=0D +=0D + self.state =3D 459=0D + self.match(VfrSyntaxParser.Union)=0D + self.state =3D 461=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.NonNvDataMap:=0D + self.state =3D 460=0D + self.match(VfrSyntaxParser.NonNvDataMap)=0D +=0D +=0D + self.state =3D 464=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 463=0D + localctx.N1 =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D +=0D +=0D + self.state =3D 466=0D + self.match(VfrSyntaxParser.OpenBrace)=0D + self.state =3D 467=0D + self.vfrDataStructFields(True)=0D + self.state =3D 468=0D + self.match(VfrSyntaxParser.CloseBrace)=0D + self.state =3D 470=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 469=0D + localctx.N2 =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D +=0D +=0D + self.state =3D 472=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrDataStructFieldsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def dataStructField64(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tField64Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= Field64Context,i)=0D +=0D +=0D + def dataStructField32(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tField32Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= Field32Context,i)=0D +=0D +=0D + def dataStructField16(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tField16Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= Field16Context,i)=0D +=0D +=0D + def dataStructField8(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tField8Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= Field8Context,i)=0D +=0D +=0D + def dataStructFieldBool(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tFieldBoolContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= FieldBoolContext,i)=0D +=0D +=0D + def dataStructFieldString(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tFieldStringContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= FieldStringContext,i)=0D +=0D +=0D + def dataStructFieldDate(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tFieldDateContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= FieldDateContext,i)=0D +=0D +=0D + def dataStructFieldTime(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tFieldTimeContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= FieldTimeContext,i)=0D +=0D +=0D + def dataStructFieldRef(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tFieldRefContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= FieldRefContext,i)=0D +=0D +=0D + def dataStructFieldUser(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tFieldUserContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= FieldUserContext,i)=0D +=0D +=0D + def dataStructBitField64(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tBitField64Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= BitField64Context,i)=0D +=0D +=0D + def dataStructBitField32(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tBitField32Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= BitField32Context,i)=0D +=0D +=0D + def dataStructBitField16(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tBitField16Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= BitField16Context,i)=0D +=0D +=0D + def dataStructBitField8(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DataStruc= tBitField8Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DataStruct= BitField8Context,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrDataStructFields=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrDataStructFields" ):=0D + return visitor.visitVfrDataStructFields(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrDataStructFields(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.VfrDataStructFieldsContext(self, self= ._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 14, self.RULE_vfrDataStructFields)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 490=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 80)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 80)) = & ((1 << (VfrSyntaxParser.Boolean - 80)) | (1 << (VfrSyntaxParser.Uint64 - = 80)) | (1 << (VfrSyntaxParser.Uint32 - 80)) | (1 << (VfrSyntaxParser.Uint16= - 80)) | (1 << (VfrSyntaxParser.Uint8 - 80)) | (1 << (VfrSyntaxParser.EFI_= STRING_ID - 80)) | (1 << (VfrSyntaxParser.EFI_HII_DATE - 80)) | (1 << (VfrS= yntaxParser.EFI_HII_TIME - 80)) | (1 << (VfrSyntaxParser.EFI_HII_REF - 80))= )) !=3D 0) or _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 488=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,14,self._= ctx)=0D + if la_ =3D=3D 1:=0D + self.state =3D 474=0D + self.dataStructField64(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + self.state =3D 475=0D + self.dataStructField32(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 3:=0D + self.state =3D 476=0D + self.dataStructField16(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 4:=0D + self.state =3D 477=0D + self.dataStructField8(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 5:=0D + self.state =3D 478=0D + self.dataStructFieldBool(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 6:=0D + self.state =3D 479=0D + self.dataStructFieldString(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 7:=0D + self.state =3D 480=0D + self.dataStructFieldDate(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 8:=0D + self.state =3D 481=0D + self.dataStructFieldTime(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 9:=0D + self.state =3D 482=0D + self.dataStructFieldRef(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 10:=0D + self.state =3D 483=0D + self.dataStructFieldUser(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 11:=0D + self.state =3D 484=0D + self.dataStructBitField64(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 12:=0D + self.state =3D 485=0D + self.dataStructBitField32(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 13:=0D + self.state =3D 486=0D + self.dataStructBitField16(FieldInUnion)=0D + pass=0D +=0D + elif la_ =3D=3D 14:=0D + self.state =3D 487=0D + self.dataStructBitField8(FieldInUnion)=0D + pass=0D +=0D +=0D + self.state =3D 492=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructField64Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Uint64(self):=0D + return self.getToken(VfrSyntaxParser.Uint64, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructField64=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructField64" ):=0D + return visitor.visitDataStructField64(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructField64(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructField64Context(self, self._= ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 16, self.RULE_dataStructField64)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 493=0D + self.match(VfrSyntaxParser.Uint64)=0D + self.state =3D 494=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 498=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 495=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 496=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 497=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 500=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructField32Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Uint32(self):=0D + return self.getToken(VfrSyntaxParser.Uint32, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructField32=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructField32" ):=0D + return visitor.visitDataStructField32(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructField32(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructField32Context(self, self._= ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 18, self.RULE_dataStructField32)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 502=0D + self.match(VfrSyntaxParser.Uint32)=0D + self.state =3D 503=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 507=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 504=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 505=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 506=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 509=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructField16Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Uint16(self):=0D + return self.getToken(VfrSyntaxParser.Uint16, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructField16=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructField16" ):=0D + return visitor.visitDataStructField16(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructField16(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructField16Context(self, self._= ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 20, self.RULE_dataStructField16)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 511=0D + self.match(VfrSyntaxParser.Uint16)=0D + self.state =3D 512=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 516=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 513=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 514=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 515=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 518=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructField8Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Uint8(self):=0D + return self.getToken(VfrSyntaxParser.Uint8, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructField8=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructField8" ):=0D + return visitor.visitDataStructField8(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructField8(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructField8Context(self, self._c= tx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 22, self.RULE_dataStructField8)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 520=0D + self.match(VfrSyntaxParser.Uint8)=0D + self.state =3D 521=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 525=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 522=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 523=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 524=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 527=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructFieldBoolContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Boolean(self):=0D + return self.getToken(VfrSyntaxParser.Boolean, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructFieldBool=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructFieldBool" ):=0D + return visitor.visitDataStructFieldBool(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructFieldBool(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructFieldBoolContext(self, self= ._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 24, self.RULE_dataStructFieldBool)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 529=0D + self.match(VfrSyntaxParser.Boolean)=0D + self.state =3D 530=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 534=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 531=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 532=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 533=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 536=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructFieldStringContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def EFI_STRING_ID(self):=0D + return self.getToken(VfrSyntaxParser.EFI_STRING_ID, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructFieldString=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructFieldString" ):=0D + return visitor.visitDataStructFieldString(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructFieldString(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructFieldStringContext(self, se= lf._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 26, self.RULE_dataStructFieldString)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 538=0D + self.match(VfrSyntaxParser.EFI_STRING_ID)=0D + self.state =3D 539=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 543=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 540=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 541=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 542=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 545=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructFieldDateContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def EFI_HII_DATE(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_DATE, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructFieldDate=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructFieldDate" ):=0D + return visitor.visitDataStructFieldDate(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructFieldDate(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructFieldDateContext(self, self= ._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 28, self.RULE_dataStructFieldDate)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 547=0D + self.match(VfrSyntaxParser.EFI_HII_DATE)=0D + self.state =3D 548=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 552=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 549=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 550=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 551=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 554=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructFieldTimeContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def EFI_HII_TIME(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_TIME, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructFieldTime=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructFieldTime" ):=0D + return visitor.visitDataStructFieldTime(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructFieldTime(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructFieldTimeContext(self, self= ._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 30, self.RULE_dataStructFieldTime)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 556=0D + self.match(VfrSyntaxParser.EFI_HII_TIME)=0D + self.state =3D 557=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 561=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 558=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 559=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 560=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 563=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructFieldRefContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def EFI_HII_REF(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_REF, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructFieldRef=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructFieldRef" ):=0D + return visitor.visitDataStructFieldRef(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructFieldRef(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructFieldRefContext(self, self.= _ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 32, self.RULE_dataStructFieldRef)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 565=0D + self.match(VfrSyntaxParser.EFI_HII_REF)=0D + self.state =3D 566=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 570=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 567=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 568=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 569=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 572=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructFieldUserContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.T =3D None # Token=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructFieldUser=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructFieldUser" ):=0D + return visitor.visitDataStructFieldUser(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructFieldUser(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructFieldUserContext(self, self= ._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 34, self.RULE_dataStructFieldUser)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 574=0D + localctx.T =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 575=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 579=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 576=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 577=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 578=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 581=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructBitField64Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.D =3D None # Token=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Colon(self):=0D + return self.getToken(VfrSyntaxParser.Colon, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Uint64(self):=0D + return self.getToken(VfrSyntaxParser.Uint64, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructBitField64=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructBitField64" ):=0D + return visitor.visitDataStructBitField64(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructBitField64(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructBitField64Context(self, sel= f._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 36, self.RULE_dataStructBitField64)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 583=0D + localctx.D =3D self.match(VfrSyntaxParser.Uint64)=0D + self.state =3D 585=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 584=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier= )=0D +=0D +=0D + self.state =3D 587=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 588=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 589=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructBitField32Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.D =3D None # Token=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Colon(self):=0D + return self.getToken(VfrSyntaxParser.Colon, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Uint32(self):=0D + return self.getToken(VfrSyntaxParser.Uint32, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructBitField32=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructBitField32" ):=0D + return visitor.visitDataStructBitField32(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructBitField32(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructBitField32Context(self, sel= f._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 38, self.RULE_dataStructBitField32)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 591=0D + localctx.D =3D self.match(VfrSyntaxParser.Uint32)=0D + self.state =3D 593=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 592=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier= )=0D +=0D +=0D + self.state =3D 595=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 596=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 597=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructBitField16Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.D =3D None # Token=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Colon(self):=0D + return self.getToken(VfrSyntaxParser.Colon, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Uint16(self):=0D + return self.getToken(VfrSyntaxParser.Uint16, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructBitField16=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructBitField16" ):=0D + return visitor.visitDataStructBitField16(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructBitField16(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructBitField16Context(self, sel= f._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 40, self.RULE_dataStructBitField16)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 599=0D + localctx.D =3D self.match(VfrSyntaxParser.Uint16)=0D + self.state =3D 601=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 600=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier= )=0D +=0D +=0D + self.state =3D 603=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 604=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 605=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DataStructBitField8Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, FieldInUnion=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.FieldInUnion =3D None=0D + self.D =3D None # Token=0D + self.N =3D None # Token=0D + self.FieldInUnion =3D FieldInUnion=0D +=0D + def Colon(self):=0D + return self.getToken(VfrSyntaxParser.Colon, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Uint8(self):=0D + return self.getToken(VfrSyntaxParser.Uint8, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dataStructBitField8=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDataStructBitField8" ):=0D + return visitor.visitDataStructBitField8(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dataStructBitField8(self, FieldInUnion):=0D +=0D + localctx =3D VfrSyntaxParser.DataStructBitField8Context(self, self= ._ctx, self.state, FieldInUnion)=0D + self.enterRule(localctx, 42, self.RULE_dataStructBitField8)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 607=0D + localctx.D =3D self.match(VfrSyntaxParser.Uint8)=0D + self.state =3D 609=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.StringIdentifier:=0D + self.state =3D 608=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier= )=0D +=0D +=0D + self.state =3D 611=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 612=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 613=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrFormSetDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_FORM_SET_OP)=0D +=0D + def FormSet(self):=0D + return self.getToken(VfrSyntaxParser.FormSet, 0)=0D +=0D + def Uuid(self):=0D + return self.getToken(VfrSyntaxParser.Uuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Title(self):=0D + return self.getToken(VfrSyntaxParser.Title, 0)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Help(self):=0D + return self.getToken(VfrSyntaxParser.Help, 0)=0D +=0D + def vfrFormSetList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormSetList= Context,0)=0D +=0D +=0D + def EndFormSet(self):=0D + return self.getToken(VfrSyntaxParser.EndFormSet, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def ClassGuid(self):=0D + return self.getToken(VfrSyntaxParser.ClassGuid, 0)=0D +=0D + def classguidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ClassguidDefin= itionContext,0)=0D +=0D +=0D + def Class(self):=0D + return self.getToken(VfrSyntaxParser.Class, 0)=0D +=0D + def classDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ClassDefinitio= nContext,0)=0D +=0D +=0D + def Subclass(self):=0D + return self.getToken(VfrSyntaxParser.Subclass, 0)=0D +=0D + def subclassDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.SubclassDefini= tionContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrFormSetDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrFormSetDefinition" ):=0D + return visitor.visitVfrFormSetDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrFormSetDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrFormSetDefinitionContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 44, self.RULE_vfrFormSetDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 615=0D + self.match(VfrSyntaxParser.FormSet)=0D + self.state =3D 616=0D + self.match(VfrSyntaxParser.Uuid)=0D + self.state =3D 617=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 618=0D + self.guidDefinition()=0D + self.state =3D 619=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 620=0D + self.match(VfrSyntaxParser.Title)=0D + self.state =3D 621=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 622=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 623=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 624=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 625=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 626=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 627=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 628=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 629=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 630=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 631=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 632=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 633=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 639=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.ClassGuid:=0D + self.state =3D 634=0D + self.match(VfrSyntaxParser.ClassGuid)=0D + self.state =3D 635=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 636=0D + self.classguidDefinition(localctx.Node)=0D + self.state =3D 637=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 646=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Class:=0D + self.state =3D 641=0D + self.match(VfrSyntaxParser.Class)=0D + self.state =3D 642=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 643=0D + self.classDefinition()=0D + self.state =3D 644=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 653=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Subclass:=0D + self.state =3D 648=0D + self.match(VfrSyntaxParser.Subclass)=0D + self.state =3D 649=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 650=0D + self.subclassDefinition()=0D + self.state =3D 651=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 655=0D + self.vfrFormSetList(localctx.Node)=0D + self.state =3D 656=0D + self.match(VfrSyntaxParser.EndFormSet)=0D + self.state =3D 657=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ClassguidDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Node=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D + self.GuidList =3D []=0D + self.Node =3D Node=0D +=0D + def guidDefinition(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.GuidDefin= itionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefini= tionContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_classguidDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitClassguidDefinition" ):=0D + return visitor.visitClassguidDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def classguidDefinition(self, Node):=0D +=0D + localctx =3D VfrSyntaxParser.ClassguidDefinitionContext(self, self= ._ctx, self.state, Node)=0D + self.enterRule(localctx, 46, self.RULE_classguidDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 659=0D + self.guidDefinition()=0D + self.state =3D 662=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,33,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 660=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 661=0D + self.guidDefinition()=0D +=0D +=0D + self.state =3D 666=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,34,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 664=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 665=0D + self.guidDefinition()=0D +=0D +=0D + self.state =3D 670=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 668=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 669=0D + self.guidDefinition()=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ClassDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_GUID_OP)=0D +=0D + def validClassNames(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.ValidClas= sNamesContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.ValidClass= NamesContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_classDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitClassDefinition" ):=0D + return visitor.visitClassDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def classDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.ClassDefinitionContext(self, self._ct= x, self.state)=0D + self.enterRule(localctx, 48, self.RULE_classDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 672=0D + self.validClassNames()=0D + self.state =3D 677=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 673=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 674=0D + self.validClassNames()=0D + self.state =3D 679=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ValidClassNamesContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ClassName =3D 0=0D +=0D + def ClassNonDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassNonDevice, 0)=0D +=0D + def ClassDiskDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassDiskDevice, 0)=0D +=0D + def ClassVideoDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassVideoDevice, 0)=0D +=0D + def ClassNetworkDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassNetworkDevice, 0)=0D +=0D + def ClassInputDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassInputDevice, 0)=0D +=0D + def ClassOnBoardDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassOnBoardDevice, 0)=0D +=0D + def ClassOtherDevice(self):=0D + return self.getToken(VfrSyntaxParser.ClassOtherDevice, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_validClassNames=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitValidClassNames" ):=0D + return visitor.visitValidClassNames(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def validClassNames(self):=0D +=0D + localctx =3D VfrSyntaxParser.ValidClassNamesContext(self, self._ct= x, self.state)=0D + self.enterRule(localctx, 50, self.RULE_validClassNames)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 680=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 170)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 170= )) & ((1 << (VfrSyntaxParser.ClassNonDevice - 170)) | (1 << (VfrSyntaxParse= r.ClassDiskDevice - 170)) | (1 << (VfrSyntaxParser.ClassVideoDevice - 170))= | (1 << (VfrSyntaxParser.ClassNetworkDevice - 170)) | (1 << (VfrSyntaxPars= er.ClassInputDevice - 170)) | (1 << (VfrSyntaxParser.ClassOnBoardDevice - 1= 70)) | (1 << (VfrSyntaxParser.ClassOtherDevice - 170)))) !=3D 0) or _la=3D= =3DVfrSyntaxParser.Number):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class SubclassDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_GUID_OP)=0D +=0D + def SubclassSetupApplication(self):=0D + return self.getToken(VfrSyntaxParser.SubclassSetupApplication,= 0)=0D +=0D + def SubclassGeneralApplication(self):=0D + return self.getToken(VfrSyntaxParser.SubclassGeneralApplicatio= n, 0)=0D +=0D + def SubclassFrontPage(self):=0D + return self.getToken(VfrSyntaxParser.SubclassFrontPage, 0)=0D +=0D + def SubclassSingleUse(self):=0D + return self.getToken(VfrSyntaxParser.SubclassSingleUse, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_subclassDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitSubclassDefinition" ):=0D + return visitor.visitSubclassDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def subclassDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.SubclassDefinitionContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 52, self.RULE_subclassDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 682=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 177)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 177= )) & ((1 << (VfrSyntaxParser.SubclassSetupApplication - 177)) | (1 << (VfrS= yntaxParser.SubclassGeneralApplication - 177)) | (1 << (VfrSyntaxParser.Sub= classFrontPage - 177)) | (1 << (VfrSyntaxParser.SubclassSingleUse - 177))))= !=3D 0) or _la=3D=3DVfrSyntaxParser.Number):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrFormSetListContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Node=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D + self.Node =3D Node=0D +=0D + def vfrFormSet(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrFormSe= tContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormSet= Context,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrFormSetList=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrFormSetList" ):=0D + return visitor.visitVfrFormSetList(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrFormSetList(self, Node):=0D +=0D + localctx =3D VfrSyntaxParser.VfrFormSetListContext(self, self._ctx= , self.state, Node)=0D + self.enterRule(localctx, 54, self.RULE_vfrFormSetList)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 687=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Form or _la=3D=3DVfrSyntaxParse= r.FormMap or ((((_la - 105)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 105)) & ((= 1 << (VfrSyntaxParser.SuppressIf - 105)) | (1 << (VfrSyntaxParser.DisableIf= - 105)) | (1 << (VfrSyntaxParser.Image - 105)) | (1 << (VfrSyntaxParser.De= faultStore - 105)) | (1 << (VfrSyntaxParser.Varstore - 105)) | (1 << (VfrSy= ntaxParser.Efivarstore - 105)) | (1 << (VfrSyntaxParser.NameValueVarStore -= 105)) | (1 << (VfrSyntaxParser.GuidOp - 105)))) !=3D 0):=0D + self.state =3D 684=0D + self.vfrFormSet()=0D + self.state =3D 689=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrFormSetContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrFormDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormDefinit= ionContext,0)=0D +=0D +=0D + def vfrFormMapDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormMapDefi= nitionContext,0)=0D +=0D +=0D + def vfrStatementImage(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIm= ageContext,0)=0D +=0D +=0D + def vfrStatementVarStoreLinear(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementVa= rStoreLinearContext,0)=0D +=0D +=0D + def vfrStatementVarStoreEfi(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementVa= rStoreEfiContext,0)=0D +=0D +=0D + def vfrStatementVarStoreNameValue(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementVa= rStoreNameValueContext,0)=0D +=0D +=0D + def vfrStatementDefaultStore(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDe= faultStoreContext,0)=0D +=0D +=0D + def vfrStatementDisableIfFormSet(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDi= sableIfFormSetContext,0)=0D +=0D +=0D + def vfrStatementSuppressIfFormSet(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSu= ppressIfFormSetContext,0)=0D +=0D +=0D + def vfrStatementExtension(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= tensionContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrFormSet=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrFormSet" ):=0D + return visitor.visitVfrFormSet(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrFormSet(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrFormSetContext(self, self._ctx, se= lf.state)=0D + self.enterRule(localctx, 56, self.RULE_vfrFormSet)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 700=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Form]:=0D + self.state =3D 690=0D + self.vfrFormDefinition()=0D + pass=0D + elif token in [VfrSyntaxParser.FormMap]:=0D + self.state =3D 691=0D + self.vfrFormMapDefinition()=0D + pass=0D + elif token in [VfrSyntaxParser.Image]:=0D + self.state =3D 692=0D + self.vfrStatementImage()=0D + pass=0D + elif token in [VfrSyntaxParser.Varstore]:=0D + self.state =3D 693=0D + self.vfrStatementVarStoreLinear()=0D + pass=0D + elif token in [VfrSyntaxParser.Efivarstore]:=0D + self.state =3D 694=0D + self.vfrStatementVarStoreEfi()=0D + pass=0D + elif token in [VfrSyntaxParser.NameValueVarStore]:=0D + self.state =3D 695=0D + self.vfrStatementVarStoreNameValue()=0D + pass=0D + elif token in [VfrSyntaxParser.DefaultStore]:=0D + self.state =3D 696=0D + self.vfrStatementDefaultStore()=0D + pass=0D + elif token in [VfrSyntaxParser.DisableIf]:=0D + self.state =3D 697=0D + self.vfrStatementDisableIfFormSet()=0D + pass=0D + elif token in [VfrSyntaxParser.SuppressIf]:=0D + self.state =3D 698=0D + self.vfrStatementSuppressIfFormSet()=0D + pass=0D + elif token in [VfrSyntaxParser.GuidOp]:=0D + self.state =3D 699=0D + self.vfrStatementExtension()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementDefaultStoreContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_DEFAULTSTORE_OP)=0D + self.N =3D None # Token=0D + self.S =3D None # Token=0D + self.A =3D None # Token=0D +=0D + def DefaultStore(self):=0D + return self.getToken(VfrSyntaxParser.DefaultStore, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Attribute(self):=0D + return self.getToken(VfrSyntaxParser.Attribute, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementDefaultStore=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementDefaultStore" ):=0D + return visitor.visitVfrStatementDefaultStore(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementDefaultStore(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementDefaultStoreContext(self,= self._ctx, self.state)=0D + self.enterRule(localctx, 58, self.RULE_vfrStatementDefaultStore)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 702=0D + self.match(VfrSyntaxParser.DefaultStore)=0D + self.state =3D 703=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 704=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 705=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 706=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 707=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 708=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 709=0D + localctx.S =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 710=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 715=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 711=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 712=0D + self.match(VfrSyntaxParser.Attribute)=0D + self.state =3D 713=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 714=0D + localctx.A =3D self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + self.state =3D 717=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementVarStoreLinearContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_VARSTORE_OP)=0D + self.TN =3D None # Token=0D + self.ID =3D None # Token=0D + self.SN =3D None # Token=0D +=0D + def Varstore(self):=0D + return self.getToken(VfrSyntaxParser.Varstore, 0)=0D +=0D + def Name(self):=0D + return self.getToken(VfrSyntaxParser.Name, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Uuid(self):=0D + return self.getToken(VfrSyntaxParser.Uuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def Uint8(self):=0D + return self.getToken(VfrSyntaxParser.Uint8, 0)=0D +=0D + def Uint16(self):=0D + return self.getToken(VfrSyntaxParser.Uint16, 0)=0D +=0D + def Uint32(self):=0D + return self.getToken(VfrSyntaxParser.Uint32, 0)=0D +=0D + def Uint64(self):=0D + return self.getToken(VfrSyntaxParser.Uint64, 0)=0D +=0D + def EFI_HII_DATE(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_DATE, 0)=0D +=0D + def EFI_HII_TIME(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_TIME, 0)=0D +=0D + def EFI_HII_REF(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_REF, 0)=0D +=0D + def VarId(self):=0D + return self.getToken(VfrSyntaxParser.VarId, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementVarStoreLinear=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementVarStoreLinear" ):=0D + return visitor.visitVfrStatementVarStoreLinear(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementVarStoreLinear(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementVarStoreLinearContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 60, self.RULE_vfrStatementVarStoreLinear)= =0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 719=0D + self.match(VfrSyntaxParser.Varstore)=0D + self.state =3D 736=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.StringIdentifier]:=0D + self.state =3D 720=0D + localctx.TN =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D + self.state =3D 721=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint8]:=0D + self.state =3D 722=0D + self.match(VfrSyntaxParser.Uint8)=0D + self.state =3D 723=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint16]:=0D + self.state =3D 724=0D + self.match(VfrSyntaxParser.Uint16)=0D + self.state =3D 725=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint32]:=0D + self.state =3D 726=0D + self.match(VfrSyntaxParser.Uint32)=0D + self.state =3D 727=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint64]:=0D + self.state =3D 728=0D + self.match(VfrSyntaxParser.Uint64)=0D + self.state =3D 729=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_DATE]:=0D + self.state =3D 730=0D + self.match(VfrSyntaxParser.EFI_HII_DATE)=0D + self.state =3D 731=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_TIME]:=0D + self.state =3D 732=0D + self.match(VfrSyntaxParser.EFI_HII_TIME)=0D + self.state =3D 733=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_REF]:=0D + self.state =3D 734=0D + self.match(VfrSyntaxParser.EFI_HII_REF)=0D + self.state =3D 735=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 742=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.VarId:=0D + self.state =3D 738=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 739=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 740=0D + localctx.ID =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 741=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 744=0D + self.match(VfrSyntaxParser.Name)=0D + self.state =3D 745=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 746=0D + localctx.SN =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 747=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 748=0D + self.match(VfrSyntaxParser.Uuid)=0D + self.state =3D 749=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 750=0D + self.guidDefinition()=0D + self.state =3D 751=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementVarStoreEfiContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_VARSTORE_EFI_OP)=0D + self.TN =3D None # Token=0D + self.ID =3D None # Token=0D + self.SN =3D None # Token=0D + self.VN =3D None # Token=0D + self.N =3D None # Token=0D +=0D + def Efivarstore(self):=0D + return self.getToken(VfrSyntaxParser.Efivarstore, 0)=0D +=0D + def Attribute(self):=0D + return self.getToken(VfrSyntaxParser.Attribute, 0)=0D +=0D + def vfrVarStoreEfiAttr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrVarSto= reEfiAttrContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrVarStor= eEfiAttrContext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Uuid(self):=0D + return self.getToken(VfrSyntaxParser.Uuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Uint8(self):=0D + return self.getToken(VfrSyntaxParser.Uint8, 0)=0D +=0D + def Uint16(self):=0D + return self.getToken(VfrSyntaxParser.Uint16, 0)=0D +=0D + def Uint32(self):=0D + return self.getToken(VfrSyntaxParser.Uint32, 0)=0D +=0D + def Uint64(self):=0D + return self.getToken(VfrSyntaxParser.Uint64, 0)=0D +=0D + def EFI_HII_DATE(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_DATE, 0)=0D +=0D + def EFI_HII_TIME(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_TIME, 0)=0D +=0D + def EFI_HII_REF(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_REF, 0)=0D +=0D + def Name(self):=0D + return self.getToken(VfrSyntaxParser.Name, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def VarSize(self):=0D + return self.getToken(VfrSyntaxParser.VarSize, 0)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def VarId(self):=0D + return self.getToken(VfrSyntaxParser.VarId, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementVarStoreEfi=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementVarStoreEfi" ):=0D + return visitor.visitVfrStatementVarStoreEfi(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementVarStoreEfi(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementVarStoreEfiContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 62, self.RULE_vfrStatementVarStoreEfi)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 753=0D + self.match(VfrSyntaxParser.Efivarstore)=0D + self.state =3D 770=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.StringIdentifier]:=0D + self.state =3D 754=0D + localctx.TN =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D + self.state =3D 755=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint8]:=0D + self.state =3D 756=0D + self.match(VfrSyntaxParser.Uint8)=0D + self.state =3D 757=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint16]:=0D + self.state =3D 758=0D + self.match(VfrSyntaxParser.Uint16)=0D + self.state =3D 759=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint32]:=0D + self.state =3D 760=0D + self.match(VfrSyntaxParser.Uint32)=0D + self.state =3D 761=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Uint64]:=0D + self.state =3D 762=0D + self.match(VfrSyntaxParser.Uint64)=0D + self.state =3D 763=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_DATE]:=0D + self.state =3D 764=0D + self.match(VfrSyntaxParser.EFI_HII_DATE)=0D + self.state =3D 765=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_TIME]:=0D + self.state =3D 766=0D + self.match(VfrSyntaxParser.EFI_HII_TIME)=0D + self.state =3D 767=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_REF]:=0D + self.state =3D 768=0D + self.match(VfrSyntaxParser.EFI_HII_REF)=0D + self.state =3D 769=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 776=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.VarId:=0D + self.state =3D 772=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 773=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 774=0D + localctx.ID =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 775=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 778=0D + self.match(VfrSyntaxParser.Attribute)=0D + self.state =3D 779=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 780=0D + self.vfrVarStoreEfiAttr()=0D + self.state =3D 785=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 781=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 782=0D + self.vfrVarStoreEfiAttr()=0D + self.state =3D 787=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 788=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 804=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,45,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 789=0D + self.match(VfrSyntaxParser.Name)=0D + self.state =3D 790=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 791=0D + localctx.SN =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D + self.state =3D 792=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + self.state =3D 793=0D + self.match(VfrSyntaxParser.Name)=0D + self.state =3D 794=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 795=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 796=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 797=0D + localctx.VN =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 798=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 799=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 800=0D + self.match(VfrSyntaxParser.VarSize)=0D + self.state =3D 801=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 802=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 803=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D +=0D +=0D + self.state =3D 806=0D + self.match(VfrSyntaxParser.Uuid)=0D + self.state =3D 807=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 808=0D + self.guidDefinition()=0D + self.state =3D 809=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrVarStoreEfiAttrContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Attr =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrVarStoreEfiAttr=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrVarStoreEfiAttr" ):=0D + return visitor.visitVfrVarStoreEfiAttr(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrVarStoreEfiAttr(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrVarStoreEfiAttrContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 64, self.RULE_vfrVarStoreEfiAttr)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 811=0D + self.match(VfrSyntaxParser.Number)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementVarStoreNameValueContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_VARSTORE_NAME_VALUE_OP)=0D + self.SN =3D None # Token=0D + self.ID =3D None # Token=0D +=0D + def NameValueVarStore(self):=0D + return self.getToken(VfrSyntaxParser.NameValueVarStore, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Uuid(self):=0D + return self.getToken(VfrSyntaxParser.Uuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def VarId(self):=0D + return self.getToken(VfrSyntaxParser.VarId, 0)=0D +=0D + def Name(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Name)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Name, i)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementVarStoreNameValue=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementVarStoreNameValue" ):=0D + return visitor.visitVfrStatementVarStoreNameValue(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementVarStoreNameValue(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementVarStoreNameValueContext(= self, self._ctx, self.state)=0D + self.enterRule(localctx, 66, self.RULE_vfrStatementVarStoreNameVal= ue)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 813=0D + self.match(VfrSyntaxParser.NameValueVarStore)=0D + self.state =3D 814=0D + localctx.SN =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 815=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 820=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.VarId:=0D + self.state =3D 816=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 817=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 818=0D + localctx.ID =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 819=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 829=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while True:=0D + self.state =3D 822=0D + self.match(VfrSyntaxParser.Name)=0D + self.state =3D 823=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 824=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 825=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 826=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 827=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 828=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 831=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if not (_la=3D=3DVfrSyntaxParser.Name):=0D + break=0D +=0D + self.state =3D 833=0D + self.match(VfrSyntaxParser.Uuid)=0D + self.state =3D 834=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 835=0D + self.guidDefinition()=0D + self.state =3D 836=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementDisableIfFormSetContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_DISABLE_IF_OP)=0D +=0D + def DisableIf(self):=0D + return self.getToken(VfrSyntaxParser.DisableIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def vfrFormSetList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormSetList= Context,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementDisableIfFormSet=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementDisableIfFormSet" ):=0D + return visitor.visitVfrStatementDisableIfFormSet(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementDisableIfFormSet(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementDisableIfFormSetContext(s= elf, self._ctx, self.state)=0D + self.enterRule(localctx, 68, self.RULE_vfrStatementDisableIfFormSe= t)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 838=0D + self.match(VfrSyntaxParser.DisableIf)=0D + self.state =3D 839=0D + self.vfrStatementExpression()=0D + self.state =3D 840=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 841=0D + self.vfrFormSetList(localctx.Node)=0D + self.state =3D 842=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 843=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementSuppressIfFormSetContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)=0D +=0D + def SuppressIf(self):=0D + return self.getToken(VfrSyntaxParser.SuppressIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def vfrFormSetList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormSetList= Context,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementSuppressIfFormSet=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementSuppressIfFormSet" ):=0D + return visitor.visitVfrStatementSuppressIfFormSet(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementSuppressIfFormSet(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementSuppressIfFormSetContext(= self, self._ctx, self.state)=0D + self.enterRule(localctx, 70, self.RULE_vfrStatementSuppressIfFormS= et)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 845=0D + self.match(VfrSyntaxParser.SuppressIf)=0D + self.state =3D 846=0D + self.vfrStatementExpression()=0D + self.state =3D 847=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 848=0D + self.vfrFormSetList(localctx.Node)=0D + self.state =3D 849=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 850=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class GuidSubDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Guid=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Guid =3D None=0D + self.Guid =3D Guid=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_guidSubDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitGuidSubDefinition" ):=0D + return visitor.visitGuidSubDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def guidSubDefinition(self, Guid):=0D +=0D + localctx =3D VfrSyntaxParser.GuidSubDefinitionContext(self, self._= ctx, self.state, Guid)=0D + self.enterRule(localctx, 72, self.RULE_guidSubDefinition)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 852=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 853=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 854=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 855=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 856=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 857=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 858=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 859=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 860=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 861=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 862=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 863=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 864=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 865=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 866=0D + self.match(VfrSyntaxParser.Number)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class GuidDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode()=0D + self.Guid =3D EFI_GUID()=0D +=0D + def OpenBrace(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenBrace)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenBrace, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def CloseBrace(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseBrace)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseBrace, i)=0D +=0D + def guidSubDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidSubDefinit= ionContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_guidDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitGuidDefinition" ):=0D + return visitor.visitGuidDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def guidDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.GuidDefinitionContext(self, self._ctx= , self.state)=0D + self.enterRule(localctx, 74, self.RULE_guidDefinition)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 868=0D + self.match(VfrSyntaxParser.OpenBrace)=0D + self.state =3D 869=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 870=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 871=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 872=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 873=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 874=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 880=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.OpenBrace]:=0D + self.state =3D 875=0D + self.match(VfrSyntaxParser.OpenBrace)=0D + self.state =3D 876=0D + self.guidSubDefinition(localctx.Guid)=0D + self.state =3D 877=0D + self.match(VfrSyntaxParser.CloseBrace)=0D + pass=0D + elif token in [VfrSyntaxParser.Number]:=0D + self.state =3D 879=0D + self.guidSubDefinition(localctx.Guid)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 882=0D + self.match(VfrSyntaxParser.CloseBrace)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class GetStringIdContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.StringId =3D ''=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_getStringId=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitGetStringId" ):=0D + return visitor.visitGetStringId(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def getStringId(self):=0D +=0D + localctx =3D VfrSyntaxParser.GetStringIdContext(self, self._ctx, s= elf.state)=0D + self.enterRule(localctx, 76, self.RULE_getStringId)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 884=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 885=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 886=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 887=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrQuestionHeaderContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, OpObj=3DNone, QType=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.OpObj =3D None=0D + self.QType =3D None=0D + self.OpObj =3D OpObj=0D + self.QType =3D QType=0D +=0D + def vfrQuestionBaseInfo(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionBas= eInfoContext,0)=0D +=0D +=0D + def vfrStatementHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementHe= aderContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrQuestionHeader=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrQuestionHeader" ):=0D + return visitor.visitVfrQuestionHeader(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrQuestionHeader(self, OpObj, QType):=0D +=0D + localctx =3D VfrSyntaxParser.VfrQuestionHeaderContext(self, self._= ctx, self.state, OpObj, QType)=0D + self.enterRule(localctx, 78, self.RULE_vfrQuestionHeader)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 889=0D + self.vfrQuestionBaseInfo(OpObj, QType)=0D + self.state =3D 890=0D + self.vfrStatementHeader(OpObj)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrQuestionBaseInfoContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, OpObj=3DNone, QType=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.OpObj =3D None=0D + self.QType =3D None=0D + self.BaseInfo =3D EFI_VARSTORE_INFO()=0D + self.QId =3D EFI_QUESTION_ID_INVALID=0D + self.CheckFlag =3D True=0D + self.QN =3D None # Token=0D + self.ID =3D None # Token=0D + self.OpObj =3D OpObj=0D + self.QType =3D QType=0D +=0D + def Name(self):=0D + return self.getToken(VfrSyntaxParser.Name, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def VarId(self):=0D + return self.getToken(VfrSyntaxParser.VarId, 0)=0D +=0D + def vfrStorageVarId(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStorageVarI= dContext,0)=0D +=0D +=0D + def QuestionId(self):=0D + return self.getToken(VfrSyntaxParser.QuestionId, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrQuestionBaseInfo=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrQuestionBaseInfo" ):=0D + return visitor.visitVfrQuestionBaseInfo(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrQuestionBaseInfo(self, OpObj, QType):=0D +=0D + localctx =3D VfrSyntaxParser.VfrQuestionBaseInfoContext(self, self= ._ctx, self.state, OpObj, QType)=0D + self.enterRule(localctx, 80, self.RULE_vfrQuestionBaseInfo)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 896=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Name:=0D + self.state =3D 892=0D + self.match(VfrSyntaxParser.Name)=0D + self.state =3D 893=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 894=0D + localctx.QN =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D + self.state =3D 895=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 903=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.VarId:=0D + self.state =3D 898=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 899=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 900=0D + self.vfrStorageVarId(localctx.BaseInfo, localctx.CheckFlag= )=0D + self.state =3D 901=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 909=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.QuestionId:=0D + self.state =3D 905=0D + self.match(VfrSyntaxParser.QuestionId)=0D + self.state =3D 906=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 907=0D + localctx.ID =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 908=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementHeaderContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, OpObj=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.OpObj =3D None=0D + self.OpObj =3D OpObj=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def Help(self):=0D + return self.getToken(VfrSyntaxParser.Help, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementHeader=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementHeader" ):=0D + return visitor.visitVfrStatementHeader(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementHeader(self, OpObj):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementHeaderContext(self, self.= _ctx, self.state, OpObj)=0D + self.enterRule(localctx, 82, self.RULE_vfrStatementHeader)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 911=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 912=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 913=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 914=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 915=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 916=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 917=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 918=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 919=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 920=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 921=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 922=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 923=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class QuestionheaderFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.QHFlag =3D 0=0D + self.O =3D None # Token=0D + self.N =3D None # Token=0D + self.L =3D None # Token=0D +=0D + def ReadOnlyFlag(self):=0D + return self.getToken(VfrSyntaxParser.ReadOnlyFlag, 0)=0D +=0D + def InteractiveFlag(self):=0D + return self.getToken(VfrSyntaxParser.InteractiveFlag, 0)=0D +=0D + def ResetRequiredFlag(self):=0D + return self.getToken(VfrSyntaxParser.ResetRequiredFlag, 0)=0D +=0D + def RestStyleFlag(self):=0D + return self.getToken(VfrSyntaxParser.RestStyleFlag, 0)=0D +=0D + def ReconnectRequiredFlag(self):=0D + return self.getToken(VfrSyntaxParser.ReconnectRequiredFlag, 0)= =0D +=0D + def OptionOnlyFlag(self):=0D + return self.getToken(VfrSyntaxParser.OptionOnlyFlag, 0)=0D +=0D + def NVAccessFlag(self):=0D + return self.getToken(VfrSyntaxParser.NVAccessFlag, 0)=0D +=0D + def LateCheckFlag(self):=0D + return self.getToken(VfrSyntaxParser.LateCheckFlag, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_questionheaderFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitQuestionheaderFlagsField" ):=0D + return visitor.visitQuestionheaderFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def questionheaderFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.QuestionheaderFlagsFieldContext(self,= self._ctx, self.state)=0D + self.enterRule(localctx, 84, self.RULE_questionheaderFlagsField)=0D + try:=0D + self.state =3D 933=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.ReadOnlyFlag]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 925=0D + self.match(VfrSyntaxParser.ReadOnlyFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 926=0D + self.match(VfrSyntaxParser.InteractiveFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ResetRequiredFlag]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 927=0D + self.match(VfrSyntaxParser.ResetRequiredFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 928=0D + self.match(VfrSyntaxParser.RestStyleFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ReconnectRequiredFlag]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 929=0D + self.match(VfrSyntaxParser.ReconnectRequiredFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.OptionOnlyFlag]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 930=0D + localctx.O =3D self.match(VfrSyntaxParser.OptionOnlyFlag)= =0D + pass=0D + elif token in [VfrSyntaxParser.NVAccessFlag]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 931=0D + localctx.N =3D self.match(VfrSyntaxParser.NVAccessFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.LateCheckFlag]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 932=0D + localctx.L =3D self.match(VfrSyntaxParser.LateCheckFlag)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStorageVarIdContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, BaseInfo=3DNone, CheckFlag=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.BaseInfo =3D None=0D + self.CheckFlag =3D None=0D + self.VarIdStr =3D ''=0D + self.BaseInfo =3D BaseInfo=0D + self.CheckFlag =3D CheckFlag=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStorageVarId=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.BaseInfo =3D ctx.BaseInfo=0D + self.CheckFlag =3D ctx.CheckFlag=0D + self.VarIdStr =3D ctx.VarIdStr=0D +=0D +=0D +=0D + class VfrStorageVarIdRule1Context(VfrStorageVarIdContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.VfrStorageVarIdContext=0D + super().__init__(parser)=0D + self.SN1 =3D None # Token=0D + self.I =3D None # Token=0D + self.copyFrom(ctx)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStorageVarIdRule1" ):=0D + return visitor.visitVfrStorageVarIdRule1(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class VfrStorageVarIdRule2Context(VfrStorageVarIdContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.VfrStorageVarIdContext=0D + super().__init__(parser)=0D + self.SN2 =3D None # Token=0D + self.copyFrom(ctx)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D + def Dot(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Dot)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Dot, i)=0D + def arrayName(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.ArrayName= Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.ArrayNameC= ontext,i)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStorageVarIdRule2" ):=0D + return visitor.visitVfrStorageVarIdRule2(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def vfrStorageVarId(self, BaseInfo, CheckFlag):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStorageVarIdContext(self, self._ct= x, self.state, BaseInfo, CheckFlag)=0D + self.enterRule(localctx, 86, self.RULE_vfrStorageVarId)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.state =3D 947=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,54,self._ctx)= =0D + if la_ =3D=3D 1:=0D + localctx =3D VfrSyntaxParser.VfrStorageVarIdRule1Context(s= elf, localctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 935=0D + localctx.SN1 =3D self.match(VfrSyntaxParser.StringIdentifi= er)=0D + self.state =3D 936=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 937=0D + localctx.I =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 938=0D + self.match(VfrSyntaxParser.CloseBracket)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + localctx =3D VfrSyntaxParser.VfrStorageVarIdRule2Context(s= elf, localctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 939=0D + localctx.SN2 =3D self.match(VfrSyntaxParser.StringIdentifi= er)=0D + self.state =3D 944=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Dot:=0D + self.state =3D 940=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 941=0D + self.arrayName()=0D + self.state =3D 946=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + pass=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrConstantValueFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Value =3D EFI_IFR_TYPE_VALUE()=0D + self.ValueList =3D []=0D + self.ListType =3D False=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Negative(self):=0D + return self.getToken(VfrSyntaxParser.Negative, 0)=0D +=0D + def TrueSymbol(self):=0D + return self.getToken(VfrSyntaxParser.TrueSymbol, 0)=0D +=0D + def FalseSymbol(self):=0D + return self.getToken(VfrSyntaxParser.FalseSymbol, 0)=0D +=0D + def One(self):=0D + return self.getToken(VfrSyntaxParser.One, 0)=0D +=0D + def Ones(self):=0D + return self.getToken(VfrSyntaxParser.Ones, 0)=0D +=0D + def Zero(self):=0D + return self.getToken(VfrSyntaxParser.Zero, 0)=0D +=0D + def Colon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Colon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Colon, i)=0D +=0D + def Slash(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Slash)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Slash, i)=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def OpenBrace(self):=0D + return self.getToken(VfrSyntaxParser.OpenBrace, 0)=0D +=0D + def CloseBrace(self):=0D + return self.getToken(VfrSyntaxParser.CloseBrace, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrConstantValueField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrConstantValueField" ):=0D + return visitor.visitVfrConstantValueField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrConstantValueField(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrConstantValueFieldContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 88, self.RULE_vfrConstantValueField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.state =3D 993=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,57,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 950=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Negative:=0D + self.state =3D 949=0D + self.match(VfrSyntaxParser.Negative)=0D +=0D +=0D + self.state =3D 952=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 953=0D + self.match(VfrSyntaxParser.TrueSymbol)=0D + pass=0D +=0D + elif la_ =3D=3D 3:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 954=0D + self.match(VfrSyntaxParser.FalseSymbol)=0D + pass=0D +=0D + elif la_ =3D=3D 4:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 955=0D + self.match(VfrSyntaxParser.One)=0D + pass=0D +=0D + elif la_ =3D=3D 5:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 956=0D + self.match(VfrSyntaxParser.Ones)=0D + pass=0D +=0D + elif la_ =3D=3D 6:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 957=0D + self.match(VfrSyntaxParser.Zero)=0D + pass=0D +=0D + elif la_ =3D=3D 7:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 958=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 959=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 960=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 961=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 962=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D +=0D + elif la_ =3D=3D 8:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 963=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 964=0D + self.match(VfrSyntaxParser.Slash)=0D + self.state =3D 965=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 966=0D + self.match(VfrSyntaxParser.Slash)=0D + self.state =3D 967=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D +=0D + elif la_ =3D=3D 9:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 968=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 969=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 970=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 971=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 972=0D + self.guidDefinition()=0D + self.state =3D 973=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 974=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 975=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 976=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 977=0D + self.match(VfrSyntaxParser.CloseParen)=0D + pass=0D +=0D + elif la_ =3D=3D 10:=0D + self.enterOuterAlt(localctx, 10)=0D + self.state =3D 979=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 980=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 981=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 982=0D + self.match(VfrSyntaxParser.CloseParen)=0D + pass=0D +=0D + elif la_ =3D=3D 11:=0D + self.enterOuterAlt(localctx, 11)=0D + self.state =3D 983=0D + self.match(VfrSyntaxParser.OpenBrace)=0D + self.state =3D 984=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 989=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 985=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 986=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 991=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 992=0D + self.match(VfrSyntaxParser.CloseBrace)=0D + pass=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrImageTagContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_IMAGE_OP)=0D +=0D + def Image(self):=0D + return self.getToken(VfrSyntaxParser.Image, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrImageTag=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrImageTag" ):=0D + return visitor.visitVfrImageTag(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrImageTag(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrImageTagContext(self, self._ctx, s= elf.state)=0D + self.enterRule(localctx, 90, self.RULE_vfrImageTag)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 995=0D + self.match(VfrSyntaxParser.Image)=0D + self.state =3D 996=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 997=0D + self.match(VfrSyntaxParser.T__6)=0D + self.state =3D 998=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 999=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1000=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrLockedTagContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_LOCKED_OP)=0D +=0D + def Locked(self):=0D + return self.getToken(VfrSyntaxParser.Locked, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrLockedTag=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrLockedTag" ):=0D + return visitor.visitVfrLockedTag(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrLockedTag(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrLockedTagContext(self, self._ctx, = self.state)=0D + self.enterRule(localctx, 92, self.RULE_vfrLockedTag)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1002=0D + self.match(VfrSyntaxParser.Locked)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStatTagContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrImageTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrImageTagCon= text,0)=0D +=0D +=0D + def vfrLockedTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrLockedTagCo= ntext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStatTag=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStatTag" ):=0D + return visitor.visitVfrStatementStatTag(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStatTag(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStatTagContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 94, self.RULE_vfrStatementStatTag)=0D + try:=0D + self.state =3D 1006=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Image]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1004=0D + self.vfrImageTag()=0D + pass=0D + elif token in [VfrSyntaxParser.Locked]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1005=0D + self.vfrLockedTag()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStatTagListContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Node=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D + self.Node =3D Node=0D +=0D + def vfrStatementStatTag(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entStatTagContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntStatTagContext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStatTagList=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStatTagList" ):=0D + return visitor.visitVfrStatementStatTagList(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStatTagList(self, Node):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStatTagListContext(self, = self._ctx, self.state, Node)=0D + self.enterRule(localctx, 96, self.RULE_vfrStatementStatTagList)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1008=0D + self.vfrStatementStatTag()=0D + self.state =3D 1013=0D + self._errHandler.sync(self)=0D + _alt =3D self._interp.adaptivePredict(self._input,59,self._ctx= )=0D + while _alt!=3D2 and _alt!=3DATN.INVALID_ALT_NUMBER:=0D + if _alt=3D=3D1:=0D + self.state =3D 1009=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1010=0D + self.vfrStatementStatTag()=0D + self.state =3D 1015=0D + self._errHandler.sync(self)=0D + _alt =3D self._interp.adaptivePredict(self._input,59,self.= _ctx)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrFormDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_FORM_OP)=0D +=0D + def Form(self):=0D + return self.getToken(VfrSyntaxParser.Form, 0)=0D +=0D + def FormId(self):=0D + return self.getToken(VfrSyntaxParser.FormId, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def Title(self):=0D + return self.getToken(VfrSyntaxParser.Title, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def EndForm(self):=0D + return self.getToken(VfrSyntaxParser.EndForm, 0)=0D +=0D + def vfrForm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrFormCo= ntext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormCon= text,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrFormDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrFormDefinition" ):=0D + return visitor.visitVfrFormDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrFormDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrFormDefinitionContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 98, self.RULE_vfrFormDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1016=0D + self.match(VfrSyntaxParser.Form)=0D + self.state =3D 1017=0D + self.match(VfrSyntaxParser.FormId)=0D + self.state =3D 1018=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1019=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1020=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1021=0D + self.match(VfrSyntaxParser.Title)=0D + self.state =3D 1022=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1023=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1024=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1025=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1026=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1027=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 1031=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 46)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 46)) = & ((1 << (VfrSyntaxParser.OneOf - 46)) | (1 << (VfrSyntaxParser.OrderedList= - 46)) | (1 << (VfrSyntaxParser.Subtitle - 46)) | (1 << (VfrSyntaxParser.T= ext - 46)) | (1 << (VfrSyntaxParser.Date - 46)) | (1 << (VfrSyntaxParser.Ti= me - 46)) | (1 << (VfrSyntaxParser.GrayOutIf - 46)) | (1 << (VfrSyntaxParse= r.Label - 46)) | (1 << (VfrSyntaxParser.Inventory - 46)) | (1 << (VfrSyntax= Parser.CheckBox - 46)) | (1 << (VfrSyntaxParser.Numeric - 46)) | (1 << (Vfr= SyntaxParser.Default - 46)) | (1 << (VfrSyntaxParser.Password - 46)) | (1 <= < (VfrSyntaxParser.String - 46)) | (1 << (VfrSyntaxParser.SuppressIf - 46))= | (1 << (VfrSyntaxParser.DisableIf - 46)) | (1 << (VfrSyntaxParser.Hidden = - 46)) | (1 << (VfrSyntaxParser.Goto - 46)))) !=3D 0) or ((((_la - 110)) & = ~0x3f) =3D=3D 0 and ((1 << (_la - 110)) & ((1 << (VfrSyntaxParser.Inconsist= entIf - 110)) | (1 << (VfrSyntaxParser.Restore - 110)) | (1 << (VfrSyntaxPa= rser.Save - 110)) | (1 << (VfrSyntaxParser.Banner - 110)) | (1 << (VfrSynta= xParser.Image - 110)) | (1 << (VfrSyntaxParser.Locked - 110)) | (1 << (VfrS= yntaxParser.Rule - 110)) | (1 << (VfrSyntaxParser.ResetButton - 110)) | (1 = << (VfrSyntaxParser.Action - 110)) | (1 << (VfrSyntaxParser.GuidOp - 110)) = | (1 << (VfrSyntaxParser.Modal - 110)))) !=3D 0) or _la=3D=3DVfrSyntaxParse= r.RefreshGuid:=0D + self.state =3D 1028=0D + self.vfrForm()=0D + self.state =3D 1033=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1034=0D + self.match(VfrSyntaxParser.EndForm)=0D + self.state =3D 1035=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrFormContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementImage(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIm= ageContext,0)=0D +=0D +=0D + def vfrStatementLocked(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementLo= ckedContext,0)=0D +=0D +=0D + def vfrStatementRules(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementRu= lesContext,0)=0D +=0D +=0D + def vfrStatementDefault(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDe= faultContext,0)=0D +=0D +=0D + def vfrStatementStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atContext,0)=0D +=0D +=0D + def vfrStatementQuestions(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionsContext,0)=0D +=0D +=0D + def vfrStatementConditional(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementCo= nditionalContext,0)=0D +=0D +=0D + def vfrStatementLabel(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementLa= belContext,0)=0D +=0D +=0D + def vfrStatementBanner(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementBa= nnerContext,0)=0D +=0D +=0D + def vfrStatementInvalid(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= validContext,0)=0D +=0D +=0D + def vfrStatementExtension(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= tensionContext,0)=0D +=0D +=0D + def vfrStatementModal(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementMo= dalContext,0)=0D +=0D +=0D + def vfrStatementRefreshEvent(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementRe= freshEventContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrForm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrForm" ):=0D + return visitor.visitVfrForm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrForm(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrFormContext(self, self._ctx, self.= state)=0D + self.enterRule(localctx, 100, self.RULE_vfrForm)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1052=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Image]:=0D + self.state =3D 1037=0D + self.vfrStatementImage()=0D + pass=0D + elif token in [VfrSyntaxParser.Locked]:=0D + self.state =3D 1038=0D + self.vfrStatementLocked()=0D + pass=0D + elif token in [VfrSyntaxParser.Rule]:=0D + self.state =3D 1039=0D + self.vfrStatementRules()=0D + pass=0D + elif token in [VfrSyntaxParser.Default]:=0D + self.state =3D 1040=0D + self.vfrStatementDefault()=0D + pass=0D + elif token in [VfrSyntaxParser.Subtitle, VfrSyntaxParser.Text,= VfrSyntaxParser.Goto, VfrSyntaxParser.ResetButton]:=0D + self.state =3D 1041=0D + self.vfrStatementStat()=0D + pass=0D + elif token in [VfrSyntaxParser.OneOf, VfrSyntaxParser.OrderedL= ist, VfrSyntaxParser.Date, VfrSyntaxParser.Time, VfrSyntaxParser.CheckBox, = VfrSyntaxParser.Numeric, VfrSyntaxParser.Password, VfrSyntaxParser.String, = VfrSyntaxParser.Action]:=0D + self.state =3D 1042=0D + self.vfrStatementQuestions()=0D + pass=0D + elif token in [VfrSyntaxParser.GrayOutIf, VfrSyntaxParser.Supp= ressIf, VfrSyntaxParser.DisableIf, VfrSyntaxParser.InconsistentIf]:=0D + self.state =3D 1043=0D + self.vfrStatementConditional()=0D + pass=0D + elif token in [VfrSyntaxParser.Label]:=0D + self.state =3D 1044=0D + self.vfrStatementLabel()=0D + pass=0D + elif token in [VfrSyntaxParser.Banner]:=0D + self.state =3D 1045=0D + self.vfrStatementBanner()=0D + pass=0D + elif token in [VfrSyntaxParser.Inventory, VfrSyntaxParser.Hidd= en, VfrSyntaxParser.Restore, VfrSyntaxParser.Save]:=0D + self.state =3D 1046=0D + self.vfrStatementInvalid()=0D + pass=0D + elif token in [VfrSyntaxParser.GuidOp]:=0D + self.state =3D 1047=0D + self.vfrStatementExtension()=0D + pass=0D + elif token in [VfrSyntaxParser.Modal]:=0D + self.state =3D 1048=0D + self.vfrStatementModal()=0D + pass=0D + elif token in [VfrSyntaxParser.RefreshGuid]:=0D + self.state =3D 1049=0D + self.vfrStatementRefreshEvent()=0D + self.state =3D 1050=0D + self.match(VfrSyntaxParser.Semicolon)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrFormMapDefinitionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_FORM_MAP_OP)=0D + self.S1 =3D None # Token=0D +=0D + def FormMap(self):=0D + return self.getToken(VfrSyntaxParser.FormMap, 0)=0D +=0D + def FormId(self):=0D + return self.getToken(VfrSyntaxParser.FormId, 0)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def EndForm(self):=0D + return self.getToken(VfrSyntaxParser.EndForm, 0)=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def MapTitle(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.MapTitle)=0D + else:=0D + return self.getToken(VfrSyntaxParser.MapTitle, i)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def MapGuid(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.MapGuid)=0D + else:=0D + return self.getToken(VfrSyntaxParser.MapGuid, i)=0D +=0D + def guidDefinition(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.GuidDefin= itionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefini= tionContext,i)=0D +=0D +=0D + def vfrForm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrFormCo= ntext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrFormCon= text,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrFormMapDefinition=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrFormMapDefinition" ):=0D + return visitor.visitVfrFormMapDefinition(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrFormMapDefinition(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrFormMapDefinitionContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 102, self.RULE_vfrFormMapDefinition)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1054=0D + self.match(VfrSyntaxParser.FormMap)=0D + self.state =3D 1055=0D + self.match(VfrSyntaxParser.FormId)=0D + self.state =3D 1056=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1057=0D + localctx.S1 =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1058=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1073=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.MapTitle:=0D + self.state =3D 1059=0D + self.match(VfrSyntaxParser.MapTitle)=0D + self.state =3D 1060=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1061=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1062=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1063=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1064=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1065=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 1066=0D + self.match(VfrSyntaxParser.MapGuid)=0D + self.state =3D 1067=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1068=0D + self.guidDefinition()=0D + self.state =3D 1069=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 1075=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1079=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 46)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 46)) = & ((1 << (VfrSyntaxParser.OneOf - 46)) | (1 << (VfrSyntaxParser.OrderedList= - 46)) | (1 << (VfrSyntaxParser.Subtitle - 46)) | (1 << (VfrSyntaxParser.T= ext - 46)) | (1 << (VfrSyntaxParser.Date - 46)) | (1 << (VfrSyntaxParser.Ti= me - 46)) | (1 << (VfrSyntaxParser.GrayOutIf - 46)) | (1 << (VfrSyntaxParse= r.Label - 46)) | (1 << (VfrSyntaxParser.Inventory - 46)) | (1 << (VfrSyntax= Parser.CheckBox - 46)) | (1 << (VfrSyntaxParser.Numeric - 46)) | (1 << (Vfr= SyntaxParser.Default - 46)) | (1 << (VfrSyntaxParser.Password - 46)) | (1 <= < (VfrSyntaxParser.String - 46)) | (1 << (VfrSyntaxParser.SuppressIf - 46))= | (1 << (VfrSyntaxParser.DisableIf - 46)) | (1 << (VfrSyntaxParser.Hidden = - 46)) | (1 << (VfrSyntaxParser.Goto - 46)))) !=3D 0) or ((((_la - 110)) & = ~0x3f) =3D=3D 0 and ((1 << (_la - 110)) & ((1 << (VfrSyntaxParser.Inconsist= entIf - 110)) | (1 << (VfrSyntaxParser.Restore - 110)) | (1 << (VfrSyntaxPa= rser.Save - 110)) | (1 << (VfrSyntaxParser.Banner - 110)) | (1 << (VfrSynta= xParser.Image - 110)) | (1 << (VfrSyntaxParser.Locked - 110)) | (1 << (VfrS= yntaxParser.Rule - 110)) | (1 << (VfrSyntaxParser.ResetButton - 110)) | (1 = << (VfrSyntaxParser.Action - 110)) | (1 << (VfrSyntaxParser.GuidOp - 110)) = | (1 << (VfrSyntaxParser.Modal - 110)))) !=3D 0) or _la=3D=3DVfrSyntaxParse= r.RefreshGuid:=0D + self.state =3D 1076=0D + self.vfrForm()=0D + self.state =3D 1081=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1082=0D + self.match(VfrSyntaxParser.EndForm)=0D + self.state =3D 1083=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementImageContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrImageTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrImageTagCon= text,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementImage=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementImage" ):=0D + return visitor.visitVfrStatementImage(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementImage(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementImageContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 104, self.RULE_vfrStatementImage)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1085=0D + self.vfrImageTag()=0D + self.state =3D 1086=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementLockedContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrLockedTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrLockedTagCo= ntext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementLocked=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementLocked" ):=0D + return visitor.visitVfrStatementLocked(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementLocked(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementLockedContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 106, self.RULE_vfrStatementLocked)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1088=0D + self.vfrLockedTag()=0D + self.state =3D 1089=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementRulesContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_RULE_OP)=0D +=0D + def Rule(self):=0D + return self.getToken(VfrSyntaxParser.Rule, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def EndRule(self):=0D + return self.getToken(VfrSyntaxParser.EndRule, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementRules=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementRules" ):=0D + return visitor.visitVfrStatementRules(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementRules(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementRulesContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 108, self.RULE_vfrStatementRules)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1091=0D + self.match(VfrSyntaxParser.Rule)=0D + self.state =3D 1092=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1093=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1094=0D + self.vfrStatementExpression()=0D + self.state =3D 1095=0D + self.match(VfrSyntaxParser.EndRule)=0D + self.state =3D 1096=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStatContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementSubTitle(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSu= bTitleContext,0)=0D +=0D +=0D + def vfrStatementStaticText(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= aticTextContext,0)=0D +=0D +=0D + def vfrStatementCrossReference(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementCr= ossReferenceContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStat=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStat" ):=0D + return visitor.visitVfrStatementStat(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStat(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStatContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 110, self.RULE_vfrStatementStat)=0D + try:=0D + self.state =3D 1101=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Subtitle]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1098=0D + self.vfrStatementSubTitle()=0D + pass=0D + elif token in [VfrSyntaxParser.Text]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1099=0D + self.vfrStatementStaticText()=0D + pass=0D + elif token in [VfrSyntaxParser.Goto, VfrSyntaxParser.ResetButt= on]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1100=0D + self.vfrStatementCrossReference()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementSubTitleContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_SUBTITLE_OP)=0D + self.OpObj =3D CIfrSubtitle()=0D +=0D + def Subtitle(self):=0D + return self.getToken(VfrSyntaxParser.Subtitle, 0)=0D +=0D + def Text(self):=0D + return self.getToken(VfrSyntaxParser.Text, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def EndSubtitle(self):=0D + return self.getToken(VfrSyntaxParser.EndSubtitle, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def vfrSubtitleFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrSubtitleFla= gsContext,0)=0D +=0D +=0D + def vfrStatementStatTagList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atTagListContext,0)=0D +=0D +=0D + def vfrStatementSubTitleComponent(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entSubTitleComponentContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntSubTitleComponentContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementSubTitle=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementSubTitle" ):=0D + return visitor.visitVfrStatementSubTitle(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementSubTitle(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementSubTitleContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 112, self.RULE_vfrStatementSubTitle)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1103=0D + self.match(VfrSyntaxParser.Subtitle)=0D + self.state =3D 1104=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 1105=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1106=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1107=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1108=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1109=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1114=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,65,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1110=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1111=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1112=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1113=0D + self.vfrSubtitleFlags()=0D +=0D +=0D + self.state =3D 1136=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,70,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1118=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 1116=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1117=0D + self.vfrStatementStatTagList(localctx.Node)=0D +=0D +=0D + self.state =3D 1120=0D + self.match(VfrSyntaxParser.Semicolon)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + self.state =3D 1123=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,67,self._= ctx)=0D + if la_ =3D=3D 1:=0D + self.state =3D 1121=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1122=0D + self.vfrStatementStatTagList(localctx.Node)=0D +=0D +=0D + self.state =3D 1132=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 1125=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1129=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 46)) & ~0x3f) =3D=3D 0 and ((1 << (_la= - 46)) & ((1 << (VfrSyntaxParser.OneOf - 46)) | (1 << (VfrSyntaxParser.Ord= eredList - 46)) | (1 << (VfrSyntaxParser.Subtitle - 46)) | (1 << (VfrSyntax= Parser.Text - 46)) | (1 << (VfrSyntaxParser.Date - 46)) | (1 << (VfrSyntaxP= arser.Time - 46)) | (1 << (VfrSyntaxParser.CheckBox - 46)) | (1 << (VfrSynt= axParser.Numeric - 46)) | (1 << (VfrSyntaxParser.Password - 46)) | (1 << (V= frSyntaxParser.String - 46)) | (1 << (VfrSyntaxParser.Goto - 46)))) !=3D 0)= or _la=3D=3DVfrSyntaxParser.ResetButton or _la=3D=3DVfrSyntaxParser.Action= :=0D + self.state =3D 1126=0D + self.vfrStatementSubTitleComponent()=0D + self.state =3D 1131=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D +=0D +=0D + self.state =3D 1134=0D + self.match(VfrSyntaxParser.EndSubtitle)=0D + self.state =3D 1135=0D + self.match(VfrSyntaxParser.Semicolon)=0D + pass=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementSubTitleComponentContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atContext,0)=0D +=0D +=0D + def vfrStatementQuestions(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionsContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementSubTitleComponent=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementSubTitleComponent" ):=0D + return visitor.visitVfrStatementSubTitleComponent(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementSubTitleComponent(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementSubTitleComponentContext(= self, self._ctx, self.state)=0D + self.enterRule(localctx, 114, self.RULE_vfrStatementSubTitleCompon= ent)=0D + try:=0D + self.state =3D 1140=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Subtitle, VfrSyntaxParser.Text, V= frSyntaxParser.Goto, VfrSyntaxParser.ResetButton]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1138=0D + self.vfrStatementStat()=0D + pass=0D + elif token in [VfrSyntaxParser.OneOf, VfrSyntaxParser.OrderedL= ist, VfrSyntaxParser.Date, VfrSyntaxParser.Time, VfrSyntaxParser.CheckBox, = VfrSyntaxParser.Numeric, VfrSyntaxParser.Password, VfrSyntaxParser.String, = VfrSyntaxParser.Action]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1139=0D + self.vfrStatementQuestions()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrSubtitleFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.SubFlags =3D 0=0D +=0D + def subtitleFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.SubtitleF= lagsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.SubtitleFl= agsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrSubtitleFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrSubtitleFlags" ):=0D + return visitor.visitVfrSubtitleFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrSubtitleFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrSubtitleFlagsContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 116, self.RULE_vfrSubtitleFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1142=0D + self.subtitleFlagsField()=0D + self.state =3D 1147=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1143=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1144=0D + self.subtitleFlagsField()=0D + self.state =3D 1149=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class SubtitleFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Flag =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_subtitleFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitSubtitleFlagsField" ):=0D + return visitor.visitSubtitleFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def subtitleFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.SubtitleFlagsFieldContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 118, self.RULE_subtitleFlagsField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1150=0D + _la =3D self._input.LA(1)=0D + if not(_la=3D=3DVfrSyntaxParser.T__7 or _la=3D=3DVfrSyntaxPars= er.Number):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStaticTextContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_TEXT_OP)=0D + self.S1 =3D None # Token=0D + self.S2 =3D None # Token=0D + self.S3 =3D None # Token=0D + self.F =3D None # Token=0D + self.S4 =3D None # Token=0D +=0D + def Text(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Text)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Text, i)=0D +=0D + def Help(self):=0D + return self.getToken(VfrSyntaxParser.Help, 0)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def staticTextFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.StaticTex= tFlagsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.StaticText= FlagsFieldContext,i)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def vfrStatementStatTagList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atTagListContext,0)=0D +=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStaticText=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStaticText" ):=0D + return visitor.visitVfrStatementStaticText(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStaticText(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStaticTextContext(self, s= elf._ctx, self.state)=0D + self.enterRule(localctx, 120, self.RULE_vfrStatementStaticText)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1152=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 1153=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 1154=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1155=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1156=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1157=0D + localctx.S1 =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1158=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1159=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1160=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 1161=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1162=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1163=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1164=0D + localctx.S2 =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1165=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1173=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,73,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1166=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1167=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 1168=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1169=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1170=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1171=0D + localctx.S3 =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1172=0D + self.match(VfrSyntaxParser.CloseParen)=0D +=0D +=0D + self.state =3D 1191=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,75,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1175=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1176=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1177=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1178=0D + self.staticTextFlagsField()=0D + self.state =3D 1183=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1179=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1180=0D + self.staticTextFlagsField()=0D + self.state =3D 1185=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1186=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1187=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1188=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1189=0D + localctx.S4 =3D self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + self.state =3D 1195=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 1193=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1194=0D + self.vfrStatementStatTagList(localctx.Node)=0D +=0D +=0D + self.state =3D 1197=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class StaticTextFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Flag =3D 0=0D + self.N =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_staticTextFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitStaticTextFlagsField" ):=0D + return visitor.visitStaticTextFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def staticTextFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.StaticTextFlagsFieldContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 122, self.RULE_staticTextFlagsField)=0D + try:=0D + self.state =3D 1201=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1199=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1200=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementCrossReferenceContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementGoto(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementGo= toContext,0)=0D +=0D +=0D + def vfrStatementResetButton(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementRe= setButtonContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementCrossReference=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementCrossReference" ):=0D + return visitor.visitVfrStatementCrossReference(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementCrossReference(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementCrossReferenceContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 124, self.RULE_vfrStatementCrossReference= )=0D + try:=0D + self.state =3D 1205=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Goto]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1203=0D + self.vfrStatementGoto()=0D + pass=0D + elif token in [VfrSyntaxParser.ResetButton]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1204=0D + self.vfrStatementResetButton()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementGotoContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_REF_OP)=0D + self.OpObj =3D None=0D + self.OHObj =3D None=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_REF=0D + self.QN =3D None # Token=0D +=0D + def Goto(self):=0D + return self.getToken(VfrSyntaxParser.Goto, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def vfrGotoFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrGotoFlagsCo= ntext,0)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def DevicePath(self):=0D + return self.getToken(VfrSyntaxParser.DevicePath, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def FormSetGuid(self):=0D + return self.getToken(VfrSyntaxParser.FormSetGuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def FormId(self):=0D + return self.getToken(VfrSyntaxParser.FormId, 0)=0D +=0D + def Question(self):=0D + return self.getToken(VfrSyntaxParser.Question, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementGoto=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementGoto" ):=0D + return visitor.visitVfrStatementGoto(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementGoto(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementGotoContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 126, self.RULE_vfrStatementGoto)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1207=0D + self.match(VfrSyntaxParser.Goto)=0D + self.state =3D 1255=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.DevicePath]:=0D + self.state =3D 1208=0D + self.match(VfrSyntaxParser.DevicePath)=0D + self.state =3D 1209=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1210=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1211=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1212=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1213=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1214=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1215=0D + self.match(VfrSyntaxParser.FormSetGuid)=0D + self.state =3D 1216=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1217=0D + self.guidDefinition()=0D + self.state =3D 1218=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1219=0D + self.match(VfrSyntaxParser.FormId)=0D + self.state =3D 1220=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1221=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1222=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1223=0D + self.match(VfrSyntaxParser.Question)=0D + self.state =3D 1224=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1225=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1226=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.FormSetGuid]:=0D + self.state =3D 1228=0D + self.match(VfrSyntaxParser.FormSetGuid)=0D + self.state =3D 1229=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1230=0D + self.guidDefinition()=0D + self.state =3D 1231=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1232=0D + self.match(VfrSyntaxParser.FormId)=0D + self.state =3D 1233=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1234=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1235=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1236=0D + self.match(VfrSyntaxParser.Question)=0D + self.state =3D 1237=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1238=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1239=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.FormId]:=0D + self.state =3D 1241=0D + self.match(VfrSyntaxParser.FormId)=0D + self.state =3D 1242=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1243=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1244=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1245=0D + self.match(VfrSyntaxParser.Question)=0D + self.state =3D 1246=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1251=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.StringIdentifier]:=0D + self.state =3D 1247=0D + localctx.QN =3D self.match(VfrSyntaxParser.StringIdent= ifier)=0D + self.state =3D 1248=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Number]:=0D + self.state =3D 1249=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1250=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.Number]:=0D + self.state =3D 1253=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1254=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.Prompt, VfrSyntaxParser.Name, V= frSyntaxParser.VarId, VfrSyntaxParser.QuestionId]:=0D + pass=0D + else:=0D + pass=0D + self.state =3D 1257=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 1262=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,81,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1258=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1259=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1260=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1261=0D + self.vfrGotoFlags(localctx.OpObj)=0D +=0D +=0D + self.state =3D 1268=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,82,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1264=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1265=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1266=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1267=0D + self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + self.state =3D 1272=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 1270=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1271=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D +=0D +=0D + self.state =3D 1274=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrGotoFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Obj=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Obj =3D None=0D + self.GotoFlags =3D 0=0D + self.Obj =3D Obj=0D +=0D + def gotoFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.GotoFlags= FieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.GotoFlagsF= ieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrGotoFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrGotoFlags" ):=0D + return visitor.visitVfrGotoFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrGotoFlags(self, Obj):=0D +=0D + localctx =3D VfrSyntaxParser.VfrGotoFlagsContext(self, self._ctx, = self.state, Obj)=0D + self.enterRule(localctx, 128, self.RULE_vfrGotoFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1276=0D + self.gotoFlagsField()=0D + self.state =3D 1281=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1277=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1278=0D + self.gotoFlagsField()=0D + self.state =3D 1283=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class GotoFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Flag =3D 0=0D + self.N =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_gotoFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitGotoFlagsField" ):=0D + return visitor.visitGotoFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def gotoFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.GotoFlagsFieldContext(self, self._ctx= , self.state)=0D + self.enterRule(localctx, 130, self.RULE_gotoFlagsField)=0D + try:=0D + self.state =3D 1286=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1284=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1285=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementResetButtonContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_RESET_BUTTON_OP)=0D + self.OpObj =3D CIfrResetButton()=0D + self.N =3D None # Token=0D +=0D + def ResetButton(self):=0D + return self.getToken(VfrSyntaxParser.ResetButton, 0)=0D +=0D + def DefaultStore(self):=0D + return self.getToken(VfrSyntaxParser.DefaultStore, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementHe= aderContext,0)=0D +=0D +=0D + def EndResetButton(self):=0D + return self.getToken(VfrSyntaxParser.EndResetButton, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def vfrStatementStatTagList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atTagListContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementResetButton=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementResetButton" ):=0D + return visitor.visitVfrStatementResetButton(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementResetButton(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementResetButtonContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 132, self.RULE_vfrStatementResetButton)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1288=0D + self.match(VfrSyntaxParser.ResetButton)=0D + self.state =3D 1289=0D + self.match(VfrSyntaxParser.DefaultStore)=0D + self.state =3D 1290=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1291=0D + localctx.N =3D self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1292=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1293=0D + self.vfrStatementHeader(localctx.OpObj)=0D + self.state =3D 1294=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1298=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Image or _la=3D=3DVfrSyntaxParser.= Locked:=0D + self.state =3D 1295=0D + self.vfrStatementStatTagList(localctx.Node)=0D + self.state =3D 1296=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1300=0D + self.match(VfrSyntaxParser.EndResetButton)=0D + self.state =3D 1301=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementQuestionsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementBooleanType(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementBo= oleanTypeContext,0)=0D +=0D +=0D + def vfrStatementDate(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDa= teContext,0)=0D +=0D +=0D + def vfrStatementNumericType(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementNu= mericTypeContext,0)=0D +=0D +=0D + def vfrStatementStringType(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= ringTypeContext,0)=0D +=0D +=0D + def vfrStatementOrderedList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementOr= deredListContext,0)=0D +=0D +=0D + def vfrStatementTime(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementTi= meContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementQuestions=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementQuestions" ):=0D + return visitor.visitVfrStatementQuestions(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementQuestions(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementQuestionsContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 134, self.RULE_vfrStatementQuestions)=0D + try:=0D + self.state =3D 1309=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.CheckBox, VfrSyntaxParser.Action]= :=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1303=0D + self.vfrStatementBooleanType()=0D + pass=0D + elif token in [VfrSyntaxParser.Date]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1304=0D + self.vfrStatementDate()=0D + pass=0D + elif token in [VfrSyntaxParser.OneOf, VfrSyntaxParser.Numeric]= :=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1305=0D + self.vfrStatementNumericType()=0D + pass=0D + elif token in [VfrSyntaxParser.Password, VfrSyntaxParser.Strin= g]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1306=0D + self.vfrStatementStringType()=0D + pass=0D + elif token in [VfrSyntaxParser.OrderedList]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1307=0D + self.vfrStatementOrderedList()=0D + pass=0D + elif token in [VfrSyntaxParser.Time]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1308=0D + self.vfrStatementTime()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementQuestionTagContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementStatTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atTagContext,0)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def vfrStatementInconsistentIf(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= consistentIfContext,0)=0D +=0D +=0D + def vfrStatementNoSubmitIf(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementNo= SubmitIfContext,0)=0D +=0D +=0D + def vfrStatementDisableIfQuest(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDi= sableIfQuestContext,0)=0D +=0D +=0D + def vfrStatementRefresh(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementRe= freshContext,0)=0D +=0D +=0D + def vfrStatementVarstoreDevice(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementVa= rstoreDeviceContext,0)=0D +=0D +=0D + def vfrStatementExtension(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= tensionContext,0)=0D +=0D +=0D + def vfrStatementRefreshEvent(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementRe= freshEventContext,0)=0D +=0D +=0D + def vfrStatementWarningIf(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementWa= rningIfContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementQuestionTag=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementQuestionTag" ):=0D + return visitor.visitVfrStatementQuestionTag(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementQuestionTag(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementQuestionTagContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 136, self.RULE_vfrStatementQuestionTag)=0D + try:=0D + self.state =3D 1322=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Image, VfrSyntaxParser.Locked]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1311=0D + self.vfrStatementStatTag()=0D + self.state =3D 1312=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.InconsistentIf]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1314=0D + self.vfrStatementInconsistentIf()=0D + pass=0D + elif token in [VfrSyntaxParser.NoSubmitIf]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1315=0D + self.vfrStatementNoSubmitIf()=0D + pass=0D + elif token in [VfrSyntaxParser.DisableIf]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1316=0D + self.vfrStatementDisableIfQuest()=0D + pass=0D + elif token in [VfrSyntaxParser.Refresh]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1317=0D + self.vfrStatementRefresh()=0D + pass=0D + elif token in [VfrSyntaxParser.VarstoreDevice]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1318=0D + self.vfrStatementVarstoreDevice()=0D + pass=0D + elif token in [VfrSyntaxParser.GuidOp]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 1319=0D + self.vfrStatementExtension()=0D + pass=0D + elif token in [VfrSyntaxParser.RefreshGuid]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 1320=0D + self.vfrStatementRefreshEvent()=0D + pass=0D + elif token in [VfrSyntaxParser.WarningIf]:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 1321=0D + self.vfrStatementWarningIf()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementInconsistentIfContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_INCONSISTENT_IF_OP)=0D +=0D + def InconsistentIf(self):=0D + return self.getToken(VfrSyntaxParser.InconsistentIf, 0)=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementInconsistentIf=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementInconsistentIf" ):=0D + return visitor.visitVfrStatementInconsistentIf(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementInconsistentIf(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementInconsistentIfContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 138, self.RULE_vfrStatementInconsistentIf= )=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1324=0D + self.match(VfrSyntaxParser.InconsistentIf)=0D + self.state =3D 1325=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 1326=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1327=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1328=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1329=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1330=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1331=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1344=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1332=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1333=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1334=0D + self.flagsField()=0D + self.state =3D 1339=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1335=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1336=0D + self.flagsField()=0D + self.state =3D 1341=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1342=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1346=0D + self.vfrStatementExpression()=0D + self.state =3D 1347=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 1349=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,91,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1348=0D + self.match(VfrSyntaxParser.Semicolon)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementNoSubmitIfContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_NO_SUBMIT_IF_OP)=0D +=0D + def NoSubmitIf(self):=0D + return self.getToken(VfrSyntaxParser.NoSubmitIf, 0)=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementNoSubmitIf=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementNoSubmitIf" ):=0D + return visitor.visitVfrStatementNoSubmitIf(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementNoSubmitIf(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementNoSubmitIfContext(self, s= elf._ctx, self.state)=0D + self.enterRule(localctx, 140, self.RULE_vfrStatementNoSubmitIf)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1351=0D + self.match(VfrSyntaxParser.NoSubmitIf)=0D + self.state =3D 1352=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 1353=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1354=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1355=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1356=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1357=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1358=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1371=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1359=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1360=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1361=0D + self.flagsField()=0D + self.state =3D 1366=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1362=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1363=0D + self.flagsField()=0D + self.state =3D 1368=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1369=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1373=0D + self.vfrStatementExpression()=0D + self.state =3D 1374=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 1376=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,94,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1375=0D + self.match(VfrSyntaxParser.Semicolon)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementDisableIfQuestContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_DISABLE_IF_OP)=0D +=0D + def DisableIf(self):=0D + return self.getToken(VfrSyntaxParser.DisableIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementDisableIfQuest=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementDisableIfQuest" ):=0D + return visitor.visitVfrStatementDisableIfQuest(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementDisableIfQuest(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementDisableIfQuestContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 142, self.RULE_vfrStatementDisableIfQuest= )=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1378=0D + self.match(VfrSyntaxParser.DisableIf)=0D + self.state =3D 1379=0D + self.vfrStatementExpression()=0D + self.state =3D 1380=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 1381=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1382=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 1384=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,95,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1383=0D + self.match(VfrSyntaxParser.Semicolon)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementRefreshContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_REFRESH_OP)=0D +=0D + def Refresh(self):=0D + return self.getToken(VfrSyntaxParser.Refresh, 0)=0D +=0D + def Interval(self):=0D + return self.getToken(VfrSyntaxParser.Interval, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementRefresh=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementRefresh" ):=0D + return visitor.visitVfrStatementRefresh(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementRefresh(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementRefreshContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 144, self.RULE_vfrStatementRefresh)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1386=0D + self.match(VfrSyntaxParser.Refresh)=0D + self.state =3D 1387=0D + self.match(VfrSyntaxParser.Interval)=0D + self.state =3D 1388=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1389=0D + self.match(VfrSyntaxParser.Number)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementVarstoreDeviceContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_VARSTORE_DEVICE_OP)=0D +=0D + def VarstoreDevice(self):=0D + return self.getToken(VfrSyntaxParser.VarstoreDevice, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementVarstoreDevice=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementVarstoreDevice" ):=0D + return visitor.visitVfrStatementVarstoreDevice(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementVarstoreDevice(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementVarstoreDeviceContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 146, self.RULE_vfrStatementVarstoreDevice= )=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1391=0D + self.match(VfrSyntaxParser.VarstoreDevice)=0D + self.state =3D 1392=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1393=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1394=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1395=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1396=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1397=0D + self.match(VfrSyntaxParser.Comma)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementRefreshEventContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_REFRESH_ID_OP)=0D +=0D + def RefreshGuid(self):=0D + return self.getToken(VfrSyntaxParser.RefreshGuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementRefreshEvent=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementRefreshEvent" ):=0D + return visitor.visitVfrStatementRefreshEvent(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementRefreshEvent(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementRefreshEventContext(self,= self._ctx, self.state)=0D + self.enterRule(localctx, 148, self.RULE_vfrStatementRefreshEvent)= =0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1399=0D + self.match(VfrSyntaxParser.RefreshGuid)=0D + self.state =3D 1400=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1401=0D + self.guidDefinition()=0D + self.state =3D 1402=0D + self.match(VfrSyntaxParser.Comma)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementWarningIfContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_WARNING_IF_OP)=0D +=0D + def WarningIf(self):=0D + return self.getToken(VfrSyntaxParser.WarningIf, 0)=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def Timeout(self):=0D + return self.getToken(VfrSyntaxParser.Timeout, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementWarningIf=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementWarningIf" ):=0D + return visitor.visitVfrStatementWarningIf(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementWarningIf(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementWarningIfContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 150, self.RULE_vfrStatementWarningIf)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1404=0D + self.match(VfrSyntaxParser.WarningIf)=0D + self.state =3D 1405=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 1406=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1407=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1408=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1409=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1410=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1411=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1416=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Timeout:=0D + self.state =3D 1412=0D + self.match(VfrSyntaxParser.Timeout)=0D + self.state =3D 1413=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1414=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1415=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1418=0D + self.vfrStatementExpression()=0D + self.state =3D 1419=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 1421=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,97,self._ctx)= =0D + if la_ =3D=3D 1:=0D + self.state =3D 1420=0D + self.match(VfrSyntaxParser.Semicolon)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementQuestionTagListContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Node=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D + self.Node =3D Node=0D +=0D + def vfrStatementQuestionTag(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entQuestionTagContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntQuestionTagContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementQuestionTagList=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementQuestionTagList" ):=0D + return visitor.visitVfrStatementQuestionTagList(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementQuestionTagList(self, Node):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementQuestionTagListContext(se= lf, self._ctx, self.state, Node)=0D + self.enterRule(localctx, 152, self.RULE_vfrStatementQuestionTagLis= t)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1426=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 106)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 106)= ) & ((1 << (VfrSyntaxParser.DisableIf - 106)) | (1 << (VfrSyntaxParser.Inco= nsistentIf - 106)) | (1 << (VfrSyntaxParser.WarningIf - 106)) | (1 << (VfrS= yntaxParser.NoSubmitIf - 106)) | (1 << (VfrSyntaxParser.Image - 106)) | (1 = << (VfrSyntaxParser.Locked - 106)) | (1 << (VfrSyntaxParser.Refresh - 106))= | (1 << (VfrSyntaxParser.VarstoreDevice - 106)) | (1 << (VfrSyntaxParser.G= uidOp - 106)))) !=3D 0) or _la=3D=3DVfrSyntaxParser.RefreshGuid:=0D + self.state =3D 1423=0D + self.vfrStatementQuestionTag()=0D + self.state =3D 1428=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementQuestionOptionTagContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementSuppressIfQuest(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSu= ppressIfQuestContext,0)=0D +=0D +=0D + def vfrStatementGrayOutIfQuest(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementGr= ayOutIfQuestContext,0)=0D +=0D +=0D + def vfrStatementValue(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementVa= lueContext,0)=0D +=0D +=0D + def vfrStatementDefault(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDe= faultContext,0)=0D +=0D +=0D + def vfrStatementOptions(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementOp= tionsContext,0)=0D +=0D +=0D + def vfrStatementRead(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementRe= adContext,0)=0D +=0D +=0D + def vfrStatementWrite(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementWr= iteContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementQuestionOptionTag=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementQuestionOptionTag" ):=0D + return visitor.visitVfrStatementQuestionOptionTag(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementQuestionOptionTag(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementQuestionOptionTagContext(= self, self._ctx, self.state)=0D + self.enterRule(localctx, 154, self.RULE_vfrStatementQuestionOption= Tag)=0D + try:=0D + self.state =3D 1436=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.SuppressIf]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1429=0D + self.vfrStatementSuppressIfQuest()=0D + pass=0D + elif token in [VfrSyntaxParser.GrayOutIf]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1430=0D + self.vfrStatementGrayOutIfQuest()=0D + pass=0D + elif token in [VfrSyntaxParser.Value]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1431=0D + self.vfrStatementValue()=0D + pass=0D + elif token in [VfrSyntaxParser.Default]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1432=0D + self.vfrStatementDefault()=0D + pass=0D + elif token in [VfrSyntaxParser.Option]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1433=0D + self.vfrStatementOptions()=0D + pass=0D + elif token in [VfrSyntaxParser.Read]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1434=0D + self.vfrStatementRead()=0D + pass=0D + elif token in [VfrSyntaxParser.Write]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 1435=0D + self.vfrStatementWrite()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class FlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.N =3D None # Token=0D + self.L =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def InteractiveFlag(self):=0D + return self.getToken(VfrSyntaxParser.InteractiveFlag, 0)=0D +=0D + def ManufacturingFlag(self):=0D + return self.getToken(VfrSyntaxParser.ManufacturingFlag, 0)=0D +=0D + def DefaultFlag(self):=0D + return self.getToken(VfrSyntaxParser.DefaultFlag, 0)=0D +=0D + def ResetRequiredFlag(self):=0D + return self.getToken(VfrSyntaxParser.ResetRequiredFlag, 0)=0D +=0D + def ReconnectRequiredFlag(self):=0D + return self.getToken(VfrSyntaxParser.ReconnectRequiredFlag, 0)= =0D +=0D + def NVAccessFlag(self):=0D + return self.getToken(VfrSyntaxParser.NVAccessFlag, 0)=0D +=0D + def LateCheckFlag(self):=0D + return self.getToken(VfrSyntaxParser.LateCheckFlag, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_flagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitFlagsField" ):=0D + return visitor.visitFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def flagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.FlagsFieldContext(self, self._ctx, se= lf.state)=0D + self.enterRule(localctx, 156, self.RULE_flagsField)=0D + try:=0D + self.state =3D 1446=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1438=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1439=0D + self.match(VfrSyntaxParser.InteractiveFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ManufacturingFlag]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1440=0D + self.match(VfrSyntaxParser.ManufacturingFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.DefaultFlag]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1441=0D + self.match(VfrSyntaxParser.DefaultFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ResetRequiredFlag]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1442=0D + self.match(VfrSyntaxParser.ResetRequiredFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ReconnectRequiredFlag]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1443=0D + self.match(VfrSyntaxParser.ReconnectRequiredFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.NVAccessFlag]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 1444=0D + localctx.N =3D self.match(VfrSyntaxParser.NVAccessFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.LateCheckFlag]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 1445=0D + localctx.L =3D self.match(VfrSyntaxParser.LateCheckFlag)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementSuppressIfQuestContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)=0D +=0D + def SuppressIf(self):=0D + return self.getToken(VfrSyntaxParser.SuppressIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementSuppressIfQuest=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementSuppressIfQuest" ):=0D + return visitor.visitVfrStatementSuppressIfQuest(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementSuppressIfQuest(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementSuppressIfQuestContext(se= lf, self._ctx, self.state)=0D + self.enterRule(localctx, 158, self.RULE_vfrStatementSuppressIfQues= t)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1448=0D + self.match(VfrSyntaxParser.SuppressIf)=0D + self.state =3D 1449=0D + self.vfrStatementExpression()=0D + self.state =3D 1450=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 1463=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1451=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1452=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1453=0D + self.flagsField()=0D + self.state =3D 1458=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1454=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1455=0D + self.flagsField()=0D + self.state =3D 1460=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1461=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1465=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1466=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 1468=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,103,self._ctx= )=0D + if la_ =3D=3D 1:=0D + self.state =3D 1467=0D + self.match(VfrSyntaxParser.Semicolon)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementGrayOutIfQuestContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)=0D +=0D + def GrayOutIf(self):=0D + return self.getToken(VfrSyntaxParser.GrayOutIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementGrayOutIfQuest=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementGrayOutIfQuest" ):=0D + return visitor.visitVfrStatementGrayOutIfQuest(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementGrayOutIfQuest(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementGrayOutIfQuestContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 160, self.RULE_vfrStatementGrayOutIfQuest= )=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1470=0D + self.match(VfrSyntaxParser.GrayOutIf)=0D + self.state =3D 1471=0D + self.vfrStatementExpression()=0D + self.state =3D 1472=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 1485=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1473=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1474=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1475=0D + self.flagsField()=0D + self.state =3D 1480=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1476=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1477=0D + self.flagsField()=0D + self.state =3D 1482=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1483=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1487=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1488=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 1490=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,106,self._ctx= )=0D + if la_ =3D=3D 1:=0D + self.state =3D 1489=0D + self.match(VfrSyntaxParser.Semicolon)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementDefaultContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_DEFAULT_OP)=0D + self.D =3D None # Token=0D + self.SN =3D None # Token=0D +=0D + def Default(self):=0D + return self.getToken(VfrSyntaxParser.Default, 0)=0D +=0D + def vfrStatementValue(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementVa= lueContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrConstantValueField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrConstantVal= ueFieldContext,0)=0D +=0D +=0D + def DefaultStore(self):=0D + return self.getToken(VfrSyntaxParser.DefaultStore, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementDefault=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementDefault" ):=0D + return visitor.visitVfrStatementDefault(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementDefault(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementDefaultContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 162, self.RULE_vfrStatementDefault)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1492=0D + localctx.D =3D self.match(VfrSyntaxParser.Default)=0D +=0D + self.state =3D 1500=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Value]:=0D + self.state =3D 1493=0D + self.vfrStatementValue()=0D + self.state =3D 1494=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + elif token in [VfrSyntaxParser.T__5]:=0D + self.state =3D 1496=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1497=0D + self.vfrConstantValueField()=0D + self.state =3D 1498=0D + self.match(VfrSyntaxParser.Comma)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 1506=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.DefaultStore:=0D + self.state =3D 1502=0D + self.match(VfrSyntaxParser.DefaultStore)=0D + self.state =3D 1503=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1504=0D + localctx.SN =3D self.match(VfrSyntaxParser.StringIdentifie= r)=0D + self.state =3D 1505=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementValueContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_VALUE_OP)=0D +=0D + def Value(self):=0D + return self.getToken(VfrSyntaxParser.Value, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementValue=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementValue" ):=0D + return visitor.visitVfrStatementValue(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementValue(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementValueContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 164, self.RULE_vfrStatementValue)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1508=0D + self.match(VfrSyntaxParser.Value)=0D + self.state =3D 1509=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1510=0D + self.vfrStatementExpression()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementOptionsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementOneOfOption(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementOn= eOfOptionContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementOptions=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementOptions" ):=0D + return visitor.visitVfrStatementOptions(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementOptions(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementOptionsContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 166, self.RULE_vfrStatementOptions)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1512=0D + self.vfrStatementOneOfOption()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementOneOfOptionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_ONE_OF_OPTION_OP)=0D + self.F =3D None # Token=0D + self.KN =3D None # Token=0D +=0D + def Option(self):=0D + return self.getToken(VfrSyntaxParser.Option, 0)=0D +=0D + def Text(self):=0D + return self.getToken(VfrSyntaxParser.Text, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Value(self):=0D + return self.getToken(VfrSyntaxParser.Value, 0)=0D +=0D + def vfrConstantValueField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrConstantVal= ueFieldContext,0)=0D +=0D +=0D + def vfrOneOfOptionFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrOneOfOption= FlagsContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def vfrImageTag(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrImageT= agContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrImageTa= gContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementOneOfOption=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementOneOfOption" ):=0D + return visitor.visitVfrStatementOneOfOption(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementOneOfOption(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementOneOfOptionContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 168, self.RULE_vfrStatementOneOfOption)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1514=0D + self.match(VfrSyntaxParser.Option)=0D + self.state =3D 1515=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 1516=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1517=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1518=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1519=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1520=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1521=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1522=0D + self.match(VfrSyntaxParser.Value)=0D + self.state =3D 1523=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1524=0D + self.vfrConstantValueField()=0D + self.state =3D 1525=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1526=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1527=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1528=0D + self.vfrOneOfOptionFlags()=0D + self.state =3D 1533=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,109,self._ctx= )=0D + if la_ =3D=3D 1:=0D + self.state =3D 1529=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1530=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1531=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1532=0D + localctx.KN =3D self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + self.state =3D 1539=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 1535=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1536=0D + self.vfrImageTag()=0D + self.state =3D 1541=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 1542=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrOneOfOptionFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D + self.LFlags =3D 0=0D +=0D + def oneofoptionFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.Oneofopti= onFlagsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.Oneofoptio= nFlagsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrOneOfOptionFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrOneOfOptionFlags" ):=0D + return visitor.visitVfrOneOfOptionFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrOneOfOptionFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrOneOfOptionFlagsContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 170, self.RULE_vfrOneOfOptionFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1544=0D + self.oneofoptionFlagsField()=0D + self.state =3D 1549=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1545=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1546=0D + self.oneofoptionFlagsField()=0D + self.state =3D 1551=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class OneofoptionFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlag =3D 0=0D + self.LFlag =3D 0=0D + self.A =3D None # Token=0D + self.L =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def OptionDefault(self):=0D + return self.getToken(VfrSyntaxParser.OptionDefault, 0)=0D +=0D + def OptionDefaultMfg(self):=0D + return self.getToken(VfrSyntaxParser.OptionDefaultMfg, 0)=0D +=0D + def InteractiveFlag(self):=0D + return self.getToken(VfrSyntaxParser.InteractiveFlag, 0)=0D +=0D + def ResetRequiredFlag(self):=0D + return self.getToken(VfrSyntaxParser.ResetRequiredFlag, 0)=0D +=0D + def RestStyleFlag(self):=0D + return self.getToken(VfrSyntaxParser.RestStyleFlag, 0)=0D +=0D + def ReconnectRequiredFlag(self):=0D + return self.getToken(VfrSyntaxParser.ReconnectRequiredFlag, 0)= =0D +=0D + def ManufacturingFlag(self):=0D + return self.getToken(VfrSyntaxParser.ManufacturingFlag, 0)=0D +=0D + def DefaultFlag(self):=0D + return self.getToken(VfrSyntaxParser.DefaultFlag, 0)=0D +=0D + def NVAccessFlag(self):=0D + return self.getToken(VfrSyntaxParser.NVAccessFlag, 0)=0D +=0D + def LateCheckFlag(self):=0D + return self.getToken(VfrSyntaxParser.LateCheckFlag, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_oneofoptionFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitOneofoptionFlagsField" ):=0D + return visitor.visitOneofoptionFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def oneofoptionFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.OneofoptionFlagsFieldContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 172, self.RULE_oneofoptionFlagsField)=0D + try:=0D + self.state =3D 1563=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1552=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.OptionDefault]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1553=0D + self.match(VfrSyntaxParser.OptionDefault)=0D + pass=0D + elif token in [VfrSyntaxParser.OptionDefaultMfg]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1554=0D + self.match(VfrSyntaxParser.OptionDefaultMfg)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1555=0D + self.match(VfrSyntaxParser.InteractiveFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ResetRequiredFlag]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1556=0D + self.match(VfrSyntaxParser.ResetRequiredFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1557=0D + self.match(VfrSyntaxParser.RestStyleFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ReconnectRequiredFlag]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 1558=0D + self.match(VfrSyntaxParser.ReconnectRequiredFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ManufacturingFlag]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 1559=0D + self.match(VfrSyntaxParser.ManufacturingFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.DefaultFlag]:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 1560=0D + self.match(VfrSyntaxParser.DefaultFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.NVAccessFlag]:=0D + self.enterOuterAlt(localctx, 10)=0D + self.state =3D 1561=0D + localctx.A =3D self.match(VfrSyntaxParser.NVAccessFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.LateCheckFlag]:=0D + self.enterOuterAlt(localctx, 11)=0D + self.state =3D 1562=0D + localctx.L =3D self.match(VfrSyntaxParser.LateCheckFlag)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementReadContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_READ_OP)=0D +=0D + def Read(self):=0D + return self.getToken(VfrSyntaxParser.Read, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementRead=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementRead" ):=0D + return visitor.visitVfrStatementRead(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementRead(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementReadContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 174, self.RULE_vfrStatementRead)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1565=0D + self.match(VfrSyntaxParser.Read)=0D + self.state =3D 1566=0D + self.vfrStatementExpression()=0D + self.state =3D 1567=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementWriteContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_WRITE_OP)=0D +=0D + def Write(self):=0D + return self.getToken(VfrSyntaxParser.Write, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementWrite=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementWrite" ):=0D + return visitor.visitVfrStatementWrite(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementWrite(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementWriteContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 176, self.RULE_vfrStatementWrite)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1569=0D + self.match(VfrSyntaxParser.Write)=0D + self.state =3D 1570=0D + self.vfrStatementExpression()=0D + self.state =3D 1571=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementQuestionOptionListContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Node=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D + self.Node =3D Node=0D +=0D + def vfrStatementQuestionOption(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entQuestionOptionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntQuestionOptionContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementQuestionOptionList=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementQuestionOptionList" ):= =0D + return visitor.visitVfrStatementQuestionOptionList(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementQuestionOptionList(self, Node):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementQuestionOptionListContext= (self, self._ctx, self.state, Node)=0D + self.enterRule(localctx, 178, self.RULE_vfrStatementQuestionOption= List)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1576=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 61)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 61)) = & ((1 << (VfrSyntaxParser.Option - 61)) | (1 << (VfrSyntaxParser.GrayOutIf = - 61)) | (1 << (VfrSyntaxParser.Default - 61)) | (1 << (VfrSyntaxParser.Sup= pressIf - 61)) | (1 << (VfrSyntaxParser.DisableIf - 61)) | (1 << (VfrSyntax= Parser.InconsistentIf - 61)) | (1 << (VfrSyntaxParser.WarningIf - 61)) | (1= << (VfrSyntaxParser.NoSubmitIf - 61)))) !=3D 0) or ((((_la - 144)) & ~0x3f= ) =3D=3D 0 and ((1 << (_la - 144)) & ((1 << (VfrSyntaxParser.Image - 144)) = | (1 << (VfrSyntaxParser.Locked - 144)) | (1 << (VfrSyntaxParser.Value - 14= 4)) | (1 << (VfrSyntaxParser.Read - 144)) | (1 << (VfrSyntaxParser.Write - = 144)) | (1 << (VfrSyntaxParser.Refresh - 144)) | (1 << (VfrSyntaxParser.Var= storeDevice - 144)) | (1 << (VfrSyntaxParser.GuidOp - 144)))) !=3D 0) or _l= a=3D=3DVfrSyntaxParser.RefreshGuid:=0D + self.state =3D 1573=0D + self.vfrStatementQuestionOption()=0D + self.state =3D 1578=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementQuestionOptionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementQuestionTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionTagContext,0)=0D +=0D +=0D + def vfrStatementQuestionOptionTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionTagContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementQuestionOption=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementQuestionOption" ):=0D + return visitor.visitVfrStatementQuestionOption(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementQuestionOption(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementQuestionOptionContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 180, self.RULE_vfrStatementQuestionOption= )=0D + try:=0D + self.state =3D 1581=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.DisableIf, VfrSyntaxParser.Incons= istentIf, VfrSyntaxParser.WarningIf, VfrSyntaxParser.NoSubmitIf, VfrSyntaxP= arser.Image, VfrSyntaxParser.Locked, VfrSyntaxParser.Refresh, VfrSyntaxPars= er.VarstoreDevice, VfrSyntaxParser.GuidOp, VfrSyntaxParser.RefreshGuid]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1579=0D + self.vfrStatementQuestionTag()=0D + pass=0D + elif token in [VfrSyntaxParser.Option, VfrSyntaxParser.GrayOut= If, VfrSyntaxParser.Default, VfrSyntaxParser.SuppressIf, VfrSyntaxParser.Va= lue, VfrSyntaxParser.Read, VfrSyntaxParser.Write]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1580=0D + self.vfrStatementQuestionOptionTag()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementBooleanTypeContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementCheckBox(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementCh= eckBoxContext,0)=0D +=0D +=0D + def vfrStatementAction(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementAc= tionContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementBooleanType=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementBooleanType" ):=0D + return visitor.visitVfrStatementBooleanType(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementBooleanType(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementBooleanTypeContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 182, self.RULE_vfrStatementBooleanType)=0D + try:=0D + self.state =3D 1585=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.CheckBox]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1583=0D + self.vfrStatementCheckBox()=0D + pass=0D + elif token in [VfrSyntaxParser.Action]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1584=0D + self.vfrStatementAction()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementCheckBoxContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_CHECKBOX_OP)=0D + self.OpObj =3D CIfrCheckBox()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D + self.L =3D None # Token=0D + self.F =3D None # Token=0D +=0D + def vfrQuestionBaseInfo(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionBas= eInfoContext,0)=0D +=0D +=0D + def vfrStatementHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementHe= aderContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndCheckBox(self):=0D + return self.getToken(VfrSyntaxParser.EndCheckBox, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def CheckBox(self):=0D + return self.getToken(VfrSyntaxParser.CheckBox, 0)=0D +=0D + def vfrCheckBoxFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrCheckBoxFla= gsContext,0)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementCheckBox=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementCheckBox" ):=0D + return visitor.visitVfrStatementCheckBox(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementCheckBox(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementCheckBoxContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 184, self.RULE_vfrStatementCheckBox)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1587=0D + localctx.L =3D self.match(VfrSyntaxParser.CheckBox)=0D + self.state =3D 1588=0D + self.vfrQuestionBaseInfo(localctx.OpObj, localctx.QType)=0D + self.state =3D 1589=0D + self.vfrStatementHeader(localctx.OpObj)=0D + self.state =3D 1590=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1596=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1591=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1592=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1593=0D + self.vfrCheckBoxFlags()=0D + self.state =3D 1594=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1602=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Key:=0D + self.state =3D 1598=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1599=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1600=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1601=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1604=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1605=0D + self.match(VfrSyntaxParser.EndCheckBox)=0D + self.state =3D 1606=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrCheckBoxFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.LFlags =3D 0=0D + self.HFlags =3D 0=0D +=0D + def checkboxFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.CheckboxF= lagsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.CheckboxFl= agsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrCheckBoxFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrCheckBoxFlags" ):=0D + return visitor.visitVfrCheckBoxFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrCheckBoxFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrCheckBoxFlagsContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 186, self.RULE_vfrCheckBoxFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1608=0D + self.checkboxFlagsField()=0D + self.state =3D 1613=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1609=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1610=0D + self.checkboxFlagsField()=0D + self.state =3D 1615=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class CheckboxFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.LFlag =3D 0=0D + self.HFlag =3D 0=0D + self.D =3D None # Token=0D + self.M =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def DefaultFlag(self):=0D + return self.getToken(VfrSyntaxParser.DefaultFlag, 0)=0D +=0D + def ManufacturingFlag(self):=0D + return self.getToken(VfrSyntaxParser.ManufacturingFlag, 0)=0D +=0D + def CheckBoxDefaultFlag(self):=0D + return self.getToken(VfrSyntaxParser.CheckBoxDefaultFlag, 0)=0D +=0D + def CheckBoxDefaultMfgFlag(self):=0D + return self.getToken(VfrSyntaxParser.CheckBoxDefaultMfgFlag, 0= )=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_checkboxFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCheckboxFlagsField" ):=0D + return visitor.visitCheckboxFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def checkboxFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.CheckboxFlagsFieldContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 188, self.RULE_checkboxFlagsField)=0D + try:=0D + self.state =3D 1622=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1616=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.DefaultFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1617=0D + localctx.D =3D self.match(VfrSyntaxParser.DefaultFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.ManufacturingFlag]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1618=0D + localctx.M =3D self.match(VfrSyntaxParser.ManufacturingFla= g)=0D + pass=0D + elif token in [VfrSyntaxParser.CheckBoxDefaultFlag]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1619=0D + self.match(VfrSyntaxParser.CheckBoxDefaultFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.CheckBoxDefaultMfgFlag]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1620=0D + self.match(VfrSyntaxParser.CheckBoxDefaultMfgFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1621=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementActionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_ACTION_OP)=0D + self.OpObj =3D CIfrAction()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D +=0D + def Action(self):=0D + return self.getToken(VfrSyntaxParser.Action, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Config(self):=0D + return self.getToken(VfrSyntaxParser.Config, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def vfrStatementQuestionTagList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionTagListContext,0)=0D +=0D +=0D + def EndAction(self):=0D + return self.getToken(VfrSyntaxParser.EndAction, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def vfrActionFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrActionFlags= Context,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementAction=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementAction" ):=0D + return visitor.visitVfrStatementAction(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementAction(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementActionContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 190, self.RULE_vfrStatementAction)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1624=0D + self.match(VfrSyntaxParser.Action)=0D + self.state =3D 1625=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 1626=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1632=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1627=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1628=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1629=0D + self.vfrActionFlags()=0D + self.state =3D 1630=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1634=0D + self.match(VfrSyntaxParser.Config)=0D + self.state =3D 1635=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1636=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1637=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1638=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1639=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1640=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1641=0D + self.vfrStatementQuestionTagList(localctx.Node)=0D + self.state =3D 1642=0D + self.match(VfrSyntaxParser.EndAction)=0D + self.state =3D 1643=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrActionFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D +=0D + def actionFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.ActionFla= gsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.ActionFlag= sFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrActionFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrActionFlags" ):=0D + return visitor.visitVfrActionFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrActionFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrActionFlagsContext(self, self._ctx= , self.state)=0D + self.enterRule(localctx, 192, self.RULE_vfrActionFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1645=0D + self.actionFlagsField()=0D + self.state =3D 1650=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1646=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1647=0D + self.actionFlagsField()=0D + self.state =3D 1652=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ActionFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlag =3D 0=0D + self.N =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_actionFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitActionFlagsField" ):=0D + return visitor.visitActionFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def actionFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.ActionFlagsFieldContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 194, self.RULE_actionFlagsField)=0D + try:=0D + self.state =3D 1655=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1653=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1654=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementNumericTypeContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementNumeric(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementNu= mericContext,0)=0D +=0D +=0D + def vfrStatementOneOf(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementOn= eOfContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementNumericType=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementNumericType" ):=0D + return visitor.visitVfrStatementNumericType(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementNumericType(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementNumericTypeContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 196, self.RULE_vfrStatementNumericType)=0D + try:=0D + self.state =3D 1659=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Numeric]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1657=0D + self.vfrStatementNumeric()=0D + pass=0D + elif token in [VfrSyntaxParser.OneOf]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1658=0D + self.vfrStatementOneOf()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementNumericContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_NUMERIC_OP)=0D + self.OpObj =3D CIfrNumeric()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D + self.F =3D None # Token=0D +=0D + def Numeric(self):=0D + return self.getToken(VfrSyntaxParser.Numeric, 0)=0D +=0D + def vfrQuestionBaseInfo(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionBas= eInfoContext,0)=0D +=0D +=0D + def vfrStatementHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementHe= aderContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrSetMinMaxStep(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrSetMinMaxSt= epContext,0)=0D +=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndNumeric(self):=0D + return self.getToken(VfrSyntaxParser.EndNumeric, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def vfrNumericFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrNumericFlag= sContext,0)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementNumeric=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementNumeric" ):=0D + return visitor.visitVfrStatementNumeric(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementNumeric(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementNumericContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 198, self.RULE_vfrStatementNumeric)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1661=0D + self.match(VfrSyntaxParser.Numeric)=0D + self.state =3D 1662=0D + self.vfrQuestionBaseInfo(localctx.OpObj, localctx.QType)=0D + self.state =3D 1663=0D + self.vfrStatementHeader(localctx.OpObj)=0D + self.state =3D 1664=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1670=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1665=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1666=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1667=0D + self.vfrNumericFlags()=0D + self.state =3D 1668=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1676=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Key:=0D + self.state =3D 1672=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1673=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1674=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1675=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1678=0D + self.vfrSetMinMaxStep(localctx.OpObj)=0D + self.state =3D 1679=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1680=0D + self.match(VfrSyntaxParser.EndNumeric)=0D + self.state =3D 1681=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrSetMinMaxStepContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, OpObj=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.OpObj =3D None=0D + self.N1 =3D None # Token=0D + self.I =3D None # Token=0D + self.N2 =3D None # Token=0D + self.A =3D None # Token=0D + self.S =3D None # Token=0D + self.OpObj =3D OpObj=0D +=0D + def Minimum(self):=0D + return self.getToken(VfrSyntaxParser.Minimum, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Maximum(self):=0D + return self.getToken(VfrSyntaxParser.Maximum, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Step(self):=0D + return self.getToken(VfrSyntaxParser.Step, 0)=0D +=0D + def Negative(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Negative)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Negative, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrSetMinMaxStep=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrSetMinMaxStep" ):=0D + return visitor.visitVfrSetMinMaxStep(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrSetMinMaxStep(self, OpObj):=0D +=0D + localctx =3D VfrSyntaxParser.VfrSetMinMaxStepContext(self, self._c= tx, self.state, OpObj)=0D + self.enterRule(localctx, 200, self.RULE_vfrSetMinMaxStep)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1683=0D + self.match(VfrSyntaxParser.Minimum)=0D + self.state =3D 1684=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1686=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Negative:=0D + self.state =3D 1685=0D + localctx.N1 =3D self.match(VfrSyntaxParser.Negative)=0D +=0D +=0D + self.state =3D 1688=0D + localctx.I =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1689=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1690=0D + self.match(VfrSyntaxParser.Maximum)=0D + self.state =3D 1691=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1693=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Negative:=0D + self.state =3D 1692=0D + localctx.N2 =3D self.match(VfrSyntaxParser.Negative)=0D +=0D +=0D + self.state =3D 1695=0D + localctx.A =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1696=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1701=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Step:=0D + self.state =3D 1697=0D + self.match(VfrSyntaxParser.Step)=0D + self.state =3D 1698=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1699=0D + localctx.S =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1700=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrNumericFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D + self.LFlags =3D 0=0D + self.IsDisplaySpecified =3D False=0D +=0D + def numericFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.NumericFl= agsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.NumericFla= gsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrNumericFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrNumericFlags" ):=0D + return visitor.visitVfrNumericFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrNumericFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrNumericFlagsContext(self, self._ct= x, self.state)=0D + self.enterRule(localctx, 202, self.RULE_vfrNumericFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1703=0D + self.numericFlagsField()=0D + self.state =3D 1708=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1704=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1705=0D + self.numericFlagsField()=0D + self.state =3D 1710=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class NumericFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlag =3D 0=0D + self.IsSetType =3D False=0D + self.IsDisplaySpecified =3D False=0D + self.N =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def NumericSizeOne(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeOne, 0)=0D +=0D + def NumericSizeTwo(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeTwo, 0)=0D +=0D + def NumericSizeFour(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeFour, 0)=0D +=0D + def NumericSizeEight(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeEight, 0)=0D +=0D + def DisPlayIntDec(self):=0D + return self.getToken(VfrSyntaxParser.DisPlayIntDec, 0)=0D +=0D + def DisPlayUIntDec(self):=0D + return self.getToken(VfrSyntaxParser.DisPlayUIntDec, 0)=0D +=0D + def DisPlayUIntHex(self):=0D + return self.getToken(VfrSyntaxParser.DisPlayUIntHex, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_numericFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitNumericFlagsField" ):=0D + return visitor.visitNumericFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def numericFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.NumericFlagsFieldContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 204, self.RULE_numericFlagsField)=0D + try:=0D + self.state =3D 1720=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1711=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.NumericSizeOne]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1712=0D + self.match(VfrSyntaxParser.NumericSizeOne)=0D + pass=0D + elif token in [VfrSyntaxParser.NumericSizeTwo]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1713=0D + self.match(VfrSyntaxParser.NumericSizeTwo)=0D + pass=0D + elif token in [VfrSyntaxParser.NumericSizeFour]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1714=0D + self.match(VfrSyntaxParser.NumericSizeFour)=0D + pass=0D + elif token in [VfrSyntaxParser.NumericSizeEight]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 1715=0D + self.match(VfrSyntaxParser.NumericSizeEight)=0D + pass=0D + elif token in [VfrSyntaxParser.DisPlayIntDec]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 1716=0D + self.match(VfrSyntaxParser.DisPlayIntDec)=0D + pass=0D + elif token in [VfrSyntaxParser.DisPlayUIntDec]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 1717=0D + self.match(VfrSyntaxParser.DisPlayUIntDec)=0D + pass=0D + elif token in [VfrSyntaxParser.DisPlayUIntHex]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 1718=0D + self.match(VfrSyntaxParser.DisPlayUIntHex)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 1719=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementOneOfContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_ONE_OF_OP)=0D + self.OpObj =3D CIfrOneOf()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D + self.F =3D None # Token=0D +=0D + def OneOf(self):=0D + return self.getToken(VfrSyntaxParser.OneOf, 0)=0D +=0D + def vfrQuestionBaseInfo(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionBas= eInfoContext,0)=0D +=0D +=0D + def vfrStatementHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementHe= aderContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndOneOf(self):=0D + return self.getToken(VfrSyntaxParser.EndOneOf, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def vfrOneofFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrOneofFlagsF= ieldContext,0)=0D +=0D +=0D + def vfrSetMinMaxStep(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrSetMinMaxSt= epContext,0)=0D +=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementOneOf=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementOneOf" ):=0D + return visitor.visitVfrStatementOneOf(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementOneOf(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementOneOfContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 206, self.RULE_vfrStatementOneOf)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1722=0D + self.match(VfrSyntaxParser.OneOf)=0D + self.state =3D 1723=0D + self.vfrQuestionBaseInfo(localctx.OpObj, localctx.QType)=0D + self.state =3D 1724=0D + self.vfrStatementHeader(localctx.OpObj)=0D + self.state =3D 1725=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1731=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1726=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1727=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1728=0D + self.vfrOneofFlagsField()=0D + self.state =3D 1729=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1734=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Minimum:=0D + self.state =3D 1733=0D + self.vfrSetMinMaxStep(localctx.OpObj)=0D +=0D +=0D + self.state =3D 1736=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1737=0D + self.match(VfrSyntaxParser.EndOneOf)=0D + self.state =3D 1738=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrOneofFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D + self.LFlags =3D 0=0D +=0D + def numericFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.NumericFl= agsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.NumericFla= gsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrOneofFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrOneofFlagsField" ):=0D + return visitor.visitVfrOneofFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrOneofFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrOneofFlagsFieldContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 208, self.RULE_vfrOneofFlagsField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1740=0D + self.numericFlagsField()=0D + self.state =3D 1745=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1741=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1742=0D + self.numericFlagsField()=0D + self.state =3D 1747=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStringTypeContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementString(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= ringContext,0)=0D +=0D +=0D + def vfrStatementPassword(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementPa= sswordContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStringType=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStringType" ):=0D + return visitor.visitVfrStatementStringType(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStringType(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStringTypeContext(self, s= elf._ctx, self.state)=0D + self.enterRule(localctx, 210, self.RULE_vfrStatementStringType)=0D + try:=0D + self.state =3D 1750=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.String]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1748=0D + self.vfrStatementString()=0D + pass=0D + elif token in [VfrSyntaxParser.Password]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1749=0D + self.vfrStatementPassword()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStringContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_STRING_OP)=0D + self.OpObj =3D CIfrString()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D + self.F =3D None # Token=0D + self.Min =3D None # Token=0D + self.Max =3D None # Token=0D +=0D + def String(self):=0D + return self.getToken(VfrSyntaxParser.String, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndString(self):=0D + return self.getToken(VfrSyntaxParser.EndString, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def MinSize(self):=0D + return self.getToken(VfrSyntaxParser.MinSize, 0)=0D +=0D + def MaxSize(self):=0D + return self.getToken(VfrSyntaxParser.MaxSize, 0)=0D +=0D + def vfrStringFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStringFlags= FieldContext,0)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementString=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementString" ):=0D + return visitor.visitVfrStatementString(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementString(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStringContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 212, self.RULE_vfrStatementString)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1752=0D + self.match(VfrSyntaxParser.String)=0D + self.state =3D 1753=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 1754=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1760=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1755=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1756=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1757=0D + self.vfrStringFlagsField()=0D + self.state =3D 1758=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1766=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Key:=0D + self.state =3D 1762=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1763=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1764=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1765=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1768=0D + localctx.Min =3D self.match(VfrSyntaxParser.MinSize)=0D + self.state =3D 1769=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1770=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1771=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1772=0D + localctx.Max =3D self.match(VfrSyntaxParser.MaxSize)=0D + self.state =3D 1773=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1774=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1775=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1776=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1777=0D + self.match(VfrSyntaxParser.EndString)=0D + self.state =3D 1778=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStringFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D + self.LFlags =3D 0=0D +=0D + def stringFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.StringFla= gsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.StringFlag= sFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStringFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStringFlagsField" ):=0D + return visitor.visitVfrStringFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStringFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStringFlagsFieldContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 214, self.RULE_vfrStringFlagsField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1780=0D + self.stringFlagsField()=0D + self.state =3D 1785=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1781=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1782=0D + self.stringFlagsField()=0D + self.state =3D 1787=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class StringFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlag =3D 0=0D + self.LFlag =3D 0=0D + self.N =3D None # Token=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_stringFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitStringFlagsField" ):=0D + return visitor.visitStringFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def stringFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.StringFlagsFieldContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 216, self.RULE_stringFlagsField)=0D + try:=0D + self.state =3D 1791=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1788=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.T__8]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1789=0D + self.match(VfrSyntaxParser.T__8)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1790=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementPasswordContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_PASSWORD_OP)=0D + self.OpObj =3D CIfrPassword()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D + self.F =3D None # Token=0D + self.Min =3D None # Token=0D + self.Max =3D None # Token=0D +=0D + def Password(self):=0D + return self.getToken(VfrSyntaxParser.Password, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndPassword(self):=0D + return self.getToken(VfrSyntaxParser.EndPassword, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def MinSize(self):=0D + return self.getToken(VfrSyntaxParser.MinSize, 0)=0D +=0D + def MaxSize(self):=0D + return self.getToken(VfrSyntaxParser.MaxSize, 0)=0D +=0D + def vfrPasswordFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrPasswordFla= gsFieldContext,0)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def Encoding(self):=0D + return self.getToken(VfrSyntaxParser.Encoding, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementPassword=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementPassword" ):=0D + return visitor.visitVfrStatementPassword(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementPassword(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementPasswordContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 218, self.RULE_vfrStatementPassword)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1793=0D + self.match(VfrSyntaxParser.Password)=0D + self.state =3D 1794=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 1795=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1801=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1796=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1797=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1798=0D + self.vfrPasswordFlagsField()=0D + self.state =3D 1799=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1807=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Key:=0D + self.state =3D 1803=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 1804=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1805=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1806=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1809=0D + localctx.Min =3D self.match(VfrSyntaxParser.MinSize)=0D + self.state =3D 1810=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1811=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1812=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1813=0D + localctx.Max =3D self.match(VfrSyntaxParser.MaxSize)=0D + self.state =3D 1814=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1815=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1816=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1821=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Encoding:=0D + self.state =3D 1817=0D + self.match(VfrSyntaxParser.Encoding)=0D + self.state =3D 1818=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1819=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1820=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1823=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1824=0D + self.match(VfrSyntaxParser.EndPassword)=0D + self.state =3D 1825=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrPasswordFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D +=0D + def passwordFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.PasswordF= lagsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.PasswordFl= agsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrPasswordFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrPasswordFlagsField" ):=0D + return visitor.visitVfrPasswordFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrPasswordFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrPasswordFlagsFieldContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 220, self.RULE_vfrPasswordFlagsField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1827=0D + self.passwordFlagsField()=0D + self.state =3D 1832=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1828=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1829=0D + self.passwordFlagsField()=0D + self.state =3D 1834=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class PasswordFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlag =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_passwordFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitPasswordFlagsField" ):=0D + return visitor.visitPasswordFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def passwordFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.PasswordFlagsFieldContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 222, self.RULE_passwordFlagsField)=0D + try:=0D + self.state =3D 1837=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1835=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1836=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementOrderedListContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_ORDERED_LIST_OP)=0D + self.OpObj =3D CIfrOrderedList()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D + self.M =3D None # Token=0D + self.F =3D None # Token=0D +=0D + def OrderedList(self):=0D + return self.getToken(VfrSyntaxParser.OrderedList, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def EndList(self):=0D + return self.getToken(VfrSyntaxParser.EndList, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def vfrOrderedListFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrOrderedList= FlagsContext,0)=0D +=0D +=0D + def MaxContainers(self):=0D + return self.getToken(VfrSyntaxParser.MaxContainers, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementOrderedList=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementOrderedList" ):=0D + return visitor.visitVfrStatementOrderedList(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementOrderedList(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementOrderedListContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 224, self.RULE_vfrStatementOrderedList)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1839=0D + self.match(VfrSyntaxParser.OrderedList)=0D + self.state =3D 1840=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 1841=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1846=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.MaxContainers:=0D + self.state =3D 1842=0D + localctx.M =3D self.match(VfrSyntaxParser.MaxContainers)=0D + self.state =3D 1843=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1844=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1845=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1853=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1848=0D + localctx.F =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1849=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1850=0D + self.vfrOrderedListFlags()=0D + self.state =3D 1851=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1855=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + self.state =3D 1856=0D + self.match(VfrSyntaxParser.EndList)=0D + self.state =3D 1857=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrOrderedListFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlags =3D 0=0D + self.LFlags =3D 0=0D +=0D + def orderedlistFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.Orderedli= stFlagsFieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.Orderedlis= tFlagsFieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrOrderedListFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrOrderedListFlags" ):=0D + return visitor.visitVfrOrderedListFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrOrderedListFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrOrderedListFlagsContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 226, self.RULE_vfrOrderedListFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1859=0D + self.orderedlistFlagsField()=0D + self.state =3D 1864=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1860=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1861=0D + self.orderedlistFlagsField()=0D + self.state =3D 1866=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class OrderedlistFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.HFlag =3D 0=0D + self.LFlag =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def UniQueFlag(self):=0D + return self.getToken(VfrSyntaxParser.UniQueFlag, 0)=0D +=0D + def NoEmptyFlag(self):=0D + return self.getToken(VfrSyntaxParser.NoEmptyFlag, 0)=0D +=0D + def questionheaderFlagsField(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionheader= FlagsFieldContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_orderedlistFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitOrderedlistFlagsField" ):=0D + return visitor.visitOrderedlistFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def orderedlistFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.OrderedlistFlagsFieldContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 228, self.RULE_orderedlistFlagsField)=0D + try:=0D + self.state =3D 1871=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Number]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1867=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.UniQueFlag]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 1868=0D + self.match(VfrSyntaxParser.UniQueFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.NoEmptyFlag]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 1869=0D + self.match(VfrSyntaxParser.NoEmptyFlag)=0D + pass=0D + elif token in [VfrSyntaxParser.InteractiveFlag, VfrSyntaxParse= r.NVAccessFlag, VfrSyntaxParser.ResetRequiredFlag, VfrSyntaxParser.Reconnec= tRequiredFlag, VfrSyntaxParser.LateCheckFlag, VfrSyntaxParser.ReadOnlyFlag,= VfrSyntaxParser.OptionOnlyFlag, VfrSyntaxParser.RestStyleFlag]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 1870=0D + self.questionheaderFlagsField()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementDateContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_DATE_OP)=0D + self.OpObj =3D CIfrDate()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + self.Val =3D EFI_IFR_TYPE_VALUE()=0D + self.F1 =3D None # Token=0D + self.F2 =3D None # Token=0D +=0D + def Date(self):=0D + return self.getToken(VfrSyntaxParser.Date, 0)=0D +=0D + def EndDate(self):=0D + return self.getToken(VfrSyntaxParser.EndDate, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def Year(self):=0D + return self.getToken(VfrSyntaxParser.Year, 0)=0D +=0D + def VarId(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.VarId)=0D + else:=0D + return self.getToken(VfrSyntaxParser.VarId, i)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def Dot(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Dot)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Dot, i)=0D +=0D + def Prompt(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Prompt)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Prompt, i)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Help(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Help)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Help, i)=0D +=0D + def minMaxDateStepDefault(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.MinMaxDat= eStepDefaultContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.MinMaxDate= StepDefaultContext,i)=0D +=0D +=0D + def Month(self):=0D + return self.getToken(VfrSyntaxParser.Month, 0)=0D +=0D + def Day(self):=0D + return self.getToken(VfrSyntaxParser.Day, 0)=0D +=0D + def vfrDateFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrDateFlagsCo= ntext,0)=0D +=0D +=0D + def vfrStatementInconsistentIf(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entInconsistentIfContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntInconsistentIfContext,i)=0D +=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementDate=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementDate" ):=0D + return visitor.visitVfrStatementDate(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementDate(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementDateContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 230, self.RULE_vfrStatementDate)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1873=0D + self.match(VfrSyntaxParser.Date)=0D + self.state =3D 1964=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Prompt, VfrSyntaxParser.Name, Vfr= SyntaxParser.VarId, VfrSyntaxParser.QuestionId]:=0D + self.state =3D 1874=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 1875=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1881=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1876=0D + localctx.F1 =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1877=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1878=0D + self.vfrDateFlags()=0D + self.state =3D 1879=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1883=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + pass=0D + elif token in [VfrSyntaxParser.Year]:=0D + self.state =3D 1885=0D + self.match(VfrSyntaxParser.Year)=0D + self.state =3D 1886=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 1887=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1888=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1889=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 1890=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1891=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1892=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 1893=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1894=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1895=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1896=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1897=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1898=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1899=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 1900=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1901=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1902=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1903=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1904=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1905=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1906=0D + self.minMaxDateStepDefault(localctx.Val.date, 0)=0D + self.state =3D 1907=0D + self.match(VfrSyntaxParser.Month)=0D + self.state =3D 1908=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 1909=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1910=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1911=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 1912=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1913=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1914=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 1915=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1916=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1917=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1918=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1919=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1920=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1921=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 1922=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1923=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1924=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1925=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1926=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1927=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1928=0D + self.minMaxDateStepDefault(localctx.Val.date, 1)=0D + self.state =3D 1929=0D + self.match(VfrSyntaxParser.Day)=0D + self.state =3D 1930=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 1931=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1932=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1933=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 1934=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 1935=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1936=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 1937=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1938=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1939=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1940=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1941=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1942=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1943=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 1944=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1945=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 1946=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 1947=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1948=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 1949=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1950=0D + self.minMaxDateStepDefault(localctx.Val.date, 2)=0D + self.state =3D 1956=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 1951=0D + localctx.F2 =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 1952=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1953=0D + self.vfrDateFlags()=0D + self.state =3D 1954=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1961=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.InconsistentIf:=0D + self.state =3D 1958=0D + self.vfrStatementInconsistentIf()=0D + self.state =3D 1963=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 1966=0D + self.match(VfrSyntaxParser.EndDate)=0D + self.state =3D 1967=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class MinMaxDateStepDefaultContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Date=3DNone, KeyValue=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Date =3D None=0D + self.KeyValue =3D None=0D + self.N =3D None # Token=0D + self.Date =3D Date=0D + self.KeyValue =3D KeyValue=0D +=0D + def Minimum(self):=0D + return self.getToken(VfrSyntaxParser.Minimum, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Maximum(self):=0D + return self.getToken(VfrSyntaxParser.Maximum, 0)=0D +=0D + def Step(self):=0D + return self.getToken(VfrSyntaxParser.Step, 0)=0D +=0D + def Default(self):=0D + return self.getToken(VfrSyntaxParser.Default, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_minMaxDateStepDefault=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMinMaxDateStepDefault" ):=0D + return visitor.visitMinMaxDateStepDefault(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def minMaxDateStepDefault(self, Date, KeyValue):=0D +=0D + localctx =3D VfrSyntaxParser.MinMaxDateStepDefaultContext(self, se= lf._ctx, self.state, Date, KeyValue)=0D + self.enterRule(localctx, 232, self.RULE_minMaxDateStepDefault)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1969=0D + self.match(VfrSyntaxParser.Minimum)=0D + self.state =3D 1970=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1971=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1972=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1973=0D + self.match(VfrSyntaxParser.Maximum)=0D + self.state =3D 1974=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1975=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1976=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 1981=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Step:=0D + self.state =3D 1977=0D + self.match(VfrSyntaxParser.Step)=0D + self.state =3D 1978=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1979=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1980=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 1987=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Default:=0D + self.state =3D 1983=0D + self.match(VfrSyntaxParser.Default)=0D + self.state =3D 1984=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 1985=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 1986=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrDateFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.LFlags =3D 0=0D +=0D + def dateFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.DateFlags= FieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.DateFlagsF= ieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrDateFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrDateFlags" ):=0D + return visitor.visitVfrDateFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrDateFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrDateFlagsContext(self, self._ctx, = self.state)=0D + self.enterRule(localctx, 234, self.RULE_vfrDateFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1989=0D + self.dateFlagsField()=0D + self.state =3D 1994=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 1990=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 1991=0D + self.dateFlagsField()=0D + self.state =3D 1996=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DateFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.LFlag =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def YearSupppressFlag(self):=0D + return self.getToken(VfrSyntaxParser.YearSupppressFlag, 0)=0D +=0D + def MonthSuppressFlag(self):=0D + return self.getToken(VfrSyntaxParser.MonthSuppressFlag, 0)=0D +=0D + def DaySuppressFlag(self):=0D + return self.getToken(VfrSyntaxParser.DaySuppressFlag, 0)=0D +=0D + def StorageNormalFlag(self):=0D + return self.getToken(VfrSyntaxParser.StorageNormalFlag, 0)=0D +=0D + def StorageTimeFlag(self):=0D + return self.getToken(VfrSyntaxParser.StorageTimeFlag, 0)=0D +=0D + def StorageWakeUpFlag(self):=0D + return self.getToken(VfrSyntaxParser.StorageWakeUpFlag, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dateFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDateFlagsField" ):=0D + return visitor.visitDateFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dateFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.DateFlagsFieldContext(self, self._ctx= , self.state)=0D + self.enterRule(localctx, 236, self.RULE_dateFlagsField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1997=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 181)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 181= )) & ((1 << (VfrSyntaxParser.YearSupppressFlag - 181)) | (1 << (VfrSyntaxPa= rser.MonthSuppressFlag - 181)) | (1 << (VfrSyntaxParser.DaySuppressFlag - 1= 81)) | (1 << (VfrSyntaxParser.StorageNormalFlag - 181)) | (1 << (VfrSyntaxP= arser.StorageTimeFlag - 181)) | (1 << (VfrSyntaxParser.StorageWakeUpFlag - = 181)))) !=3D 0) or _la=3D=3DVfrSyntaxParser.Number):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementTimeContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_TIME_OP)=0D + self.OpObj =3D CIfrTime()=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + self.Val =3D EFI_IFR_TYPE_VALUE()=0D + self.F1 =3D None # Token=0D + self.F2 =3D None # Token=0D +=0D + def Time(self):=0D + return self.getToken(VfrSyntaxParser.Time, 0)=0D +=0D + def EndTime(self):=0D + return self.getToken(VfrSyntaxParser.EndTime, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def vfrQuestionHeader(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionHea= derContext,0)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementQuestionOptionList(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionOptionListContext,0)=0D +=0D +=0D + def Hour(self):=0D + return self.getToken(VfrSyntaxParser.Hour, 0)=0D +=0D + def VarId(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.VarId)=0D + else:=0D + return self.getToken(VfrSyntaxParser.VarId, i)=0D +=0D + def StringIdentifier(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringIdentifier)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, i)= =0D +=0D + def Dot(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Dot)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Dot, i)=0D +=0D + def Prompt(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Prompt)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Prompt, i)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Help(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Help)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Help, i)=0D +=0D + def minMaxTimeStepDefault(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.MinMaxTim= eStepDefaultContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.MinMaxTime= StepDefaultContext,i)=0D +=0D +=0D + def Minute(self):=0D + return self.getToken(VfrSyntaxParser.Minute, 0)=0D +=0D + def Second(self):=0D + return self.getToken(VfrSyntaxParser.Second, 0)=0D +=0D + def vfrTimeFlags(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrTimeFlagsCo= ntext,0)=0D +=0D +=0D + def vfrStatementInconsistentIf(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entInconsistentIfContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntInconsistentIfContext,i)=0D +=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementTime=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementTime" ):=0D + return visitor.visitVfrStatementTime(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementTime(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementTimeContext(self, self._c= tx, self.state)=0D + self.enterRule(localctx, 238, self.RULE_vfrStatementTime)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 1999=0D + self.match(VfrSyntaxParser.Time)=0D + self.state =3D 2090=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Prompt, VfrSyntaxParser.Name, Vfr= SyntaxParser.VarId, VfrSyntaxParser.QuestionId]:=0D + self.state =3D 2000=0D + self.vfrQuestionHeader(localctx.OpObj, localctx.QType)=0D + self.state =3D 2001=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2007=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2002=0D + localctx.F1 =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2003=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2004=0D + self.vfrTimeFlags()=0D + self.state =3D 2005=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2009=0D + self.vfrStatementQuestionOptionList(localctx.Node)=0D + pass=0D + elif token in [VfrSyntaxParser.Hour]:=0D + self.state =3D 2011=0D + self.match(VfrSyntaxParser.Hour)=0D + self.state =3D 2012=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 2013=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2014=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2015=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 2016=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2017=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2018=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 2019=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2020=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2021=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2022=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2023=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2024=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2025=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 2026=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2027=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2028=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2029=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2030=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2031=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2032=0D + self.minMaxTimeStepDefault(localctx.Val.time, 0)=0D + self.state =3D 2033=0D + self.match(VfrSyntaxParser.Minute)=0D + self.state =3D 2034=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 2035=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2036=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2037=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 2038=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2039=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2040=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 2041=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2042=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2043=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2044=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2045=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2046=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2047=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 2048=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2049=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2050=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2051=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2052=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2053=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2054=0D + self.minMaxTimeStepDefault(localctx.Val.time, 1)=0D + self.state =3D 2055=0D + self.match(VfrSyntaxParser.Second)=0D + self.state =3D 2056=0D + self.match(VfrSyntaxParser.VarId)=0D + self.state =3D 2057=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2058=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2059=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 2060=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2061=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2062=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 2063=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2064=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2065=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2066=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2067=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2068=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2069=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 2070=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2071=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2072=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2073=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2074=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2075=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2076=0D + self.minMaxTimeStepDefault(localctx.Val.time, 2)=0D + self.state =3D 2082=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2077=0D + localctx.F2 =3D self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2078=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2079=0D + self.vfrTimeFlags()=0D + self.state =3D 2080=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2087=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.InconsistentIf:=0D + self.state =3D 2084=0D + self.vfrStatementInconsistentIf()=0D + self.state =3D 2089=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 2092=0D + self.match(VfrSyntaxParser.EndTime)=0D + self.state =3D 2093=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class MinMaxTimeStepDefaultContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, Time=3DNone, KeyValue=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Time =3D None=0D + self.KeyValue =3D None=0D + self.N =3D None # Token=0D + self.Time =3D Time=0D + self.KeyValue =3D KeyValue=0D +=0D + def Minimum(self):=0D + return self.getToken(VfrSyntaxParser.Minimum, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Maximum(self):=0D + return self.getToken(VfrSyntaxParser.Maximum, 0)=0D +=0D + def Step(self):=0D + return self.getToken(VfrSyntaxParser.Step, 0)=0D +=0D + def Default(self):=0D + return self.getToken(VfrSyntaxParser.Default, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_minMaxTimeStepDefault=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMinMaxTimeStepDefault" ):=0D + return visitor.visitMinMaxTimeStepDefault(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def minMaxTimeStepDefault(self, Time, KeyValue):=0D +=0D + localctx =3D VfrSyntaxParser.MinMaxTimeStepDefaultContext(self, se= lf._ctx, self.state, Time, KeyValue)=0D + self.enterRule(localctx, 240, self.RULE_minMaxTimeStepDefault)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2095=0D + self.match(VfrSyntaxParser.Minimum)=0D + self.state =3D 2096=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2097=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2098=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2099=0D + self.match(VfrSyntaxParser.Maximum)=0D + self.state =3D 2100=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2101=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2102=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2107=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Step:=0D + self.state =3D 2103=0D + self.match(VfrSyntaxParser.Step)=0D + self.state =3D 2104=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2105=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2106=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2113=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Default:=0D + self.state =3D 2109=0D + self.match(VfrSyntaxParser.Default)=0D + self.state =3D 2110=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2111=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2112=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrTimeFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.LFlags =3D 0=0D +=0D + def timeFlagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.TimeFlags= FieldContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.TimeFlagsF= ieldContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrTimeFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrTimeFlags" ):=0D + return visitor.visitVfrTimeFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrTimeFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrTimeFlagsContext(self, self._ctx, = self.state)=0D + self.enterRule(localctx, 242, self.RULE_vfrTimeFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2115=0D + self.timeFlagsField()=0D + self.state =3D 2120=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2116=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2117=0D + self.timeFlagsField()=0D + self.state =3D 2122=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class TimeFlagsFieldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.LFlag =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def HourSupppressFlag(self):=0D + return self.getToken(VfrSyntaxParser.HourSupppressFlag, 0)=0D +=0D + def MinuteSuppressFlag(self):=0D + return self.getToken(VfrSyntaxParser.MinuteSuppressFlag, 0)=0D +=0D + def SecondSuppressFlag(self):=0D + return self.getToken(VfrSyntaxParser.SecondSuppressFlag, 0)=0D +=0D + def StorageNormalFlag(self):=0D + return self.getToken(VfrSyntaxParser.StorageNormalFlag, 0)=0D +=0D + def StorageTimeFlag(self):=0D + return self.getToken(VfrSyntaxParser.StorageTimeFlag, 0)=0D +=0D + def StorageWakeUpFlag(self):=0D + return self.getToken(VfrSyntaxParser.StorageWakeUpFlag, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_timeFlagsField=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitTimeFlagsField" ):=0D + return visitor.visitTimeFlagsField(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def timeFlagsField(self):=0D +=0D + localctx =3D VfrSyntaxParser.TimeFlagsFieldContext(self, self._ctx= , self.state)=0D + self.enterRule(localctx, 244, self.RULE_timeFlagsField)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2123=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 184)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 184= )) & ((1 << (VfrSyntaxParser.HourSupppressFlag - 184)) | (1 << (VfrSyntaxPa= rser.MinuteSuppressFlag - 184)) | (1 << (VfrSyntaxParser.SecondSuppressFlag= - 184)) | (1 << (VfrSyntaxParser.StorageNormalFlag - 184)) | (1 << (VfrSyn= taxParser.StorageTimeFlag - 184)) | (1 << (VfrSyntaxParser.StorageWakeUpFla= g - 184)))) !=3D 0) or _la=3D=3DVfrSyntaxParser.Number):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementConditionalContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementDisableIfStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDi= sableIfStatContext,0)=0D +=0D +=0D + def vfrStatementSuppressIfStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSu= ppressIfStatContext,0)=0D +=0D +=0D + def vfrStatementGrayOutIfStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementGr= ayOutIfStatContext,0)=0D +=0D +=0D + def vfrStatementInconsistentIfStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= consistentIfStatContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementConditional=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementConditional" ):=0D + return visitor.visitVfrStatementConditional(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementConditional(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementConditionalContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 246, self.RULE_vfrStatementConditional)=0D + try:=0D + self.state =3D 2129=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.DisableIf]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2125=0D + self.vfrStatementDisableIfStat()=0D + pass=0D + elif token in [VfrSyntaxParser.SuppressIf]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2126=0D + self.vfrStatementSuppressIfStat()=0D + pass=0D + elif token in [VfrSyntaxParser.GrayOutIf]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2127=0D + self.vfrStatementGrayOutIfStat()=0D + pass=0D + elif token in [VfrSyntaxParser.InconsistentIf]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2128=0D + self.vfrStatementInconsistentIfStat()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementConditionalNewContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementDisableIfStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementDi= sableIfStatContext,0)=0D +=0D +=0D + def vfrStatementSuppressIfStatNew(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSu= ppressIfStatNewContext,0)=0D +=0D +=0D + def vfrStatementGrayOutIfStatNew(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementGr= ayOutIfStatNewContext,0)=0D +=0D +=0D + def vfrStatementInconsistentIfStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= consistentIfStatContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementConditionalNew=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementConditionalNew" ):=0D + return visitor.visitVfrStatementConditionalNew(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementConditionalNew(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementConditionalNewContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 248, self.RULE_vfrStatementConditionalNew= )=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2131=0D + self.vfrStatementDisableIfStat()=0D + self.state =3D 2132=0D + self.vfrStatementSuppressIfStatNew()=0D + self.state =3D 2133=0D + self.vfrStatementGrayOutIfStatNew()=0D + self.state =3D 2134=0D + self.vfrStatementInconsistentIfStat()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementSuppressIfStatContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementSuppressIfStatNew(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSu= ppressIfStatNewContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementSuppressIfStat=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementSuppressIfStat" ):=0D + return visitor.visitVfrStatementSuppressIfStat(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementSuppressIfStat(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementSuppressIfStatContext(sel= f, self._ctx, self.state)=0D + self.enterRule(localctx, 250, self.RULE_vfrStatementSuppressIfStat= )=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2136=0D + self.vfrStatementSuppressIfStatNew()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementGrayOutIfStatContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementGrayOutIfStatNew(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementGr= ayOutIfStatNewContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementGrayOutIfStat=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementGrayOutIfStat" ):=0D + return visitor.visitVfrStatementGrayOutIfStat(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementGrayOutIfStat(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementGrayOutIfStatContext(self= , self._ctx, self.state)=0D + self.enterRule(localctx, 252, self.RULE_vfrStatementGrayOutIfStat)= =0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2138=0D + self.vfrStatementGrayOutIfStatNew()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStatListContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrStatementStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atContext,0)=0D +=0D +=0D + def vfrStatementQuestions(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionsContext,0)=0D +=0D +=0D + def vfrStatementConditional(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementCo= nditionalContext,0)=0D +=0D +=0D + def vfrStatementLabel(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementLa= belContext,0)=0D +=0D +=0D + def vfrStatementExtension(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= tensionContext,0)=0D +=0D +=0D + def vfrStatementInvalid(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= validContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStatList=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStatList" ):=0D + return visitor.visitVfrStatementStatList(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStatList(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStatListContext(self, sel= f._ctx, self.state)=0D + self.enterRule(localctx, 254, self.RULE_vfrStatementStatList)=0D + try:=0D + self.state =3D 2146=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Subtitle, VfrSyntaxParser.Text, V= frSyntaxParser.Goto, VfrSyntaxParser.ResetButton]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2140=0D + self.vfrStatementStat()=0D + pass=0D + elif token in [VfrSyntaxParser.OneOf, VfrSyntaxParser.OrderedL= ist, VfrSyntaxParser.Date, VfrSyntaxParser.Time, VfrSyntaxParser.CheckBox, = VfrSyntaxParser.Numeric, VfrSyntaxParser.Password, VfrSyntaxParser.String, = VfrSyntaxParser.Action]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2141=0D + self.vfrStatementQuestions()=0D + pass=0D + elif token in [VfrSyntaxParser.GrayOutIf, VfrSyntaxParser.Supp= ressIf, VfrSyntaxParser.DisableIf, VfrSyntaxParser.InconsistentIf]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2142=0D + self.vfrStatementConditional()=0D + pass=0D + elif token in [VfrSyntaxParser.Label]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2143=0D + self.vfrStatementLabel()=0D + pass=0D + elif token in [VfrSyntaxParser.GuidOp]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 2144=0D + self.vfrStatementExtension()=0D + pass=0D + elif token in [VfrSyntaxParser.Inventory, VfrSyntaxParser.Hidd= en, VfrSyntaxParser.Restore, VfrSyntaxParser.Save]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 2145=0D + self.vfrStatementInvalid()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementStatListOldContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def vfrStatementStat(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementSt= atContext,0)=0D +=0D +=0D + def vfrStatementQuestions(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementQu= estionsContext,0)=0D +=0D +=0D + def vfrStatementLabel(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementLa= belContext,0)=0D +=0D +=0D + def vfrStatementInvalid(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= validContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementStatListOld=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementStatListOld" ):=0D + return visitor.visitVfrStatementStatListOld(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementStatListOld(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementStatListOldContext(self, = self._ctx, self.state)=0D + self.enterRule(localctx, 256, self.RULE_vfrStatementStatListOld)=0D + try:=0D + self.state =3D 2152=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Subtitle, VfrSyntaxParser.Text, V= frSyntaxParser.Goto, VfrSyntaxParser.ResetButton]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2148=0D + self.vfrStatementStat()=0D + pass=0D + elif token in [VfrSyntaxParser.OneOf, VfrSyntaxParser.OrderedL= ist, VfrSyntaxParser.Date, VfrSyntaxParser.Time, VfrSyntaxParser.CheckBox, = VfrSyntaxParser.Numeric, VfrSyntaxParser.Password, VfrSyntaxParser.String, = VfrSyntaxParser.Action]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2149=0D + self.vfrStatementQuestions()=0D + pass=0D + elif token in [VfrSyntaxParser.Label]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2150=0D + self.vfrStatementLabel()=0D + pass=0D + elif token in [VfrSyntaxParser.Inventory, VfrSyntaxParser.Hidd= en, VfrSyntaxParser.Restore, VfrSyntaxParser.Save]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2151=0D + self.vfrStatementInvalid()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementDisableIfStatContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_DISABLE_IF_OP)=0D +=0D + def DisableIf(self):=0D + return self.getToken(VfrSyntaxParser.DisableIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def vfrStatementStatList(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entStatListContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntStatListContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementDisableIfStat=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementDisableIfStat" ):=0D + return visitor.visitVfrStatementDisableIfStat(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementDisableIfStat(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementDisableIfStatContext(self= , self._ctx, self.state)=0D + self.enterRule(localctx, 258, self.RULE_vfrStatementDisableIfStat)= =0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2154=0D + self.match(VfrSyntaxParser.DisableIf)=0D + self.state =3D 2155=0D + self.vfrStatementExpression()=0D + self.state =3D 2156=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 2160=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 46)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 46)) = & ((1 << (VfrSyntaxParser.OneOf - 46)) | (1 << (VfrSyntaxParser.OrderedList= - 46)) | (1 << (VfrSyntaxParser.Subtitle - 46)) | (1 << (VfrSyntaxParser.T= ext - 46)) | (1 << (VfrSyntaxParser.Date - 46)) | (1 << (VfrSyntaxParser.Ti= me - 46)) | (1 << (VfrSyntaxParser.GrayOutIf - 46)) | (1 << (VfrSyntaxParse= r.Label - 46)) | (1 << (VfrSyntaxParser.Inventory - 46)) | (1 << (VfrSyntax= Parser.CheckBox - 46)) | (1 << (VfrSyntaxParser.Numeric - 46)) | (1 << (Vfr= SyntaxParser.Password - 46)) | (1 << (VfrSyntaxParser.String - 46)) | (1 <<= (VfrSyntaxParser.SuppressIf - 46)) | (1 << (VfrSyntaxParser.DisableIf - 46= )) | (1 << (VfrSyntaxParser.Hidden - 46)) | (1 << (VfrSyntaxParser.Goto - 4= 6)))) !=3D 0) or ((((_la - 110)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 110)) = & ((1 << (VfrSyntaxParser.InconsistentIf - 110)) | (1 << (VfrSyntaxParser.R= estore - 110)) | (1 << (VfrSyntaxParser.Save - 110)) | (1 << (VfrSyntaxPars= er.ResetButton - 110)) | (1 << (VfrSyntaxParser.Action - 110)) | (1 << (Vfr= SyntaxParser.GuidOp - 110)))) !=3D 0):=0D + self.state =3D 2157=0D + self.vfrStatementStatList()=0D + self.state =3D 2162=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2163=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 2164=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementgrayoutIfSuppressIfContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def SuppressIf(self):=0D + return self.getToken(VfrSyntaxParser.SuppressIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementgrayoutIfSuppressIf=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementgrayoutIfSuppressIf" ):= =0D + return visitor.visitVfrStatementgrayoutIfSuppressIf(self)= =0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementgrayoutIfSuppressIf(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementgrayoutIfSuppressIfContex= t(self, self._ctx, self.state)=0D + self.enterRule(localctx, 260, self.RULE_vfrStatementgrayoutIfSuppr= essIf)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2166=0D + self.match(VfrSyntaxParser.SuppressIf)=0D + self.state =3D 2179=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2167=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2168=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2169=0D + self.flagsField()=0D + self.state =3D 2174=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2170=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2171=0D + self.flagsField()=0D + self.state =3D 2176=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2177=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2181=0D + self.vfrStatementExpression()=0D + self.state =3D 2182=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementsuppressIfGrayOutIfContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def GrayOutIf(self):=0D + return self.getToken(VfrSyntaxParser.GrayOutIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementsuppressIfGrayOutIf=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementsuppressIfGrayOutIf" ):= =0D + return visitor.visitVfrStatementsuppressIfGrayOutIf(self)= =0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementsuppressIfGrayOutIf(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementsuppressIfGrayOutIfContex= t(self, self._ctx, self.state)=0D + self.enterRule(localctx, 262, self.RULE_vfrStatementsuppressIfGray= OutIf)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2184=0D + self.match(VfrSyntaxParser.GrayOutIf)=0D + self.state =3D 2197=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2185=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2186=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2187=0D + self.flagsField()=0D + self.state =3D 2192=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2188=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2189=0D + self.flagsField()=0D + self.state =3D 2194=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2195=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2199=0D + self.vfrStatementExpression()=0D + self.state =3D 2200=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementSuppressIfStatNewContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_SUPPRESS_IF_OP)=0D +=0D + def SuppressIf(self):=0D + return self.getToken(VfrSyntaxParser.SuppressIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def vfrStatementStatList(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entStatListContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntStatListContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementSuppressIfStatNew=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementSuppressIfStatNew" ):=0D + return visitor.visitVfrStatementSuppressIfStatNew(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementSuppressIfStatNew(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementSuppressIfStatNewContext(= self, self._ctx, self.state)=0D + self.enterRule(localctx, 264, self.RULE_vfrStatementSuppressIfStat= New)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2202=0D + self.match(VfrSyntaxParser.SuppressIf)=0D + self.state =3D 2215=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2203=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2204=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2205=0D + self.flagsField()=0D + self.state =3D 2210=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2206=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2207=0D + self.flagsField()=0D + self.state =3D 2212=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2213=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2217=0D + self.vfrStatementExpression()=0D + self.state =3D 2218=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 2222=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 46)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 46)) = & ((1 << (VfrSyntaxParser.OneOf - 46)) | (1 << (VfrSyntaxParser.OrderedList= - 46)) | (1 << (VfrSyntaxParser.Subtitle - 46)) | (1 << (VfrSyntaxParser.T= ext - 46)) | (1 << (VfrSyntaxParser.Date - 46)) | (1 << (VfrSyntaxParser.Ti= me - 46)) | (1 << (VfrSyntaxParser.GrayOutIf - 46)) | (1 << (VfrSyntaxParse= r.Label - 46)) | (1 << (VfrSyntaxParser.Inventory - 46)) | (1 << (VfrSyntax= Parser.CheckBox - 46)) | (1 << (VfrSyntaxParser.Numeric - 46)) | (1 << (Vfr= SyntaxParser.Password - 46)) | (1 << (VfrSyntaxParser.String - 46)) | (1 <<= (VfrSyntaxParser.SuppressIf - 46)) | (1 << (VfrSyntaxParser.DisableIf - 46= )) | (1 << (VfrSyntaxParser.Hidden - 46)) | (1 << (VfrSyntaxParser.Goto - 4= 6)))) !=3D 0) or ((((_la - 110)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 110)) = & ((1 << (VfrSyntaxParser.InconsistentIf - 110)) | (1 << (VfrSyntaxParser.R= estore - 110)) | (1 << (VfrSyntaxParser.Save - 110)) | (1 << (VfrSyntaxPars= er.ResetButton - 110)) | (1 << (VfrSyntaxParser.Action - 110)) | (1 << (Vfr= SyntaxParser.GuidOp - 110)))) !=3D 0):=0D + self.state =3D 2219=0D + self.vfrStatementStatList()=0D + self.state =3D 2224=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2225=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 2226=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementGrayOutIfStatNewContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_GRAY_OUT_IF_OP)=0D +=0D + def GrayOutIf(self):=0D + return self.getToken(VfrSyntaxParser.GrayOutIf, 0)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def vfrStatementStatList(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entStatListContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntStatListContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementGrayOutIfStatNew=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementGrayOutIfStatNew" ):=0D + return visitor.visitVfrStatementGrayOutIfStatNew(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementGrayOutIfStatNew(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementGrayOutIfStatNewContext(s= elf, self._ctx, self.state)=0D + self.enterRule(localctx, 266, self.RULE_vfrStatementGrayOutIfStatN= ew)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2228=0D + self.match(VfrSyntaxParser.GrayOutIf)=0D + self.state =3D 2241=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2229=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2230=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2231=0D + self.flagsField()=0D + self.state =3D 2236=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2232=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2233=0D + self.flagsField()=0D + self.state =3D 2238=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2239=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2243=0D + self.vfrStatementExpression()=0D + self.state =3D 2244=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 2248=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while ((((_la - 46)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 46)) = & ((1 << (VfrSyntaxParser.OneOf - 46)) | (1 << (VfrSyntaxParser.OrderedList= - 46)) | (1 << (VfrSyntaxParser.Subtitle - 46)) | (1 << (VfrSyntaxParser.T= ext - 46)) | (1 << (VfrSyntaxParser.Date - 46)) | (1 << (VfrSyntaxParser.Ti= me - 46)) | (1 << (VfrSyntaxParser.GrayOutIf - 46)) | (1 << (VfrSyntaxParse= r.Label - 46)) | (1 << (VfrSyntaxParser.Inventory - 46)) | (1 << (VfrSyntax= Parser.CheckBox - 46)) | (1 << (VfrSyntaxParser.Numeric - 46)) | (1 << (Vfr= SyntaxParser.Password - 46)) | (1 << (VfrSyntaxParser.String - 46)) | (1 <<= (VfrSyntaxParser.SuppressIf - 46)) | (1 << (VfrSyntaxParser.DisableIf - 46= )) | (1 << (VfrSyntaxParser.Hidden - 46)) | (1 << (VfrSyntaxParser.Goto - 4= 6)))) !=3D 0) or ((((_la - 110)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 110)) = & ((1 << (VfrSyntaxParser.InconsistentIf - 110)) | (1 << (VfrSyntaxParser.R= estore - 110)) | (1 << (VfrSyntaxParser.Save - 110)) | (1 << (VfrSyntaxPars= er.ResetButton - 110)) | (1 << (VfrSyntaxParser.Action - 110)) | (1 << (Vfr= SyntaxParser.GuidOp - 110)))) !=3D 0):=0D + self.state =3D 2245=0D + self.vfrStatementStatList()=0D + self.state =3D 2250=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2251=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 2252=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementInconsistentIfStatContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_INCONSISTENT_IF_OP)=0D +=0D + def InconsistentIf(self):=0D + return self.getToken(VfrSyntaxParser.InconsistentIf, 0)=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementExpression(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionContext,0)=0D +=0D +=0D + def EndIf(self):=0D + return self.getToken(VfrSyntaxParser.EndIf, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementInconsistentIfStat=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementInconsistentIfStat" ):= =0D + return visitor.visitVfrStatementInconsistentIfStat(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementInconsistentIfStat(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementInconsistentIfStatContext= (self, self._ctx, self.state)=0D + self.enterRule(localctx, 268, self.RULE_vfrStatementInconsistentIf= Stat)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2254=0D + self.match(VfrSyntaxParser.InconsistentIf)=0D + self.state =3D 2255=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 2256=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2257=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2258=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2259=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2260=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2261=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2274=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.FLAGS:=0D + self.state =3D 2262=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2263=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2264=0D + self.flagsField()=0D + self.state =3D 2269=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2265=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2266=0D + self.flagsField()=0D + self.state =3D 2271=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2272=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2276=0D + self.vfrStatementExpression()=0D + self.state =3D 2277=0D + self.match(VfrSyntaxParser.EndIf)=0D + self.state =3D 2278=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementInvalidContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def vfrStatementInvalidHidden(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= validHiddenContext,0)=0D +=0D +=0D + def vfrStatementInvalidInventory(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= validInventoryContext,0)=0D +=0D +=0D + def vfrStatementInvalidSaveRestoreDefaults(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementIn= validSaveRestoreDefaultsContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementInvalid=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementInvalid" ):=0D + return visitor.visitVfrStatementInvalid(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementInvalid(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementInvalidContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 270, self.RULE_vfrStatementInvalid)=0D + try:=0D + self.state =3D 2283=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Hidden]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2280=0D + self.vfrStatementInvalidHidden()=0D + pass=0D + elif token in [VfrSyntaxParser.Inventory]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2281=0D + self.vfrStatementInvalidInventory()=0D + pass=0D + elif token in [VfrSyntaxParser.Restore, VfrSyntaxParser.Save]:= =0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2282=0D + self.vfrStatementInvalidSaveRestoreDefaults()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementInvalidHiddenContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def Hidden(self):=0D + return self.getToken(VfrSyntaxParser.Hidden, 0)=0D +=0D + def Value(self):=0D + return self.getToken(VfrSyntaxParser.Value, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementInvalidHidden=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementInvalidHidden" ):=0D + return visitor.visitVfrStatementInvalidHidden(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementInvalidHidden(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementInvalidHiddenContext(self= , self._ctx, self.state)=0D + self.enterRule(localctx, 272, self.RULE_vfrStatementInvalidHidden)= =0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2285=0D + self.match(VfrSyntaxParser.Hidden)=0D + self.state =3D 2286=0D + self.match(VfrSyntaxParser.Value)=0D + self.state =3D 2287=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2288=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2289=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2290=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 2291=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2292=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2293=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementInvalidInventoryContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def Inventory(self):=0D + return self.getToken(VfrSyntaxParser.Inventory, 0)=0D +=0D + def Help(self):=0D + return self.getToken(VfrSyntaxParser.Help, 0)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Text(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Text)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Text, i)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementInvalidInventory=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementInvalidInventory" ):=0D + return visitor.visitVfrStatementInvalidInventory(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementInvalidInventory(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementInvalidInventoryContext(s= elf, self._ctx, self.state)=0D + self.enterRule(localctx, 274, self.RULE_vfrStatementInvalidInvento= ry)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2295=0D + self.match(VfrSyntaxParser.Inventory)=0D + self.state =3D 2296=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 2297=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2298=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2299=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2300=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2301=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2302=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2303=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 2304=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2305=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2306=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2307=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2308=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2309=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2316=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Text:=0D + self.state =3D 2310=0D + self.match(VfrSyntaxParser.Text)=0D + self.state =3D 2311=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2312=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2313=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2314=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2315=0D + self.match(VfrSyntaxParser.CloseParen)=0D +=0D +=0D + self.state =3D 2318=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementInvalidSaveRestoreDefaultsContext(ParserRuleContext)= :=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D +=0D + def Defaults(self):=0D + return self.getToken(VfrSyntaxParser.Defaults, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def FormId(self):=0D + return self.getToken(VfrSyntaxParser.FormId, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def Prompt(self):=0D + return self.getToken(VfrSyntaxParser.Prompt, 0)=0D +=0D + def StringToken(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.StringToken)=0D + else:=0D + return self.getToken(VfrSyntaxParser.StringToken, i)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Help(self):=0D + return self.getToken(VfrSyntaxParser.Help, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Save(self):=0D + return self.getToken(VfrSyntaxParser.Save, 0)=0D +=0D + def Restore(self):=0D + return self.getToken(VfrSyntaxParser.Restore, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def flagsField(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FlagsFiel= dContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FlagsField= Context,i)=0D +=0D +=0D + def Key(self):=0D + return self.getToken(VfrSyntaxParser.Key, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementInvalidSaveRestoreDefa= ults=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementInvalidSaveRestoreDefau= lts" ):=0D + return visitor.visitVfrStatementInvalidSaveRestoreDefaults= (self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementInvalidSaveRestoreDefaults(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementInvalidSaveRestoreDefault= sContext(self, self._ctx, self.state)=0D + self.enterRule(localctx, 276, self.RULE_vfrStatementInvalidSaveRes= toreDefaults)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2320=0D + _la =3D self._input.LA(1)=0D + if not(_la=3D=3DVfrSyntaxParser.Restore or _la=3D=3DVfrSyntaxP= arser.Save):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + self.state =3D 2321=0D + self.match(VfrSyntaxParser.Defaults)=0D + self.state =3D 2322=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2323=0D + self.match(VfrSyntaxParser.FormId)=0D + self.state =3D 2324=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2325=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2326=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2327=0D + self.match(VfrSyntaxParser.Prompt)=0D + self.state =3D 2328=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2329=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2330=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2331=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2332=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2333=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2334=0D + self.match(VfrSyntaxParser.Help)=0D + self.state =3D 2335=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2336=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2337=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2338=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2339=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2351=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,181,self._ctx= )=0D + if la_ =3D=3D 1:=0D + self.state =3D 2340=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2341=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2342=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2343=0D + self.flagsField()=0D + self.state =3D 2348=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2344=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2345=0D + self.flagsField()=0D + self.state =3D 2350=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D +=0D +=0D + self.state =3D 2357=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 2353=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2354=0D + self.match(VfrSyntaxParser.Key)=0D + self.state =3D 2355=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2356=0D + self.match(VfrSyntaxParser.Number)=0D +=0D +=0D + self.state =3D 2359=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementLabelContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_GUID_OP)=0D +=0D + def Label(self):=0D + return self.getToken(VfrSyntaxParser.Label, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementLabel=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementLabel" ):=0D + return visitor.visitVfrStatementLabel(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementLabel(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementLabelContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 278, self.RULE_vfrStatementLabel)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2361=0D + self.match(VfrSyntaxParser.Label)=0D + self.state =3D 2362=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2363=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementBannerContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_GUID_OP)=0D +=0D + def Banner(self):=0D + return self.getToken(VfrSyntaxParser.Banner, 0)=0D +=0D + def Title(self):=0D + return self.getToken(VfrSyntaxParser.Title, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Line(self):=0D + return self.getToken(VfrSyntaxParser.Line, 0)=0D +=0D + def Align(self):=0D + return self.getToken(VfrSyntaxParser.Align, 0)=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Timeout(self):=0D + return self.getToken(VfrSyntaxParser.Timeout, 0)=0D +=0D + def Left(self):=0D + return self.getToken(VfrSyntaxParser.Left, 0)=0D +=0D + def Center(self):=0D + return self.getToken(VfrSyntaxParser.Center, 0)=0D +=0D + def Right(self):=0D + return self.getToken(VfrSyntaxParser.Right, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementBanner=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementBanner" ):=0D + return visitor.visitVfrStatementBanner(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementBanner(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementBannerContext(self, self.= _ctx, self.state)=0D + self.enterRule(localctx, 280, self.RULE_vfrStatementBanner)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2365=0D + self.match(VfrSyntaxParser.Banner)=0D + self.state =3D 2367=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 2366=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2369=0D + self.match(VfrSyntaxParser.Title)=0D + self.state =3D 2370=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2371=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2372=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2373=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2374=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2375=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2386=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Line]:=0D + self.state =3D 2376=0D + self.match(VfrSyntaxParser.Line)=0D + self.state =3D 2377=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2378=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2379=0D + self.match(VfrSyntaxParser.Align)=0D + self.state =3D 2380=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 136)) & ~0x3f) =3D=3D 0 and ((1 << (_la -= 136)) & ((1 << (VfrSyntaxParser.Left - 136)) | (1 << (VfrSyntaxParser.Righ= t - 136)) | (1 << (VfrSyntaxParser.Center - 136)))) !=3D 0)):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + self.state =3D 2381=0D + self.match(VfrSyntaxParser.Semicolon)=0D + pass=0D + elif token in [VfrSyntaxParser.Timeout]:=0D + self.state =3D 2382=0D + self.match(VfrSyntaxParser.Timeout)=0D + self.state =3D 2383=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2384=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2385=0D + self.match(VfrSyntaxParser.Semicolon)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementExtensionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_GUID_OP)=0D + self.DataBuff =3D None=0D + self.Size =3D 0=0D + self.TypeName =3D ''=0D + self.TypeSize =3D 0=0D + self.IsStruct =3D False=0D + self.ArrayNum =3D 0=0D + self.D =3D None # Token=0D +=0D + def GuidOp(self):=0D + return self.getToken(VfrSyntaxParser.GuidOp, 0)=0D +=0D + def Uuid(self):=0D + return self.getToken(VfrSyntaxParser.Uuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def EndGuidOp(self):=0D + return self.getToken(VfrSyntaxParser.EndGuidOp, 0)=0D +=0D + def DataType(self):=0D + return self.getToken(VfrSyntaxParser.DataType, 0)=0D +=0D + def Uint64(self):=0D + return self.getToken(VfrSyntaxParser.Uint64, 0)=0D +=0D + def Uint32(self):=0D + return self.getToken(VfrSyntaxParser.Uint32, 0)=0D +=0D + def Uint16(self):=0D + return self.getToken(VfrSyntaxParser.Uint16, 0)=0D +=0D + def Uint8(self):=0D + return self.getToken(VfrSyntaxParser.Uint8, 0)=0D +=0D + def Boolean(self):=0D + return self.getToken(VfrSyntaxParser.Boolean, 0)=0D +=0D + def EFI_STRING_ID(self):=0D + return self.getToken(VfrSyntaxParser.EFI_STRING_ID, 0)=0D +=0D + def EFI_HII_DATE(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_DATE, 0)=0D +=0D + def EFI_HII_TIME(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_TIME, 0)=0D +=0D + def EFI_HII_REF(self):=0D + return self.getToken(VfrSyntaxParser.EFI_HII_REF, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def vfrExtensionData(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrExtens= ionDataContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExtensi= onDataContext,i)=0D +=0D +=0D + def vfrStatementExtension(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExtensionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExtensionContext,i)=0D +=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementExtension=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementExtension" ):=0D + return visitor.visitVfrStatementExtension(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementExtension(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementExtensionContext(self, se= lf._ctx, self.state)=0D + self.enterRule(localctx, 282, self.RULE_vfrStatementExtension)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2388=0D + self.match(VfrSyntaxParser.GuidOp)=0D + self.state =3D 2389=0D + self.match(VfrSyntaxParser.Uuid)=0D + self.state =3D 2390=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2391=0D + self.guidDefinition()=0D + self.state =3D 2463=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,197,self._ctx= )=0D + if la_ =3D=3D 1:=0D + self.state =3D 2392=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2393=0D + localctx.D =3D self.match(VfrSyntaxParser.DataType)=0D + self.state =3D 2394=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2455=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Uint64]:=0D + self.state =3D 2395=0D + self.match(VfrSyntaxParser.Uint64)=0D + self.state =3D 2399=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2396=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2397=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2398=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.Uint32]:=0D + self.state =3D 2401=0D + self.match(VfrSyntaxParser.Uint32)=0D + self.state =3D 2405=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2402=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2403=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2404=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.Uint16]:=0D + self.state =3D 2407=0D + self.match(VfrSyntaxParser.Uint16)=0D + self.state =3D 2411=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2408=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2409=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2410=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.Uint8]:=0D + self.state =3D 2413=0D + self.match(VfrSyntaxParser.Uint8)=0D + self.state =3D 2417=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2414=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2415=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2416=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.Boolean]:=0D + self.state =3D 2419=0D + self.match(VfrSyntaxParser.Boolean)=0D + self.state =3D 2423=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2420=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2421=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2422=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_STRING_ID]:=0D + self.state =3D 2425=0D + self.match(VfrSyntaxParser.EFI_STRING_ID)=0D + self.state =3D 2429=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2426=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2427=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2428=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_DATE]:=0D + self.state =3D 2431=0D + self.match(VfrSyntaxParser.EFI_HII_DATE)=0D + self.state =3D 2435=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2432=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2433=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2434=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_TIME]:=0D + self.state =3D 2437=0D + self.match(VfrSyntaxParser.EFI_HII_TIME)=0D + self.state =3D 2441=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2438=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2439=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2440=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.EFI_HII_REF]:=0D + self.state =3D 2443=0D + self.match(VfrSyntaxParser.EFI_HII_REF)=0D + self.state =3D 2447=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2444=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2445=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2446=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + elif token in [VfrSyntaxParser.StringIdentifier]:=0D + self.state =3D 2449=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2453=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2450=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2451=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2452=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 2460=0D + self._errHandler.sync(self)=0D + _alt =3D self._interp.adaptivePredict(self._input,196,self= ._ctx)=0D + while _alt!=3D2 and _alt!=3DATN.INVALID_ALT_NUMBER:=0D + if _alt=3D=3D1:=0D + self.state =3D 2457=0D + self.vfrExtensionData(localctx.DataBuff)=0D + self.state =3D 2462=0D + self._errHandler.sync(self)=0D + _alt =3D self._interp.adaptivePredict(self._input,196,= self._ctx)=0D +=0D +=0D +=0D + self.state =3D 2473=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Comma:=0D + self.state =3D 2465=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2469=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.GuidOp:=0D + self.state =3D 2466=0D + self.vfrStatementExtension()=0D + self.state =3D 2471=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2472=0D + self.match(VfrSyntaxParser.EndGuidOp)=0D +=0D +=0D + self.state =3D 2475=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExtensionDataContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, DataBuff=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.DataBuff =3D None=0D + self.IsStruct =3D None=0D + self.N =3D None # Token=0D + self.DataBuff =3D DataBuff=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def Data(self):=0D + return self.getToken(VfrSyntaxParser.Data, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def Dot(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Dot)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Dot, i)=0D +=0D + def arrayName(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.ArrayName= Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.ArrayNameC= ontext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExtensionData=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExtensionData" ):=0D + return visitor.visitVfrExtensionData(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExtensionData(self, DataBuff):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExtensionDataContext(self, self._c= tx, self.state, DataBuff)=0D + self.enterRule(localctx, 284, self.RULE_vfrExtensionData)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2477=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2478=0D + self.match(VfrSyntaxParser.Data)=0D + self.state =3D 2482=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2479=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2480=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2481=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + self.state =3D 2488=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Dot:=0D + self.state =3D 2484=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 2485=0D + self.arrayName()=0D + self.state =3D 2490=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2491=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2492=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementModalContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D None=0D +=0D + def vfrModalTag(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrModalTagCon= text,0)=0D +=0D +=0D + def Semicolon(self):=0D + return self.getToken(VfrSyntaxParser.Semicolon, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementModal=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementModal" ):=0D + return visitor.visitVfrStatementModal(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementModal(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementModalContext(self, self._= ctx, self.state)=0D + self.enterRule(localctx, 286, self.RULE_vfrStatementModal)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2494=0D + self.vfrModalTag()=0D + self.state =3D 2495=0D + self.match(VfrSyntaxParser.Semicolon)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrModalTagContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Node =3D VfrTreeNode(EFI_IFR_MODAL_TAG_OP)=0D +=0D + def Modal(self):=0D + return self.getToken(VfrSyntaxParser.Modal, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrModalTag=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrModalTag" ):=0D + return visitor.visitVfrModalTag(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrModalTag(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrModalTagContext(self, self._ctx, s= elf.state)=0D + self.enterRule(localctx, 288, self.RULE_vfrModalTag)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2497=0D + self.match(VfrSyntaxParser.Modal)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementExpressionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D ExpressionInfo()=0D +=0D + def andTerm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.AndTermCo= ntext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.AndTermCon= text,i)=0D +=0D +=0D + def OR(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OR)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OR, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementExpression=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementExpression" ):=0D + return visitor.visitVfrStatementExpression(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementExpression(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementExpressionContext(self, s= elf._ctx, self.state)=0D + self.enterRule(localctx, 290, self.RULE_vfrStatementExpression)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2499=0D + self.andTerm(localctx.ExpInfo)=0D + self.state =3D 2504=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.OR:=0D + self.state =3D 2500=0D + self.match(VfrSyntaxParser.OR)=0D + self.state =3D 2501=0D + self.andTerm(localctx.ExpInfo)=0D + self.state =3D 2506=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrStatementExpressionSubContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D ExpressionInfo()=0D +=0D + def andTerm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.AndTermCo= ntext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.AndTermCon= text,i)=0D +=0D +=0D + def OR(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OR)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OR, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrStatementExpressionSub=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrStatementExpressionSub" ):=0D + return visitor.visitVfrStatementExpressionSub(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrStatementExpressionSub(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrStatementExpressionSubContext(self= , self._ctx, self.state)=0D + self.enterRule(localctx, 292, self.RULE_vfrStatementExpressionSub)= =0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2507=0D + self.andTerm(localctx.ExpInfo)=0D + self.state =3D 2512=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.OR:=0D + self.state =3D 2508=0D + self.match(VfrSyntaxParser.OR)=0D + self.state =3D 2509=0D + self.andTerm(localctx.ExpInfo)=0D + self.state =3D 2514=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class AndTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrAndList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def bitwiseorTerm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.Bitwiseor= TermContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.BitwiseorT= ermContext,i)=0D +=0D +=0D + def AND(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.AND)=0D + else:=0D + return self.getToken(VfrSyntaxParser.AND, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_andTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitAndTerm" ):=0D + return visitor.visitAndTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def andTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.AndTermContext(self, self._ctx, self.= state, ExpInfo)=0D + self.enterRule(localctx, 294, self.RULE_andTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2515=0D + self.bitwiseorTerm(ExpInfo)=0D + self.state =3D 2520=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.AND:=0D + self.state =3D 2516=0D + self.match(VfrSyntaxParser.AND)=0D + self.state =3D 2517=0D + self.bitwiseorTerm(ExpInfo)=0D + self.state =3D 2522=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class BitwiseorTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrBitWiseOrList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def bitwiseandTerm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.Bitwisean= dTermContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.Bitwiseand= TermContext,i)=0D +=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_bitwiseorTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitBitwiseorTerm" ):=0D + return visitor.visitBitwiseorTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def bitwiseorTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.BitwiseorTermContext(self, self._ctx,= self.state, ExpInfo)=0D + self.enterRule(localctx, 296, self.RULE_bitwiseorTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2523=0D + self.bitwiseandTerm(ExpInfo)=0D + self.state =3D 2528=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2524=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2525=0D + self.bitwiseandTerm(ExpInfo)=0D + self.state =3D 2530=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class BitwiseandTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrBitWiseAndList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def equalTerm(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.EqualTerm= Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.EqualTermC= ontext,i)=0D +=0D +=0D + def BitWiseAnd(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseAnd)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseAnd, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_bitwiseandTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitBitwiseandTerm" ):=0D + return visitor.visitBitwiseandTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def bitwiseandTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.BitwiseandTermContext(self, self._ctx= , self.state, ExpInfo)=0D + self.enterRule(localctx, 298, self.RULE_bitwiseandTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2531=0D + self.equalTerm(ExpInfo)=0D + self.state =3D 2536=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseAnd:=0D + self.state =3D 2532=0D + self.match(VfrSyntaxParser.BitWiseAnd)=0D + self.state =3D 2533=0D + self.equalTerm(ExpInfo)=0D + self.state =3D 2538=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class EqualTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrEqualList =3D []=0D + self.CIfrNotEqualList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def compareTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CompareTermCon= text,0)=0D +=0D +=0D + def equalTermSupplementary(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.EqualTerm= SupplementaryContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.EqualTermS= upplementaryContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_equalTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitEqualTerm" ):=0D + return visitor.visitEqualTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def equalTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.EqualTermContext(self, self._ctx, sel= f.state, ExpInfo)=0D + self.enterRule(localctx, 300, self.RULE_equalTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2539=0D + self.compareTerm(localctx.ExpInfo)=0D + self.state =3D 2543=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Equal or _la=3D=3DVfrSyntaxPars= er.NotEqual:=0D + self.state =3D 2540=0D + self.equalTermSupplementary(localctx.CIfrEqualList, localc= tx.CIfrNotEqualList, ExpInfo)=0D + self.state =3D 2545=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class EqualTermSupplementaryContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, CIfrEqualList=3DNone, CIfrNotEqualList=3DNone, ExpInfo=3D= None):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.CIfrEqualList =3D None=0D + self.CIfrNotEqualList =3D None=0D + self.ExpInfo =3D None=0D + self.CIfrEqualList =3D CIfrEqualList=0D + self.CIfrNotEqualList =3D CIfrNotEqualList=0D + self.ExpInfo =3D ExpInfo=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_equalTermSupplementary=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.CIfrEqualList =3D ctx.CIfrEqualList=0D + self.CIfrNotEqualList =3D ctx.CIfrNotEqualList=0D + self.ExpInfo =3D ctx.ExpInfo=0D +=0D +=0D +=0D + class EqualTermEqualRuleContext(EqualTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.EqualTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def Equal(self):=0D + return self.getToken(VfrSyntaxParser.Equal, 0)=0D + def compareTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CompareTermCon= text,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitEqualTermEqualRule" ):=0D + return visitor.visitEqualTermEqualRule(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class EqualTermNotEqualRuleContext(EqualTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.EqualTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def NotEqual(self):=0D + return self.getToken(VfrSyntaxParser.NotEqual, 0)=0D + def compareTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CompareTermCon= text,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitEqualTermNotEqualRule" ):=0D + return visitor.visitEqualTermNotEqualRule(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def equalTermSupplementary(self, CIfrEqualList, CIfrNotEqualList, ExpI= nfo):=0D +=0D + localctx =3D VfrSyntaxParser.EqualTermSupplementaryContext(self, s= elf._ctx, self.state, CIfrEqualList, CIfrNotEqualList, ExpInfo)=0D + self.enterRule(localctx, 302, self.RULE_equalTermSupplementary)=0D + try:=0D + self.state =3D 2550=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Equal]:=0D + localctx =3D VfrSyntaxParser.EqualTermEqualRuleContext(sel= f, localctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2546=0D + self.match(VfrSyntaxParser.Equal)=0D + self.state =3D 2547=0D + self.compareTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.NotEqual]:=0D + localctx =3D VfrSyntaxParser.EqualTermNotEqualRuleContext(= self, localctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2548=0D + self.match(VfrSyntaxParser.NotEqual)=0D + self.state =3D 2549=0D + self.compareTerm(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class CompareTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrLessThanList =3D []=0D + self.CIfrLessEqualList =3D []=0D + self.CIfrGreaterThanList =3D []=0D + self.CIfrGreaterEqualList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def shiftTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ShiftTermConte= xt,0)=0D +=0D +=0D + def compareTermSupplementary(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.CompareTe= rmSupplementaryContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.CompareTer= mSupplementaryContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_compareTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCompareTerm" ):=0D + return visitor.visitCompareTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def compareTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.CompareTermContext(self, self._ctx, s= elf.state, ExpInfo)=0D + self.enterRule(localctx, 304, self.RULE_compareTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2552=0D + self.shiftTerm(ExpInfo)=0D + self.state =3D 2556=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while (((_la) & ~0x3f) =3D=3D 0 and ((1 << _la) & ((1 << VfrSy= ntaxParser.LessEqual) | (1 << VfrSyntaxParser.Less) | (1 << VfrSyntaxParser= .GreaterEqual) | (1 << VfrSyntaxParser.Greater))) !=3D 0):=0D + self.state =3D 2553=0D + self.compareTermSupplementary(localctx.CIfrLessThanList, l= ocalctx.CIfrLessEqualList, localctx.CIfrGreaterThanList, localctx.CIfrGreat= erEqualList, ExpInfo)=0D + self.state =3D 2558=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class CompareTermSupplementaryContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, CIfrLessThanList=3DNone, CIfrLessEqualList=3DNone, CIfrGr= eaterThanList=3DNone, CIfrGreaterEqualList=3DNone, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.CIfrLessThanList =3D None=0D + self.CIfrLessEqualList =3D None=0D + self.CIfrGreaterThanList =3D None=0D + self.CIfrGreaterEqualList =3D None=0D + self.ExpInfo =3D None=0D + self.CIfrLessThanList =3D CIfrLessThanList=0D + self.CIfrLessEqualList =3D CIfrLessEqualList=0D + self.CIfrGreaterThanList =3D CIfrGreaterThanList=0D + self.CIfrGreaterEqualList =3D CIfrGreaterEqualList=0D + self.ExpInfo =3D ExpInfo=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_compareTermSupplementary=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.CIfrLessThanList =3D ctx.CIfrLessThanList=0D + self.CIfrLessEqualList =3D ctx.CIfrLessEqualList=0D + self.CIfrGreaterThanList =3D ctx.CIfrGreaterThanList=0D + self.CIfrGreaterEqualList =3D ctx.CIfrGreaterEqualList=0D + self.ExpInfo =3D ctx.ExpInfo=0D +=0D +=0D +=0D + class CompareTermLessRuleContext(CompareTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.CompareTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def Less(self):=0D + return self.getToken(VfrSyntaxParser.Less, 0)=0D + def shiftTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ShiftTermConte= xt,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCompareTermLessRule" ):=0D + return visitor.visitCompareTermLessRule(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class CompareTermGreaterEqualRuleContext(CompareTermSupplementaryConte= xt):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.CompareTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def GreaterEqual(self):=0D + return self.getToken(VfrSyntaxParser.GreaterEqual, 0)=0D + def shiftTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ShiftTermConte= xt,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCompareTermGreaterEqualRule" ):=0D + return visitor.visitCompareTermGreaterEqualRule(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class CompareTermGreaterRuleContext(CompareTermSupplementaryContext):= =0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.CompareTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def Greater(self):=0D + return self.getToken(VfrSyntaxParser.Greater, 0)=0D + def shiftTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ShiftTermConte= xt,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCompareTermGreaterRule" ):=0D + return visitor.visitCompareTermGreaterRule(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class CompareTermLessEqualRuleContext(CompareTermSupplementaryContext)= :=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.CompareTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def LessEqual(self):=0D + return self.getToken(VfrSyntaxParser.LessEqual, 0)=0D + def shiftTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ShiftTermConte= xt,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCompareTermLessEqualRule" ):=0D + return visitor.visitCompareTermLessEqualRule(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def compareTermSupplementary(self, CIfrLessThanList, CIfrLessEqualList= , CIfrGreaterThanList, CIfrGreaterEqualList, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.CompareTermSupplementaryContext(self,= self._ctx, self.state, CIfrLessThanList, CIfrLessEqualList, CIfrGreaterTha= nList, CIfrGreaterEqualList, ExpInfo)=0D + self.enterRule(localctx, 306, self.RULE_compareTermSupplementary)= =0D + try:=0D + self.state =3D 2567=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Less]:=0D + localctx =3D VfrSyntaxParser.CompareTermLessRuleContext(se= lf, localctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2559=0D + self.match(VfrSyntaxParser.Less)=0D + self.state =3D 2560=0D + self.shiftTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.LessEqual]:=0D + localctx =3D VfrSyntaxParser.CompareTermLessEqualRuleConte= xt(self, localctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2561=0D + self.match(VfrSyntaxParser.LessEqual)=0D + self.state =3D 2562=0D + self.shiftTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Greater]:=0D + localctx =3D VfrSyntaxParser.CompareTermGreaterRuleContext= (self, localctx)=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2563=0D + self.match(VfrSyntaxParser.Greater)=0D + self.state =3D 2564=0D + self.shiftTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.GreaterEqual]:=0D + localctx =3D VfrSyntaxParser.CompareTermGreaterEqualRuleCo= ntext(self, localctx)=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2565=0D + self.match(VfrSyntaxParser.GreaterEqual)=0D + self.state =3D 2566=0D + self.shiftTerm(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ShiftTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrShiftLeftList =3D []=0D + self.CIfrShiftRightList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def addMinusTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.AddMinusTermCo= ntext,0)=0D +=0D +=0D + def shiftTermSupplementary(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.ShiftTerm= SupplementaryContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.ShiftTermS= upplementaryContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_shiftTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitShiftTerm" ):=0D + return visitor.visitShiftTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def shiftTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.ShiftTermContext(self, self._ctx, sel= f.state, ExpInfo)=0D + self.enterRule(localctx, 308, self.RULE_shiftTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2569=0D + self.addMinusTerm(ExpInfo)=0D + self.state =3D 2573=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.T__9 or _la=3D=3DVfrSyntaxParse= r.T__10:=0D + self.state =3D 2570=0D + self.shiftTermSupplementary(localctx.CIfrShiftLeftList, lo= calctx.CIfrShiftRightList, ExpInfo)=0D + self.state =3D 2575=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ShiftTermSupplementaryContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, CIfrShiftLeftList=3DNone, CIfrShiftRightList=3DNone, ExpI= nfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.CIfrShiftLeftList =3D None=0D + self.CIfrShiftRightList =3D None=0D + self.ExpInfo =3D None=0D + self.CIfrShiftLeftList =3D CIfrShiftLeftList=0D + self.CIfrShiftRightList =3D CIfrShiftRightList=0D + self.ExpInfo =3D ExpInfo=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_shiftTermSupplementary=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.CIfrShiftLeftList =3D ctx.CIfrShiftLeftList=0D + self.CIfrShiftRightList =3D ctx.CIfrShiftRightList=0D + self.ExpInfo =3D ctx.ExpInfo=0D +=0D +=0D +=0D + class ShiftTermRightContext(ShiftTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.ShiftTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def addMinusTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.AddMinusTermCo= ntext,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitShiftTermRight" ):=0D + return visitor.visitShiftTermRight(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class ShiftTermLeftContext(ShiftTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.ShiftTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def addMinusTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.AddMinusTermCo= ntext,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitShiftTermLeft" ):=0D + return visitor.visitShiftTermLeft(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def shiftTermSupplementary(self, CIfrShiftLeftList, CIfrShiftRightList= , ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.ShiftTermSupplementaryContext(self, s= elf._ctx, self.state, CIfrShiftLeftList, CIfrShiftRightList, ExpInfo)=0D + self.enterRule(localctx, 310, self.RULE_shiftTermSupplementary)=0D + try:=0D + self.state =3D 2580=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.T__9]:=0D + localctx =3D VfrSyntaxParser.ShiftTermLeftContext(self, lo= calctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2576=0D + self.match(VfrSyntaxParser.T__9)=0D + self.state =3D 2577=0D + self.addMinusTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.T__10]:=0D + localctx =3D VfrSyntaxParser.ShiftTermRightContext(self, l= ocalctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2578=0D + self.match(VfrSyntaxParser.T__10)=0D + self.state =3D 2579=0D + self.addMinusTerm(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class AddMinusTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrAddList =3D []=0D + self.CIfrSubtractList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def multdivmodTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.MultdivmodTerm= Context,0)=0D +=0D +=0D + def addMinusTermSupplementary(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.AddMinusT= ermSupplementaryContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.AddMinusTe= rmSupplementaryContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_addMinusTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitAddMinusTerm" ):=0D + return visitor.visitAddMinusTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def addMinusTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.AddMinusTermContext(self, self._ctx, = self.state, ExpInfo)=0D + self.enterRule(localctx, 312, self.RULE_addMinusTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2582=0D + self.multdivmodTerm(ExpInfo)=0D + self.state =3D 2586=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.T__11 or _la=3D=3DVfrSyntaxPars= er.Negative:=0D + self.state =3D 2583=0D + self.addMinusTermSupplementary(localctx.CIfrAddList, local= ctx.CIfrSubtractList, ExpInfo)=0D + self.state =3D 2588=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class AddMinusTermSupplementaryContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, CIfrAddList=3DNone, CIfrSubtractList=3DNone, ExpInfo=3DNo= ne):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.CIfrAddList =3D None=0D + self.CIfrSubtractList =3D None=0D + self.ExpInfo =3D None=0D + self.CIfrAddList =3D CIfrAddList=0D + self.CIfrSubtractList =3D CIfrSubtractList=0D + self.ExpInfo =3D ExpInfo=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_addMinusTermSupplementary=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.CIfrAddList =3D ctx.CIfrAddList=0D + self.CIfrSubtractList =3D ctx.CIfrSubtractList=0D + self.ExpInfo =3D ctx.ExpInfo=0D +=0D +=0D +=0D + class AddMinusTermpAddContext(AddMinusTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.AddMinusTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def multdivmodTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.MultdivmodTerm= Context,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitAddMinusTermpAdd" ):=0D + return visitor.visitAddMinusTermpAdd(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class AddMinusTermSubtractContext(AddMinusTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.AddMinusTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def Negative(self):=0D + return self.getToken(VfrSyntaxParser.Negative, 0)=0D + def multdivmodTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.MultdivmodTerm= Context,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitAddMinusTermSubtract" ):=0D + return visitor.visitAddMinusTermSubtract(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def addMinusTermSupplementary(self, CIfrAddList, CIfrSubtractList, Exp= Info):=0D +=0D + localctx =3D VfrSyntaxParser.AddMinusTermSupplementaryContext(self= , self._ctx, self.state, CIfrAddList, CIfrSubtractList, ExpInfo)=0D + self.enterRule(localctx, 314, self.RULE_addMinusTermSupplementary)= =0D + try:=0D + self.state =3D 2593=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.T__11]:=0D + localctx =3D VfrSyntaxParser.AddMinusTermpAddContext(self,= localctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2589=0D + self.match(VfrSyntaxParser.T__11)=0D + self.state =3D 2590=0D + self.multdivmodTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Negative]:=0D + localctx =3D VfrSyntaxParser.AddMinusTermSubtractContext(s= elf, localctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2591=0D + self.match(VfrSyntaxParser.Negative)=0D + self.state =3D 2592=0D + self.multdivmodTerm(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class MultdivmodTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CIfrMultiplyList =3D []=0D + self.CIfrDivideList =3D []=0D + self.CIfrModuloList =3D []=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def castTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CastTermContex= t,0)=0D +=0D +=0D + def multdivmodTermSupplementary(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.Multdivmo= dTermSupplementaryContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.Multdivmod= TermSupplementaryContext,i)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_multdivmodTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMultdivmodTerm" ):=0D + return visitor.visitMultdivmodTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def multdivmodTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.MultdivmodTermContext(self, self._ctx= , self.state, ExpInfo)=0D + self.enterRule(localctx, 316, self.RULE_multdivmodTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2595=0D + self.castTerm(ExpInfo)=0D + self.state =3D 2599=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while (((_la) & ~0x3f) =3D=3D 0 and ((1 << _la) & ((1 << VfrSy= ntaxParser.T__12) | (1 << VfrSyntaxParser.T__13) | (1 << VfrSyntaxParser.Sl= ash))) !=3D 0):=0D + self.state =3D 2596=0D + self.multdivmodTermSupplementary(localctx.CIfrMultiplyList= , localctx.CIfrDivideList, localctx.CIfrModuloList, ExpInfo)=0D + self.state =3D 2601=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class MultdivmodTermSupplementaryContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, CIfrMultiplyList=3DNone, CIfrDivideList=3DNone, CIfrModul= oList=3DNone, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.CIfrMultiplyList =3D None=0D + self.CIfrDivideList =3D None=0D + self.CIfrModuloList =3D None=0D + self.ExpInfo =3D None=0D + self.CIfrMultiplyList =3D CIfrMultiplyList=0D + self.CIfrDivideList =3D CIfrDivideList=0D + self.CIfrModuloList =3D CIfrModuloList=0D + self.ExpInfo =3D ExpInfo=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_multdivmodTermSupplementary=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.CIfrMultiplyList =3D ctx.CIfrMultiplyList=0D + self.CIfrDivideList =3D ctx.CIfrDivideList=0D + self.CIfrModuloList =3D ctx.CIfrModuloList=0D + self.ExpInfo =3D ctx.ExpInfo=0D +=0D +=0D +=0D + class MultdivmodTermDivContext(MultdivmodTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.MultdivmodTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def Slash(self):=0D + return self.getToken(VfrSyntaxParser.Slash, 0)=0D + def castTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CastTermContex= t,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMultdivmodTermDiv" ):=0D + return visitor.visitMultdivmodTermDiv(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class MultdivmodTermMulContext(MultdivmodTermSupplementaryContext):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.MultdivmodTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def castTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CastTermContex= t,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMultdivmodTermMul" ):=0D + return visitor.visitMultdivmodTermMul(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class MultdivmodTermModuloContext(MultdivmodTermSupplementaryContext):= =0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.MultdivmodTermSupplementaryContext=0D + super().__init__(parser)=0D + self.copyFrom(ctx)=0D +=0D + def castTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.CastTermContex= t,0)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMultdivmodTermModulo" ):=0D + return visitor.visitMultdivmodTermModulo(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def multdivmodTermSupplementary(self, CIfrMultiplyList, CIfrDivideList= , CIfrModuloList, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.MultdivmodTermSupplementaryContext(se= lf, self._ctx, self.state, CIfrMultiplyList, CIfrDivideList, CIfrModuloList= , ExpInfo)=0D + self.enterRule(localctx, 318, self.RULE_multdivmodTermSupplementar= y)=0D + try:=0D + self.state =3D 2608=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.T__12]:=0D + localctx =3D VfrSyntaxParser.MultdivmodTermMulContext(self= , localctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2602=0D + self.match(VfrSyntaxParser.T__12)=0D + self.state =3D 2603=0D + self.castTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Slash]:=0D + localctx =3D VfrSyntaxParser.MultdivmodTermDivContext(self= , localctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2604=0D + self.match(VfrSyntaxParser.Slash)=0D + self.state =3D 2605=0D + self.castTerm(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.T__13]:=0D + localctx =3D VfrSyntaxParser.MultdivmodTermModuloContext(s= elf, localctx)=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2606=0D + self.match(VfrSyntaxParser.T__13)=0D + self.state =3D 2607=0D + self.castTerm(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class CastTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TBObj =3D None=0D + self.TUObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def atomTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.AtomTermContex= t,0)=0D +=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def Boolean(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Boolean)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Boolean, i)=0D +=0D + def Uint64(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Uint64)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Uint64, i)=0D +=0D + def Uint32(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Uint32)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Uint32, i)=0D +=0D + def Uint16(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Uint16)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Uint16, i)=0D +=0D + def Uint8(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Uint8)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Uint8, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_castTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitCastTerm" ):=0D + return visitor.visitCastTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def castTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.CastTermContext(self, self._ctx, self= .state, ExpInfo)=0D + self.enterRule(localctx, 320, self.RULE_castTerm)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2615=0D + self._errHandler.sync(self)=0D + _alt =3D self._interp.adaptivePredict(self._input,217,self._ct= x)=0D + while _alt!=3D2 and _alt!=3DATN.INVALID_ALT_NUMBER:=0D + if _alt=3D=3D1:=0D + self.state =3D 2610=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2611=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 80)) & ~0x3f) =3D=3D 0 and ((1 << (_l= a - 80)) & ((1 << (VfrSyntaxParser.Boolean - 80)) | (1 << (VfrSyntaxParser.= Uint64 - 80)) | (1 << (VfrSyntaxParser.Uint32 - 80)) | (1 << (VfrSyntaxPars= er.Uint16 - 80)) | (1 << (VfrSyntaxParser.Uint8 - 80)))) !=3D 0)):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + self.state =3D 2612=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2617=0D + self._errHandler.sync(self)=0D + _alt =3D self._interp.adaptivePredict(self._input,217,self= ._ctx)=0D +=0D + self.state =3D 2618=0D + self.atomTerm(ExpInfo)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class AtomTermContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def vfrExpressionCatenate(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionC= atenateContext,0)=0D +=0D +=0D + def vfrExpressionMatch(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionM= atchContext,0)=0D +=0D +=0D + def vfrExpressionMatch2(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionM= atch2Context,0)=0D +=0D +=0D + def vfrExpressionParen(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionP= arenContext,0)=0D +=0D +=0D + def vfrExpressionBuildInFunction(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionB= uildInFunctionContext,0)=0D +=0D +=0D + def vfrExpressionConstant(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionC= onstantContext,0)=0D +=0D +=0D + def vfrExpressionUnaryOp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionU= naryOpContext,0)=0D +=0D +=0D + def vfrExpressionTernaryOp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionT= ernaryOpContext,0)=0D +=0D +=0D + def vfrExpressionMap(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrExpressionM= apContext,0)=0D +=0D +=0D + def NOT(self):=0D + return self.getToken(VfrSyntaxParser.NOT, 0)=0D +=0D + def atomTerm(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.AtomTermContex= t,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_atomTerm=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitAtomTerm" ):=0D + return visitor.visitAtomTerm(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def atomTerm(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.AtomTermContext(self, self._ctx, self= .state, ExpInfo)=0D + self.enterRule(localctx, 322, self.RULE_atomTerm)=0D + try:=0D + self.state =3D 2632=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,218,self._ctx= )=0D + if la_ =3D=3D 1:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2620=0D + self.vfrExpressionCatenate(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2621=0D + self.vfrExpressionMatch(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 3:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2622=0D + self.vfrExpressionMatch2(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 4:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2623=0D + self.vfrExpressionParen(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 5:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 2624=0D + self.vfrExpressionBuildInFunction(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 6:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 2625=0D + self.vfrExpressionConstant(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 7:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 2626=0D + self.vfrExpressionUnaryOp(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 8:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 2627=0D + self.vfrExpressionTernaryOp(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 9:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 2628=0D + self.vfrExpressionMap(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 10:=0D + self.enterOuterAlt(localctx, 10)=0D + self.state =3D 2629=0D + self.match(VfrSyntaxParser.NOT)=0D + self.state =3D 2630=0D + self.atomTerm(ExpInfo)=0D + pass=0D +=0D + elif la_ =3D=3D 11:=0D + self.enterOuterAlt(localctx, 11)=0D + self.state =3D 2631=0D + self.vfrExpressionMatch2(ExpInfo)=0D + pass=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionCatenateContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Catenate(self):=0D + return self.getToken(VfrSyntaxParser.Catenate, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionCatenate=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionCatenate" ):=0D + return visitor.visitVfrExpressionCatenate(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionCatenate(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionCatenateContext(self, se= lf._ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 324, self.RULE_vfrExpressionCatenate)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2634=0D + self.match(VfrSyntaxParser.Catenate)=0D + self.state =3D 2635=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2636=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2637=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2638=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2639=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionMatchContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.MObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Match(self):=0D + return self.getToken(VfrSyntaxParser.Match, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionMatch=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionMatch" ):=0D + return visitor.visitVfrExpressionMatch(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionMatch(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionMatchContext(self, self.= _ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 326, self.RULE_vfrExpressionMatch)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2641=0D + self.match(VfrSyntaxParser.Match)=0D + self.state =3D 2642=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2643=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2644=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2645=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2646=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionMatch2Context(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.M2Obj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Match2(self):=0D + return self.getToken(VfrSyntaxParser.Match2, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionMatch2=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionMatch2" ):=0D + return visitor.visitVfrExpressionMatch2(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionMatch2(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionMatch2Context(self, self= ._ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 328, self.RULE_vfrExpressionMatch2)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2648=0D + self.match(VfrSyntaxParser.Match2)=0D + self.state =3D 2649=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2650=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2651=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2652=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2653=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2654=0D + self.guidDefinition()=0D + self.state =3D 2655=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionParenContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionParen=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionParen" ):=0D + return visitor.visitVfrExpressionParen(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionParen(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionParenContext(self, self.= _ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 330, self.RULE_vfrExpressionParen)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2657=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2658=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2659=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionBuildInFunctionContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def dupExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.DupExpContext,= 0)=0D +=0D +=0D + def vareqvalExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VareqvalExpCon= text,0)=0D +=0D +=0D + def ideqvalExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.IdeqvalExpCont= ext,0)=0D +=0D +=0D + def ideqidExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.IdeqidExpConte= xt,0)=0D +=0D +=0D + def ideqvallistExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.IdeqvallistExp= Context,0)=0D +=0D +=0D + def questionref1Exp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Questionref1Ex= pContext,0)=0D +=0D +=0D + def rulerefExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.RulerefExpCont= ext,0)=0D +=0D +=0D + def stringref1Exp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Stringref1ExpC= ontext,0)=0D +=0D +=0D + def pushthisExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.PushthisExpCon= text,0)=0D +=0D +=0D + def securityExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.SecurityExpCon= text,0)=0D +=0D +=0D + def getExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GetExpContext,= 0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionBuildInFunction=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionBuildInFunction" ):=0D + return visitor.visitVfrExpressionBuildInFunction(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionBuildInFunction(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionBuildInFunctionContext(s= elf, self._ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 332, self.RULE_vfrExpressionBuildInFuncti= on)=0D + try:=0D + self.state =3D 2672=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Dup]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2661=0D + self.dupExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.VarEqVal]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2662=0D + self.vareqvalExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.IdEqVal]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2663=0D + self.ideqvalExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.IdEqId]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2664=0D + self.ideqidExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.IdEqValList]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 2665=0D + self.ideqvallistExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.QuestionRef]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 2666=0D + self.questionref1Exp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.RuleRef]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 2667=0D + self.rulerefExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.StringRef]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 2668=0D + self.stringref1Exp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.PushThis]:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 2669=0D + self.pushthisExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Security]:=0D + self.enterOuterAlt(localctx, 10)=0D + self.state =3D 2670=0D + self.securityExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Get]:=0D + self.enterOuterAlt(localctx, 11)=0D + self.state =3D 2671=0D + self.getExp(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class DupExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.DObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Dup(self):=0D + return self.getToken(VfrSyntaxParser.Dup, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_dupExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitDupExp" ):=0D + return visitor.visitDupExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def dupExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.DupExpContext(self, self._ctx, self.s= tate, ExpInfo)=0D + self.enterRule(localctx, 334, self.RULE_dupExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2674=0D + self.match(VfrSyntaxParser.Dup)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VareqvalExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def VarEqVal(self):=0D + return self.getToken(VfrSyntaxParser.VarEqVal, 0)=0D +=0D + def Var(self):=0D + return self.getToken(VfrSyntaxParser.Var, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Equal(self):=0D + return self.getToken(VfrSyntaxParser.Equal, 0)=0D +=0D + def LessEqual(self):=0D + return self.getToken(VfrSyntaxParser.LessEqual, 0)=0D +=0D + def Less(self):=0D + return self.getToken(VfrSyntaxParser.Less, 0)=0D +=0D + def GreaterEqual(self):=0D + return self.getToken(VfrSyntaxParser.GreaterEqual, 0)=0D +=0D + def Greater(self):=0D + return self.getToken(VfrSyntaxParser.Greater, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vareqvalExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVareqvalExp" ):=0D + return visitor.visitVareqvalExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vareqvalExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VareqvalExpContext(self, self._ctx, s= elf.state, ExpInfo)=0D + self.enterRule(localctx, 336, self.RULE_vareqvalExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2676=0D + self.match(VfrSyntaxParser.VarEqVal)=0D + self.state =3D 2677=0D + self.match(VfrSyntaxParser.Var)=0D + self.state =3D 2678=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2679=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2680=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2691=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Equal]:=0D + self.state =3D 2681=0D + self.match(VfrSyntaxParser.Equal)=0D + self.state =3D 2682=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.LessEqual]:=0D + self.state =3D 2683=0D + self.match(VfrSyntaxParser.LessEqual)=0D + self.state =3D 2684=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.Less]:=0D + self.state =3D 2685=0D + self.match(VfrSyntaxParser.Less)=0D + self.state =3D 2686=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.GreaterEqual]:=0D + self.state =3D 2687=0D + self.match(VfrSyntaxParser.GreaterEqual)=0D + self.state =3D 2688=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.Greater]:=0D + self.state =3D 2689=0D + self.match(VfrSyntaxParser.Greater)=0D + self.state =3D 2690=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class IdeqvalExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.I =3D None # Token=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def vfrQuestionDataFieldName(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionDat= aFieldNameContext,0)=0D +=0D +=0D + def IdEqVal(self):=0D + return self.getToken(VfrSyntaxParser.IdEqVal, 0)=0D +=0D + def Equal(self):=0D + return self.getToken(VfrSyntaxParser.Equal, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def LessEqual(self):=0D + return self.getToken(VfrSyntaxParser.LessEqual, 0)=0D +=0D + def Less(self):=0D + return self.getToken(VfrSyntaxParser.Less, 0)=0D +=0D + def GreaterEqual(self):=0D + return self.getToken(VfrSyntaxParser.GreaterEqual, 0)=0D +=0D + def Greater(self):=0D + return self.getToken(VfrSyntaxParser.Greater, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_ideqvalExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitIdeqvalExp" ):=0D + return visitor.visitIdeqvalExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def ideqvalExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.IdeqvalExpContext(self, self._ctx, se= lf.state, ExpInfo)=0D + self.enterRule(localctx, 338, self.RULE_ideqvalExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2693=0D + localctx.I =3D self.match(VfrSyntaxParser.IdEqVal)=0D + self.state =3D 2694=0D + self.vfrQuestionDataFieldName()=0D + self.state =3D 2705=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Equal]:=0D + self.state =3D 2695=0D + self.match(VfrSyntaxParser.Equal)=0D + self.state =3D 2696=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.LessEqual]:=0D + self.state =3D 2697=0D + self.match(VfrSyntaxParser.LessEqual)=0D + self.state =3D 2698=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.Less]:=0D + self.state =3D 2699=0D + self.match(VfrSyntaxParser.Less)=0D + self.state =3D 2700=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.GreaterEqual]:=0D + self.state =3D 2701=0D + self.match(VfrSyntaxParser.GreaterEqual)=0D + self.state =3D 2702=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + elif token in [VfrSyntaxParser.Greater]:=0D + self.state =3D 2703=0D + self.match(VfrSyntaxParser.Greater)=0D + self.state =3D 2704=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class IdeqidExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.I =3D None # Token=0D + self.E =3D None # Token=0D + self.LE =3D None # Token=0D + self.L =3D None # Token=0D + self.BE =3D None # Token=0D + self.B =3D None # Token=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def vfrQuestionDataFieldName(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrQuesti= onDataFieldNameContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestio= nDataFieldNameContext,i)=0D +=0D +=0D + def IdEqId(self):=0D + return self.getToken(VfrSyntaxParser.IdEqId, 0)=0D +=0D + def Equal(self):=0D + return self.getToken(VfrSyntaxParser.Equal, 0)=0D +=0D + def LessEqual(self):=0D + return self.getToken(VfrSyntaxParser.LessEqual, 0)=0D +=0D + def Less(self):=0D + return self.getToken(VfrSyntaxParser.Less, 0)=0D +=0D + def GreaterEqual(self):=0D + return self.getToken(VfrSyntaxParser.GreaterEqual, 0)=0D +=0D + def Greater(self):=0D + return self.getToken(VfrSyntaxParser.Greater, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_ideqidExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitIdeqidExp" ):=0D + return visitor.visitIdeqidExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def ideqidExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.IdeqidExpContext(self, self._ctx, sel= f.state, ExpInfo)=0D + self.enterRule(localctx, 340, self.RULE_ideqidExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2707=0D + localctx.I =3D self.match(VfrSyntaxParser.IdEqId)=0D + self.state =3D 2708=0D + self.vfrQuestionDataFieldName()=0D + self.state =3D 2719=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Equal]:=0D + self.state =3D 2709=0D + localctx.E =3D self.match(VfrSyntaxParser.Equal)=0D + self.state =3D 2710=0D + self.vfrQuestionDataFieldName()=0D + pass=0D + elif token in [VfrSyntaxParser.LessEqual]:=0D + self.state =3D 2711=0D + localctx.LE =3D self.match(VfrSyntaxParser.LessEqual)=0D + self.state =3D 2712=0D + self.vfrQuestionDataFieldName()=0D + pass=0D + elif token in [VfrSyntaxParser.Less]:=0D + self.state =3D 2713=0D + localctx.L =3D self.match(VfrSyntaxParser.Less)=0D + self.state =3D 2714=0D + self.vfrQuestionDataFieldName()=0D + pass=0D + elif token in [VfrSyntaxParser.GreaterEqual]:=0D + self.state =3D 2715=0D + localctx.BE =3D self.match(VfrSyntaxParser.GreaterEqual)=0D + self.state =3D 2716=0D + self.vfrQuestionDataFieldName()=0D + pass=0D + elif token in [VfrSyntaxParser.Greater]:=0D + self.state =3D 2717=0D + localctx.B =3D self.match(VfrSyntaxParser.Greater)=0D + self.state =3D 2718=0D + self.vfrQuestionDataFieldName()=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class IdeqvallistExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def IdEqValList(self):=0D + return self.getToken(VfrSyntaxParser.IdEqValList, 0)=0D +=0D + def vfrQuestionDataFieldName(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrQuestionDat= aFieldNameContext,0)=0D +=0D +=0D + def Equal(self):=0D + return self.getToken(VfrSyntaxParser.Equal, 0)=0D +=0D + def Number(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Number)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Number, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_ideqvallistExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitIdeqvallistExp" ):=0D + return visitor.visitIdeqvallistExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def ideqvallistExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.IdeqvallistExpContext(self, self._ctx= , self.state, ExpInfo)=0D + self.enterRule(localctx, 342, self.RULE_ideqvallistExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2721=0D + self.match(VfrSyntaxParser.IdEqValList)=0D + self.state =3D 2722=0D + self.vfrQuestionDataFieldName()=0D + self.state =3D 2723=0D + self.match(VfrSyntaxParser.Equal)=0D + self.state =3D 2725=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while True:=0D + self.state =3D 2724=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2727=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if not (_la=3D=3DVfrSyntaxParser.Number):=0D + break=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrQuestionDataFieldNameContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.QId =3D EFI_QUESTION_ID_INVALID=0D + self.Mask =3D 0=0D + self.VarIdStr =3D ''=0D + self.Line =3D None=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrQuestionDataFieldName=0D +=0D +=0D + def copyFrom(self, ctx:ParserRuleContext):=0D + super().copyFrom(ctx)=0D + self.QId =3D ctx.QId=0D + self.Mask =3D ctx.Mask=0D + self.VarIdStr =3D ctx.VarIdStr=0D + self.Line =3D ctx.Line=0D +=0D +=0D +=0D + class VfrQuestionDataFieldNameRule2Context(VfrQuestionDataFieldNameCon= text):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.VfrQuestionDataFieldNameContext=0D + super().__init__(parser)=0D + self.SN2 =3D None # Token=0D + self.copyFrom(ctx)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D + def Dot(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Dot)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Dot, i)=0D + def arrayName(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.ArrayName= Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.ArrayNameC= ontext,i)=0D +=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrQuestionDataFieldNameRule2" ):=0D + return visitor.visitVfrQuestionDataFieldNameRule2(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D + class VfrQuestionDataFieldNameRule1Context(VfrQuestionDataFieldNameCon= text):=0D +=0D + def __init__(self, parser, ctx:ParserRuleContext): # actually a Vf= rSyntaxParser.VfrQuestionDataFieldNameContext=0D + super().__init__(parser)=0D + self.SN1 =3D None # Token=0D + self.I =3D None # Token=0D + self.copyFrom(ctx)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrQuestionDataFieldNameRule1" ):=0D + return visitor.visitVfrQuestionDataFieldNameRule1(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D + def vfrQuestionDataFieldName(self):=0D +=0D + localctx =3D VfrSyntaxParser.VfrQuestionDataFieldNameContext(self,= self._ctx, self.state)=0D + self.enterRule(localctx, 344, self.RULE_vfrQuestionDataFieldName)= =0D + self._la =3D 0 # Token type=0D + try:=0D + self.state =3D 2741=0D + self._errHandler.sync(self)=0D + la_ =3D self._interp.adaptivePredict(self._input,225,self._ctx= )=0D + if la_ =3D=3D 1:=0D + localctx =3D VfrSyntaxParser.VfrQuestionDataFieldNameRule1= Context(self, localctx)=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2729=0D + localctx.SN1 =3D self.match(VfrSyntaxParser.StringIdentifi= er)=0D + self.state =3D 2730=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2731=0D + localctx.I =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2732=0D + self.match(VfrSyntaxParser.CloseBracket)=0D + pass=0D +=0D + elif la_ =3D=3D 2:=0D + localctx =3D VfrSyntaxParser.VfrQuestionDataFieldNameRule2= Context(self, localctx)=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2733=0D + localctx.SN2 =3D self.match(VfrSyntaxParser.StringIdentifi= er)=0D + self.state =3D 2738=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.Dot:=0D + self.state =3D 2734=0D + self.match(VfrSyntaxParser.Dot)=0D + self.state =3D 2735=0D + self.arrayName()=0D + self.state =3D 2740=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + pass=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ArrayNameContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.SubStr =3D ''=0D + self.SubStrZ =3D ''=0D + self.N =3D None # Token=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def OpenBracket(self):=0D + return self.getToken(VfrSyntaxParser.OpenBracket, 0)=0D +=0D + def CloseBracket(self):=0D + return self.getToken(VfrSyntaxParser.CloseBracket, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_arrayName=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitArrayName" ):=0D + return visitor.visitArrayName(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def arrayName(self):=0D +=0D + localctx =3D VfrSyntaxParser.ArrayNameContext(self, self._ctx, sel= f.state)=0D + self.enterRule(localctx, 346, self.RULE_arrayName)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2743=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2747=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.OpenBracket:=0D + self.state =3D 2744=0D + self.match(VfrSyntaxParser.OpenBracket)=0D + self.state =3D 2745=0D + localctx.N =3D self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2746=0D + self.match(VfrSyntaxParser.CloseBracket)=0D +=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class Questionref1ExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def QuestionRef(self):=0D + return self.getToken(VfrSyntaxParser.QuestionRef, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_questionref1Exp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitQuestionref1Exp" ):=0D + return visitor.visitQuestionref1Exp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def questionref1Exp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.Questionref1ExpContext(self, self._ct= x, self.state, ExpInfo)=0D + self.enterRule(localctx, 348, self.RULE_questionref1Exp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2749=0D + self.match(VfrSyntaxParser.QuestionRef)=0D + self.state =3D 2750=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2751=0D + _la =3D self._input.LA(1)=0D + if not(_la=3D=3DVfrSyntaxParser.Number or _la=3D=3DVfrSyntaxPa= rser.StringIdentifier):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + self.state =3D 2752=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class RulerefExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def RuleRef(self):=0D + return self.getToken(VfrSyntaxParser.RuleRef, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def StringIdentifier(self):=0D + return self.getToken(VfrSyntaxParser.StringIdentifier, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_rulerefExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitRulerefExp" ):=0D + return visitor.visitRulerefExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def rulerefExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.RulerefExpContext(self, self._ctx, se= lf.state, ExpInfo)=0D + self.enterRule(localctx, 350, self.RULE_rulerefExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2754=0D + self.match(VfrSyntaxParser.RuleRef)=0D + self.state =3D 2755=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2756=0D + self.match(VfrSyntaxParser.StringIdentifier)=0D + self.state =3D 2757=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class Stringref1ExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def StringRef(self):=0D + return self.getToken(VfrSyntaxParser.StringRef, 0)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_stringref1Exp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitStringref1Exp" ):=0D + return visitor.visitStringref1Exp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def stringref1Exp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.Stringref1ExpContext(self, self._ctx,= self.state, ExpInfo)=0D + self.enterRule(localctx, 352, self.RULE_stringref1Exp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2759=0D + self.match(VfrSyntaxParser.StringRef)=0D + self.state =3D 2760=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2766=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.StringToken]:=0D + self.state =3D 2761=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2762=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2763=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2764=0D + self.match(VfrSyntaxParser.CloseParen)=0D + pass=0D + elif token in [VfrSyntaxParser.Number]:=0D + self.state =3D 2765=0D + self.match(VfrSyntaxParser.Number)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + self.state =3D 2768=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class PushthisExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def PushThis(self):=0D + return self.getToken(VfrSyntaxParser.PushThis, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_pushthisExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitPushthisExp" ):=0D + return visitor.visitPushthisExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def pushthisExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.PushthisExpContext(self, self._ctx, s= elf.state, ExpInfo)=0D + self.enterRule(localctx, 354, self.RULE_pushthisExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2770=0D + self.match(VfrSyntaxParser.PushThis)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class SecurityExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Security(self):=0D + return self.getToken(VfrSyntaxParser.Security, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_securityExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitSecurityExp" ):=0D + return visitor.visitSecurityExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def securityExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.SecurityExpContext(self, self._ctx, s= elf.state, ExpInfo)=0D + self.enterRule(localctx, 356, self.RULE_securityExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2772=0D + self.match(VfrSyntaxParser.Security)=0D + self.state =3D 2773=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2774=0D + self.guidDefinition()=0D + self.state =3D 2775=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class NumericVarStoreTypeContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.VarType =3D None=0D +=0D + def NumericSizeOne(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeOne, 0)=0D +=0D + def NumericSizeTwo(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeTwo, 0)=0D +=0D + def NumericSizeFour(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeFour, 0)=0D +=0D + def NumericSizeEight(self):=0D + return self.getToken(VfrSyntaxParser.NumericSizeEight, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_numericVarStoreType=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitNumericVarStoreType" ):=0D + return visitor.visitNumericVarStoreType(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def numericVarStoreType(self):=0D +=0D + localctx =3D VfrSyntaxParser.NumericVarStoreTypeContext(self, self= ._ctx, self.state)=0D + self.enterRule(localctx, 358, self.RULE_numericVarStoreType)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2777=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 237)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 237= )) & ((1 << (VfrSyntaxParser.NumericSizeOne - 237)) | (1 << (VfrSyntaxParse= r.NumericSizeTwo - 237)) | (1 << (VfrSyntaxParser.NumericSizeFour - 237)) |= (1 << (VfrSyntaxParser.NumericSizeEight - 237)))) !=3D 0)):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class GetExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.BaseInfo =3D EFI_VARSTORE_INFO()=0D + self.GObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Get(self):=0D + return self.getToken(VfrSyntaxParser.Get, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStorageVarId(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStorageVarI= dContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def BitWiseOr(self):=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def numericVarStoreType(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.NumericVarStor= eTypeContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_getExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitGetExp" ):=0D + return visitor.visitGetExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def getExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.GetExpContext(self, self._ctx, self.s= tate, ExpInfo)=0D + self.enterRule(localctx, 360, self.RULE_getExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2779=0D + self.match(VfrSyntaxParser.Get)=0D + self.state =3D 2780=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2781=0D + self.vfrStorageVarId(localctx.BaseInfo, False)=0D + self.state =3D 2786=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2782=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2783=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2784=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2785=0D + self.numericVarStoreType()=0D +=0D +=0D + self.state =3D 2788=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionConstantContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def TrueSymbol(self):=0D + return self.getToken(VfrSyntaxParser.TrueSymbol, 0)=0D +=0D + def FalseSymbol(self):=0D + return self.getToken(VfrSyntaxParser.FalseSymbol, 0)=0D +=0D + def One(self):=0D + return self.getToken(VfrSyntaxParser.One, 0)=0D +=0D + def Ones(self):=0D + return self.getToken(VfrSyntaxParser.Ones, 0)=0D +=0D + def Zero(self):=0D + return self.getToken(VfrSyntaxParser.Zero, 0)=0D +=0D + def Undefined(self):=0D + return self.getToken(VfrSyntaxParser.Undefined, 0)=0D +=0D + def Version(self):=0D + return self.getToken(VfrSyntaxParser.Version, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionConstant=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionConstant" ):=0D + return visitor.visitVfrExpressionConstant(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionConstant(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionConstantContext(self, se= lf._ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 362, self.RULE_vfrExpressionConstant)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2790=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 209)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 209= )) & ((1 << (VfrSyntaxParser.TrueSymbol - 209)) | (1 << (VfrSyntaxParser.Fa= lseSymbol - 209)) | (1 << (VfrSyntaxParser.One - 209)) | (1 << (VfrSyntaxPa= rser.Ones - 209)) | (1 << (VfrSyntaxParser.Zero - 209)) | (1 << (VfrSyntaxP= arser.Undefined - 209)) | (1 << (VfrSyntaxParser.Version - 209)) | (1 << (V= frSyntaxParser.Number - 209)))) !=3D 0)):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionUnaryOpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def lengthExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.LengthExpConte= xt,0)=0D +=0D +=0D + def bitwisenotExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.BitwisenotExpC= ontext,0)=0D +=0D +=0D + def question23refExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Question23refE= xpContext,0)=0D +=0D +=0D + def stringref2Exp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.Stringref2ExpC= ontext,0)=0D +=0D +=0D + def toboolExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ToboolExpConte= xt,0)=0D +=0D +=0D + def tostringExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.TostringExpCon= text,0)=0D +=0D +=0D + def unintExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.UnintExpContex= t,0)=0D +=0D +=0D + def toupperExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ToupperExpCont= ext,0)=0D +=0D +=0D + def tolwerExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.TolwerExpConte= xt,0)=0D +=0D +=0D + def setExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.SetExpContext,= 0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionUnaryOp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionUnaryOp" ):=0D + return visitor.visitVfrExpressionUnaryOp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionUnaryOp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionUnaryOpContext(self, sel= f._ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 364, self.RULE_vfrExpressionUnaryOp)=0D + try:=0D + self.state =3D 2802=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Length]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2792=0D + self.lengthExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.BitWiseNot]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2793=0D + self.bitwisenotExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.QuestionRefVal]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2794=0D + self.question23refExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.StringRefVal]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2795=0D + self.stringref2Exp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.BoolVal]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 2796=0D + self.toboolExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.StringVal]:=0D + self.enterOuterAlt(localctx, 6)=0D + self.state =3D 2797=0D + self.tostringExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.UnIntVal]:=0D + self.enterOuterAlt(localctx, 7)=0D + self.state =3D 2798=0D + self.unintExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.ToUpper]:=0D + self.enterOuterAlt(localctx, 8)=0D + self.state =3D 2799=0D + self.toupperExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.ToLower]:=0D + self.enterOuterAlt(localctx, 9)=0D + self.state =3D 2800=0D + self.tolwerExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Set]:=0D + self.enterOuterAlt(localctx, 10)=0D + self.state =3D 2801=0D + self.setExp(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class LengthExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.LObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Length(self):=0D + return self.getToken(VfrSyntaxParser.Length, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_lengthExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitLengthExp" ):=0D + return visitor.visitLengthExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def lengthExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.LengthExpContext(self, self._ctx, sel= f.state, ExpInfo)=0D + self.enterRule(localctx, 366, self.RULE_lengthExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2804=0D + self.match(VfrSyntaxParser.Length)=0D + self.state =3D 2805=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2806=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2807=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class BitwisenotExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.BWNObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def BitWiseNot(self):=0D + return self.getToken(VfrSyntaxParser.BitWiseNot, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_bitwisenotExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitBitwisenotExp" ):=0D + return visitor.visitBitwisenotExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def bitwisenotExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.BitwisenotExpContext(self, self._ctx,= self.state, ExpInfo)=0D + self.enterRule(localctx, 368, self.RULE_bitwisenotExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2809=0D + self.match(VfrSyntaxParser.BitWiseNot)=0D + self.state =3D 2810=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2811=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2812=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class Question23refExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def QuestionRefVal(self):=0D + return self.getToken(VfrSyntaxParser.QuestionRefVal, 0)=0D +=0D + def OpenParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.OpenParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.OpenParen, i)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.CloseParen)=0D + else:=0D + return self.getToken(VfrSyntaxParser.CloseParen, i)=0D +=0D + def DevicePath(self):=0D + return self.getToken(VfrSyntaxParser.DevicePath, 0)=0D +=0D + def StringToken(self):=0D + return self.getToken(VfrSyntaxParser.StringToken, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Uuid(self):=0D + return self.getToken(VfrSyntaxParser.Uuid, 0)=0D +=0D + def guidDefinition(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.GuidDefinition= Context,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_question23refExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitQuestion23refExp" ):=0D + return visitor.visitQuestion23refExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def question23refExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.Question23refExpContext(self, self._c= tx, self.state, ExpInfo)=0D + self.enterRule(localctx, 370, self.RULE_question23refExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2814=0D + self.match(VfrSyntaxParser.QuestionRefVal)=0D + self.state =3D 2815=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2823=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.DevicePath:=0D + self.state =3D 2816=0D + self.match(VfrSyntaxParser.DevicePath)=0D + self.state =3D 2817=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2818=0D + self.match(VfrSyntaxParser.StringToken)=0D + self.state =3D 2819=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2820=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2821=0D + self.match(VfrSyntaxParser.CloseParen)=0D + self.state =3D 2822=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2830=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.Uuid:=0D + self.state =3D 2825=0D + self.match(VfrSyntaxParser.Uuid)=0D + self.state =3D 2826=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2827=0D + self.guidDefinition()=0D + self.state =3D 2828=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2832=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2833=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class Stringref2ExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.SR2Obj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def StringRefVal(self):=0D + return self.getToken(VfrSyntaxParser.StringRefVal, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_stringref2Exp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitStringref2Exp" ):=0D + return visitor.visitStringref2Exp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def stringref2Exp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.Stringref2ExpContext(self, self._ctx,= self.state, ExpInfo)=0D + self.enterRule(localctx, 372, self.RULE_stringref2Exp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2835=0D + self.match(VfrSyntaxParser.StringRefVal)=0D + self.state =3D 2836=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2837=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2838=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ToboolExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TBObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def BoolVal(self):=0D + return self.getToken(VfrSyntaxParser.BoolVal, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_toboolExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitToboolExp" ):=0D + return visitor.visitToboolExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def toboolExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.ToboolExpContext(self, self._ctx, sel= f.state, ExpInfo)=0D + self.enterRule(localctx, 374, self.RULE_toboolExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2840=0D + self.match(VfrSyntaxParser.BoolVal)=0D + self.state =3D 2841=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2842=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2843=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class TostringExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TSObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def StringVal(self):=0D + return self.getToken(VfrSyntaxParser.StringVal, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_tostringExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitTostringExp" ):=0D + return visitor.visitTostringExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def tostringExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.TostringExpContext(self, self._ctx, s= elf.state, ExpInfo)=0D + self.enterRule(localctx, 376, self.RULE_tostringExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2845=0D + self.match(VfrSyntaxParser.StringVal)=0D + self.state =3D 2850=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.T__14:=0D + self.state =3D 2846=0D + self.match(VfrSyntaxParser.T__14)=0D + self.state =3D 2847=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2848=0D + self.match(VfrSyntaxParser.Number)=0D + self.state =3D 2849=0D + self.match(VfrSyntaxParser.Comma)=0D +=0D +=0D + self.state =3D 2852=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2853=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2854=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class UnintExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TUObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def UnIntVal(self):=0D + return self.getToken(VfrSyntaxParser.UnIntVal, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_unintExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitUnintExp" ):=0D + return visitor.visitUnintExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def unintExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.UnintExpContext(self, self._ctx, self= .state, ExpInfo)=0D + self.enterRule(localctx, 378, self.RULE_unintExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2856=0D + self.match(VfrSyntaxParser.UnIntVal)=0D + self.state =3D 2857=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2858=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2859=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ToupperExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TUObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def ToUpper(self):=0D + return self.getToken(VfrSyntaxParser.ToUpper, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_toupperExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitToupperExp" ):=0D + return visitor.visitToupperExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def toupperExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.ToupperExpContext(self, self._ctx, se= lf.state, ExpInfo)=0D + self.enterRule(localctx, 380, self.RULE_toupperExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2861=0D + self.match(VfrSyntaxParser.ToUpper)=0D + self.state =3D 2862=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2863=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2864=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class TolwerExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TLObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def ToLower(self):=0D + return self.getToken(VfrSyntaxParser.ToLower, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_tolwerExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitTolwerExp" ):=0D + return visitor.visitTolwerExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def tolwerExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.TolwerExpContext(self, self._ctx, sel= f.state, ExpInfo)=0D + self.enterRule(localctx, 382, self.RULE_tolwerExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2866=0D + self.match(VfrSyntaxParser.ToLower)=0D + self.state =3D 2867=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2868=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2869=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class SetExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.BaseInfo =3D EFI_VARSTORE_INFO()=0D + self.TSObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Set(self):=0D + return self.getToken(VfrSyntaxParser.Set, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStorageVarId(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStorageVarI= dContext,0)=0D +=0D +=0D + def Comma(self):=0D + return self.getToken(VfrSyntaxParser.Comma, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def BitWiseOr(self):=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def numericVarStoreType(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.NumericVarStor= eTypeContext,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_setExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitSetExp" ):=0D + return visitor.visitSetExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def setExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.SetExpContext(self, self._ctx, self.s= tate, ExpInfo)=0D + self.enterRule(localctx, 384, self.RULE_setExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2871=0D + self.match(VfrSyntaxParser.Set)=0D + self.state =3D 2872=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2873=0D + self.vfrStorageVarId(localctx.BaseInfo, False)=0D + self.state =3D 2878=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + if _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2874=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2875=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2876=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2877=0D + self.numericVarStoreType()=0D +=0D +=0D + self.state =3D 2880=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2881=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2882=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionTernaryOpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def conditionalExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.ConditionalExp= Context,0)=0D +=0D +=0D + def findExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.FindExpContext= ,0)=0D +=0D +=0D + def midExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.MidExpContext,= 0)=0D +=0D +=0D + def tokenExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.TokenExpContex= t,0)=0D +=0D +=0D + def spanExp(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.SpanExpContext= ,0)=0D +=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionTernaryOp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionTernaryOp" ):=0D + return visitor.visitVfrExpressionTernaryOp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionTernaryOp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionTernaryOpContext(self, s= elf._ctx, self.state, ExpInfo)=0D + self.enterRule(localctx, 386, self.RULE_vfrExpressionTernaryOp)=0D + try:=0D + self.state =3D 2889=0D + self._errHandler.sync(self)=0D + token =3D self._input.LA(1)=0D + if token in [VfrSyntaxParser.Cond]:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2884=0D + self.conditionalExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Find]:=0D + self.enterOuterAlt(localctx, 2)=0D + self.state =3D 2885=0D + self.findExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Mid]:=0D + self.enterOuterAlt(localctx, 3)=0D + self.state =3D 2886=0D + self.midExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Tok]:=0D + self.enterOuterAlt(localctx, 4)=0D + self.state =3D 2887=0D + self.tokenExp(ExpInfo)=0D + pass=0D + elif token in [VfrSyntaxParser.Span]:=0D + self.enterOuterAlt(localctx, 5)=0D + self.state =3D 2888=0D + self.spanExp(ExpInfo)=0D + pass=0D + else:=0D + raise NoViableAltException(self)=0D +=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class ConditionalExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.CObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Cond(self):=0D + return self.getToken(VfrSyntaxParser.Cond, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def Colon(self):=0D + return self.getToken(VfrSyntaxParser.Colon, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_conditionalExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitConditionalExp" ):=0D + return visitor.visitConditionalExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def conditionalExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.ConditionalExpContext(self, self._ctx= , self.state, ExpInfo)=0D + self.enterRule(localctx, 388, self.RULE_conditionalExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2891=0D + self.match(VfrSyntaxParser.Cond)=0D + self.state =3D 2892=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2893=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2894=0D + self.match(VfrSyntaxParser.T__15)=0D + self.state =3D 2895=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2896=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 2897=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2898=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class FindExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.FObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Find(self):=0D + return self.getToken(VfrSyntaxParser.Find, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def findFormat(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.FindForma= tContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.FindFormat= Context,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_findExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitFindExp" ):=0D + return visitor.visitFindExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def findExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.FindExpContext(self, self._ctx, self.= state, ExpInfo)=0D + self.enterRule(localctx, 390, self.RULE_findExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2900=0D + self.match(VfrSyntaxParser.Find)=0D + self.state =3D 2901=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2902=0D + self.findFormat(ExpInfo)=0D + self.state =3D 2907=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2903=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2904=0D + self.findFormat(ExpInfo)=0D + self.state =3D 2909=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2910=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2911=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2912=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2913=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2914=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2915=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2916=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class FindFormatContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.Format =3D 0=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Sensitive(self):=0D + return self.getToken(VfrSyntaxParser.Sensitive, 0)=0D +=0D + def Insensitive(self):=0D + return self.getToken(VfrSyntaxParser.Insensitive, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_findFormat=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitFindFormat" ):=0D + return visitor.visitFindFormat(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def findFormat(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.FindFormatContext(self, self._ctx, se= lf.state, ExpInfo)=0D + self.enterRule(localctx, 392, self.RULE_findFormat)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2918=0D + _la =3D self._input.LA(1)=0D + if not(_la=3D=3DVfrSyntaxParser.Insensitive or _la=3D=3DVfrSyn= taxParser.Sensitive):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class MidExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.MObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Mid(self):=0D + return self.getToken(VfrSyntaxParser.Mid, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_midExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitMidExp" ):=0D + return visitor.visitMidExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def midExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.MidExpContext(self, self._ctx, self.s= tate, ExpInfo)=0D + self.enterRule(localctx, 394, self.RULE_midExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2920=0D + self.match(VfrSyntaxParser.Mid)=0D + self.state =3D 2921=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2922=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2923=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2924=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2925=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2926=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2927=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class TokenExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.TObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Tok(self):=0D + return self.getToken(VfrSyntaxParser.Tok, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_tokenExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitTokenExp" ):=0D + return visitor.visitTokenExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def tokenExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.TokenExpContext(self, self._ctx, self= .state, ExpInfo)=0D + self.enterRule(localctx, 396, self.RULE_tokenExp)=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2929=0D + self.match(VfrSyntaxParser.Tok)=0D + self.state =3D 2930=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2931=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2932=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2933=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2934=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2935=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2936=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class SpanExpContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.SObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Span(self):=0D + return self.getToken(VfrSyntaxParser.Span, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def FLAGS(self):=0D + return self.getToken(VfrSyntaxParser.FLAGS, 0)=0D +=0D + def spanFlags(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.SpanFlags= Context)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.SpanFlagsC= ontext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def vfrStatementExpressionSub(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionSubContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionSubContext,i)=0D +=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def BitWiseOr(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.BitWiseOr)=0D + else:=0D + return self.getToken(VfrSyntaxParser.BitWiseOr, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_spanExp=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitSpanExp" ):=0D + return visitor.visitSpanExp(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def spanExp(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.SpanExpContext(self, self._ctx, self.= state, ExpInfo)=0D + self.enterRule(localctx, 398, self.RULE_spanExp)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2938=0D + self.match(VfrSyntaxParser.Span)=0D + self.state =3D 2939=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2940=0D + self.match(VfrSyntaxParser.FLAGS)=0D + self.state =3D 2941=0D + self.match(VfrSyntaxParser.T__5)=0D + self.state =3D 2942=0D + self.spanFlags()=0D + self.state =3D 2947=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.BitWiseOr:=0D + self.state =3D 2943=0D + self.match(VfrSyntaxParser.BitWiseOr)=0D + self.state =3D 2944=0D + self.spanFlags()=0D + self.state =3D 2949=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2950=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2951=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2952=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2953=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2954=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2955=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2956=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class SpanFlagsContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.Flag =3D 0=0D +=0D + def Number(self):=0D + return self.getToken(VfrSyntaxParser.Number, 0)=0D +=0D + def LastNonMatch(self):=0D + return self.getToken(VfrSyntaxParser.LastNonMatch, 0)=0D +=0D + def FirstNonMatch(self):=0D + return self.getToken(VfrSyntaxParser.FirstNonMatch, 0)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_spanFlags=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitSpanFlags" ):=0D + return visitor.visitSpanFlags(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def spanFlags(self):=0D +=0D + localctx =3D VfrSyntaxParser.SpanFlagsContext(self, self._ctx, sel= f.state)=0D + self.enterRule(localctx, 400, self.RULE_spanFlags)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2958=0D + _la =3D self._input.LA(1)=0D + if not(((((_la - 246)) & ~0x3f) =3D=3D 0 and ((1 << (_la - 246= )) & ((1 << (VfrSyntaxParser.LastNonMatch - 246)) | (1 << (VfrSyntaxParser.= FirstNonMatch - 246)) | (1 << (VfrSyntaxParser.Number - 246)))) !=3D 0)):=0D + self._errHandler.recoverInline(self)=0D + else:=0D + self._errHandler.reportMatch(self)=0D + self.consume()=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D +=0D +=0D + class VfrExpressionMapContext(ParserRuleContext):=0D +=0D + def __init__(self, parser, parent:ParserRuleContext=3DNone, invoki= ngState:int=3D-1, ExpInfo=3DNone):=0D + super().__init__(parent, invokingState)=0D + self.parser =3D parser=0D + self.ExpInfo =3D None=0D + self.MObj =3D None=0D + self.ExpInfo =3D ExpInfo=0D +=0D + def Map(self):=0D + return self.getToken(VfrSyntaxParser.Map, 0)=0D +=0D + def OpenParen(self):=0D + return self.getToken(VfrSyntaxParser.OpenParen, 0)=0D +=0D + def vfrStatementExpressionSub(self):=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStatementEx= pressionSubContext,0)=0D +=0D +=0D + def Colon(self):=0D + return self.getToken(VfrSyntaxParser.Colon, 0)=0D +=0D + def CloseParen(self):=0D + return self.getToken(VfrSyntaxParser.CloseParen, 0)=0D +=0D + def vfrStatementExpression(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTypedRuleContexts(VfrSyntaxParser.VfrStatem= entExpressionContext)=0D + else:=0D + return self.getTypedRuleContext(VfrSyntaxParser.VfrStateme= ntExpressionContext,i)=0D +=0D +=0D + def Comma(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Comma)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Comma, i)=0D +=0D + def Semicolon(self, i:int=3DNone):=0D + if i is None:=0D + return self.getTokens(VfrSyntaxParser.Semicolon)=0D + else:=0D + return self.getToken(VfrSyntaxParser.Semicolon, i)=0D +=0D + def getRuleIndex(self):=0D + return VfrSyntaxParser.RULE_vfrExpressionMap=0D +=0D + def accept(self, visitor:ParseTreeVisitor):=0D + if hasattr( visitor, "visitVfrExpressionMap" ):=0D + return visitor.visitVfrExpressionMap(self)=0D + else:=0D + return visitor.visitChildren(self)=0D +=0D +=0D +=0D +=0D + def vfrExpressionMap(self, ExpInfo):=0D +=0D + localctx =3D VfrSyntaxParser.VfrExpressionMapContext(self, self._c= tx, self.state, ExpInfo)=0D + self.enterRule(localctx, 402, self.RULE_vfrExpressionMap)=0D + self._la =3D 0 # Token type=0D + try:=0D + self.enterOuterAlt(localctx, 1)=0D + self.state =3D 2960=0D + self.match(VfrSyntaxParser.Map)=0D + self.state =3D 2961=0D + self.match(VfrSyntaxParser.OpenParen)=0D + self.state =3D 2962=0D + self.vfrStatementExpressionSub()=0D + self.state =3D 2963=0D + self.match(VfrSyntaxParser.Colon)=0D + self.state =3D 2971=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D + while _la=3D=3DVfrSyntaxParser.OpenParen or ((((_la - 192)) & = ~0x3f) =3D=3D 0 and ((1 << (_la - 192)) & ((1 << (VfrSyntaxParser.Cond - 19= 2)) | (1 << (VfrSyntaxParser.Find - 192)) | (1 << (VfrSyntaxParser.Mid - 19= 2)) | (1 << (VfrSyntaxParser.Tok - 192)) | (1 << (VfrSyntaxParser.Span - 19= 2)) | (1 << (VfrSyntaxParser.Dup - 192)) | (1 << (VfrSyntaxParser.VarEqVal = - 192)) | (1 << (VfrSyntaxParser.IdEqVal - 192)) | (1 << (VfrSyntaxParser.I= dEqId - 192)) | (1 << (VfrSyntaxParser.IdEqValList - 192)) | (1 << (VfrSynt= axParser.QuestionRef - 192)) | (1 << (VfrSyntaxParser.RuleRef - 192)) | (1 = << (VfrSyntaxParser.StringRef - 192)) | (1 << (VfrSyntaxParser.PushThis - 1= 92)) | (1 << (VfrSyntaxParser.Security - 192)) | (1 << (VfrSyntaxParser.Get= - 192)) | (1 << (VfrSyntaxParser.TrueSymbol - 192)) | (1 << (VfrSyntaxPars= er.FalseSymbol - 192)) | (1 << (VfrSyntaxParser.One - 192)) | (1 << (VfrSyn= taxParser.Ones - 192)) | (1 << (VfrSyntaxParser.Zero - 192)) | (1 << (VfrSy= ntaxParser.Undefined - 192)) | (1 << (VfrSyntaxParser.Version - 192)) | (1 = << (VfrSyntaxParser.Length - 192)) | (1 << (VfrSyntaxParser.NOT - 192)) | (= 1 << (VfrSyntaxParser.Set - 192)) | (1 << (VfrSyntaxParser.BitWiseNot - 192= )) | (1 << (VfrSyntaxParser.BoolVal - 192)) | (1 << (VfrSyntaxParser.String= Val - 192)) | (1 << (VfrSyntaxParser.UnIntVal - 192)) | (1 << (VfrSyntaxPar= ser.ToUpper - 192)) | (1 << (VfrSyntaxParser.ToLower - 192)) | (1 << (VfrSy= ntaxParser.Match - 192)) | (1 << (VfrSyntaxParser.Match2 - 192)) | (1 << (V= frSyntaxParser.Catenate - 192)) | (1 << (VfrSyntaxParser.QuestionRefVal - 1= 92)) | (1 << (VfrSyntaxParser.StringRefVal - 192)) | (1 << (VfrSyntaxParser= .Map - 192)) | (1 << (VfrSyntaxParser.Number - 192)))) !=3D 0):=0D + self.state =3D 2964=0D + self.vfrStatementExpression()=0D + self.state =3D 2965=0D + self.match(VfrSyntaxParser.Comma)=0D + self.state =3D 2966=0D + self.vfrStatementExpression()=0D + self.state =3D 2967=0D + self.match(VfrSyntaxParser.Semicolon)=0D + self.state =3D 2973=0D + self._errHandler.sync(self)=0D + _la =3D self._input.LA(1)=0D +=0D + self.state =3D 2974=0D + self.match(VfrSyntaxParser.CloseParen)=0D + except RecognitionException as re:=0D + localctx.exception =3D re=0D + self._errHandler.reportError(self, re)=0D + self._errHandler.recover(self, re)=0D + finally:=0D + self.exitRule()=0D + return localctx=0D diff --git a/BaseTools/Source/Python/VfrCompiler/VfrSyntaxVisitor.py b/Base= Tools/Source/Python/VfrCompiler/VfrSyntaxVisitor.py new file mode 100644 index 0000000000..43078f914a --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrSyntaxVisitor.py @@ -0,0 +1,5106 @@ +from cgi import print_environ_usage=0D +from email.errors import NonASCIILocalPartDefect, NonPrintableDefect=0D +from enum import Flag=0D +from fileinput import lineno=0D +from http.client import ResponseNotReady=0D +from itertools import count=0D +from modulefinder import STORE_NAME=0D +from msilib.schema import CreateFolder=0D +from re import T=0D +from sre_parse import FLAGS=0D +from tokenize import Number=0D +from antlr4 import *=0D +from VfrCompiler.CommonCtypes import *=0D +from VfrCompiler.VfrFormPkg import *=0D +from VfrCompiler.VfrUtility import *=0D +from VfrCompiler.VfrTree import *=0D +import ctypes=0D +import struct=0D +=0D +if __name__ is not None and "." in __name__:=0D + from .VfrSyntaxParser import VfrSyntaxParser=0D +else:=0D + from VfrSyntaxParser import VfrSyntaxParser=0D +=0D +gCVfrVarDataTypeDB =3D CVfrVarDataTypeDB()=0D +gCVfrDefaultStore =3D CVfrDefaultStore()=0D +gCVfrDataStorage =3D CVfrDataStorage()=0D +=0D +# This class defines a complete generic visitor for a parse tree produced = by VfrSyntaxParser.=0D +class VfrSyntaxVisitor(ParseTreeVisitor):=0D + gZeroEfiIfrTypeValue =3D EFI_IFR_TYPE_VALUE()=0D +=0D + def __init__(self):=0D + self.__OverrideClassGuid =3D None=0D + self.__ParserStatus =3D 0=0D + self.__CIfrOpHdrIndex =3D -1=0D + self.__ConstantOnlyInExpression =3D False=0D + self.__UsedDefaultArray =3D []=0D +=0D + self.__CVfrRulesDB =3D CVfrRulesDB()=0D + self.__CIfrOpHdr =3D [] #=0D + self.__CIfrOpHdrLineNo =3D []=0D + self.__CurrQestVarInfo =3D EFI_VARSTORE_INFO()=0D +=0D + self.__CVfrQuestionDB =3D CVfrQuestionDB()=0D + self.__CurrentQuestion =3D None=0D + self.__CurrentMinMaxData =3D None #=0D +=0D + self.__IsStringOp =3D False=0D + self.__IsOrderedList =3D False=0D + self.__IsCheckBoxOp =3D False=0D + self.__Root =3D VfrTreeNode()=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrProgram.=0D + def visitVfrProgram(self, ctx:VfrSyntaxParser.VfrProgramContext):=0D +=0D + #self.__CVfrQuestionDB.PrintAllQuestion('test\\Questions.txt')=0D + #gCVfrVarDataTypeDB.Dump("test\\DataTypeInfo.txt")=0D +=0D + return self.visitChildren(ctx)=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#pragmaPackShowDef.=0D + def visitPragmaPackShowDef(self, ctx:VfrSyntaxParser.PragmaPackShowDef= Context):=0D +=0D + Line =3D ctx.start.line=0D + gCVfrVarDataTypeDB.Pack(Line, VFR_PACK_SHOW)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#pragmaPackStackDef.=0D + def visitPragmaPackStackDef(self, ctx:VfrSyntaxParser.PragmaPackStackD= efContext):=0D +=0D + Identifier =3D self.__TransId(ctx.StringIdentifier())=0D +=0D + if str(ctx.getChild(0)) =3D=3D 'push':=0D + Action =3D VFR_PACK_PUSH=0D + else:=0D + Action =3D VFR_PACK_POP=0D +=0D + if ctx.Number() !=3D None:=0D + Action |=3D VFR_PACK_ASSIGN=0D +=0D + PackNumber =3D self.__TransNum(ctx.Number(), DEFAULT_PACK_ALIGN)=0D + Line =3D ctx.start.line=0D + gCVfrVarDataTypeDB.Pack(Line, Action, Identifier, PackNumber)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#pragmaPackNumber.=0D + def visitPragmaPackNumber(self, ctx:VfrSyntaxParser.PragmaPackNumberCo= ntext):=0D +=0D + Line =3D ctx.start.line=0D + PackNumber =3D self.__TransNum(ctx.Number(), DEFAULT_PACK_ALIGN)=0D +=0D + gCVfrVarDataTypeDB.Pack(Line, VFR_PACK_ASSIGN, None, PackNumber)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrPragmaPackDefiniti= on.=0D + def visitVfrPragmaPackDefinition(=0D + self, ctx: VfrSyntaxParser.VfrPragmaPackDefinitionContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrDataStructDefiniti= on.=0D + def visitVfrDataStructDefinition(self, ctx: VfrSyntaxParser.VfrDataStr= uctDefinitionContext):=0D +=0D + gCVfrVarDataTypeDB.DeclareDataTypeBegin()=0D +=0D + if ctx.N1 !=3D None:=0D + ReturnCode =3D gCVfrVarDataTypeDB.SetNewTypeName(ctx.N1.text)= =0D + self.__ErrorHandler(ReturnCode, ctx.N1.line, ctx.N1.text)=0D +=0D + if ctx.N2 !=3D None:=0D + ReturnCode =3D gCVfrVarDataTypeDB.SetNewTypeName(ctx.N2.text)= =0D + self.__ErrorHandler(ReturnCode, ctx.N2.line, ctx.N2.text)=0D +=0D + self.visitChildren(ctx)=0D +=0D + gCVfrVarDataTypeDB.DeclareDataTypeEnd()=0D +=0D + return None=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrDataUnionDefinitio= n.=0D + def visitVfrDataUnionDefinition(self, ctx:VfrSyntaxParser.VfrDataUnion= DefinitionContext):=0D + gCVfrVarDataTypeDB.DeclareDataTypeBegin()=0D + if ctx.N1 !=3D None:=0D + ReturnCode =3D gCVfrVarDataTypeDB.SetNewTypeName(ctx.N1.text)= =0D + self.__ErrorHandler(ReturnCode, ctx.N1.line, ctx.N1.text)=0D +=0D + if ctx.N2 !=3D None:=0D + ReturnCode =3D gCVfrVarDataTypeDB.SetNewTypeName(ctx.N2.text)= =0D + self.__ErrorHandler(ReturnCode, ctx.N2.line, ctx.N2.text)=0D +=0D + self.visitChildren(ctx)=0D +=0D + gCVfrVarDataTypeDB.DeclareDataTypeEnd()=0D + return None=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrDataStructFields.= =0D + def visitVfrDataStructFields(self, ctx:VfrSyntaxParser.VfrDataStructFi= eldsContext):=0D +=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructField64.=0D + def visitDataStructField64(self, ctx:VfrSyntaxParser.DataStructField64= Context):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'UI= NT64', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructField32.=0D + def visitDataStructField32(self, ctx:VfrSyntaxParser.DataStructField32= Context):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'UI= NT32', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructField16.=0D + def visitDataStructField16(self, ctx:VfrSyntaxParser.DataStructField16= Context):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'UI= NT16', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructField8.=0D + def visitDataStructField8(self, ctx:VfrSyntaxParser.DataStructField8Co= ntext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'UI= NT8', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructFieldBool.= =0D + def visitDataStructFieldBool(self, ctx:VfrSyntaxParser.DataStructField= BoolContext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'BO= OLEAN', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructFieldString= .=0D + def visitDataStructFieldString(self, ctx:VfrSyntaxParser.DataStructFie= ldStringContext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'EF= I_STRING_ID', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructFieldDate.= =0D + def visitDataStructFieldDate(self, ctx:VfrSyntaxParser.DataStructField= DateContext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'EF= I_HII_DATE', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructFieldTime.= =0D + def visitDataStructFieldTime(self, ctx:VfrSyntaxParser.DataStructField= TimeContext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'EF= I_HII_TIME', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructFieldRef.=0D + def visitDataStructFieldRef(self, ctx:VfrSyntaxParser.DataStructFieldR= efContext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text, 'EF= I_HII_REF', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructFieldUser.= =0D + def visitDataStructFieldUser(self, ctx:VfrSyntaxParser.DataStructField= UserContext):=0D + ArrayNum =3D self.__TransNum(ctx.Number())=0D + if ctx.T.text !=3D 'CHAR16':=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text,= ctx.T.text, ArrayNum, ctx.FieldInUnion)=0D + else:=0D + ReturnCode =3D gCVfrVarDataTypeDB.DataTypeAddField(ctx.N.text,= 'UINT16', ArrayNum, ctx.FieldInUnion)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line, ctx.N.text)=0D + return self.visitChildren(ctx)=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructBitField64.= =0D + def visitDataStructBitField64(self, ctx:VfrSyntaxParser.DataStructBitF= ield64Context):=0D + Width =3D self.__TransNum(ctx.Number())=0D + if ctx.N !=3D None:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(ctx= .N.text, 'UINT64', Width, ctx.FieldInUnion), ctx.N.line, ctx.N.text)=0D + else:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(Non= e, 'UINT64', Width, ctx.FieldInUnion), ctx.D.line, ctx.D.text)=0D +=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructBitField32.= =0D + def visitDataStructBitField32(self, ctx:VfrSyntaxParser.DataStructBitF= ield32Context):=0D + Width =3D self.__TransNum(ctx.Number())=0D + if ctx.N !=3D None:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(ctx= .N.text, 'UINT32', Width, ctx.FieldInUnion), ctx.N.line, ctx.N.text)=0D + else:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(Non= e, 'UINT32', Width, ctx.FieldInUnion), ctx.D.line, ctx.D.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructBitField16.= =0D + def visitDataStructBitField16(self, ctx:VfrSyntaxParser.DataStructBitF= ield16Context):=0D + Width =3D self.__TransNum(ctx.Number())=0D + if ctx.N !=3D None:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(ctx= .N.text, 'UINT16', Width, ctx.FieldInUnion), ctx.N.line, ctx.N.text)=0D + else:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(Non= e, 'UINT16', Width, ctx.FieldInUnion), ctx.D.line, ctx.D.text)=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dataStructBitField8.= =0D + def visitDataStructBitField8(self, ctx:VfrSyntaxParser.DataStructBitFi= eld8Context):=0D + Width =3D self.__TransNum(ctx.Number())=0D + if ctx.N !=3D None:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(ctx= .N.text, 'UINT8', Width, ctx.FieldInUnion), ctx.N.line, ctx.N.text)=0D + else:=0D + self.__ErrorHandler(gCVfrVarDataTypeDB.DataTypeAddBitField(Non= e, 'UINT8', Width, ctx.FieldInUnion), ctx.D.line, ctx.D.text)=0D + return self.visitChildren(ctx)=0D +=0D + def __DeclareStandardDefaultStorage(self, LineNo):=0D +=0D + DSObj =3D CIfrDefaultStore()=0D + gCVfrDefaultStore.RegisterDefaultStore(DSObj.GetDefaultStore(), "S= tandard Defaults", EFI_STRING_ID_INVALID, EFI_HII_DEFAULT_CLASS_STANDARD)=0D + DSObj.SetLineNo (LineNo)=0D + DSObj.SetDefaultName (EFI_STRING_ID_INVALID)=0D + DSObj.SetDefaultId (EFI_HII_DEFAULT_CLASS_STANDARD)=0D +=0D + DSObjMF =3D CIfrDefaultStore()=0D + gCVfrDefaultStore.RegisterDefaultStore(DSObjMF.GetDefaultStore(), = "Standard ManuFacturing", EFI_STRING_ID_INVALID, EFI_HII_DEFAULT_CLASS_MANU= FACTURING)=0D + DSObjMF.SetLineNo (LineNo)=0D + DSObjMF.SetDefaultName (EFI_STRING_ID_INVALID)=0D + DSObjMF.SetDefaultId (EFI_HII_DEFAULT_CLASS_MANUFACTURING)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrFormSetDefinition.= =0D + def visitVfrFormSetDefinition(self, ctx:VfrSyntaxParser.VfrFormSetDefi= nitionContext):=0D + self.__InsertChild(self.__Root, ctx)=0D + self.__InsertChild(ctx.Node, ctx.classDefinition())=0D + self.__InsertChild(ctx.Node, ctx.subclassDefinition())=0D + Line =3D ctx.start.line=0D + self.__DeclareStandardDefaultStorage(Line)=0D +=0D + self.visitChildren(ctx)=0D + ClassGuidNum =3D 0=0D + GuidList =3D []=0D + if ctx.classguidDefinition() !=3D None:=0D + GuidList =3D ctx.classguidDefinition().GuidList=0D + ClassGuidNum =3D len(GuidList)=0D +=0D + DefaultClassGuid =3D EFI_HII_PLATFORM_SETUP_FORMSET_GUID=0D +=0D + if (self.__OverrideClassGuid !=3D None and ClassGuidNum >=3D4):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , Line, None, 'Already has 4 class guids, can not add extra class guid!')=0D +=0D + if ClassGuidNum =3D=3D 0:=0D + if self.__OverrideClassGuid !=3D None:=0D + ClassGuidNum =3D 2=0D + else:=0D + ClassGuidNum =3D 1=0D + FSObj =3D CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum = * sizeof(EFI_GUID))=0D + FSObj.SetClassGuid(DefaultClassGuid)=0D + if (self.__OverrideClassGuid !=3D None):=0D + FSObj.SetClassGuid(self.__OverrideClassGuid)=0D +=0D + elif ClassGuidNum =3D=3D 1:=0D + if self.__OverrideClassGuid !=3D None:=0D + ClassGuidNum +=3D 1=0D + FSObj =3D CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum = * sizeof(EFI_GUID))=0D + FSObj.SetClassGuid(GuidList[0])=0D + if (self.__OverrideClassGuid !=3D None):=0D + FSObj.SetClassGuid(self.__OverrideClassGuid)=0D +=0D + elif ClassGuidNum =3D=3D 2:=0D + if self.__OverrideClassGuid !=3D None:=0D + ClassGuidNum +=3D 1=0D + FSObj =3D CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum = * sizeof(EFI_GUID))=0D + FSObj.SetClassGuid(GuidList[0])=0D + FSObj.SetClassGuid(GuidList[1])=0D + if (self.__OverrideClassGuid !=3D None):=0D + FSObj.SetClassGuid(self.__OverrideClassGuid)=0D +=0D + elif ClassGuidNum =3D=3D 3:=0D + if self.__OverrideClassGuid !=3D None:=0D + ClassGuidNum +=3D 1=0D + FSObj =3D CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum = * sizeof(EFI_GUID))=0D + FSObj.SetClassGuid(GuidList[0])=0D + FSObj.SetClassGuid(GuidList[1])=0D + FSObj.SetClassGuid(GuidList[2])=0D + if (self.__OverrideClassGuid !=3D None):=0D + FSObj.SetClassGuid(self.__OverrideClassGuid)=0D +=0D + elif ClassGuidNum =3D=3D 4:=0D + if self.__OverrideClassGuid !=3D None:=0D + ClassGuidNum +=3D 1=0D + FSObj =3D CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum = * sizeof(EFI_GUID))=0D + FSObj.SetClassGuid(GuidList[0])=0D + FSObj.SetClassGuid(GuidList[1])=0D + FSObj.SetClassGuid(GuidList[2])=0D + FSObj.SetClassGuid(GuidList[3])=0D +=0D + FSObj.SetLineNo(Line)=0D + FSObj.SetGuid(ctx.guidDefinition().Guid)=0D + FSObj.SetFormSetTitle(self.__TransNum(ctx.Number(0)))=0D + FSObj.SetHelp(self.__TransNum(ctx.Number(1)))=0D +=0D + ctx.Node.Data =3D FSObj=0D + # Declare undefined Question so that they can be used in expressio= n.=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#classguidDefinition.= =0D + def visitClassguidDefinition(self, ctx:VfrSyntaxParser.ClassguidDefini= tionContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + for GuidCtx in ctx.guidDefinition():=0D + ctx.GuidList.append(GuidCtx.Guid)=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#classDefinition.=0D + def visitClassDefinition(self, ctx:VfrSyntaxParser.ClassDefinitionCont= ext):=0D + CObj =3D CIfrClass()=0D + self.visitChildren(ctx)=0D + Class =3D 0=0D + for ClassNameCtx in ctx.validClassNames():=0D + Class |=3D ClassNameCtx.ClassName=0D + Line =3D ctx.start.line=0D + CObj.SetLineNo(Line)=0D + CObj.SetClass(Class)=0D + ctx.Node.Data =3D CObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#validClassNames.=0D + def visitValidClassNames(self, ctx:VfrSyntaxParser.ValidClassNamesCont= ext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.ClassNonDevice() !=3D None:=0D + ctx.ClassName =3D EFI_NON_DEVICE_CLASS=0D + elif ctx.ClassDiskDevice() !=3D None:=0D + ctx.ClassName =3D EFI_DISK_DEVICE_CLASS=0D + elif ctx.ClassVideoDevice() !=3D None:=0D + ctx.ClassName =3D EFI_VIDEO_DEVICE_CLASS=0D + elif ctx.ClassNetworkDevice() !=3D None:=0D + ctx.ClassName =3D EFI_NETWORK_DEVICE_CLASS=0D + elif ctx.ClassInputDevice() !=3D None:=0D + ctx.ClassName =3D EFI_INPUT_DEVICE_CLASS=0D + elif ctx.ClassOnBoardDevice() !=3D None:=0D + ctx.ClassName =3D EFI_ON_BOARD_DEVICE_CLASS=0D + elif ctx.ClassOtherDevice() !=3D None:=0D + ctx.ClassName =3D EFI_OTHER_DEVICE_CLASS=0D + else:=0D + ctx.ClassName =3D self.__TransNum(ctx.Number())=0D +=0D + return ctx.ClassName=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#subclassDefinition.=0D + def visitSubclassDefinition(self, ctx:VfrSyntaxParser.SubclassDefiniti= onContext):=0D + SubObj =3D CIfrSubClass()=0D +=0D + self.visitChildren(ctx)=0D +=0D + Line =3D ctx.start.line=0D + SubObj.SetLineNo(Line)=0D + SubClass =3D 0=0D + if ctx.SubclassSetupApplication() !=3D None:=0D + SubClass |=3D EFI_SETUP_APPLICATION_SUBCLASS=0D + elif ctx.SubclassGeneralApplication() !=3D None:=0D + SubClass |=3D EFI_GENERAL_APPLICATION_SUBCLASS=0D + elif ctx.SubclassFrontPage() !=3D None:=0D + SubClass |=3D EFI_FRONT_PAGE_SUBCLASS=0D + elif ctx.SubclassSingleUse() !=3D None:=0D + SubClass |=3D EFI_SINGLE_USE_SUBCLASS=0D + else:=0D + SubClass =3D self.__TransNum(ctx.Number())=0D +=0D + SubObj.SetSubClass(SubClass)=0D + ctx.Node.Data =3D SubObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrFormSetList.=0D + def visitVfrFormSetList(self, ctx:VfrSyntaxParser.VfrFormSetListContex= t):=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrFormSet():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrFormSet.=0D + def visitVfrFormSet(self, ctx:VfrSyntaxParser.VfrFormSetContext):=0D + self.visitChildren(ctx)=0D +=0D + if ctx.vfrFormDefinition() !=3D None:=0D + ctx.Node =3D ctx.vfrFormDefinition().Node=0D + if ctx.vfrFormMapDefinition() !=3D None:=0D + ctx.Node =3D ctx.vfrFormMapDefinition().Node=0D + if ctx.vfrStatementImage() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementImage().Node=0D + if ctx.vfrStatementVarStoreLinear() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementVarStoreLinear().Node=0D + if ctx.vfrStatementVarStoreEfi() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementVarStoreEfi().Node=0D + if ctx.vfrStatementVarStoreNameValue() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementVarStoreNameValue().Node=0D + if ctx.vfrStatementDefaultStore() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementDefaultStore().Node=0D + if ctx.vfrStatementDisableIfFormSet() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementDisableIfFormSet().Node=0D + if ctx.vfrStatementSuppressIfFormSet() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementSuppressIfFormSet().Node=0D + if ctx.vfrStatementExtension() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementExtension().Node=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementDefaultSt= ore.=0D + def visitVfrStatementDefaultStore(self, ctx:VfrSyntaxParser.VfrStateme= ntDefaultStoreContext):=0D + DSObj =3D CIfrDefaultStore()=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D +=0D + RefName =3D ctx.N.text=0D + DefaultStoreNameId =3D self.__TransNum(ctx.S.text)=0D +=0D + DefaultId =3D EFI_HII_DEFAULT_CLASS_STANDARD if ctx.Attribute()=3D= =3D None else self.__TransNum(ctx.A.text)=0D +=0D + if gCVfrDefaultStore.DefaultIdRegistered(DefaultId) =3D=3D False:= =0D + self.__ErrorHandler(gCVfrDefaultStore.RegisterDefaultStore(DSO= bj.GetDefaultStore(), RefName, DefaultStoreNameId, DefaultId) , Line)=0D + DSObj.SetDefaultName(DefaultStoreNameId)=0D + DSObj.SetDefaultId (DefaultId)=0D + DSObj.SetLineNo(Line)=0D + else:=0D + pNode, ReturnCode =3D gCVfrDefaultStore.ReRegisterDefaultStore= ById(DefaultId, RefName, DefaultStoreNameId)=0D + self.__ErrorHandler(ReturnCode, Line)=0D + DSObj.SetDefaultStore =3D pNode.ObjAddr=0D + DSObj.SetLineNo(Line)=0D +=0D + ctx.Node.Data =3D DSObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementVarStoreL= inear.=0D + def visitVfrStatementVarStoreLinear(self, ctx:VfrSyntaxParser.VfrState= mentVarStoreLinearContext):=0D + VSObj =3D CIfrVarStore()=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + VSObj.SetLineNo(Line)=0D +=0D + TypeName =3D str(ctx.getChild(1))=0D + if TypeName =3D=3D 'CHAR16':=0D + TypeName =3D 'UINT16'=0D +=0D + IsBitVarStore =3D False=0D + if ctx.TN !=3D None:=0D + IsBitVarStore =3D gCVfrVarDataTypeDB.DataTypeHasBitField(ctx.T= N.text)=0D +=0D + VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D + if ctx.VarId() !=3D None:=0D + VarStoreId =3D self.__TransNum(ctx.ID.text)=0D + self.__CompareErrorHandler(VarStoreId!=3D0, True, ctx.ID.line,= ctx.ID.text, 'varid 0 is not allowed.')=0D + StoreName =3D ctx.SN.text=0D + Guid =3D ctx.guidDefinition().Guid=0D + self.__ErrorHandler(gCVfrDataStorage.DeclareBufferVarStore(StoreNa= me, Guid, gCVfrVarDataTypeDB, TypeName, VarStoreId, IsBitVarStore), Line)=0D + VSObj.SetGuid(Guid)=0D + VarStoreId, ReturnCode =3D gCVfrDataStorage.GetVarStoreId(StoreNam= e, Guid)=0D + self.__ErrorHandler(ReturnCode, ctx.SN.line, ctx.SN.text)=0D + VSObj.SetVarStoreId(VarStoreId)=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByTypeName(= TypeName)=0D + self.__ErrorHandler(ReturnCode, Line)=0D + VSObj.SetSize(Size)=0D + VSObj.SetName(StoreName)=0D +=0D + ctx.Node.Data =3D VSObj=0D +=0D + return VSObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementVarStoreE= fi.=0D + def visitVfrStatementVarStoreEfi(self, ctx:VfrSyntaxParser.VfrStatemen= tVarStoreEfiContext):=0D +=0D + VSEObj =3D CIfrVarStoreEfi()=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + VSEObj.SetLineNo(Line)=0D +=0D + Guid =3D ctx.guidDefinition().Guid=0D +=0D + CustomizedName =3D False=0D + IsBitVarStore =3D False=0D + VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D + IsUEFI23EfiVarstore =3D True=0D + ReturnCode =3D None=0D +=0D + TypeName =3D str(ctx.getChild(1))=0D +=0D + if TypeName =3D=3D 'CHAR16':=0D + TypeName =3D 'UINT16'=0D +=0D + elif ctx.TN !=3D None:=0D + CustomizedName =3D True=0D + IsBitVarStore =3D gCVfrVarDataTypeDB.DataTypeHasBitField(TypeN= ame)=0D +=0D + if ctx.VarId() !=3D None:=0D + VarStoreId =3D self.__TransNum(ctx.ID.text)=0D + self.__CompareErrorHandler(VarStoreId!=3D0, True, ctx.ID.line,= ctx.ID.text, 'varid 0 is not allowed.')=0D +=0D + Attributes =3D 0=0D + for AtrCtx in ctx.vfrVarStoreEfiAttr():=0D + Attributes |=3D AtrCtx.Attr=0D + VSEObj.SetAttributes(Attributes)=0D +=0D + if ctx.SN !=3D None:=0D + StoreName =3D ctx.SN.text=0D + else:=0D + IsUEFI23EfiVarstore =3D False=0D + NameStringId =3D self.__TransNum(ctx.VN.text)=0D + StoreName =3D gCVfrStringDB.GetVarStoreNameFromStringId(NameSt= ringId) #=0D + if StoreName =3D=3D None:=0D + gCVfrErrorHandle.HandleWarning(VfrReturnCode.VFR_RETURN_UN= SUPPORTED, ctx.VN.line, 'Can\'t get varstore name for this StringId!')=0D + if not(CustomizedName):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, 'Old style efivarstore must have String Identifier!')=0D + Size =3D self.__TransNum(ctx.N.text)=0D + if Size =3D=3D 1: TypeName =3D 'UINT8'=0D + elif Size =3D=3D 2: TypeName =3D 'UINT16'=0D + elif Size =3D=3D 4: TypeName =3D 'UINT32'=0D + elif Size =3D=3D 8: TypeName =3D 'UINT64'=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.N.line, ctx.N.text)=0D +=0D + if IsUEFI23EfiVarstore:=0D + self.__ErrorHandler(gCVfrDataStorage.DeclareBufferVarStore(Sto= reName, Guid, gCVfrVarDataTypeDB, TypeName, VarStoreId, IsBitVarStore, Attr= ibutes), Line)=0D + VarStoreId, ReturnCode =3D gCVfrDataStorage.GetVarStoreId(Stor= eName, Guid)=0D + self.__ErrorHandler(ReturnCode, ctx.SN.line, ctx.SN.text)=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByTypeN= ame(TypeName)=0D + self.__ErrorHandler(ReturnCode, Line)=0D + else:=0D + self.__ErrorHandler(gCVfrDataStorage.DeclareBufferVarStore(sel= f.__GetText(ctx.TN), Guid, gCVfrVarDataTypeDB, TypeName, VarStoreId, IsBitV= arStore, Attributes), Line) #=0D + VarStoreId, ReturnCode =3D gCVfrDataStorage.GetVarStoreId(self= .__GetText(ctx.TN), Guid)=0D + self.__ErrorHandler(ReturnCode, ctx.VN.line, ctx.VN.text)=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByTypeN= ame(TypeName)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line)=0D +=0D + VSEObj.SetGuid(Guid)=0D + VSEObj.SetVarStoreId (VarStoreId)=0D + VSEObj.SetSize(Size)=0D + VSEObj.SetName(StoreName)=0D +=0D + ctx.Node.Data =3D VSEObj=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrVarStoreEfiAttr.=0D + def visitVfrVarStoreEfiAttr(self, ctx:VfrSyntaxParser.VfrVarStoreEfiAt= trContext):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Attr =3D self.__TransNum(ctx.Number())=0D + return ctx.Attr=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementVarStoreN= ameValue.=0D + def visitVfrStatementVarStoreNameValue(self, ctx:VfrSyntaxParser.VfrSt= atementVarStoreNameValueContext):=0D +=0D + VSNVObj =3D CIfrVarStoreNameValue()=0D + self.visitChildren(ctx)=0D +=0D + Guid =3D ctx.guidDefinition().Guid=0D + HasVarStoreId =3D False=0D + VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D +=0D + if ctx.VarId() !=3D None:=0D + HasVarStoreId =3D True=0D + VarStoreId =3D self.__TransNum(ctx.ID.text)=0D + self.__CompareErrorHandler(VarStoreId !=3D0, True, ctx.ID.line= , ctx.ID.text, 'varid 0 is not allowed')=0D +=0D + StoreName =3D ctx.SN.text=0D + Created =3D False=0D +=0D + sIndex =3D 0 if HasVarStoreId =3D=3D False else 1=0D + eIndex =3D len(ctx.Name())=0D + for i in range(sIndex, eIndex):=0D + if Created =3D=3D False:=0D + self.__ErrorHandler(gCVfrDataStorage.DeclareNameVarStoreBe= gin(StoreName, VarStoreId), ctx.SN.line, ctx.SN.text)=0D + Created =3D True=0D + Item =3D self.__TransNum(ctx.Number(i))=0D + gCVfrDataStorage.NameTableAddItem(Item)=0D +=0D + gCVfrDataStorage.DeclareNameVarStoreEnd(Guid)=0D +=0D + VSNVObj.SetLineNo(ctx.start.line)=0D + VSNVObj.SetGuid(Guid)=0D + VarstoreId, ReturnCode =3D gCVfrDataStorage.GetVarStoreId(StoreNam= e, Guid)=0D + self.__ErrorHandler(ReturnCode, ctx.SN.line, ctx.SN.text)=0D + VSNVObj.SetVarStoreId(VarstoreId)=0D +=0D + ctx.Node.Data =3D VSNVObj=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementDisableIf= FormSet.=0D + def visitVfrStatementDisableIfFormSet(self, ctx:VfrSyntaxParser.VfrSta= tementDisableIfFormSetContext):=0D +=0D + DIObj =3D CIfrDisableIf()=0D + DIObj.SetLineNo(ctx.start.line)=0D + self.__ConstantOnlyInExpression =3D True=0D + ctx.Node.Data =3D DIObj=0D + Condition =3D 'disableif' + ' ' + self.__ExtractOriginalText(ctx.v= frStatementExpression())=0D + ctx.Node.Condition =3D Condition=0D + self.visitChildren(ctx)=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementSuppressI= fFormSet.=0D + def visitVfrStatementSuppressIfFormSet(self, ctx:VfrSyntaxParser.VfrSt= atementSuppressIfFormSetContext):=0D +=0D + SIObj =3D CIfrSuppressIf()=0D + SIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D SIObj=0D + Condition =3D 'suppressif' + ' ' + self.__ExtractOriginalText(ctx= .vfrStatementExpression())=0D + ctx.Node.Condition =3D Condition=0D + self.visitChildren(ctx)=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#guidSubDefinition.=0D + def visitGuidSubDefinition(self, ctx:VfrSyntaxParser.GuidSubDefinition= Context):=0D +=0D + ctx.Guid.Data4[0] =3D self.__TransNum(ctx.Number(0))=0D + ctx.Guid.Data4[1] =3D self.__TransNum(ctx.Number(1))=0D + ctx.Guid.Data4[2] =3D self.__TransNum(ctx.Number(2))=0D + ctx.Guid.Data4[3] =3D self.__TransNum(ctx.Number(3))=0D + ctx.Guid.Data4[4] =3D self.__TransNum(ctx.Number(4))=0D + ctx.Guid.Data4[5] =3D self.__TransNum(ctx.Number(5))=0D + ctx.Guid.Data4[6] =3D self.__TransNum(ctx.Number(6))=0D + ctx.Guid.Data4[7] =3D self.__TransNum(ctx.Number(7))=0D +=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#guidDefinition.=0D + def visitGuidDefinition(self, ctx:VfrSyntaxParser.GuidDefinitionContex= t):=0D +=0D + self.visitChildren(ctx)=0D +=0D + ctx.Guid.Data1 =3D self.__TransNum(ctx.Number(0))=0D + ctx.Guid.Data2 =3D self.__TransNum(ctx.Number(1))=0D + ctx.Guid.Data3 =3D self.__TransNum(ctx.Number(2))=0D +=0D + return None=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#getStringId.=0D + def visitGetStringId(self, ctx:VfrSyntaxParser.GetStringIdContext):=0D +=0D + ctx.StringId =3D self.__TransNum(ctx.Number())=0D +=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementHeader.=0D + def visitVfrStatementHeader(self, ctx:VfrSyntaxParser.VfrStatementHead= erContext):=0D +=0D + ctx.OpObj =3D ctx.parentCtx.OpObj=0D + if ctx.OpObj !=3D None:=0D + Prompt =3D self.__TransNum(ctx.Number(0))=0D + ctx.OpObj.SetPrompt(Prompt)=0D + Help =3D self.__TransNum(ctx.Number(1))=0D + ctx.OpObj.SetHelp(Help)=0D +=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrQuestionHeader.=0D + def visitVfrQuestionHeader(self, ctx:VfrSyntaxParser.VfrQuestionHeader= Context):=0D +=0D + ctx.OpObj =3D ctx.parentCtx.OpObj=0D +=0D + return self.visitChildren(ctx)=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrQuestionBaseInfo.= =0D + def visitVfrQuestionBaseInfo(self, ctx:VfrSyntaxParser.VfrQuestionBase= InfoContext):=0D +=0D + ctx.OpObj =3D ctx.parentCtx.OpObj=0D +=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_OTHER=0D + ctx.BaseInfo.VarTotalSize =3D 0=0D + ctx.BaseInfo.Info.VarOffset =3D EFI_VAROFFSET_INVALID=0D + ctx.BaseInfo.VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D + ctx.BaseInfo.IsBitVar =3D False=0D +=0D + QName =3D None=0D + QId =3D EFI_QUESTION_ID_INVALID=0D + ReturnCode =3D None=0D +=0D + self.visitChildren(ctx)=0D + if ctx.Name() !=3D None:=0D + QName =3D ctx.QN.text=0D + ReturnCode =3D self.__CVfrQuestionDB.FindQuestionByName(QName)= =0D + self.__CompareErrorHandler(ReturnCode, VfrReturnCode.VFR_RETUR= N_UNDEFINED, ctx.QN.line, ctx.QN.text, 'has already been used please used a= nther name')=0D +=0D + VarIdStr =3D '' if ctx.VarId() =3D=3D None else ctx.vfrStorageVar= Id().VarIdStr=0D + if ctx.QuestionId() !=3D None:=0D + QId =3D self.__TransNum(ctx.ID.text)=0D + ReturnCode =3D self.__CVfrQuestionDB.FindQuestionById(QId)=0D + self.__CompareErrorHandler(ReturnCode, VfrReturnCode.VFR_RETUR= N_UNDEFINED, ctx.ID.line, ctx.ID.text, 'has already been used please used a= nther number')=0D +=0D + if ctx.QType =3D=3D EFI_QUESION_TYPE.QUESTION_NORMAL:=0D + if self.__IsCheckBoxOp:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_BOOLEAN=0D + QId, ReturnCode =3D self.__CVfrQuestionDB.RegisterQuestion(QNa= me, VarIdStr, QId)=0D + self.__ErrorHandler(ReturnCode, ctx.start.line)=0D +=0D + elif ctx.QType =3D=3D EFI_QUESION_TYPE.QUESTION_DATE:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_DATE=0D + QId, ReturnCode =3D self.__CVfrQuestionDB.RegisterNewDateQuest= ion(QName, VarIdStr, QId)=0D + self.__ErrorHandler(ReturnCode, ctx.start.line)=0D +=0D + elif ctx.QType =3D=3D EFI_QUESION_TYPE.QUESTION_TIME:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_TIME=0D + QId, ReturnCode =3D self.__CVfrQuestionDB.RegisterNewTimeQuest= ion(QName, VarIdStr, QId)=0D + self.__ErrorHandler(ReturnCode, ctx.start.line)=0D +=0D + elif ctx.QType =3D=3D EFI_QUESION_TYPE.QUESTION_REF:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_REF=0D + if VarIdStr !=3D '': #stand for question with storage.=0D + QId, ReturnCode =3D self.__CVfrQuestionDB.RegisterRefQuest= ion(QName, VarIdStr, QId)=0D + self.__ErrorHandler(ReturnCode, ctx.start.line)=0D + else:=0D + QId, ReturnCode =3D self.__CVfrQuestionDB.RegisterQuestion= (QName, None, QId)=0D + self.__ErrorHandler(ReturnCode, ctx.start.line)=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_FATAL_ERROR, ctx.= start.line)=0D +=0D + self.__CurrQestVarInfo =3D ctx.BaseInfo=0D +=0D + if ctx.OpObj !=3D None:=0D + ctx.OpObj.SetQuestionId(QId)=0D + if ctx.BaseInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALID:=0D + ctx.OpObj.SetVarStoreInfo(ctx.BaseInfo)=0D +=0D + return ctx.OpObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#questionheaderFlagsFi= eld.=0D + def visitQuestionheaderFlagsField(self, ctx:VfrSyntaxParser.Questionhe= aderFlagsFieldContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.ReadOnlyFlag() !=3D None:=0D + ctx.QHFlag =3D 0x01=0D +=0D + elif ctx.InteractiveFlag() !=3D None:=0D + ctx.QHFlag =3D 0x04=0D +=0D + elif ctx.ResetRequiredFlag() !=3D None:=0D + ctx.QHFlag =3D 0x10=0D +=0D + elif ctx.RestStyleFlag() !=3D None:=0D + ctx.QHFlag =3D 0x20=0D +=0D + elif ctx.ReconnectRequiredFlag() !=3D None:=0D + ctx.QHFlag =3D 0x40=0D +=0D + elif ctx.OptionOnlyFlag() !=3D None:=0D + gCVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WARNIN= G_OBSOLETED_FRAMEWORK_OPCODE, ctx.O.line, ctx.O.text)=0D +=0D + elif ctx.NVAccessFlag() !=3D None:=0D + gCVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WARNIN= G_OBSOLETED_FRAMEWORK_OPCODE, ctx.N.line, ctx.N.text)=0D +=0D + elif ctx.LateCheckFlag() !=3D None:=0D + gCVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WARNIN= G_OBSOLETED_FRAMEWORK_OPCODE, ctx.L.line, ctx.L.text)=0D +=0D + return ctx.QHFlag=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStorageVarIdRule1.= =0D + def visitVfrStorageVarIdRule1(self, ctx:VfrSyntaxParser.VfrStorageVarI= dRule1Context):=0D +=0D + self.visitChildren(ctx)=0D +=0D + SName =3D ctx.SN1.text=0D + ctx.VarIdStr +=3D SName=0D +=0D + Idx =3D self.__TransNum(ctx.I.text)=0D + ctx.VarIdStr +=3D '['=0D + ctx.VarIdStr +=3D ctx.I.text=0D + ctx.VarIdStr +=3D ']'=0D +=0D + ctx.BaseInfo.VarStoreId, ReturnCode =3D gCVfrDataStorage.GetVarSto= reId(SName)=0D + if ctx.CheckFlag or ReturnCode =3D=3D VfrReturnCode.VFR_RETURN_SUC= CESS:=0D + self.__ErrorHandler(ReturnCode, ctx.SN1.line, ctx.SN1.text)=0D + self.__ErrorHandler(gCVfrDataStorage.GetNameVarStoreInfo(ctx.B= aseInfo, Idx), ctx.SN1.line, ctx.SN1.text)=0D +=0D + return ctx.VarIdStr=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStorageVarIdRule2.= =0D + def visitVfrStorageVarIdRule2(self, ctx:VfrSyntaxParser.VfrStorageVarI= dRule2Context):=0D +=0D + self.visitChildren(ctx)=0D +=0D + VarStr =3D '' # type.field=0D + SName =3D ctx.SN2.text=0D + ctx.VarIdStr +=3D SName=0D + ctx.BaseInfo.VarStoreId, ReturnCode =3D gCVfrDataStorage.GetVarSto= reId(SName)=0D + if ctx.CheckFlag or ReturnCode =3D=3D VfrReturnCode.VFR_RETURN_SUC= CESS:=0D + self.__ErrorHandler(ReturnCode, ctx.SN2.line, ctx.SN2.text)=0D + VarStoreType =3D gCVfrDataStorage.GetVarStoreType(ctx.BaseInfo= .VarStoreId)=0D + if VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_= BUFFER or VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_BUFFER= _BITS:=0D + TName, ReturnCode2 =3D gCVfrDataStorage.GetBufferVarStoreD= ataTypeName(ctx.BaseInfo.VarStoreId)=0D + self.__ErrorHandler(ReturnCode2, ctx.SN2.line, ctx.SN2.tex= t)=0D + VarStr +=3D TName=0D +=0D + Count =3D len(ctx.Dot())=0D + for i in range(0, Count):=0D + if ctx.CheckFlag or ReturnCode =3D=3D VfrReturnCode.VFR_RETURN= _SUCCESS:=0D + cond =3D (VarStoreType !=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_= VARSTORE_BUFFER) and (VarStoreType !=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARST= ORE_BUFFER_BITS)=0D + ReturnCode =3D VfrReturnCode.VFR_RETURN_EFIVARSTORE_USE_ER= ROR if cond else VfrReturnCode.VFR_RETURN_SUCCESS=0D + self.__ErrorHandler(ReturnCode, ctx.SN2.line, ctx.SN2.text= )=0D +=0D + ctx.VarIdStr +=3D '.'=0D + VarStr +=3D '.'=0D + ctx.VarIdStr +=3D ctx.arrayName(i).SubStr=0D + VarStr +=3D ctx.arrayName(i).SubStrZ=0D +=0D + if VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_EFI:= =0D + self.__ErrorHandler(gCVfrDataStorage.GetEfiVarStoreInfo(ctx.Ba= seInfo), ctx.SN2.line, ctx.SN2.text)=0D +=0D + elif VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_BU= FFER or VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_BUFFER_B= ITS:=0D + ctx.BaseInfo.Info.VarOffset, ctx.BaseInfo.VarType, ctx.BaseInf= o.VarTotalSize, ctx.BaseInfo.IsBitVar, ReturnCode =3D gCVfrVarDataTypeDB.Ge= tDataFieldInfo(VarStr)=0D + self.__ErrorHandler(ReturnCode, ctx.SN2.line, VarStr)=0D + VarGuid =3D gCVfrDataStorage.GetVarStoreGuid(ctx.BaseInfo.VarS= toreId)=0D + self.__ErrorHandler(gCVfrBufferConfig.Register(SName, VarGuid)= , ctx.SN2.line)=0D + Dummy =3D self.gZeroEfiIfrTypeValue=0D + ReturnCode =3D VfrReturnCode(gCVfrBufferConfig.Write(=0D + 'a',=0D + SName,=0D + VarGuid,=0D + None,=0D + ctx.BaseInfo.VarType,=0D + ctx.BaseInfo.Info.VarOffset,=0D + ctx.BaseInfo.VarTotalSize,=0D + Dummy)) #=E3=80=80the definition of dummy is needed to che= ck=0D + self.__ErrorHandler(ReturnCode, ctx.SN2.line)=0D + self.__ErrorHandler(gCVfrDataStorage.AddBufferVarStoreFieldInf= o(ctx.BaseInfo), ctx.SN2.line)=0D +=0D + return ctx.VarIdStr=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrConstantValueField= .=0D + def visitVfrConstantValueField(self, ctx:VfrSyntaxParser.VfrConstantVa= lueFieldContext):=0D + self.visitChildren(ctx)=0D +=0D + IntDecStyle =3D False=0D + if self.__CurrentMinMaxData !=3D None and self.__CurrentMinMaxData= .IsNumericOpcode():=0D + NumericQst =3D CIfrNumeric(self.__CurrentQuestion) #=0D + IntDecStyle =3D True if (NumericQst.GetNumericFlags() & EFI_IF= R_DISPLAY) =3D=3D 0 else False #=0D +=0D + if ctx.TrueSymbol() !=3D None:=0D + ctx.Value.b =3D 1=0D +=0D + elif ctx.FalseSymbol() !=3D None:=0D + ctx.Value.b =3D 0=0D +=0D + elif ctx.One() !=3D None:=0D + ctx.Value.u8 =3D int(ctx.getText())=0D +=0D + elif ctx.Ones() !=3D None:=0D + ctx.Value.u64 =3D int(ctx.getText())=0D +=0D + elif ctx.Zero() !=3D None:=0D + ctx.Value.u8 =3D int(ctx.getText())=0D +=0D + elif ctx.Colon() !=3D []:=0D + ctx.Value.time.Hour =3D self.__TransNum(ctx.Number(0))=0D + ctx.Value.time.Minute =3D self.__TransNum(ctx.Number(1))=0D + ctx.Value.time.Second =3D self.__TransNum(ctx.Number(2))=0D +=0D + elif ctx.Slash() !=3D []:=0D + ctx.Value.date.Year =3D self.__TransNum(ctx.Number(0))=0D + ctx.Value.date.Month =3D self.__TransNum(ctx.Number(1))=0D + ctx.Value.date.Day =3D self.__TransNum(ctx.Number(2))=0D +=0D + elif ctx.Semicolon() !=3D []:=0D + ctx.Value.ref.QuestionId =3D self.__TransNum(ctx.Number(0))=0D + ctx.Value.ref.FormId =3D self.__TransNum(ctx.Number(1))=0D + ctx.Value.ref.DevicePath =3D self.__TransNum(ctx.Number(2))=0D + ctx.Value.ref.FormSetGuid =3D ctx.guidDefinition().Guid=0D +=0D + elif ctx.StringToken() !=3D None:=0D + ctx.Value.string =3D self.__TransNum(ctx.Number(0))=0D +=0D + elif ctx.OpenBrace() !=3D None:=0D + ctx.ListType =3D True=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + for i in range(0, len(ctx.Number())):=0D + TempValue =3D EFI_IFR_TYPE_VALUE()=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + TempValue.u8 =3D self.__TransNum(ctx.Number(i))=0D + ctx.ValueList.append(TempValue)=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + TempValue.u16 =3D self.__TransNum(ctx.Number(i))=0D + ctx.ValueList.append(TempValue)=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + TempValue.u32 =3D self.__TransNum(ctx.Number(i))=0D + ctx.ValueList.append(TempValue)=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + TempValue.u64 =3D self.__TransNum(ctx.Number(i))=0D + ctx.ValueList.append(TempValue)=0D + else:=0D + Negative =3D True if ctx.Negative() !=3D None else False=0D + # The value stored in bit fields is always set to UINT32 type.= =0D + if self.__CurrQestVarInfo.IsBitVar:=0D + ctx.Value.u32 =3D self.__TransNum(ctx.Number(0))=0D + else:=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + ctx.Value.u8 =3D self.__TransNum(ctx.Number(0))=0D + if IntDecStyle:=0D + if Negative:=0D + if ctx.Value.u8 > 0x80:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT8 type can't big than 0x7F, small= than -0x80")=0D + else:=0D + if ctx.Value.u8 > 0x7F:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT8 type can't big than 0x7F, small= than -0x80")=0D + if Negative:=0D + ctx.Value.u8 =3D ~ctx.Value.u8 + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + ctx.Value.u16 =3D self.__TransNum(ctx.Number(0))=0D + if IntDecStyle:=0D + if Negative:=0D + if ctx.Value.u16 > 0x8000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT16 type can't big than 0x7FFF, sm= all than -0x8000")=0D + else:=0D + if ctx.Value.u16 > 0x7FFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT16 type can't big than 0x7FFF, sm= all than -0x8000")=0D + if Negative:=0D + ctx.Value.u16 =3D ~ctx.Value.u16 + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + ctx.Value.u32 =3D self.__TransNum(ctx.Number(0))=0D + if IntDecStyle:=0D + if Negative:=0D + if ctx.Value.u32 > 0x80000000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT32 type can't big than 0x7FFFFFFF= , small than -0x80000000")=0D + else:=0D + if ctx.Value.u32 > 0X7FFFFFFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT32 type can't big than 0x7FFFFFFF= , small than -0x80000000")=0D + if Negative:=0D + ctx.Value.u32 =3D ~ctx.Value.u32 + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + ctx.Value.u64 =3D self.__TransNum(ctx.Number(0))=0D + if IntDecStyle:=0D + if Negative:=0D + if ctx.Value.u64 > 0x8000000000000000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT64 type can't big than 0x7FFFFFFF= FFFFFFFF, small than -0x8000000000000000")=0D + else:=0D + if ctx.Value.u64 > 0x7FFFFFFFFFFFFFFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.start.line, "INT64 type can't big than 0x7FFFFFFF= FFFFFFFF, small than -0x8000000000000000")=0D + if Negative:=0D + ctx.Value.u64 =3D ~ctx.Value.u64 + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + ctx.Value.b =3D self.__TransNum(ctx.Number(0))=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + ctx.Value.string =3D self.__TransNum(ctx.Number(0))=0D +=0D + return ctx.Value, ctx.ValueList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrImageTag.=0D + def visitVfrImageTag(self, ctx:VfrSyntaxParser.VfrImageTagContext):=0D +=0D + IObj =3D CIfrImage()=0D + self.visitChildren(ctx)=0D + IObj.SetLineNo(ctx.start.line)=0D + IObj.SetImageId(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D IObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrLockedTag.=0D + def visitVfrLockedTag(self, ctx:VfrSyntaxParser.VfrLockedTagContext):= =0D +=0D + LObj=3DCIfrLocked()=0D + self.visitChildren(ctx)=0D + LObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D LObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStatTag.= =0D + def visitVfrStatementStatTag(self, ctx:VfrSyntaxParser.VfrStatementSta= tTagContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrImageTag() !=3D None:=0D + ctx.Node =3D ctx.vfrImageTag().Node=0D + else:=0D + ctx.Node =3D ctx.vfrLockedTag().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStatTagLi= st.=0D + def visitVfrStatementStatTagList(self, ctx:VfrSyntaxParser.VfrStatemen= tStatTagListContext):=0D +=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrStatementStatTag():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrFormDefinition.=0D + def visitVfrFormDefinition(self, ctx:VfrSyntaxParser.VfrFormDefinition= Context):=0D +=0D + FObj =3D CIfrForm()=0D + self.visitChildren(ctx)=0D +=0D + FObj.SetLineNo(ctx.start.line)=0D + FormId =3D self.__TransNum(ctx.Number(0))=0D + FObj.SetFormId(FormId)=0D + FormTitle =3D self.__TransNum(ctx.Number(1))=0D + FObj.SetFormTitle(FormTitle)=0D +=0D + ctx.Node.Data =3D FObj=0D + for Ctx in ctx.vfrForm():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrForm.=0D + def visitVfrForm(self, ctx:VfrSyntaxParser.VfrFormContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementImage() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementImage().Node=0D + if ctx.vfrStatementLocked() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementLocked().Node=0D + if ctx.vfrStatementRules() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementRules().Node=0D + if ctx.vfrStatementDefault() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementDefault().Node=0D + if ctx.vfrStatementStat() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementStat().Node=0D + if ctx.vfrStatementQuestions() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementQuestions().Node=0D + if ctx.vfrStatementConditional() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementConditional().Node=0D + if ctx.vfrStatementLabel() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementLabel().Node=0D + if ctx.vfrStatementBanner() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementBanner().Node=0D + if ctx.vfrStatementInvalid() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementInvalid().Node=0D + if ctx.vfrStatementExtension() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementExtension().Node=0D + if ctx.vfrStatementModal() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementModal().Node=0D + if ctx.vfrStatementRefreshEvent() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementRefreshEvent().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrFormMapDefinition.= =0D + def visitVfrFormMapDefinition(self, ctx:VfrSyntaxParser.VfrFormMapDefi= nitionContext):=0D +=0D + FMapObj =3D CIfrFormMap()=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + FMapObj.SetLineNo(Line)=0D + self.__ErrorHandler(FMapObj.SetFormId(self.__TransNum(ctx.S1.text)= ), ctx.S1.line, ctx.S1.line)=0D + FormMapMethodNumber =3D len(ctx.MapTitle())=0D + if FormMapMethodNumber =3D=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , Line, 'No MapMethod is set for FormMap!')=0D + else:=0D + for i in range(0, FormMapMethodNumber):=0D + FMapObj.SetFormMapMethod(self.__TransNum(ctx.Number(i+1)),= ctx.guidDefinition(i).Guid)=0D + ctx.Node.Data =3D FMapObj=0D + for Ctx in ctx.vfrForm():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementImage.=0D + def visitVfrStatementImage(self, ctx:VfrSyntaxParser.VfrStatementImage= Context):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Node =3D ctx.vfrImageTag().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementLocked.=0D + def visitVfrStatementLocked(self, ctx:VfrSyntaxParser.VfrStatementLock= edContext):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Node =3D ctx.vfrLockedTag().Node=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementRules.=0D + def visitVfrStatementRules(self, ctx:VfrSyntaxParser.VfrStatementRules= Context):=0D +=0D + RObj =3D CIfrRule()=0D + self.visitChildren(ctx)=0D +=0D + RObj.SetLineNo(ctx.start.line)=0D + RuleName =3D self.__TransId(ctx.StringIdentifier())=0D + self.__CVfrRulesDB.RegisterRule(RuleName)=0D + RObj.SetRuleId(self.__CVfrRulesDB.GetRuleId(RuleName))=0D + ctx.Node.Data =3D RObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + # expression=0D + # end rule=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStat.=0D + def visitVfrStatementStat(self, ctx:VfrSyntaxParser.VfrStatementStatCo= ntext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementSubTitle() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementSubTitle().Node=0D + if ctx.vfrStatementStaticText() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementStaticText().Node=0D + if ctx.vfrStatementCrossReference() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementCrossReference().Node=0D + return ctx.Node=0D +=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementSubTitle.= =0D + def visitVfrStatementSubTitle(self, ctx:VfrSyntaxParser.VfrStatementSu= bTitleContext):=0D +=0D + SObj =3D ctx.OpObj=0D +=0D + Line =3D ctx.start.line=0D + SObj.SetLineNo(Line)=0D +=0D + Prompt =3D self.__TransNum(ctx.Number())=0D + SObj.SetPrompt(Prompt)=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.vfrSubtitleFlags() !=3D None:=0D + SObj.SetFlags(ctx.vfrSubtitleFlags().SubFlags)=0D +=0D + ctx.Node.Data =3D SObj=0D + self.__InsertChild(ctx.Node, ctx.vfrStatementStatTagList())=0D + # sequence question=0D + for Ctx in ctx.vfrStatementSubTitleComponent():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementSubTitleC= omponent.=0D + def visitVfrStatementSubTitleComponent(self, ctx:VfrSyntaxParser.VfrSt= atementSubTitleComponentContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementQuestions() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementQuestions().Node=0D + elif ctx.vfrStatementStat() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementStat().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrSubtitleFlags.=0D + def visitVfrSubtitleFlags(self, ctx:VfrSyntaxParser.VfrSubtitleFlagsCo= ntext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + for FlagsFieldCtx in ctx.subtitleFlagsField():=0D + ctx.SubFlags |=3D FlagsFieldCtx.Flag=0D +=0D + return None=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#subtitleFlagsField.=0D + def visitSubtitleFlagsField(self, ctx:VfrSyntaxParser.SubtitleFlagsFie= ldContext):=0D +=0D + if ctx.Number() !=3D None:=0D + ctx.Flag =3D self.__TransNum(ctx.Number())=0D + else:=0D + ctx.Flag =3D 0x01=0D +=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStaticTex= t.=0D + def visitVfrStatementStaticText(self, ctx:VfrSyntaxParser.VfrStatement= StaticTextContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + QId =3D EFI_QUESTION_ID_INVALID=0D + Help =3D self.__TransNum(ctx.S1.text)=0D + Prompt =3D self.__TransNum(ctx.S2.text)=0D + TxtTwo =3D EFI_STRING_ID_INVALID=0D + if ctx.S3 !=3D None:=0D + TxtTwo =3D self.__TransNum(ctx.S3.text)=0D +=0D + TextFlags =3D 0=0D + for FlagsFieldCtx in ctx.staticTextFlagsField():=0D + TextFlags |=3D FlagsFieldCtx.Flag=0D +=0D + if TextFlags & EFI_IFR_FLAG_CALLBACK:=0D + if TxtTwo !=3D EFI_STRING_ID_INVALID:=0D + gCVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WA= RNING_ACTION_WITH_TEXT_TWO, ctx.S3.line, ctx.S3.text)=0D +=0D + AObj =3D CIfrAction()=0D + QId, _ =3D self.__CVfrQuestionDB.RegisterQuestion(None, None, = QId)=0D + AObj.SetLineNo(ctx.F.line)=0D + AObj.SetQuestionId(QId)=0D + AObj.SetHelp(Help)=0D + AObj.SetPrompt(Prompt)=0D + self.__ErrorHandler(AObj.SetFlags(TextFlags), ctx.F.line)=0D + if ctx.Key() !=3D None:=0D + Key =3D self.__TransNum(ctx.S4.text)=0D + self.__AssignQuestionKey(AObj, Key)=0D + ctx.Node.Data =3D AObj=0D + ctx.Node.OpCode =3D EFI_IFR_ACTION_OP #=0D +=0D + else:=0D + TObj =3D CIfrText()=0D + Line =3D ctx.start.line=0D + TObj.SetLineNo(Line)=0D + TObj.SetHelp(Help)=0D + TObj.SetPrompt(Prompt)=0D + TObj.SetTextTwo(TxtTwo)=0D + ctx.Node.Data =3D TObj=0D +=0D + return ctx.Node=0D +=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#staticTextFlagsField.= =0D + def visitStaticTextFlagsField(self, ctx:VfrSyntaxParser.StaticTextFlag= sFieldContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + ctx.Flag =3D self.__TransNum(ctx.N.text)=0D + if ctx.Flag !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.N.line)=0D + else:=0D +=0D + ctx.Flag =3D ctx.questionheaderFlagsField().QHFlag=0D +=0D + return ctx.Flag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementCrossRefe= rence.=0D + def visitVfrStatementCrossReference(self, ctx:VfrSyntaxParser.VfrState= mentCrossReferenceContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementGoto() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementGoto().Node=0D + elif ctx.vfrStatementResetButton() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementResetButton().Node=0D + return ctx.Node=0D +=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementGoto.=0D + def visitVfrStatementGoto(self, ctx:VfrSyntaxParser.VfrStatementGotoCo= ntext):=0D +=0D + RefType =3D 5=0D + DevPath =3D EFI_STRING_ID_INVALID=0D + QId =3D EFI_QUESTION_ID_INVALID=0D + BitMask =3D 0=0D + Line =3D ctx.start.line=0D + R5Obj =3D CIfrRef5()=0D + R5Obj.SetLineNo(Line)=0D + ctx.OpObj =3D R5Obj=0D + #ctx.OHObj =3D R5Obj=0D +=0D + if ctx.DevicePath() !=3D None:=0D + RefType =3D 4=0D + DevPath =3D self.__TransNum(ctx.Number(0))=0D + FId =3D self.__TransNum(ctx.Number(1))=0D + QId =3D self.__TransNum(ctx.Number(2))=0D + R4Obj =3D CIfrRef4()=0D + R4Obj.SetLineNo(Line)=0D + R4Obj.SetDevicePath(DevPath)=0D + R4Obj.SetFormId(FId)=0D + R4Obj.SetQuestionId(QId)=0D + ctx.OpObj =3D R4Obj=0D + #ctx.OHObj =3D R4Obj=0D +=0D + elif ctx.FormSetGuid() !=3D None:=0D + RefType =3D 3=0D + FId =3D self.__TransNum(ctx.Number(0))=0D + QId =3D self.__TransNum(ctx.Number(1))=0D + R3Obj =3D CIfrRef3()=0D + R3Obj.SetLineNo(Line)=0D + R3Obj.SetFormId(FId)=0D + R3Obj.SetQuestionId(QId)=0D + ctx.OpObj =3D R3Obj=0D + #ctx.OHObj =3D R3Obj=0D +=0D + elif ctx.FormId() !=3D None:=0D + FId =3D self.__TransNum(ctx.Number(0))=0D + RefType =3D 2=0D + if ctx.QN !=3D None:=0D + Name =3D ctx.QN.text=0D + QId, BitMask, _ =3D self.__CVfrQuestionDB.GetQuestionId(Na= me)=0D + if QId =3D=3D EFI_QUESTION_ID_INVALID:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNDEFINED= , ctx.QN.line)=0D + else:=0D + QId =3D self.__TransNum(ctx.Number(1))=0D + R2Obj =3D CIfrRef2()=0D + R2Obj.SetLineNo(Line)=0D + R2Obj.SetFormId(FId)=0D + R2Obj.SetQuestionId(QId)=0D + ctx.OpObj =3D R2Obj=0D + # ctx.OHObj =3D R2Obj=0D +=0D +=0D + elif str(ctx.getChild(1)) =3D=3D str(ctx.Number(0)):=0D + RefType =3D 1=0D + FId =3D self.__TransNum(ctx.Number(0))=0D + RObj =3D CIfrRef()=0D + RObj.SetLineNo(Line)=0D + RObj.SetFormId(FId)=0D + ctx.OpObj =3D RObj=0D + # ctx.OHObj =3D RObj=0D +=0D + self.visitChildren(ctx)=0D +=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_OTHER:=0D + self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_REF=0D +=0D + if RefType =3D=3D 4 or RefType =3D=3D 3:=0D + ctx.OpObj.SetFormSetId(ctx.guidDefinition().Guid)=0D + # ctx.OHObj.SetFormSetId(ctx.guidDefinition().Guid)=0D +=0D + if ctx.FLAGS() !=3D None:=0D + ctx.OpObj.SetFlags(ctx.vfrGotoFlags().GotoFlags)=0D + # ctx.OHObj.SetFlags(ctx.vfrGotoFlags().GotoFlags)=0D +=0D + if ctx.Key() !=3D None:=0D + index =3D int(len(ctx.Number())) - 1=0D + Key =3D self.__TransNum(ctx.Number(index))=0D + self.__AssignQuestionKey(ctx.OpObj, Key)=0D +=0D + # ctx.OHObj.SetScope(1)=0D + ctx.OpObj.SetScope(1)=0D + ctx.Node.Data =3D ctx.OpObj=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrGotoFlags.=0D + def visitVfrGotoFlags(self, ctx:VfrSyntaxParser.VfrGotoFlagsContext):= =0D +=0D + self.visitChildren(ctx)=0D + for FlagsFieldCtx in ctx.gotoFlagsField():=0D + ctx.GotoFlags |=3D FlagsFieldCtx.Flag=0D +=0D + return ctx.GotoFlags=0D +=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#gotoFlagsField.=0D + def visitGotoFlagsField(self, ctx:VfrSyntaxParser.GotoFlagsFieldContex= t):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.N !=3D None:=0D + if self.__TransNum(ctx.N.text) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.N.line)=0D + else:=0D + ctx.Flag =3D ctx.questionheaderFlagsField().QHFlag=0D +=0D + return ctx.Flag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementResetButt= on.=0D + def visitVfrStatementResetButton(self, ctx:VfrSyntaxParser.VfrStatemen= tResetButtonContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + RBObj =3D ctx.OpObj=0D + Line =3D ctx.start.line=0D + RBObj.SetLineNo(Line)=0D + defaultstore =3D ctx.N.text=0D + DefaultId, ReturnCode =3D gCVfrDefaultStore.GetDefaultId(defaultst= ore)=0D + self.__ErrorHandler(ReturnCode, ctx.N.line)=0D + RBObj.SetDefaultId(DefaultId)=0D +=0D + ctx.Node.Data =3D RBObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementQuestions= .=0D + def visitVfrStatementQuestions(self, ctx:VfrSyntaxParser.VfrStatementQ= uestionsContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementBooleanType() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementBooleanType().Node=0D + if ctx.vfrStatementDate() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementDate().Node=0D + if ctx.vfrStatementNumericType() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementNumericType().Node=0D + if ctx.vfrStatementStringType() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementStringType().Node=0D + if ctx.vfrStatementOrderedList() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementOrderedList().Node=0D + if ctx.vfrStatementTime() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementTime().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementQuestionT= ag.=0D + def visitVfrStatementQuestionTag(self, ctx:VfrSyntaxParser.VfrStatemen= tQuestionTagContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementStatTag() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementStatTag().Node=0D + if ctx.vfrStatementInconsistentIf() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementInconsistentIf().Node=0D + if ctx.vfrStatementNoSubmitIf() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementNoSubmitIf().Node=0D + if ctx.vfrStatementDisableIfQuest() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementDisableIfQuest().Node=0D + if ctx.vfrStatementRefresh() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementRefresh().Node=0D + if ctx.vfrStatementVarstoreDevice() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementVarstoreDevice().Node=0D + if ctx.vfrStatementExtension() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementExtension().Node=0D + if ctx.vfrStatementRefreshEvent() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementRefreshEvent().Node=0D + if ctx.vfrStatementWarningIf() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementWarningIf().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementInconsist= entIf.=0D + def visitVfrStatementInconsistentIf(self, ctx:VfrSyntaxParser.VfrState= mentInconsistentIfContext):=0D +=0D + IIObj =3D CIfrInconsistentIf()=0D + self.visitChildren(ctx)=0D +=0D + IIObj.SetLineNo(ctx.start.line)=0D + IIObj.SetError(self.__TransNum(ctx.Number()))=0D +=0D + ctx.Node.Data =3D IIObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementNoSubmitI= f.=0D + def visitVfrStatementNoSubmitIf(self, ctx:VfrSyntaxParser.VfrStatement= NoSubmitIfContext):=0D + NSIObj =3D CIfrNoSubmitIf()=0D + self.visitChildren(ctx)=0D +=0D + NSIObj.SetLineNo(ctx.start.line)=0D + NSIObj.SetError(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D NSIObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementDisableIf= Quest.=0D + def visitVfrStatementDisableIfQuest(self, ctx:VfrSyntaxParser.VfrState= mentDisableIfQuestContext):=0D + DIObj =3D CIfrDisableIf()=0D + self.visitChildren(ctx)=0D +=0D + DIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D DIObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementRefresh.= =0D + def visitVfrStatementRefresh(self, ctx:VfrSyntaxParser.VfrStatementRef= reshContext):=0D + RObj =3D CIfrRefresh()=0D + self.visitChildren(ctx)=0D +=0D + RObj.SetLineNo(ctx.start.line)=0D + RObj.SetRefreshInterval(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D RObj=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementVarstoreD= evice.=0D + def visitVfrStatementVarstoreDevice(self, ctx:VfrSyntaxParser.VfrState= mentVarstoreDeviceContext):=0D + VDObj =3D CIfrVarStoreDevice()=0D + self.visitChildren(ctx)=0D +=0D + VDObj.SetLineNo(ctx.start.line)=0D + VDObj.SetDevicePath(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D VDObj=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementRefreshEv= ent.=0D + def visitVfrStatementRefreshEvent(self, ctx:VfrSyntaxParser.VfrStateme= ntRefreshEventContext):=0D + RiObj =3D CIfrRefreshId()=0D + self.visitChildren(ctx)=0D +=0D + RiObj.SetLineNo(ctx.start.line)=0D + RiObj.SetRefreshEventGroutId(ctx.guidDefinition().Guid)=0D + ctx.Node.Data =3D RiObj=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementWarningIf= .=0D + def visitVfrStatementWarningIf(self, ctx:VfrSyntaxParser.VfrStatementW= arningIfContext):=0D + WIObj =3D CIfrWarningIf()=0D + self.visitChildren(ctx)=0D +=0D + WIObj.SetLineNo(ctx.start.line)=0D + WIObj.SetWarning(self.__TransNum(ctx.Number(0)))=0D + WIObj.SetTimeOut(self.__TransNum(ctx.Number(1)))=0D + ctx.Node.Data =3D WIObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementQuestionT= agList.=0D + def visitVfrStatementQuestionTagList(self, ctx:VfrSyntaxParser.VfrStat= ementQuestionTagListContext):=0D +=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrStatementQuestionTag():=0D + self.__InsertChild(ctx.Node, Ctx)=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementQuestionO= ptionTag.=0D + def visitVfrStatementQuestionOptionTag(self, ctx:VfrSyntaxParser.VfrSt= atementQuestionOptionTagContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementSuppressIfQuest() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementSuppressIfQuest().Node=0D +=0D + if ctx.vfrStatementGrayOutIfQuest() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementGrayOutIfQuest().Node=0D +=0D + if ctx.vfrStatementValue() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementValue().Node=0D +=0D + if ctx.vfrStatementDefault() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementDefault().Node=0D +=0D + if ctx.vfrStatementOptions() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementOptions().Node=0D +=0D + if ctx.vfrStatementRead() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementRead().Node=0D +=0D + if ctx.vfrStatementWrite() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementWrite().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementSuppressI= fQuest.=0D + def visitVfrStatementSuppressIfQuest(self, ctx:VfrSyntaxParser.VfrStat= ementSuppressIfQuestContext):=0D +=0D + SIObj =3D CIfrSuppressIf()=0D + SIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D SIObj=0D + ctx.Node.Condition =3D 'suppressif' + ' ' + self.__ExtractOriginal= Text(ctx.vfrStatementExpression())=0D + self.visitChildren(ctx)=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementGrayOutIf= Quest.=0D + def visitVfrStatementGrayOutIfQuest(self, ctx:VfrSyntaxParser.VfrState= mentGrayOutIfQuestContext):=0D + GOIObj =3D CIfrGrayOutIf()=0D + GOIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D GOIObj=0D + ctx.Node.Condition =3D 'grayoutif' + ' ' + self.__ExtractOriginalT= ext(ctx.vfrStatementExpression())=0D + self.visitChildren(ctx)=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#flagsField.=0D + def visitFlagsField(self, ctx:VfrSyntaxParser.FlagsFieldContext):=0D +=0D + if ctx.N !=3D None:=0D + CVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WARNING= _OBSOLETED_FRAMEWORK_OPCODE, ctx.N.line, ctx.N.text)=0D + if ctx.L !=3D None:=0D + CVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WARNING= _OBSOLETED_FRAMEWORK_OPCODE, ctx.L.line, ctx.L.text)=0D +=0D + return self.visitChildren(ctx)=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementDefault.= =0D + def visitVfrStatementDefault(self, ctx:VfrSyntaxParser.VfrStatementDef= aultContext):=0D +=0D + self.visitChildren(ctx)=0D + IsExp =3D False=0D + DefaultId =3D EFI_HII_DEFAULT_CLASS_STANDARD=0D + Line =3D ctx.start.line=0D +=0D + if ctx.vfrConstantValueField() !=3D None:=0D + Value =3D ctx.vfrConstantValueField().Value=0D + ValueList =3D ctx.vfrConstantValueField().ValueList=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + Size =3D 0=0D +=0D + if self.__CurrentMinMaxData !=3D None and self.__CurrentMinMax= Data.IsNumericOpcode():=0D + # check default value is valid for Numeric Opcode=0D + if ValueList =3D=3D []:=0D + ValueList.append(Value)=0D + for i in range(0, len(ValueList)):=0D + Value =3D ValueList[i]=0D + NumericQst =3D CIfrNumeric (self.__CurrentQuestion) #= =0D + if (NumericQst.GetNumericFlags() & EFI_IFR_DISPLAY) = =3D=3D 0 and self.__CurrQestVarInfo.IsBitVar =3D=3D False: #=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + if Value.u8 < self.__CurrentMinMaxData.GetMinD= ata(Type, False) or Value.u8 > self.__CurrentMinMaxData.GetMaxData(Type, Fa= lse):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, Line, "Numeric default value must be between MinValue= and MaxValue.")=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + if Value.u16 < self.__CurrentMinMaxData.GetMin= Data(Type, False) or Value.u16 > self.__CurrentMinMaxData.GetMaxData(Type, = False):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, Line, "Numeric default value must be between MinValue= and MaxValue.")=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + if Value.u32 < self.__CurrentMinMaxData.GetMin= Data(Type, False) or Value.u32 > self.__CurrentMinMaxData.GetMaxData(Type, = False):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, Line, "Numeric default value must be between MinValue= and MaxValue.")=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + if Value.u64 < self.__CurrentMinMaxData.GetMin= Data(Type, False) or Value.u64 > self.__CurrentMinMaxData.GetMaxData(Type, = False):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, Line, "Numeric default value must be between MinValue= and MaxValue.")=0D +=0D + else:=0D + # Value for question stored in bit fields is alway= s set to UINT32 type.=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + if Value.u32 < self.__CurrentMinMaxData.GetMin= Data(Type, True) or Value.u32 > self.__CurrentMinMaxData.GetMaxData(Type, = True):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, Line, "Numeric default value must be between MinValue= and MaxValue.")=0D + else:=0D + if Value.u64 < self.__CurrentMinMaxData.GetMin= Data(Type, False) or Value.u64 > self.__CurrentMinMaxData.GetMaxData(Type,= False):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, Line, "Numeric default value must be between MinValue= and MaxValue.")=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_OTHER:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_FATAL_ERROR, = Line, "Default data type error.")=0D + Size =3D sizeof(EFI_IFR_TYPE_VALUE)=0D +=0D + elif ctx.vfrConstantValueField().ListType:=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + Size =3D sizeof(c_ubyte) * len(ValueList)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + Size =3D sizeof(c_ushort) * len(ValueList)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + Size =3D sizeof(c_ulong) * len(ValueList)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + Size =3D sizeof(c_ulonglong) * len(ValueList)=0D +=0D + else:=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + Size =3D sizeof(c_ulong)=0D + else:=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSiz= eByDataType(Type)=0D + self.__ErrorHandler(ReturnCode, Line)=0D +=0D + Size +=3D EFI_IFR_DEFAULT.Value.offset=0D + if not ctx.vfrConstantValueField().ListType:=0D + DObj =3D CIfrDefault(Size)=0D + DObj.SetLineNo(Line)=0D + DObj.SetValue(Value)=0D +=0D + if self.__IsStringOp:=0D + DObj.SetType(EFI_IFR_TYPE_STRING)=0D + else:=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + DObj.SetType(EFI_IFR_TYPE_NUM_SIZE_32)=0D + else:=0D + DObj.SetType(self.__CurrQestVarInfo.VarType)=0D + else:=0D + DObj =3D CIfrDefault3(Size, len(ValueList), Type)=0D + DObj.SetLineNo(Line)=0D + DObj.SetValue(ValueList)=0D + DObj.SetType(EFI_IFR_TYPE_BUFFER)=0D +=0D + else:=0D + IsExp =3D True=0D + DObj =3D CIfrDefault2()=0D + DObj.SetLineNo(Line)=0D + DObj.SetScope(1)=0D +=0D + if ctx.DefaultStore() !=3D None:=0D + DefaultId, ReturnCode =3D gCVfrDefaultStore.GetDefaultId(ctx.S= N.text)=0D + self.__ErrorHandler(ReturnCode, ctx.SN.line, ctx.SN.text)=0D + DObj.SetDefaultId(DefaultId)=0D +=0D + self.__CheckDuplicateDefaultValue(DefaultId, ctx.D.line, ctx.D.tex= t)=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALID:= =0D + VarStoreName, ReturnCode =3D gCVfrDataStorage.GetVarStoreName(= self.__CurrQestVarInfo.VarStoreId)=0D + self.__ErrorHandler(ReturnCode, Line)=0D + VarGuid =3D gCVfrDataStorage.GetVarStoreGuid(self.__CurrQestVa= rInfo.VarStoreId)=0D + VarStoreType =3D gCVfrDataStorage.GetVarStoreType(self.__CurrQ= estVarInfo.VarStoreId)=0D + if (IsExp =3D=3D False) and (VarStoreType =3D=3D EFI_VFR_VARST= ORE_TYPE.EFI_VFR_VARSTORE_BUFFER):=0D + self.__ErrorHandler(gCVfrDefaultStore.BufferVarStoreAltCon= figAdd(DefaultId, self.__CurrQestVarInfo, VarStoreName, VarGuid, self.__Cur= rQestVarInfo.VarType, Value), Line)=0D + ctx.Node.Data =3D DObj=0D + self.__InsertChild(ctx.Node, ctx.vfrStatementValue())=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementValue.=0D + def visitVfrStatementValue(self, ctx:VfrSyntaxParser.VfrStatementValue= Context):=0D +=0D + VObj =3D CIfrValue()=0D + self.visitChildren(ctx)=0D +=0D + VObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D VObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementOptions.= =0D + def visitVfrStatementOptions(self, ctx:VfrSyntaxParser.VfrStatementOpt= ionsContext):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Node =3D ctx.vfrStatementOneOfOption().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementOneOfOpti= on.=0D + def visitVfrStatementOneOfOption(self, ctx:VfrSyntaxParser.VfrStatemen= tOneOfOptionContext):=0D +=0D + Line =3D ctx.start.line=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_OTHER:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_FATAL_ERROR, Line= , "Get data type error.")=0D +=0D + self.visitChildren(ctx)=0D +=0D + Value =3D ctx.vfrConstantValueField().Value=0D + ValueList =3D ctx.vfrConstantValueField().ValueList=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + Size =3D 0=0D + if self.__CurrentMinMaxData !=3D None:=0D + #set min/max value for oneof opcode=0D + Step =3D self.__CurrentMinMaxData.GetStepData(self.__CurrQestV= arInfo.VarType, self.__CurrQestVarInfo.IsBitVar)=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + self.__CurrentMinMaxData.SetMinMaxStepData(Value.u32, Valu= e.u32, Step, EFI_IFR_TYPE_NUM_SIZE_32)=0D + else:=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + self.__CurrentMinMaxData.SetMinMaxStepData(Value.u64, = Value.u64, Step, EFI_IFR_TYPE_NUM_SIZE_64)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + self.__CurrentMinMaxData.SetMinMaxStepData(Value.u32, = Value.u32, Step, EFI_IFR_TYPE_NUM_SIZE_32)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + self.__CurrentMinMaxData.SetMinMaxStepData(Value.u16, = Value.u16, Step, EFI_IFR_TYPE_NUM_SIZE_16)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + self.__CurrentMinMaxData.SetMinMaxStepData(Value.u8, V= alue.u8, Step, EFI_IFR_TYPE_NUM_SIZE_8)=0D +=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_OTHER:=0D + Size =3D sizeof(EFI_IFR_TYPE_VALUE)=0D + elif ctx.vfrConstantValueField().ListType:=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + Size =3D sizeof(c_ubyte) * len(ValueList)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + Size =3D sizeof(c_ushort) * len(ValueList)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + Size =3D sizeof(c_ulong) * len(ValueList)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + Size =3D sizeof(c_ulonglong) * len(ValueList)=0D + else:=0D + # For the oneof stored in bit fields, set the option type as U= INT32.=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + Size =3D sizeof(c_long)=0D + else:=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByD= ataType(Type)=0D + self.__ErrorHandler(ReturnCode, Line)=0D +=0D + Size +=3D EFI_IFR_ONE_OF_OPTION.Value.offset=0D + OOOObj =3D None=0D + if not ctx.vfrConstantValueField().ListType:=0D + OOOObj =3D CIfrOneOfOption(Size)=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + OOOObj.SetType(EFI_IFR_TYPE_NUM_SIZE_32)=0D + else:=0D + OOOObj.SetType(Type)=0D + OOOObj.SetValue(Value)=0D + else:=0D + OOOObj =3D CIfrOneOfOption2(Size, len(ValueList), Type)=0D + OOOObj.SetType(EFI_IFR_TYPE_BUFFER)=0D + OOOObj.SetValue(ValueList)=0D +=0D +=0D + OOOObj.SetLineNo(Line)=0D + OOOObj.SetOption(self.__TransNum(ctx.Number(0)))=0D +=0D +=0D + self.__ErrorHandler(OOOObj.SetFlags(ctx.vfrOneOfOptionFlags().LFla= gs), ctx.F.line)=0D + self.__ErrorHandler(self.__CurrentQuestion.SetQHeaderFlags(ctx.vfr= OneOfOptionFlags().HFlags), ctx.F.line)=0D +=0D + # Array type only for default type OneOfOption.=0D + if (OOOObj.GetFlags() & (EFI_IFR_OPTION_DEFAULT | EFI_IFR_OPTION_D= EFAULT_MFG)) =3D=3D 0 and (ctx.vfrConstantValueField().ListType):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_FATAL_ERROR, Line= , "Default keyword should with array value type!")=0D +=0D + # Clear the default flag if the option not use array value but has= default flag.=0D + if (OOOObj.GetFlags() & (EFI_IFR_OPTION_DEFAULT | EFI_IFR_OPTION_D= EFAULT_MFG)) !=3D 0 and (ctx.vfrConstantValueField().ListType =3D=3D False)= and (self.__IsOrderedList):=0D + OOOObj.SetFlags(OOOObj.GetFlags() & ~(EFI_IFR_OPTION_DEFAULT |= EFI_IFR_OPTION_DEFAULT_MFG))=0D +=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALID:= =0D + VarStoreName, ReturnCode =3D gCVfrDataStorage.GetVarStoreName(= self.__CurrQestVarInfo.VarStoreId)=0D + self.__ErrorHandler(ReturnCode, Line)=0D + VarStoreGuid =3D gCVfrDataStorage.GetVarStoreGuid(self.__CurrQ= estVarInfo.VarStoreId)=0D + if OOOObj.GetFlags() & EFI_IFR_OPTION_DEFAULT:=0D + self.__CheckDuplicateDefaultValue(EFI_HII_DEFAULT_CLASS_ST= ANDARD, ctx.F.line, ctx.F.text)=0D + self.__ErrorHandler(gCVfrDefaultStore.BufferVarStoreAltCon= figAdd(EFI_HII_DEFAULT_CLASS_STANDARD, self.__CurrQestVarInfo, VarStoreName= , VarStoreGuid, self.__CurrQestVarInfo.VarType, Value), Line)=0D + if OOOObj.GetFlags() & EFI_IFR_OPTION_DEFAULT_MFG:=0D + self.__CheckDuplicateDefaultValue(EFI_HII_DEFAULT_CLASS_MA= NUFACTURING, ctx.F.line, ctx.F.text)=0D + self.__ErrorHandler(gCVfrDefaultStore.BufferVarStoreAltCon= figAdd(EFI_HII_DEFAULT_CLASS_MANUFACTURING, self.__CurrQestVarInfo, VarStor= eName, VarStoreGuid, self.__CurrQestVarInfo.VarType, Value), Line)=0D +=0D + if ctx.Key() !=3D None:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, ctx.= KN.line, ctx.KN.text)=0D + #=E3=80=80Guid Option Key=0D + IfrOptionKey =3D CIfrOptionKey(self.__CurrentQuestion.GetQuest= ionId(), Value, self.__TransNum(ctx.KN.text))=0D + IfrOptionKey.SetLineNo()=0D + if ctx.vfrImageTag() !=3D None:=0D + OOOObj.SetScope(1) #=0D + ctx.Node.Data =3D OOOObj=0D + for Ctx in ctx.vfrImageTag():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrOneOfOptionFlags.= =0D + def visitVfrOneOfOptionFlags(self, ctx:VfrSyntaxParser.VfrOneOfOptionF= lagsContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + ctx.LFlags =3D self.__CurrQestVarInfo.VarType=0D + for FlagsFieldCtx in ctx.oneofoptionFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D + ctx.LFlags |=3D FlagsFieldCtx.LFlag=0D +=0D + return ctx.HFlags, ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#oneofoptionFlagsField= .=0D + def visitOneofoptionFlagsField(self, ctx:VfrSyntaxParser.OneofoptionFl= agsFieldContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + ctx.LFlag =3D self.__TransNum(ctx.Number())=0D + if ctx.OptionDefault() !=3D None:=0D + ctx.LFlag =3D 0x10=0D + if ctx.OptionDefaultMfg() !=3D None:=0D + ctx.LFlag =3D 0x20=0D + if ctx.InteractiveFlag() !=3D None:=0D + ctx.HFlag =3D 0x04=0D + if ctx.ResetRequiredFlag() !=3D None:=0D + ctx.HFlag =3D 0x10=0D + if ctx.RestStyleFlag() !=3D None:=0D + ctx.HFlag =3D 0x20=0D + if ctx.ReconnectRequiredFlag() !=3D None:=0D + ctx.HFlag =3D 0x40=0D + if ctx.ManufacturingFlag() !=3D None:=0D + ctx.LFlag =3D 0x20=0D + if ctx.DefaultFlag() !=3D None:=0D + ctx.LFlag =3D 0x10=0D + if ctx.NVAccessFlag() !=3D None:=0D + gCVfrErrorHandle.HandleWarning (EFI_VFR_WARNING_CODE.VFR_WARNI= NG_OBSOLETED_FRAMEWORK_OPCODE, ctx.A.line, ctx.A.text)=0D + if ctx.LateCheckFlag() !=3D None:=0D + gCVfrErrorHandle.HandleWarning (EFI_VFR_WARNING_CODE.VFR_WARNI= NG_OBSOLETED_FRAMEWORK_OPCODE, ctx.L.line, ctx.L.text)=0D +=0D + return ctx.HFlag, ctx.LFlag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementRead.=0D + def visitVfrStatementRead(self, ctx:VfrSyntaxParser.VfrStatementReadCo= ntext):=0D +=0D + RObj =3D CIfrRead()=0D + self.visitChildren(ctx)=0D +=0D + RObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D RObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementWrite.=0D + def visitVfrStatementWrite(self, ctx:VfrSyntaxParser.VfrStatementWrite= Context):=0D +=0D + WObj =3D CIfrWrite()=0D + self.visitChildren(ctx)=0D +=0D + WObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D WObj=0D + ctx.Node.Expression =3D self.__ExtractOriginalText(ctx.vfrStatemen= tExpression())=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementQuestionO= ptionList.=0D + def visitVfrStatementQuestionOptionList(self, ctx:VfrSyntaxParser.VfrS= tatementQuestionOptionListContext):=0D +=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrStatementQuestionOption():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementQuestionO= ption.=0D + def visitVfrStatementQuestionOption(self, ctx:VfrSyntaxParser.VfrState= mentQuestionOptionContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementQuestionTag() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementQuestionTag().Node=0D +=0D + elif ctx.vfrStatementQuestionOptionTag() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementQuestionOptionTag().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementBooleanTy= pe.=0D + def visitVfrStatementBooleanType(self, ctx:VfrSyntaxParser.VfrStatemen= tBooleanTypeContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementCheckBox() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementCheckBox().Node=0D + else:=0D + ctx.Node =3D ctx.vfrStatementAction().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementCheckBox.= =0D + def visitVfrStatementCheckBox(self, ctx:VfrSyntaxParser.VfrStatementCh= eckBoxContext):=0D +=0D + CBObj =3D ctx.OpObj=0D + Line =3D ctx.start.line=0D + CBObj.SetLineNo(Line)=0D + self.__CurrentQuestion =3D CBObj.GetQuestion()=0D + self.__IsCheckBoxOp =3D True=0D +=0D + self.visitChildren(ctx)=0D +=0D + # Create a GUID opcode to wrap the checkbox opcode, if it refer to= bit varstore.=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + GuidObj =3D CIfrGuid(0)=0D + GuidObj.SetGuid(EDKII_IFR_BIT_VARSTORE_GUID)=0D + GuidObj.SetLineNo(Line)=0D + GuidObj.SetScope(1) #=0D +=0D + # check dataType=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_OTHER:=0D + self.__CurrQestVarInfo.VarType =3D EFI_IFR_TYPE_BOOLEAN=0D +=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALID:= =0D + # Check whether the question refers to a bit field, if yes. cr= eate a Guid to indicate the question refers to a bit field.=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + _, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByData= Type(self.__CurrQestVarInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, "CheckBox varid is n= ot the valid data type")=0D + if gCVfrDataStorage.GetVarStoreType(self.__CurrQestVarInfo= .VarStoreId) =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_BUFFER_BITS and = self.__CurrQestVarInfo.VarTotalSize !=3D 1:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, Line, "CheckBox varid only occupy 1 bit in Bit Varstore")=0D + else:=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSiz= eByDataType(self.__CurrQestVarInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, "CheckBox varid = is not the valid data type")=0D + if Size !=3D 0 and Size !=3D self.__CurrQestVarInfo.Va= rTotalSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, Line, "CheckBox varid doesn't support array")=0D + elif gCVfrDataStorage.GetVarStoreType(self.__CurrQestV= arInfo.VarStoreId) =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_BUFFER and= self.__CurrQestVarInfo.VarTotalSize !=3D sizeof(ctypes.c_bool):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, Line, "CheckBox varid only support BOOLEAN data type")=0D +=0D + if ctx.FLAGS() !=3D None:=0D + CBObj.SetFlags(ctx.vfrCheckBoxFlags().HFlags, ctx.vfrCheckBoxF= lags().LFlags)=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVA= LID:=0D + VarStoreName, ReturnCode =3D gCVfrDataStorage.GetVarStoreN= ame(self.__CurrQestVarInfo.VarStoreId)=0D + self.__CompareErrorHandler(ReturnCode, VfrReturnCode.VFR_R= ETURN_SUCCESS, Line, ctx.L.text, "Failed to retrieve varstore name")=0D +=0D + VarStoreGuid =3D gCVfrDataStorage.GetVarStoreGuid(self.__C= urrQestVarInfo.VarStoreId)=0D + self.gZeroEfiIfrTypeValue.b =3D True=0D + if CBObj.GetFlags() & 0x01:=0D + self.__CheckDuplicateDefaultValue(EFI_HII_DEFAULT_CLAS= S_STANDARD, ctx.F.line, ctx.F.text)=0D + ReturnCode =3D gCVfrDefaultStore.BufferVarStoreAltConf= igAdd(EFI_HII_DEFAULT_CLASS_STANDARD,self.__CurrQestVarInfo, VarStoreName, = VarStoreGuid, self.__CurrQestVarInfo.VarType, self.gZeroEfiIfrTypeValue)=0D + self.__CompareErrorHandler(ReturnCode, VfrReturnCode.V= FR_RETURN_SUCCESS, Line, ctx.L.text, "No standard default storage found")=0D + if CBObj.GetFlags() & 0x02:=0D + self.__CheckDuplicateDefaultValue(EFI_HII_DEFAULT_CLAS= S_MANUFACTURING, ctx.F.line, ctx.F.text)=0D + ReturnCode =3D gCVfrDefaultStore.BufferVarStoreAltCon= figAdd(EFI_HII_DEFAULT_CLASS_MANUFACTURING, self.__CurrQestVarInfo, VarStor= eName, VarStoreGuid, self.__CurrQestVarInfo.VarType, self.gZeroEfiIfrTypeVa= lue)=0D + self.__CompareErrorHandler(ReturnCode, VfrReturnCode.V= FR_RETURN_SUCCESS, Line, ctx.L.text, "No manufacturing default storage foun= d")=0D + if ctx.Key() !=3D None:=0D + Key =3D self.__TransNum(ctx.Number())=0D + self.__AssignQuestionKey(CBObj, Key)=0D +=0D + ctx.Node.Data =3D CBObj=0D + self.__IsCheckBoxOp =3D False=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrCheckBoxFlags.=0D + def visitVfrCheckBoxFlags(self, ctx:VfrSyntaxParser.VfrCheckBoxFlagsCo= ntext):=0D +=0D + self.visitChildren(ctx)=0D + for FlagsFieldCtx in ctx.checkboxFlagsField():=0D + ctx.LFlags |=3D FlagsFieldCtx.LFlag=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D +=0D + return ctx.HFlags, ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#checkboxFlagsField.=0D + def visitCheckboxFlagsField(self, ctx:VfrSyntaxParser.CheckboxFlagsFie= ldContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + if self.__TransNum(ctx.Number()) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.start.line)=0D + elif ctx.DefaultFlag() !=3D None:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, ctx.= D.line, ctx.D.text)=0D + elif ctx.ManufacturingFlag() !=3D None:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, ctx.= M.line, ctx.M.text)=0D + elif ctx.CheckBoxDefaultFlag() !=3D None:=0D + ctx.LFlag =3D 0x01=0D + elif ctx.CheckBoxDefaultMfgFlag() !=3D None:=0D + ctx.LFlag =3D 0x02=0D + else:=0D + ctx.HFlag =3D ctx.questionheaderFlagsField().QHFlag=0D +=0D + return ctx.HFlag, ctx.LFlag=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementAction.=0D + def visitVfrStatementAction(self, ctx:VfrSyntaxParser.VfrStatementActi= onContext):=0D +=0D + self.visitChildren(ctx)=0D + AObj =3D ctx.OpObj=0D + AObj.SetLineNo(ctx.start.line)=0D + AObj.SetQuestionConfig(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D AObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrActionFlags.=0D + def visitVfrActionFlags(self, ctx:VfrSyntaxParser.VfrActionFlagsContex= t):=0D +=0D + self.visitChildren(ctx)=0D + for FlagsFieldCtx in ctx.actionFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D +=0D + return ctx.HFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#actionFlagsField.=0D + def visitActionFlagsField(self, ctx:VfrSyntaxParser.ActionFlagsFieldCo= ntext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + if self.__TransNum(ctx.Number()) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.N.line)=0D + else:=0D + ctx.HFlag =3D ctx.questionheaderFlagsField().QHFlag=0D + return ctx.HFlag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementNumericTy= pe.=0D + def visitVfrStatementNumericType(self, ctx:VfrSyntaxParser.VfrStatemen= tNumericTypeContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementNumeric() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementNumeric().Node=0D + elif ctx.vfrStatementOneOf() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementOneOf().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxP-arser#vfrStatementNumeric.= =0D + def visitVfrStatementNumeric(self, ctx:VfrSyntaxParser.VfrStatementNum= ericContext):=0D +=0D + self.visitChildren(ctx)=0D + NObj =3D ctx.OpObj=0D + NObj.SetLineNo(ctx.start.line)=0D + self.__CurrentQuestion =3D NObj.GetQuestion()=0D + Line =3D ctx.start.line=0D +=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + GuidObj =3D CIfrGuid(0)=0D + GuidObj.SetGuid(EDKII_IFR_BIT_VARSTORE_GUID)=0D + GuidObj.SetLineNo(Line)=0D + GuidObj.SetScope(1) # pos=0D +=0D + # check data type=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALID:= =0D + if self.__CurrQestVarInfo.IsBitVar:=0D + LFlags =3D EDKII_IFR_NUMERIC_SIZE_BIT & self.__CurrQestVar= Info.VarTotalSize=0D + self.__ErrorHandler(NObj.SetFlagsForBitField(NObj.GetFlags= (),LFlags), Line)=0D + else:=0D + DataTypeSize, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTyp= eSizeByDataType(self.__CurrQestVarInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, 'Numeric varid is no= t the valid data type')=0D + if DataTypeSize !=3D 0 and DataTypeSize !=3D self.__CurrQe= stVarInfo.VarTotalSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, Line, 'Numeric varid doesn\'t support array')=0D + self.__ErrorHandler(NObj.SetFlags(NObj.GetFlags(), self.__= CurrQestVarInfo.VarType), Line)=0D +=0D +=0D + if ctx.FLAGS() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + self.__ErrorHandler(NObj.SetFlagsForBitField(ctx.vfrNumeri= cFlags().HFlags,ctx.vfrNumericFlags().LFlags, ctx.vfrNumericFlags().IsDispl= aySpecified), ctx.F.line)=0D + else:=0D + self.__ErrorHandler(NObj.SetFlags(ctx.vfrNumericFlags().HF= lags,ctx.vfrNumericFlags().LFlags, ctx.vfrNumericFlags().IsDisplaySpecified= ), ctx.F.line)=0D +=0D + if ctx.Key() !=3D None:=0D + Key =3D self.__TransNum(ctx.Number())=0D + self.__AssignQuestionKey(NObj,Key)=0D +=0D + ShrinkSize =3D 0=0D + IsSupported =3D True=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + # Base on the type to know the actual used size, shrink the bu= ffer size allocate before.=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + ShrinkSize =3D 21=0D + elif Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + ShrinkSize =3D 18=0D + elif Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + ShrinkSize =3D 12=0D + elif Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + ShrinkSize =3D 0=0D + else:=0D + IsSupported =3D False=0D + else:=0D + #=E3=80=80Question stored in bit fields saved as UINT32 type, = so the ShrinkSize same as EFI_IFR_TYPE_NUM_SIZE_32.=0D + ShrinkSize =3D 12=0D +=0D + #######=E3=80=80NObj->ShrinkBinSize (ShrinkSize);=0D + if IsSupported =3D=3D False:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , Line, 'Numeric question only support UINT8, UINT16, UINT32 and UINT64 dat= a type.')=0D +=0D + ctx.Node.Data =3D NObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrSetMinMaxStep.=0D + def visitVfrSetMinMaxStep(self, ctx:VfrSyntaxParser.VfrSetMinMaxStepCo= ntext):=0D + IntDecStyle =3D False=0D + if ((self.__CurrQestVarInfo.IsBitVar) and (ctx.OpObj.GetOpCode() = =3D=3D EFI_IFR_NUMERIC_OP) and ((ctx.OpObj.GetNumericFlags() & EDKII_IFR_DI= SPLAY_BIT) =3D=3D 0)) or \=0D + ((self.__CurrQestVarInfo.IsBitVar =3D=3D False) and (ctx.OpObj= .GetOpCode() =3D=3D EFI_IFR_NUMERIC_OP) and ((ctx.OpObj.GetNumericFlags() &= EFI_IFR_DISPLAY) =3D=3D 0)):=0D + IntDecStyle =3D True=0D + MinNegative =3D False=0D + MaxNegative =3D False=0D +=0D + self.visitChildren(ctx)=0D +=0D + Min =3D self.__TransNum(ctx.I.text)=0D + Max =3D self.__TransNum(ctx.A.text)=0D + Step =3D self.__TransNum(ctx.S.text) if ctx.Step() !=3D None else = 0=0D +=0D + if ctx.N1 !=3DNone:=0D + MinNegative =3D True=0D +=0D + if IntDecStyle =3D=3D False and MinNegative =3D=3D True:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.I.line, '\'-\' can\'t be used when not in int decimal type.')=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + if (IntDecStyle =3D=3D False) and (Min > (1 << self.__CurrQest= VarInfo.VarTotalSize) - 1): #=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, ctx.I.line, 'BIT type minimum can\'t small than 0, bigger than 2^BitW= idth -1')=0D + else:=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + if IntDecStyle:=0D + if MinNegative:=0D + if Min > 0x8000000000000000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT64 type minimum can\'t small than -0x= 8000000000000000, big than 0x7FFFFFFFFFFFFFFF')=0D + else:=0D + if Min > 0x7FFFFFFFFFFFFFFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT64 type minimum can\'t small than -0x= 8000000000000000, big than 0x7FFFFFFFFFFFFFFF')=0D + if MinNegative:=0D + Min =3D ~Min + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + if IntDecStyle:=0D + if MinNegative:=0D + if Min > 0x80000000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT32 type minimum can\'t small than -0x= 80000000, big than 0x7FFFFFFF')=0D + else:=0D + if Min > 0x7FFFFFFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT32 type minimum can\'t small than -0x= 80000000, big than 0x7FFFFFFF')=0D + if MinNegative:=0D + Min =3D ~Min + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + if IntDecStyle:=0D + if MinNegative:=0D + if Min > 0x8000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT16 type minimum can\'t small than -0x= 8000, big than 0x7FFF')=0D + else:=0D + if Min > 0x7FFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT16 type minimum can\'t small than -0x= 8000, big than 0x7FFF')=0D + if MinNegative:=0D + Min =3D ~Min + 1=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + if IntDecStyle:=0D + if MinNegative:=0D + if Min > 0x80:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT8 type minimum can\'t small than -0x8= 0, big than 0x7F')=0D + else:=0D + if Min > 0x7F:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.I.line, 'INT8 type minimum can\'t small than -0x8= 0, big than 0x7F')=0D + if MinNegative:=0D + Min =3D ~Min + 1=0D +=0D + if ctx.N2 !=3D None:=0D + MaxNegative =3D True=0D + if IntDecStyle =3D=3D False and MaxNegative =3D=3D True:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.A.line, ' \'-\' can\'t be used when not in int decimal type.')=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + if (IntDecStyle =3D=3D False) and (Max > (1 << self.__CurrQest= VarInfo.VarTotalSize) - 1):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, ctx.A.line, 'BIT type maximum can\'t be bigger than 2^BitWidth -1')=0D + else:=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + if IntDecStyle:=0D + if MaxNegative:=0D + if Max > 0x8000000000000000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT64 type minimum can\'t small than -0x= 8000000000000000, big than 0x7FFFFFFFFFFFFFFF')=0D + else:=0D + if Max > 0x7FFFFFFFFFFFFFFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT64 type minimum can\'t small than -0x= 8000000000000000, big than 0x7FFFFFFFFFFFFFFF')=0D + if MaxNegative:=0D + Max =3D ~Max + 1=0D +=0D + if Max < Min: #=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, ctx.A.line, 'Maximum can\'t be less than Minimum')=0D +=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + if IntDecStyle:=0D + if MaxNegative:=0D + if Max > 0x80000000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT32 type minimum can\'t small than -0x= 80000000, big than 0x7FFFFFFF')=0D + else:=0D + if Max > 0x7FFFFFFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT32 type minimum can\'t small than -0x= 80000000, big than 0x7FFFFFFF')=0D + if MaxNegative:=0D + Max =3D ~Max + 1=0D +=0D + if Max < Min: #=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, ctx.A.line, 'Maximum can\'t be less than Minimum')=0D +=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + if IntDecStyle:=0D + if MaxNegative:=0D + if Max > 0x8000:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT16 type minimum can\'t small than -0x= 8000, big than 0x7FFF')=0D + else:=0D + if Max > 0x7FFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT16 type minimum can\'t small than -0x= 8000, big than 0x7FFF')=0D + if MaxNegative:=0D + Max =3D ~Max + 1=0D +=0D + if Max < Min: #=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, ctx.A.line, 'Maximum can\'t be less than Minimum')=0D +=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + if IntDecStyle:=0D + if MaxNegative:=0D + if Max > 0x80:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETUR= N_INVALID_PARAMETER, ctx.A.line, 'INT8 type minimum can\'t small than -0x80= , big than 0x7F')=0D + else:=0D + if Max > 0x7F:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETU= RN_INVALID_PARAMETER, ctx.A.line, 'INT8 type minimum can\'t small than -0x8= 0, big than 0x7F')=0D + if MaxNegative:=0D + Max =3D ~Max + 1=0D +=0D + if Max < Min: #=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, ctx.A.line, 'Maximum can\'t be less than Minimum')=0D +=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + ctx.OpObj.SetMinMaxStepData(Min, Max, Step, EFI_IFR_TYPE_NUM_S= IZE_32)=0D + else:=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + ctx.OpObj.SetMinMaxStepData(Min, Max, Step, EFI_IFR_TYPE_N= UM_SIZE_64)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + ctx.OpObj.SetMinMaxStepData(Min, Max, Step, EFI_IFR_TYPE_N= UM_SIZE_32)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + ctx.OpObj.SetMinMaxStepData(Min, Max, Step, EFI_IFR_TYPE_N= UM_SIZE_16)=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + ctx.OpObj.SetMinMaxStepData(Min, Max, Step, EFI_IFR_TYPE_N= UM_SIZE_8)=0D +=0D + return ctx.OpObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrNumericFlags.=0D + def visitVfrNumericFlags(self, ctx:VfrSyntaxParser.VfrNumericFlagsCont= ext):=0D +=0D + ctx.LFlags =3D self.__CurrQestVarInfo.VarType & EFI_IFR_NUMERIC_SI= ZE=0D + VarStoreType =3D gCVfrDataStorage.GetVarStoreType(self.__CurrQestV= arInfo.VarStoreId)=0D + Line =3D ctx.start.line=0D + IsSetType =3D False=0D + self.visitChildren(ctx)=0D +=0D + for FlagsFieldCtx in ctx.numericFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D + ctx.IsDisplaySpecified =3D FlagsFieldCtx.IsDisplaySpecified=0D + IsSetType |=3D FlagsFieldCtx.IsSetType=0D + if FlagsFieldCtx.NumericSizeOne() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_1=0D +=0D + if FlagsFieldCtx.NumericSizeTwo() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_2=0D +=0D + if FlagsFieldCtx.NumericSizeFour() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_4=0D +=0D + if FlagsFieldCtx.NumericSizeEight() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_8=0D +=0D + if FlagsFieldCtx.DisPlayIntDec() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_DISPLAY) | EFI_= IFR_DISPLAY_INT_DEC=0D + else:=0D + ctx.LFlags =3D (ctx.LFlags & ~EDKII_IFR_DISPLAY_BIT) = | EDKII_IFR_DISPLAY_INT_DEC_BIT=0D +=0D + if FlagsFieldCtx.DisPlayUIntHex() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_DISPLAY) | EFI_= IFR_DISPLAY_UINT_DEC=0D + else:=0D + ctx.LFlags =3D (ctx.LFlags & ~EDKII_IFR_DISPLAY_BIT) = | EDKII_IFR_DISPLAY_UINT_DEC_BIT=0D +=0D + if FlagsFieldCtx.DisPlayUIntHex() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_DISPLAY) | EFI_= IFR_DISPLAY_UINT_HEX=0D + else:=0D + ctx.LFlags =3D (ctx.LFlags & ~EDKII_IFR_DISPLAY_BIT) = | EDKII_IFR_DISPLAY_UINT_HEX_BIT=0D +=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVA= LID:=0D + if VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARST= ORE_BUFFER or VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_EF= I:=0D + if self.__CurrQestVarInfo.VarType !=3D (ctx.LFlags & E= FI_IFR_NUMERIC_SIZE):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, Line, 'Numeric Flag is not same to Numeric VarData type')=0D + else:=0D + # update data type for name/value store=0D + self.__CurrQestVarInfo.VarType =3D ctx.LFlags & EFI_IF= R_NUMERIC_SIZE=0D + Size, _ =3D gCVfrVarDataTypeDB.GetDataTypeSizeByDataTy= pe(self.__CurrQestVarInfo.VarType)=0D + self.__CurrQestVarInfo.VarTotalSize =3D Size=0D + elif IsSetType:=0D + self.__CurrQestVarInfo.VarType =3D ctx.LFlags & EFI_IFR_NU= MERIC_SIZE=0D +=0D + elif self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALI= D and self.__CurrQestVarInfo.IsBitVar:=0D + ctx.LFlags &=3D EDKII_IFR_DISPLAY_BIT=0D + ctx.LFlags |=3D EDKII_IFR_NUMERIC_SIZE_BIT & self.__CurrQestVa= rInfo.VarTotalSize=0D +=0D + return ctx.HFlags, ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#numericFlagsField.=0D + def visitNumericFlagsField(self, ctx:VfrSyntaxParser.NumericFlagsField= Context):=0D +=0D + self.visitChildren(ctx)=0D +=0D + Line =3D ctx.start.line=0D + if ctx.Number() !=3D None:=0D + if self.__TransNum(ctx.N.text) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line)=0D +=0D + if ctx.NumericSizeOne() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.IsSetType =3D True=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, Line, 'Can not specify the size of the numeric value for BIT field')= =0D +=0D + if ctx.NumericSizeTwo() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.IsSetType =3D True=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, Line, 'Can not specify the size of the numeric value for BIT field')= =0D +=0D + if ctx.NumericSizeFour() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.IsSetType =3D True=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, Line, 'Can not specify the size of the numeric value for BIT field')= =0D +=0D + if ctx.NumericSizeEight() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.IsSetType =3D True=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, Line, 'Can not specify the size of the numeric value for BIT field')= =0D +=0D + if ctx.DisPlayIntDec() !=3D None:=0D + ctx.IsDisplaySpecified =3D True=0D +=0D + if ctx.DisPlayUIntHex() !=3D None:=0D + ctx.IsDisplaySpecified =3D True=0D +=0D + if ctx.DisPlayUIntHex() !=3D None:=0D + ctx.IsDisplaySpecified =3D True=0D +=0D + if ctx.questionheaderFlagsField() !=3D None:=0D + ctx.HFlag =3D ctx.questionheaderFlagsField().QHFlag=0D +=0D + return ctx.HFlag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementOneOf.=0D + def visitVfrStatementOneOf(self, ctx:VfrSyntaxParser.VfrStatementOneOf= Context):=0D +=0D + OObj =3D ctx.OpObj=0D + Line =3D ctx.start.line=0D + OObj.SetLineNo(Line)=0D + self.__CurrentQuestion =3D OObj.GetQuestion()=0D + self.visitChildren(ctx)=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + GuidObj =3D CIfrGuid(0)=0D + GuidObj.SetGuid(EDKII_IFR_BIT_VARSTORE_GUID)=0D + GuidObj.SetLineNo(ctx.start.line)=0D + GuidObj.SetScope(1) # pos=0D +=0D + # check data type=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALID:= =0D + if self.__CurrQestVarInfo.IsBitVar:=0D + LFlags =3D EDKII_IFR_NUMERIC_SIZE_BIT & self.__CurrQestVar= Info.VarTotalSize=0D + self.__ErrorHandler(OObj.SetFlagsForBitField(OObj.GetFlags= (),LFlags), Line)=0D + else:=0D + DataTypeSize, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTyp= eSizeByDataType(self.__CurrQestVarInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, 'OneOf varid is not = the valid data type')=0D + if DataTypeSize !=3D 0 and DataTypeSize !=3D self.__CurrQe= stVarInfo.VarTotalSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, Line, 'OneOf varid doesn\'t support array')=0D + self.__ErrorHandler(OObj.SetFlags(OObj.GetFlags(), self.__= CurrQestVarInfo.VarType), Line)=0D +=0D + if ctx.FLAGS() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar:=0D + self.__ErrorHandler(OObj.SetFlagsForBitField(ctx.vfrOneofF= lagsField().HFlags,ctx.vfrOneofFlagsField().LFlags), ctx.F.line)=0D + else:=0D + self.__ErrorHandler(OObj.SetFlags(ctx.vfrOneofFlagsField()= .HFlags, ctx.vfrOneofFlagsField().LFlags), ctx.F.line)=0D +=0D + ShrinkSize =3D 0=0D + IsSupported =3D True=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + Type =3D self.__CurrQestVarInfo.VarType=0D + # Base on the type to know the actual used size, shrink the bu= ffer size allocate before.=0D + if Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + ShrinkSize =3D 21=0D + elif Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + ShrinkSize =3D 18=0D + elif Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + ShrinkSize =3D 12=0D + elif Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + ShrinkSize =3D 0 #=0D + else:=0D + IsSupported =3D False=0D + else:=0D + #=E3=80=80Question stored in bit fields saved as UINT32 type, = so the ShrinkSize same as EFI_IFR_TYPE_NUM_SIZE_32.=0D + ShrinkSize =3D 12=0D +=0D + # OObj.ShrinkBinSize(ShrinkSize)=0D + if IsSupported =3D=3D False:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , Line, 'OneOf question only support UINT8, UINT16, UINT32 and UINT64 data = type.')=0D +=0D + ctx.Node.Data =3D OObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrOneofFlagsField.=0D + def visitVfrOneofFlagsField(self, ctx:VfrSyntaxParser.VfrOneofFlagsFie= ldContext):=0D +=0D + ctx.LFlags =3D self.__CurrQestVarInfo.VarType & EFI_IFR_NUMERIC_SI= ZE=0D + VarStoreType =3D gCVfrDataStorage.GetVarStoreType(self.__CurrQestV= arInfo.VarStoreId)=0D + Line =3D ctx.start.line=0D + IsSetType =3D False=0D + self.visitChildren(ctx)=0D +=0D + for FlagsFieldCtx in ctx.numericFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D + ctx.IsDisplaySpecified =3D FlagsFieldCtx.IsDisplaySpecified=0D + IsSetType |=3D FlagsFieldCtx.IsSetType=0D + if FlagsFieldCtx.NumericSizeOne() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_1=0D +=0D + if FlagsFieldCtx.NumericSizeTwo() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_2=0D +=0D + if FlagsFieldCtx.NumericSizeFour() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_4=0D +=0D + if FlagsFieldCtx.NumericSizeEight() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_NUMERIC_SIZE) |= EFI_IFR_NUMERIC_SIZE_8=0D +=0D + if FlagsFieldCtx.DisPlayIntDec() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_DISPLAY) | EFI_= IFR_DISPLAY_INT_DEC=0D + else:=0D + ctx.LFlags =3D (ctx.LFlags & ~EDKII_IFR_DISPLAY_BIT) = | EDKII_IFR_DISPLAY_INT_DEC_BIT=0D +=0D + if FlagsFieldCtx.DisPlayUIntHex() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_DISPLAY) | EFI_= IFR_DISPLAY_UINT_DEC=0D + else:=0D + ctx.LFlags =3D (ctx.LFlags & ~EDKII_IFR_DISPLAY_BIT) = | EDKII_IFR_DISPLAY_UINT_DEC_BIT=0D +=0D + if FlagsFieldCtx.DisPlayUIntHex() !=3D None:=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + ctx.LFlags =3D (ctx.LFlags & ~EFI_IFR_DISPLAY) | EFI_= IFR_DISPLAY_UINT_HEX=0D + else:=0D + ctx.LFlags =3D (ctx.LFlags & ~EDKII_IFR_DISPLAY_BIT) = | EDKII_IFR_DISPLAY_UINT_HEX_BIT=0D +=0D + if self.__CurrQestVarInfo.IsBitVar =3D=3D False:=0D + if self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVA= LID:=0D + if VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARST= ORE_BUFFER or VarStoreType =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_EF= I:=0D + if self.__CurrQestVarInfo.VarType !=3D (ctx.LFlags & E= FI_IFR_NUMERIC_SIZE):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVAL= ID_PARAMETER, Line, 'Numeric Flag is not same to Numeric VarData type')=0D + else:=0D + # update data type for name/value store=0D + self.__CurrQestVarInfo.VarType =3D ctx.LFlags & EFI_IF= R_NUMERIC_SIZE=0D + Size, _ =3D gCVfrVarDataTypeDB.GetDataTypeSizeByDataTy= pe(self.__CurrQestVarInfo.VarType)=0D + self.__CurrQestVarInfo.VarTotalSize =3D Size=0D + elif IsSetType:=0D + self.__CurrQestVarInfo.VarType =3D ctx.LFlags & EFI_IFR_NU= MERIC_SIZE=0D +=0D + elif self.__CurrQestVarInfo.VarStoreId !=3D EFI_VARSTORE_ID_INVALI= D:=0D + ctx.LFlags &=3D EDKII_IFR_DISPLAY_BIT=0D + ctx.LFlags |=3D EDKII_IFR_NUMERIC_SIZE_BIT & self.__CurrQestVa= rInfo.VarTotalSize=0D +=0D + return ctx.HFlags, ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStringTyp= e.=0D + def visitVfrStatementStringType(self, ctx:VfrSyntaxParser.VfrStatement= StringTypeContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementPassword() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementPassword().Node=0D + elif ctx.vfrStatementString() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementString().Node=0D + return ctx.Node=0D +=0D + def _GET_CURRQEST_ARRAY_SIZE(self):=0D +=0D + Size =3D 1=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:= =0D + Size =3D 1=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:= =0D + Size =3D 2=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:= =0D + Size =3D 4=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:= =0D + Size =3D 8=0D +=0D + return int(self.__CurrQestVarInfo.VarTotalSize / Size)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementString.=0D + def visitVfrStatementString(self, ctx:VfrSyntaxParser.VfrStatementStri= ngContext):=0D +=0D + self.__IsStringOp =3D True=0D + SObj =3D ctx.OpObj=0D + SObj.SetLineNo(ctx.start.line)=0D + self.__CurrentQuestion =3D SObj.GetQuestion()=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.FLAGS() !=3D None:=0D + HFlags =3D ctx.vfrStringFlagsField().HFlags=0D + LFlags =3D ctx.vfrStringFlagsField().LFlags=0D + self.__ErrorHandler(SObj.SetFlags(HFlags, LFlags), ctx.F.line)= =0D +=0D + if ctx.Key() !=3D None:=0D + Key =3D self.__TransNum(ctx.Number(0))=0D + self.__AssignQuestionKey(SObj, Key)=0D + StringMinSize =3D self.__TransNum(ctx.Number(1))=0D + StringMaxSize =3D self.__TransNum(ctx.Number(2))=0D + else:=0D + StringMinSize =3D self.__TransNum(ctx.Number(0))=0D + StringMaxSize =3D self.__TransNum(ctx.Number(1))=0D +=0D + VarArraySize =3D self._GET_CURRQEST_ARRAY_SIZE()=0D + if StringMinSize > 0xFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Min.line, "String MinSize takes only one byte, which can't be larger = than 0xFF.")=0D + if VarArraySize !=3D 0 and StringMinSize > VarArraySize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Min.line, "String MinSize can't be larger than the max number of elem= ents in string array.")=0D + SObj.SetMinSize(StringMinSize)=0D +=0D + if StringMaxSize > 0xFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Max.line, "String MaxSize takes only one byte, which can't be larger = than 0xFF.")=0D + elif VarArraySize !=3D 0 and StringMaxSize > VarArraySize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Max.line, "String MaxSize can't be larger than the max number of elem= ents in string array.")=0D + elif StringMaxSize < StringMinSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Max.line, "String MaxSize can't be less than String MinSize.")=0D + SObj.SetMaxSize(StringMaxSize)=0D +=0D + ctx.Node.Data =3D SObj=0D +=0D + self.__IsStringOp =3D False=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStringFlagsField.= =0D + def visitVfrStringFlagsField(self, ctx:VfrSyntaxParser.VfrStringFlagsF= ieldContext):=0D +=0D + self.visitChildren(ctx)=0D + for FlagsFieldCtx in ctx.stringFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D + ctx.LFlags |=3D FlagsFieldCtx.LFlag=0D +=0D + return ctx.HFlags, ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#stringFlagsField.=0D + def visitStringFlagsField(self, ctx:VfrSyntaxParser.StringFlagsFieldCo= ntext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + if self.__TransNum(ctx.Number()) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.start.line)=0D + elif ctx.questionheaderFlagsField() !=3D None:=0D +=0D + ctx.HFlag =3D ctx.questionheaderFlagsField().QHFlag=0D + else:=0D + ctx.LFlag =3D 0x01=0D +=0D + return ctx.HFlag, ctx.LFlag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementPassword.= =0D + def visitVfrStatementPassword(self, ctx:VfrSyntaxParser.VfrStatementPa= sswordContext):=0D +=0D + PObj =3D ctx.OpObj=0D + PObj.SetLineNo(ctx.start.line)=0D + self.__CurrentQuestion =3D PObj.GetQuestion()=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Key() !=3D None:=0D + Key =3D self.__TransNum(ctx.Number(0))=0D + self.__AssignQuestionKey(PObj, Key)=0D + PassWordMinSize =3D self.__TransNum(ctx.Number(1))=0D + PasswordMaxSize =3D self.__TransNum(ctx.Number(2))=0D + else:=0D + PassWordMinSize =3D self.__TransNum(ctx.Number(0))=0D + PasswordMaxSize =3D self.__TransNum(ctx.Number(1))=0D +=0D + if ctx.FLAGS() !=3D None:=0D + HFlags =3D ctx.vfrPasswordFlagsField().HFlags=0D + self.__ErrorHandler(PObj.SetFlags(HFlags), ctx.F.line)=0D +=0D + VarArraySize =3D self._GET_CURRQEST_ARRAY_SIZE()=0D + if PassWordMinSize > 0xFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Min.line, "String MinSize takes only one byte, which can't be larger = than 0xFF.")=0D + if VarArraySize !=3D 0 and PassWordMinSize > VarArraySize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Min.line, "String MinSize can't be larger than the max number of elem= ents in string array.")=0D + PObj.SetMinSize(PassWordMinSize)=0D +=0D + if PasswordMaxSize > 0xFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Max.line, "String MaxSize takes only one byte, which can't be larger = than 0xFF.")=0D + elif VarArraySize !=3D 0 and PasswordMaxSize > VarArraySize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Max.line, "String MaxSize can't be larger than the max number of elem= ents in string array.")=0D + elif PasswordMaxSize < PassWordMinSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAMETER= , ctx.Max.line, "String MaxSize can't be less than String MinSize.")=0D + PObj.SetMaxSize(PasswordMaxSize)=0D +=0D + ctx.Node.Data =3D PObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrPasswordFlagsField= .=0D + def visitVfrPasswordFlagsField(self, ctx:VfrSyntaxParser.VfrPasswordFl= agsFieldContext):=0D +=0D + self.visitChildren(ctx)=0D + for FlagsFieldCtx in ctx.passwordFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D +=0D + return ctx.HFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#passwordFlagsField.=0D + def visitPasswordFlagsField(self, ctx:VfrSyntaxParser.PasswordFlagsFie= ldContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + if self.__TransNum(ctx.Number()) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.start.line)=0D + else:=0D + ctx.HFlag =3D ctx.questionheaderFlagsField().QHFlag=0D +=0D + return ctx.HFlag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementOrderedLi= st.=0D + def visitVfrStatementOrderedList(self, ctx:VfrSyntaxParser.VfrStatemen= tOrderedListContext):=0D +=0D + OLObj =3D ctx.OpObj=0D + OLObj.SetLineNo(ctx.start.line)=0D + self.__CurrentQuestion =3D OLObj.GetQuestion()=0D + self.__IsOrderedList =3D True=0D +=0D + self.visitChildren(ctx)=0D +=0D + VarArraySize =3D self._GET_CURRQEST_ARRAY_SIZE()=0D + if VarArraySize > 0xFF:=0D + OLObj.SetMaxContainers(0xFF)=0D + else:=0D + OLObj.SetMaxContainers(VarArraySize)=0D +=0D + if ctx.MaxContainers() !=3D None:=0D + MaxContainers =3D self.__TransNum(ctx.Number())=0D + if MaxContainers > 0xFF:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, ctx.M.line, "OrderedList MaxContainers takes only one byte, which can= 't be larger than 0xFF.")=0D + elif VarArraySize !=3D 0 and MaxContainers > VarArraySize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, ctx.M.line,"OrderedList MaxContainers can't be larger than the max nu= mber of elements in array.")=0D + OLObj.SetMaxContainers(MaxContainers)=0D +=0D + if ctx.FLAGS() !=3D None:=0D + HFlags =3D ctx.vfrOrderedListFlags().HFlags=0D + LFlags =3D ctx.vfrOrderedListFlags().LFlags=0D + self.__ErrorHandler(OLObj.SetFlags(HFlags, LFlags), ctx.F.line= )=0D +=0D + ctx.Node.Data =3D OLObj=0D +=0D + self.__IsOrderedList =3D False=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrOrderedListFlags.= =0D + def visitVfrOrderedListFlags(self, ctx:VfrSyntaxParser.VfrOrderedListF= lagsContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + for FlagsFieldCtx in ctx.orderedlistFlagsField():=0D + ctx.HFlags |=3D FlagsFieldCtx.HFlag=0D + ctx.LFlags |=3D FlagsFieldCtx.LFlag=0D +=0D + return ctx.HFlags, ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#orderedlistFlagsField= .=0D + def visitOrderedlistFlagsField(self, ctx:VfrSyntaxParser.OrderedlistFl= agsFieldContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + if self.__TransNum(ctx.Number()) !=3D 0:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = ctx.start.line)=0D + elif ctx.questionheaderFlagsField() !=3D None:=0D + ctx.HFlag =3D ctx.questionheaderFlagsField().QHFlag=0D + elif ctx.UniQueFlag() !=3D None:=0D + ctx.LFlag =3D 0x01=0D + elif ctx.NoEmptyFlag() !=3D None:=0D + ctx.LFlag =3D 0x02=0D +=0D + return ctx.HFlag, ctx.LFlag=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementDate.=0D + def visitVfrStatementDate(self, ctx:VfrSyntaxParser.VfrStatementDateCo= ntext):=0D +=0D + DObj =3D ctx.OpObj=0D + Line =3D ctx.start.line=0D + DObj.SetLineNo(Line)=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.vfrQuestionHeader() !=3D None:=0D +=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_OTHER:=0D + self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_DATE=0D +=0D + if ctx.FLAGS() !=3D None:=0D + self.__ErrorHandler(DObj.SetFlags(EFI_IFR_QUESTION_FLAG_DE= FAULT, ctx.vfrDateFlags().LFlags), ctx.F1.line)=0D +=0D + else:=0D +=0D + Year =3D self.__TransId(ctx.StringIdentifier(0))=0D + Year +=3D '.'=0D + Year +=3D self.__TransId(ctx.StringIdentifier(1))=0D +=0D + Month =3D self.__TransId(ctx.StringIdentifier(2))=0D + Month +=3D '.'=0D + Month +=3D self.__TransId(ctx.StringIdentifier(3))=0D +=0D + Day =3D self.__TransId(ctx.StringIdentifier(4))=0D + Day +=3D '.'=0D + Day +=3D self.__TransId(ctx.StringIdentifier(5))=0D +=0D + if ctx.FLAGS() !=3D None:=0D + self.__ErrorHandler(DObj.SetFlags(EFI_IFR_QUESTION_FLAG_DE= FAULT, ctx.vfrDateFlags().LFlags), ctx.F2.line)=0D +=0D + QId, _ =3D self.__CVfrQuestionDB.RegisterOldDateQuestion(Year,= Month, Day, EFI_QUESTION_ID_INVALID)=0D + DObj.SetQuestionId(QId)=0D + DObj.SetFlags(EFI_IFR_QUESTION_FLAG_DEFAULT, QF_DATE_STORAGE_T= IME)=0D + DObj.SetPrompt(self.__TransNum(ctx.Number(0)))=0D + DObj.SetHelp(self.__TransNum(ctx.Number(1)))=0D +=0D + Size =3D EFI_IFR_DEFAULT.Value.offset + sizeof (EFI_HII_DATE)= =0D + DefaultObj =3D CIfrDefault(Size, EFI_HII_DEFAULT_CLASS_STANDAR= D, EFI_IFR_TYPE_DATE, ctx.Val)=0D + DefaultObj.SetLineNo(Line)=0D +=0D + ctx.Node.Data =3D DObj=0D + for Ctx in ctx.vfrStatementInconsistentIf():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#minMaxDateStepDefault= .=0D + def visitMinMaxDateStepDefault(self, ctx:VfrSyntaxParser.MinMaxDateSte= pDefaultContext):=0D +=0D + if ctx.Default() !=3D None:=0D + Minimum =3D self.__TransNum(ctx.Number(0))=0D + Maximum =3D self.__TransNum(ctx.Number(1))=0D + if ctx.KeyValue =3D=3D 0:=0D + ctx.Date.Year =3D self.__TransNum(ctx.N.text)=0D + if ctx.Date.Year < Minimum or ctx.Date.Year > Maximum:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, ctx.N.line, "Year default value must be between Min year and Max = year.")=0D + if ctx.KeyValue =3D=3D 1:=0D + ctx.Date.Month =3D self.__TransNum(ctx.N.text)=0D + if ctx.Date.Month < 1 or ctx.Date.Month > 12:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, ctx.D.line, "Month default value must be between Min 1 and Max 12= .")=0D + if ctx.KeyValue =3D=3D 2:=0D + ctx.Date.Day =3D self.__TransNum(ctx.N.text)=0D + if ctx.Date.Day < 1 or ctx.Date.Day > 31:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, ctx.D.line, "Day default value must be between Min 1 and Max 31."= )=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrDateFlags.=0D + def visitVfrDateFlags(self, ctx:VfrSyntaxParser.VfrDateFlagsContext):= =0D +=0D + self.visitChildren(ctx)=0D +=0D + for FlagsFieldCtx in ctx.dateFlagsField():=0D + ctx.LFlags |=3D FlagsFieldCtx.LFlag=0D +=0D + return ctx.LFlags=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dateFlagsField.=0D + def visitDateFlagsField(self, ctx:VfrSyntaxParser.DateFlagsFieldContex= t):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + ctx.LFlag =3D self.__TransNum(ctx.Number())=0D + if ctx.YearSupppressFlag() !=3D None:=0D + ctx.LFlag =3D 0x01=0D + if ctx.MonthSuppressFlag() !=3D None:=0D + ctx.LFlag =3D 0x02=0D + if ctx.DaySuppressFlag() !=3D None:=0D + ctx.LFlag =3D 0x04=0D + if ctx.StorageNormalFlag() !=3D None:=0D + ctx.LFlag =3D 0x00=0D + if ctx.StorageTimeFlag() !=3D None:=0D + ctx.LFlag =3D 0x010=0D + if ctx.StorageWakeUpFlag() !=3D None:=0D + ctx.LFlag =3D 0x20=0D +=0D + return ctx.LFlag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementTime.=0D + def visitVfrStatementTime(self, ctx:VfrSyntaxParser.VfrStatementTimeCo= ntext):=0D +=0D + TObj =3D ctx.OpObj=0D + Line =3D ctx.start.line=0D + TObj.SetLineNo(Line)=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.vfrQuestionHeader() !=3D None:=0D +=0D + if self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_OTHER:=0D + self.__CurrQestVarInfo.VarType =3D=3D EFI_IFR_TYPE_TIME=0D +=0D + if ctx.FLAGS() !=3D None:=0D + self.__ErrorHandler(TObj.SetFlags(EFI_IFR_QUESTION_FLAG_DE= FAULT, ctx.vfrTimeFlags().LFlags), ctx.F1.line)=0D + else:=0D +=0D + Hour =3D self.__TransId(ctx.StringIdentifier(0))=0D + Hour +=3D '.'=0D + Hour +=3D self.__TransId(ctx.StringIdentifier(1))=0D +=0D + Minute =3D self.__TransId(ctx.StringIdentifier(2))=0D + Minute +=3D '.'=0D + Minute +=3D self.__TransId(ctx.StringIdentifier(3))=0D +=0D + Second =3D self.__TransId(ctx.StringIdentifier(4))=0D + Second +=3D '.'=0D + Second +=3D self.__TransId(ctx.StringIdentifier(5))=0D +=0D + if ctx.FLAGS() !=3D None:=0D + self.__ErrorHandler(TObj.SetFlags(EFI_IFR_QUESTION_FLAG_DE= FAULT, ctx.vfrTimeFlags().LFlags), ctx.F2.line)=0D +=0D + QId, _ =3D self.__CVfrQuestionDB.RegisterOldTimeQuestion(Hour,= Minute, Second, EFI_QUESTION_ID_INVALID)=0D + TObj.SetQuestionId(QId)=0D + TObj.SetFlags(EFI_IFR_QUESTION_FLAG_DEFAULT, QF_TIME_STORAGE_T= IME)=0D + TObj.SetPrompt(self.__TransNum(ctx.Number(0)))=0D + TObj.SetHelp(self.__TransNum(ctx.Number(1)))=0D +=0D + Size =3D EFI_IFR_DEFAULT.Value.offset + sizeof (EFI_HII_TIME)= =0D + DefaultObj =3D CIfrDefault(Size, EFI_HII_DEFAULT_CLASS_STANDAR= D, EFI_IFR_TYPE_TIME, ctx.Val)=0D + DefaultObj.SetLineNo(Line)=0D +=0D + ctx.Node.Data =3D TObj=0D + for Ctx in ctx.vfrStatementInconsistentIf():=0D + self.__InsertChild(ctx.Node, Ctx)=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#minMaxTimeStepDefault= .=0D + def visitMinMaxTimeStepDefault(self, ctx:VfrSyntaxParser.MinMaxTimeSte= pDefaultContext):=0D +=0D + if ctx.Default() !=3D None:=0D + Minimum =3D self.__TransNum(ctx.Number(0))=0D + Maximum =3D self.__TransNum(ctx.Number(1))=0D + if ctx.KeyValue =3D=3D 0:=0D + ctx.Time.Hour =3D self.__TransNum(ctx.Number(len(ctx.Numbe= r())-1))=0D + if ctx.Time.Hour > 23:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, ctx.N.line, "Hour default value must be between 0 and 23.")=0D + if ctx.KeyValue =3D=3D 1:=0D + ctx.Time.Minute =3D self.__TransNum(ctx.Number(len(ctx.Num= ber())-1))=0D + if ctx.Time.Minute > 59:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, ctx.N.line, "Minute default value must be between 0 and 59.")=0D + if ctx.KeyValue =3D=3D 2:=0D + ctx.Time.Second =3D self.__TransNum(ctx.Number(len(ctx.Num= ber())-1))=0D + if ctx.Time.Second > 59:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_P= ARAMETER, ctx.N.line, "Second default value must be between 0 and 59.")=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrTimeFlags.=0D + def visitVfrTimeFlags(self, ctx:VfrSyntaxParser.VfrTimeFlagsContext):= =0D +=0D + self.visitChildren(ctx)=0D +=0D + for FlagsFieldCtx in ctx.timeFlagsField():=0D + ctx.LFlags |=3D FlagsFieldCtx.LFlag=0D +=0D + return ctx.LFlags=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#timeFlagsField.=0D + def visitTimeFlagsField(self, ctx:VfrSyntaxParser.TimeFlagsFieldContex= t):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Number() !=3D None:=0D + ctx.LFlag =3D self.__TransNum(ctx.Number())=0D + if ctx.HourSupppressFlag() !=3D None:=0D + ctx.LFlag =3D 0x01=0D + if ctx.MinuteSuppressFlag() !=3D None:=0D + ctx.LFlag =3D 0x02=0D + if ctx.SecondSuppressFlag() !=3D None:=0D + ctx.LFlag =3D 0x04=0D + if ctx.StorageNormalFlag() !=3D None:=0D + ctx.LFlag =3D 0x00=0D + if ctx.StorageTimeFlag() !=3D None:=0D + ctx.LFlag =3D 0x10=0D + if ctx.StorageWakeUpFlag() !=3D None:=0D + ctx.LFlag =3D 0x20=0D +=0D + return ctx.LFlag=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementCondition= al.=0D + def visitVfrStatementConditional(self, ctx:VfrSyntaxParser.VfrStatemen= tConditionalContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementDisableIfStat()!=3D None:=0D + ctx.Node =3D ctx.vfrStatementDisableIfStat().Node=0D + if ctx.vfrStatementSuppressIfStat()!=3D None:=0D + ctx.Node =3D ctx.vfrStatementSuppressIfStat().Node=0D + if ctx.vfrStatementGrayOutIfStat()!=3D None:=0D + ctx.Node =3D ctx.vfrStatementGrayOutIfStat().Node=0D + if ctx.vfrStatementInconsistentIfStat()!=3D None:=0D + ctx.Node =3D ctx.vfrStatementInconsistentIfStat().Node=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementCondition= alNew.=0D + def visitVfrStatementConditionalNew(self, ctx:VfrSyntaxParser.VfrState= mentConditionalNewContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementSuppressI= fStat.=0D + def visitVfrStatementSuppressIfStat(self, ctx:VfrSyntaxParser.VfrState= mentSuppressIfStatContext):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Node =3D ctx.vfrStatementSuppressIfStatNew().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementGrayOutIf= Stat.=0D + def visitVfrStatementGrayOutIfStat(self, ctx:VfrSyntaxParser.VfrStatem= entGrayOutIfStatContext):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Node =3D ctx.vfrStatementGrayOutIfStatNew().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStatList.= =0D + def visitVfrStatementStatList(self, ctx:VfrSyntaxParser.VfrStatementSt= atListContext):=0D +=0D + self.visitChildren(ctx)=0D + if ctx.vfrStatementStat() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementStat().Node=0D + if ctx.vfrStatementQuestions() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementQuestions().Node=0D + if ctx.vfrStatementConditional() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementConditional().Node=0D + if ctx.vfrStatementLabel() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementLabel().Node=0D + if ctx.vfrStatementExtension() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementExtension().Node=0D + if ctx.vfrStatementInvalid() !=3D None:=0D + ctx.Node =3D ctx.vfrStatementInvalid().Node=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementStatListO= ld.=0D + def visitVfrStatementStatListOld(self, ctx:VfrSyntaxParser.VfrStatemen= tStatListOldContext):=0D + return self.visitChildren(ctx)=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementDisableIf= Stat.=0D + def visitVfrStatementDisableIfStat(self, ctx:VfrSyntaxParser.VfrStatem= entDisableIfStatContext):=0D +=0D + DIObj =3D CIfrDisableIf()=0D + DIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D DIObj=0D + ctx.Node.Condition =3D 'disableif' + ' ' + self.__ExtractOriginalT= ext(ctx.vfrStatementExpression())=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrStatementStatList():=0D + self.__InsertChild(ctx.Node, Ctx)=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementSuppressI= fStatNew.=0D + def visitVfrStatementSuppressIfStatNew(self, ctx:VfrSyntaxParser.VfrSt= atementSuppressIfStatNewContext):=0D +=0D + SIObj =3D CIfrSuppressIf()=0D + SIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D SIObj=0D + ctx.Node.Condition =3D 'suppressif' + ' ' + self.__ExtractOriginal= Text(ctx.vfrStatementExpression())=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrStatementStatList():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementGrayOutIf= StatNew.=0D + def visitVfrStatementGrayOutIfStatNew(self, ctx:VfrSyntaxParser.VfrSta= tementGrayOutIfStatNewContext):=0D +=0D + GOIObj =3D CIfrGrayOutIf()=0D + GOIObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D GOIObj=0D + ctx.Node.Condition =3D 'grayoutif' + ' ' + self.__ExtractOriginalT= ext(ctx.vfrStatementExpression())=0D + self.visitChildren(ctx)=0D + for Ctx in ctx.vfrStatementStatList():=0D + self.__InsertChild(ctx.Node, Ctx)=0D +=0D + return ctx.Node=0D +=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementInconsist= entIfStat.=0D + def visitVfrStatementInconsistentIfStat(self, ctx:VfrSyntaxParser.VfrS= tatementInconsistentIfStatContext):=0D +=0D + IIObj =3D CIfrInconsistentIf()=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, ctx.star= t.line)=0D + IIObj.SetLineNo(ctx.start.line)=0D + self.visitChildren(ctx)=0D + IIObj.SetError(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D IIObj=0D + ctx.Node.Condition =3D 'inconsistentif' + ' ' + self.__ExtractOrig= inalText(ctx.vfrStatementExpression())=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementInvalid.= =0D + def visitVfrStatementInvalid(self, ctx:VfrSyntaxParser.VfrStatementInv= alidContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementInvalidHi= dden.=0D + def visitVfrStatementInvalidHidden(self, ctx:VfrSyntaxParser.VfrStatem= entInvalidHiddenContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementInvalidIn= ventory.=0D + def visitVfrStatementInvalidInventory(self, ctx:VfrSyntaxParser.VfrSta= tementInvalidInventoryContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementInvalidSa= veRestoreDefaults.=0D + def visitVfrStatementInvalidSaveRestoreDefaults(self, ctx:VfrSyntaxPar= ser.VfrStatementInvalidSaveRestoreDefaultsContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementLabel.=0D + def visitVfrStatementLabel(self, ctx:VfrSyntaxParser.VfrStatementLabel= Context):=0D +=0D + LObj =3D CIfrLabel()=0D + self.visitChildren(ctx)=0D + LObj.SetLineNo(ctx.start.line)=0D + LObj.SetNumber(self.__TransNum(ctx.Number()))=0D + ctx.Node.Data =3D LObj=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatemex.BObjntBan= ner.=0D + def visitVfrStatementBanner(self, ctx:VfrSyntaxParser.VfrStatementBann= erContext):=0D +=0D + self.visitChildren(ctx)=0D +=0D + if ctx.Line() !=3D None:=0D + BObj =3D CIfrBanner()=0D + BObj.SetLineNo(ctx.start.line)=0D + BObj.SetTitle(self.__TransNum(ctx.Number(0)))=0D + BObj.SetLine(self.__TransNum(ctx.Number(1)))=0D + if ctx.Left() !=3D None: BObj.SetAlign(0)=0D + if ctx.Center() !=3D None: BObj.SetAlign(1)=0D + if ctx.Right() !=3D None: BObj.SetAlign(2)=0D + ctx.Node.Data =3D BObj=0D + elif ctx.Timeout() !=3D None:=0D + TObj =3D CIfrTimeout()=0D + TObj.SetLineNo(ctx.start.line)=0D + TObj.SetTimeout(self.__TransNum(ctx.Number(2)))=0D + ctx.Node.Data =3D TObj=0D +=0D + return ctx.Node=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementExtension= .=0D + def visitVfrStatementExtension(self, ctx:VfrSyntaxParser.VfrStatementE= xtensionContext):=0D +=0D + ctx.IsStruct =3D False=0D + if ctx.DataType() !=3D None:=0D + if ctx.Uint64() !=3D None:=0D + ctx.TypeName =3D 'UINT64'=0D + elif ctx.Uint32() !=3D None:=0D + ctx.TypeName =3D 'UINT32'=0D + elif ctx.Uint16() !=3D None:=0D + ctx.TypeName =3D 'UINT16'=0D + elif ctx.Uint8() !=3D None:=0D + ctx.TypeName =3D 'UINT8'=0D + elif ctx.Boolean() !=3D None:=0D + ctx.TypeName =3D 'BOOLEAN'=0D + elif ctx.EFI_STRING_ID() !=3D None:=0D + ctx.TypeName =3D 'EFI_STRING_ID'=0D + elif ctx.EFI_HII_DATE() !=3D None:=0D + ctx.TypeName =3D 'EFI_HII_DATE'=0D + ctx.IsStruct =3D True=0D + elif ctx.EFI_HII_TIME() !=3D None:=0D + ctx.TypeName =3D 'EFI_HII_TIME'=0D + ctx.IsStruct =3D True=0D + elif ctx.EFI_HII_REF() !=3D None:=0D + ctx.TypeName =3D 'EFI_HII_REF'=0D + ctx.IsStruct =3D True=0D + else:=0D + ctx.TypeName =3D self.__TransId(ctx.StringIdentifier())=0D + ctx.IsStruct =3D True=0D + ctx.ArrayNum =3D self.__TransNum(ctx.Number())=0D + ctx.TypeSize, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSiz= eByTypeName(ctx.TypeName)=0D + self.__ErrorHandler(ReturnCode, ctx.D.line)=0D + ctx.Size =3D ctx.TypeSize * ctx.ArrayNum if ctx.ArrayNum > 0 e= lse ctx.TypeSize=0D + ArrayType =3D ctypes.c_ubyte * ctx.Size=0D + ctx.DataBuff =3D ArrayType()=0D + for i in range(0, ctx.Size):=0D + ctx.DataBuff[i] =3D 0=0D + self.visitChildren(ctx)=0D +=0D + Line =3D ctx.start.line=0D + GuidObj =3D CIfrGuid(ctx.Size)=0D + GuidObj.SetLineNo(Line)=0D + GuidObj.SetGuid(ctx.guidDefinition().Guid)=0D + if ctx.TypeName !=3D None:=0D + GuidObj.SetData(ctx.DataBuff)=0D + # vfrStatementExtension=0D + GuidObj.SetScope(1)=0D + ctx.Node.Data =3D GuidObj=0D + for Ctx in ctx.vfrStatementExtension():=0D + self.__InsertChild(ctx.Node, Ctx)=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExtensionData.=0D + def visitVfrExtensionData(self, ctx:VfrSyntaxParser.VfrExtensionDataCo= ntext):=0D + '''=0D + TFName =3D ''=0D + IsArray =3D False if ctx.OpenBracket() =3D=3D None else True=0D + ArrayIdx =3D 0=0D + ctx.IsStruct =3D ctx.parentCtx.IsStruct=0D + ctx.DataBuff =3D ctx.parentCtx.DataBuff=0D +=0D + self.visitChildren(ctx)=0D +=0D + Data =3D self.__TransNum(ctx.N.text)=0D + if IsArray =3D=3D True:=0D + ArrayIdx =3D self.__TransNum(self.__TransNum(ctx.Number(0)))=0D + ByteOffset =3D ArrayIdx * ctx.parentCtx.TypeSize=0D + if ctx.IsStruct =3D=3D True:=0D + TFName +=3D ctx.parentCtx.TypeName=0D + for i in range(0, len(ctx.arrayName())):=0D + TFName +=3D '.'=0D + TFName +=3D ctx.arrayName(i).SubStrZ=0D + FieldOffset, FieldType, FieldSize, BitField, _ =3D gCVfrVarDat= aTypeDB.GetDataFieldInfo(TFName)=0D + if BitField:=0D + Mask =3D (1 << FieldSize) - 1=0D + Offset =3D int(FieldOffset / 8)=0D + PreBits =3D FieldOffset % 8=0D + Mask <<=3D PreBits=0D + Begin =3D 0=0D + End =3D 0=0D + if FieldType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + Data =3D ctypes.c_ubyte(Data)=0D + if BitField:=0D + # Set the value to the bit fileds.=0D + Data <<=3D PreBits=0D + Value =3D (Value & (~Mask)) | Data=0D + Begin =3D ByteOffset + Offset=0D + End =3D ByteOffset + Offset + sizeof (ctypes.c_uby= te)=0D + ctx.DataBuff[Begin: End] =3D Value=0D + else:=0D + Begin =3D ByteOffset + FieldOffset=0D + End =3D ByteOffset + FieldOffset + FieldSize=0D + ctx.DataBuff[Begin: End] =3D Data=0D +=0D +=0D + if FieldType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + Data =3D ctypes.c_ushort(Data)=0D + if BitField:=0D + # Set the value to the bit fileds.=0D + Data <<=3D PreBits=0D + Value =3D (Value & (~Mask)) | Data=0D + Begin =3D ByteOffset + Offset=0D + End =3D ByteOffset + Offset + sizeof (ctypes.c_ush= ort)=0D + ctx.DataBuff[Begin: End] =3D Value=0D + else:=0D + Begin =3D ByteOffset + FieldOffset=0D + End =3D ByteOffset + FieldOffset + FieldSize=0D + ctx.DataBuff[Begin: End] =3D Data=0D +=0D +=0D + if FieldType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + Data =3D ctypes.c_ulong(Data)=0D + if BitField:=0D + # Set the value to the bit fileds.=0D + Data <<=3D PreBits=0D + Value =3D (Value & (~Mask)) | Data=0D + Begin =3D ByteOffset + Offset=0D + End =3D ByteOffset + Offset + sizeof (ctypes.c_ulo= ng)=0D + ctx.DataBuff[Begin: End] =3D Value=0D + else:=0D + Begin =3D ByteOffset + FieldOffset=0D + End =3D ByteOffset + FieldOffset + FieldSize=0D + ctx.DataBuff[Begin: End] =3D Data=0D +=0D + if FieldType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + Data =3D ctypes.c_ulonglong(Data)=0D + if BitField:=0D + # Set the value to the bit fileds.=0D + Data <<=3D PreBits=0D + Value =3D (Value & (~Mask)) | Data=0D + Begin =3D ByteOffset + Offset=0D + End =3D ByteOffset + Offset + sizeof (ctypes.c_ulo= nglong)=0D + ctx.DataBuff[Begin: End] =3D Value=0D + else:=0D + Begin =3D ByteOffset + FieldOffset=0D + End =3D ByteOffset + FieldOffset + FieldSize=0D + ctx.DataBuff[Begin: End] =3D Data=0D +=0D + else:=0D + ctx.DataBuff[ByteOffset, ByteOffset + ctx.parentCtx.TypeSize] = =3D Data=0D + '''=0D + return self.visitChildren(ctx)=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementModal.=0D + def visitVfrStatementModal(self, ctx:VfrSyntaxParser.VfrStatementModal= Context):=0D +=0D + self.visitChildren(ctx)=0D + ctx.Node =3D ctx.vfrModalTag().Node=0D + return ctx.Node=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrModalTag.=0D + def visitVfrModalTag(self, ctx:VfrSyntaxParser.VfrModalTagContext):=0D +=0D + MObj =3D CIfrModal()=0D + self.visitChildren(ctx)=0D + MObj.SetLineNo(ctx.start.line)=0D + ctx.Node.Data =3D MObj=0D +=0D + return ctx.Node=0D +=0D + def __SaveOpHdrCond(self, OpHdr, Cond, LineNo=3D0):=0D + if Cond =3D=3D True:=0D + if self.__CIfrOpHdr[self.__CIfrOpHdrIndex] !=3D None:=0D + return=0D + self.__CIfrOpHdr[self.__CIfrOpHdrIndex] =3D CIfrOpHeader(OpHdr= ) #=0D + self.__CIfrOpHdrLineNo[self.__CIfrOpHdrIndex] =3D LineNo=0D +=0D +=0D + def __InitOpHdrCond(self):=0D + self.__CIfrOpHdr.append(None)=0D + self.__CIfrOpHdrLineNo.append(0)=0D +=0D + def __SetSavedOpHdrScope(self):=0D + if self.__CIfrOpHdr[self.__CIfrOpHdrIndex] !=3D None:=0D + self.__CIfrOpHdr[self.__CIfrOpHdrIndex].SetScope(1)=0D + return True=0D + return False=0D +=0D + def __ClearSavedOPHdr(self):=0D + self.__CIfrOpHdr[self.__CIfrOpHdrIndex] =3D None=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementExpressio= n.=0D + def visitVfrStatementExpression(self, ctx:VfrSyntaxParser.VfrStatement= ExpressionContext):=0D +=0D + # Root expression extension function called by other function. ##= =0D + if ctx.ExpInfo.RootLevel =3D=3D 0:=0D + self.__CIfrOpHdrIndex +=3D 1=0D + if self.__CIfrOpHdrIndex >=3D MAX_IFR_EXPRESSION_DEPTH:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_INVALID_PARAM= ETER, ctx.start.line, 'The depth of expression exceeds the max supported le= vel 8!')=0D + self.__InitOpHdrCond()=0D +=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + for i in range(0, len(ctx.OR())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + OObj =3D CIfrOr(Line)=0D +=0D + # Extend OpCode Scope only for the root expression.=0D + if ctx.ExpInfo.ExpOpCount > 1 and ctx.ExpInfo.RootLevel =3D=3D 0:= =0D + if self.__SetSavedOpHdrScope():=0D + EObj =3D CIfrEnd()=0D + if self.__CIfrOpHdrLineNo[self.__CIfrOpHdrIndex] !=3D 0:=0D + EObj.SetLineNo(self.__CIfrOpHdrLineNo[self.__CIfrOpHdr= Index])=0D +=0D + if ctx.ExpInfo.RootLevel =3D=3D 0:=0D + self.__ClearSavedOPHdr()=0D + self.__CIfrOpHdrIndex =3D self.__CIfrOpHdrIndex - 1=0D +=0D + self.__ConstantOnlyInExpression =3D False=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrStatementExpressio= nSub.=0D + def visitVfrStatementExpressionSub(self, ctx:VfrSyntaxParser.VfrStatem= entExpressionSubContext):=0D +=0D + ctx.ExpInfo.RootLevel =3D ctx.parentCtx.ExpInfo.RootLevel + 1=0D + ctx.ExpInfo.ExpOpCount =3D ctx.parentCtx.ExpInfo.ExpOpCount=0D +=0D + self.visitChildren(ctx)=0D +=0D + ctx.parentCtx.ExpInfo.ExpOpCount =3D ctx.ExpInfo.ExpOpCount=0D +=0D + return ctx.ExpInfo=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#andTerm.=0D + def visitAndTerm(self, ctx:VfrSyntaxParser.AndTermContext):=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + for i in range(0, len(ctx.AND())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + AObj =3D CIfrAnd(Line)=0D + ctx.CIfrAndList.append(AObj)=0D +=0D + return ctx.ExpInfo, ctx.CIfrAndList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#bitwiseorTerm.=0D + def visitBitwiseorTerm(self, ctx:VfrSyntaxParser.BitwiseorTermContext)= :=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + for i in range(0, len(ctx.BitWiseOr())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + BWOObj =3D CIfrBitWiseOr(Line)=0D + ctx.CIfrBitWiseOrList.append(BWOObj)=0D +=0D + return ctx.ExpInfo, ctx.CIfrBitWiseOrList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#bitwiseandTerm.=0D + def visitBitwiseandTerm(self, ctx:VfrSyntaxParser.BitwiseandTermContex= t):=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + for i in range(0, len(ctx.BitWiseAnd())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + BWAObj =3D CIfrBitWiseAnd(Line)=0D + ctx.CIfrBitWiseAndList.append(BWAObj)=0D +=0D + return ctx.ExpInfo, ctx.CIfrBitWiseAndList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#equalTerm.=0D + def visitEqualTerm(self, ctx:VfrSyntaxParser.EqualTermContext):=0D + self.visitChildren(ctx)=0D + for i in range(0, len(ctx.equalTermSupplementary())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo, ctx.CIfrEqualList, ctx.CIfrNotEqualList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#equalTermEqualRule.=0D + def visitEqualTermEqualRule(self, ctx:VfrSyntaxParser.EqualTermEqualRu= leContext):=0D + self.visitChildren(ctx)=0D + EObj =3D CIfrEqual(ctx.start.line)=0D + ctx.CIfrEqualList.append(EObj)=0D +=0D + return EObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#equalTermNotEqualRule= .=0D + def visitEqualTermNotEqualRule(self, ctx:VfrSyntaxParser.EqualTermNotE= qualRuleContext):=0D + self.visitChildren(ctx)=0D + NEObj =3D CIfrNotEqual(ctx.start.line)=0D + ctx.CIfrNotEqualList.append(NEObj)=0D + return NEObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#compareTerm.=0D + def visitCompareTerm(self, ctx:VfrSyntaxParser.CompareTermContext):=0D + self.visitChildren(ctx)=0D + for i in range(0, len(ctx.compareTermSupplementary())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.ExpInfo, ctx.CIfrLessThanList, ctx.CIfrLessEqualList, c= tx.CIfrGreaterThanList, ctx.CIfrGreaterEqualList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#compareTermLessRule.= =0D + def visitCompareTermLessRule(self, ctx:VfrSyntaxParser.CompareTermLess= RuleContext):=0D + self.visitChildren(ctx)=0D + LTObj =3D CIfrLessThan(ctx.start.line)=0D + ctx.CIfrLessThanList.append(LTObj)=0D + return LTObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#compareTermLessEqualR= ule.=0D + def visitCompareTermLessEqualRule(self, ctx:VfrSyntaxParser.CompareTer= mLessEqualRuleContext):=0D + self.visitChildren(ctx)=0D + LEObj =3D CIfrLessEqual(ctx.start.line)=0D + ctx.CIfrLessEqualList.append(LEObj)=0D + return LEObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#compareTermGreaterRul= e.=0D + def visitCompareTermGreaterRule(self, ctx:VfrSyntaxParser.CompareTermG= reaterRuleContext):=0D + self.visitChildren(ctx)=0D + GTObj =3D CIfrGreaterThan(ctx.start.line)=0D + ctx.CIfrGreaterThanList.append(GTObj)=0D + return GTObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#compareTermGreaterEqu= alRule.=0D + def visitCompareTermGreaterEqualRule(self, ctx:VfrSyntaxParser.Compare= TermGreaterEqualRuleContext):=0D + self.visitChildren(ctx)=0D + GEObj =3D CIfrGreaterEqual(ctx.start.line)=0D + ctx.CIfrGreaterEqualList.append(GEObj)=0D + return GEObj=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#shiftTerm.=0D + def visitShiftTerm(self, ctx:VfrSyntaxParser.ShiftTermContext):=0D + self.visitChildren(ctx)=0D + for i in range(0, len(ctx.shiftTermSupplementary())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.ExpInfo, ctx.CIfrShiftLeftList, ctx.CIfrShiftRightList= =0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#shiftTermLeft.=0D + def visitShiftTermLeft(self, ctx:VfrSyntaxParser.ShiftTermLeftContext)= :=0D + self.visitChildren(ctx)=0D + SLObj =3D CIfrShiftLeft(ctx.start.line)=0D + ctx.CIfrShiftLeftList.append(SLObj)=0D + return SLObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#shiftTermRight.=0D + def visitShiftTermRight(self, ctx:VfrSyntaxParser.ShiftTermRightContex= t):=0D + self.visitChildren(ctx)=0D + SRObj =3D CIfrShiftRight(ctx.start.line)=0D + ctx.CIfrShiftRightList.append(SRObj)=0D + return SRObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#addMinusTerm.=0D + def visitAddMinusTerm(self, ctx:VfrSyntaxParser.AddMinusTermContext):= =0D + self.visitChildren(ctx)=0D + for i in range(0, len(ctx.addMinusTermSupplementary())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.ExpInfo, ctx.CIfrAddList, ctx.CIfrSubtractList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#addMinusTermpAdd.=0D + def visitAddMinusTermpAdd(self, ctx:VfrSyntaxParser.AddMinusTermpAddCo= ntext):=0D + self.visitChildren(ctx)=0D + AObj =3D CIfrAdd(ctx.start.line)=0D + ctx.CIfrAddList.append(AObj)=0D + return AObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#addMinusTermSubtract.= =0D + def visitAddMinusTermSubtract(self, ctx:VfrSyntaxParser.AddMinusTermSu= btractContext):=0D + self.visitChildren(ctx)=0D + SObj =3D CIfrSubtract(ctx.start.line)=0D + ctx.CIfrSubtractList.append(SObj)=0D + return SObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#multdivmodTerm.=0D + def visitMultdivmodTerm(self, ctx:VfrSyntaxParser.MultdivmodTermContex= t):=0D + self.visitChildren(ctx)=0D + for i in range(0, len(ctx.multdivmodTermSupplementary())):=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.ExpInfo, ctx.CIfrMultiplyList, ctx.CIfrDivideList, ctx= .CIfrModuloList=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#multdivmodTermMul.=0D + def visitMultdivmodTermMul(self, ctx:VfrSyntaxParser.MultdivmodTermMul= Context):=0D + self.visitChildren(ctx)=0D + MObj =3D CIfrMultiply(ctx.start.line)=0D + ctx.CIfrMultiplyList.append(MObj)=0D + return MObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#multdivmodTermDiv.=0D + def visitMultdivmodTermDiv(self, ctx:VfrSyntaxParser.MultdivmodTermDiv= Context):=0D + self.visitChildren(ctx)=0D + DObj =3D CIfrDivide(ctx.start.line)=0D + ctx.CIfrDivideList.append(DObj)=0D + return DObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#multdivmodTermRound.= =0D + def visitMultdivmodTermModulo(self, ctx:VfrSyntaxParser.MultdivmodTerm= ModuloContext):=0D + self.visitChildren(ctx)=0D + ctx.Line =3D ctx.start.line=0D + MObj =3D CIfrModulo(ctx.Line)=0D + ctx.CIfrModuloList.append(MObj)=0D + return MObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#castTerm.=0D + def visitCastTerm(self, ctx:VfrSyntaxParser.CastTermContext):=0D + self.visitChildren(ctx) ##=0D + CastType =3D 0xFF=0D + if ctx.Boolean() !=3D []:=0D + CastType =3D 0=0D + elif ctx.Uint64() !=3D []:=0D + CastType =3D 1=0D + elif ctx.Uint32() !=3D []:=0D + CastType =3D 1=0D + elif ctx.Uint16() !=3D []:=0D + CastType =3D 1=0D + elif ctx.Uint8() !=3D []:=0D + CastType =3D 1=0D +=0D + Line =3D ctx.start.line=0D + if CastType =3D=3D 0:=0D + ctx.TBObj =3D CIfrToBoolean(Line)=0D + elif CastType =3D=3D 1:=0D + ctx.TUObj =3D CIfrToUint(Line)=0D +=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TBObj, ctx.TUObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#atomTerm.=0D + def visitAtomTerm(self, ctx:VfrSyntaxParser.AtomTermContext):=0D + self.visitChildren(ctx)=0D + if ctx.NOT() !=3D None:=0D + Line =3D ctx.start.line=0D + NObj =3D CIfrNot(Line)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionCatenate= .=0D + def visitVfrExpressionCatenate(self, ctx:VfrSyntaxParser.VfrExpression= CatenateContext):=0D + ctx.ExpInfo.RootLevel +=3D 1=0D + self.visitChildren(ctx)=0D +=0D + Line =3D ctx.start.line=0D + ctx.CObj =3D CIfrCatenate(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.CObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionMatch.=0D + def visitVfrExpressionMatch(self, ctx:VfrSyntaxParser.VfrExpressionMat= chContext):=0D + ctx.ExpInfo.RootLevel +=3D 1=0D + self.visitChildren(ctx)=0D +=0D + Line =3D ctx.start.line=0D + ctx.MObj =3D CIfrMatch(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.MObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionMatch2.= =0D + def visitVfrExpressionMatch2(self, ctx:VfrSyntaxParser.VfrExpressionMa= tch2Context):=0D + self.visitChildren(ctx)=0D +=0D + Line =3D ctx.start.line=0D + Guid =3D ctx.guidDefinition().Guid=0D + ctx.M2Obj =3D CIfrMatch2(Line, Guid)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.M2Obj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionParen.=0D + def visitVfrExpressionParen(self, ctx:VfrSyntaxParser.VfrExpressionPar= enContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionBuildInF= unction.=0D + def visitVfrExpressionBuildInFunction(self, ctx:VfrSyntaxParser.VfrExp= ressionBuildInFunctionContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#dupExp.=0D + def visitDupExp(self, ctx:VfrSyntaxParser.DupExpContext):=0D +=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + DObj =3D CIfrDup(Line)=0D + self.__SaveOpHdrCond(DObj.GetHeader(), (ctx.ExpInfo.ExpOpCount =3D= =3D 0), Line) #=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vareqvalExp.=0D + def visitVareqvalExp(self, ctx:VfrSyntaxParser.VareqvalExpContext):=0D +=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D +=0D + ReturnCode =3D VfrReturnCode.VFR_RETURN_UNSUPPORTED=0D + VarIdStr =3D 'var'=0D + VarIdStr +=3D str(ctx.Number(0))=0D + VarStoreId, ReturnCode =3D gCVfrDataStorage.GetVarStoreId(VarIdStr= )=0D + if ReturnCode =3D=3D VfrReturnCode.VFR_RETURN_UNDEFINED:=0D + pass=0D + else:=0D + pass=0D + QId, Mask, _ =3D self.__CVfrQuestionDB.GetQuestionId(None, VarIdSt= r)=0D + ConstVal =3D self.__TransNum(ctx.Number(1))=0D + if ctx.Equal() !=3D None:=0D + if Mask =3D=3D 0:=0D + EIVObj =3D CIfrEqIdVal(Line)=0D + self.__SaveOpHdrCond(EIVObj.GetHeader(), (ctx.ExpInfo.ExpO= pCount =3D=3D 0), Line)=0D + EIVObj.SetQuestionId(QId, VarIdStr, Line)=0D + EIVObj.SetValue(ConstVal)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + else:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Ma= sk, ConstVal, EFI_COMPARE_TYPE.EQUAL)=0D + elif ctx.LessEqual() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.LESS_EQUAL)=0D +=0D + elif ctx.Less() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.LESS_THAN)=0D +=0D + elif ctx.GreaterEqual() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.GREATER_EQUAL)=0D +=0D + elif ctx.Greater() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.GREATER_THAN)=0D +=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + def ConvertIdExpr(self, ExpInfo, LineNo, QId, VarIdStr, BitMask):=0D +=0D + QR1Obj =3D CIfrQuestionRef1(LineNo)=0D + QR1Obj.SetQuestionId(QId, VarIdStr, LineNo)=0D + self.__SaveOpHdrCond(QR1Obj.GetHeader(), (ExpInfo.ExpOpCount =3D= =3D 0))=0D + if BitMask !=3D 0:=0D + U32Obj =3D CIfrUint32(LineNo)=0D + U32Obj.SetValue(BitMask)=0D +=0D + BWAObj =3D CIfrBitWiseAnd(LineNo)=0D +=0D + U8Obj =3D CIfrUint8(LineNo)=0D + if BitMask =3D=3D DATE_YEAR_BITMASK:=0D + U8Obj.SetValue (0)=0D + elif BitMask =3D=3D TIME_SECOND_BITMASK:=0D + U8Obj.SetValue (0x10)=0D + elif BitMask =3D=3D DATE_DAY_BITMASK:=0D + U8Obj.SetValue (0x18)=0D + elif BitMask =3D=3D TIME_HOUR_BITMASK:=0D + U8Obj.SetValue (0)=0D + elif BitMask =3D=3D TIME_MINUTE_BITMASK:=0D + U8Obj.SetValue (0x8)=0D +=0D + SRObj =3D CIfrShiftRight(LineNo)=0D +=0D + ExpInfo.ExpOpCount +=3D 4=0D +=0D +=0D + def IdEqValDoSpecial(self, ExpInfo, LineNo, QId, VarIdStr, BitMask, Co= nstVal, CompareType):=0D +=0D + self.ConvertIdExpr(ExpInfo, LineNo, QId, VarIdStr, BitMask)=0D + if ConstVal > 0xFF:=0D + U16Obj =3D CIfrUint16(LineNo)=0D + U16Obj.SetValue(ConstVal)=0D + else:=0D + U8Obj =3D CIfrUint8(LineNo)=0D + U8Obj.SetValue(ConstVal)=0D +=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.EQUAL:=0D + EObj =3D CIfrEqual(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.LESS_EQUAL:=0D + LEObj =3D CIfrLessEqual(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.LESS_THAN:=0D + LTObj =3D CIfrLessThan(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.GREATER_EQUAL:=0D + GEObj =3D CIfrGreaterEqual(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.GREATER_THAN:=0D + GTObj =3D CIfrGreaterThan(LineNo)=0D +=0D + ExpInfo.ExpOpCount +=3D 2=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#ideqvalExp.=0D + def visitIdeqvalExp(self, ctx:VfrSyntaxParser.IdeqvalExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + Mask =3D ctx.vfrQuestionDataFieldName().Mask=0D + QId =3D ctx.vfrQuestionDataFieldName().QId=0D + VarIdStr =3D ctx.vfrQuestionDataFieldName().VarIdStr=0D + LineNo =3D ctx.vfrQuestionDataFieldName().Line=0D + ConstVal =3D self.__TransNum(ctx.Number())=0D + if ctx.Equal() !=3D None:=0D + if Mask =3D=3D 0:=0D + EIVObj =3D CIfrEqIdVal(Line)=0D + self.__SaveOpHdrCond(EIVObj.GetHeader(), (ctx.ExpInfo.ExpO= pCount =3D=3D 0), Line)=0D + EIVObj.SetQuestionId(QId, VarIdStr, LineNo)=0D + EIVObj.SetValue(ConstVal)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + else:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Ma= sk, ConstVal, EFI_COMPARE_TYPE.EQUAL)=0D +=0D + elif ctx.LessEqual() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.LESS_EQUAL)=0D +=0D + elif ctx.Less() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.LESS_THAN)=0D +=0D + elif ctx.GreaterEqual() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.GREATER_EQUAL)=0D +=0D + elif ctx.Greater() !=3D None:=0D + self.IdEqValDoSpecial(ctx.ExpInfo, Line, QId, VarIdStr, Mask, = ConstVal, EFI_COMPARE_TYPE.GREATER_THAN)=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + def IdEqIdDoSpecial(self, ExpInfo, LineNo, QId1, VarIdStr1, Mask1, QId= 2, VarIdStr2, Mask2, CompareType):=0D +=0D + self.ConvertIdExpr(ExpInfo, LineNo, QId1, VarIdStr1, Mask1)=0D + self.ConvertIdExpr(ExpInfo, LineNo, QId2, VarIdStr2, Mask2)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.EQUAL:=0D + EObj =3D CIfrEqual(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.LESS_EQUAL:=0D + LEObj =3D CIfrLessEqual(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.LESS_THAN:=0D + LTObj =3D CIfrLessThan(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.GREATER_EQUAL:=0D + GEObj =3D CIfrGreaterEqual(LineNo)=0D +=0D + if CompareType =3D=3D EFI_COMPARE_TYPE.GREATER_THAN:=0D + GTObj =3D CIfrGreaterThan(LineNo)=0D +=0D + ExpInfo.ExpOpCount +=3D 1=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#ideqidExp.=0D + def visitIdeqidExp(self, ctx:VfrSyntaxParser.IdeqidExpContext):=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + Mask1 =3D ctx.vfrQuestionDataFieldName(0).Mask=0D + QId1 =3D ctx.vfrQuestionDataFieldName(0).QId=0D + VarIdStr1 =3D ctx.vfrQuestionDataFieldName(0).VarIdStr=0D + LineNo1 =3D ctx.vfrQuestionDataFieldName(0).Line=0D +=0D + Mask2 =3D ctx.vfrQuestionDataFieldName(1).Mask=0D + QId2 =3D ctx.vfrQuestionDataFieldName(1).QId=0D + VarIdStr2 =3D ctx.vfrQuestionDataFieldName(1).VarIdStr=0D + LineNo2 =3D ctx.vfrQuestionDataFieldName(1).Line=0D +=0D + if ctx.Equal() !=3D None:=0D + if Mask1 & Mask2:=0D + self.IdEqIdDoSpecial(ctx.ExpInfo, Line, QId1, VarIdStr1, M= ask1, QId2, VarIdStr2, Mask2, EFI_COMPARE_TYPE.EQUAL)=0D + else:=0D + EIIObj =3D CIfrEqIdId(Line)=0D + self.__SaveOpHdrCond(EIIObj.GetHeader(), (ctx.ExpInfo.ExpO= pCount =3D=3D 0), Line)=0D + EIIObj.SetQuestionId1(QId1, VarIdStr1, LineNo1)=0D + EIIObj.SetQuestionId1(QId2, VarIdStr2, LineNo2)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + elif ctx.LessEqual() !=3D None:=0D + self.IdEqIdDoSpecial(ctx.ExpInfo, Line, QId1, VarIdStr1, Mask1= , QId2, VarIdStr2, Mask2, EFI_COMPARE_TYPE.LESS_EQUAL)=0D +=0D + elif ctx.Less() !=3D None:=0D + self.IdEqIdDoSpecial(ctx.ExpInfo, Line, QId1, VarIdStr1, Mask1= , QId2, VarIdStr2, Mask2, EFI_COMPARE_TYPE.LESS_THAN)=0D +=0D + elif ctx.GreaterEqual() !=3D None:=0D + self.IdEqIdDoSpecial(ctx.ExpInfo, Line, QId1, VarIdStr1, Mask1= , QId2, VarIdStr2, Mask2, EFI_COMPARE_TYPE.GREATER_EQUAL)=0D +=0D + elif ctx.Greater() !=3D None:=0D + self.IdEqIdDoSpecial(ctx.ExpInfo, Line, QId1, VarIdStr1, Mask1= , QId2, VarIdStr2, Mask2, EFI_COMPARE_TYPE.GREATER_THAN)=0D + return ctx.ExpInfo=0D +=0D +=0D + def IdEqListDoSpecial(self, ExpInfo, LineNo, QId, VarIdStr, Mask, List= Len, ValueList):=0D + if ListLen =3D=3D 0:=0D + return=0D +=0D + self.IdEqValDoSpecial(ExpInfo, LineNo, QId, VarIdStr, Mask, ValueL= ist[0], EFI_COMPARE_TYPE.EQUAL)=0D + for i in range(1, ListLen):=0D + self.IdEqValDoSpecial(ExpInfo, LineNo, QId, VarIdStr, Mask, Va= lueList[i], EFI_COMPARE_TYPE.EQUAL)=0D + OObj =3D CIfrOr(LineNo)=0D + ExpInfo.ExpOpCount +=3D 1=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#ideqvallistExp.=0D + def visitIdeqvallistExp(self, ctx:VfrSyntaxParser.IdeqvallistExpContex= t):=0D + self.visitChildren(ctx)=0D + Line =3D ctx.start.line=0D + Mask =3D ctx.vfrQuestionDataFieldName().Mask=0D + QId =3D ctx.vfrQuestionDataFieldName().QId=0D + VarIdStr =3D ctx.vfrQuestionDataFieldName().VarIdStr=0D + LineNo =3D ctx.vfrQuestionDataFieldName().Line=0D + ValueList =3D []=0D + for i in range(0, len(ctx.Number())):=0D + ValueList.append(self.__TransNum(ctx.Number(i)))=0D +=0D + ListLen =3D len(ValueList)=0D +=0D + if Mask !=3D 0:=0D + self.IdEqListDoSpecial(ctx.ExpInfo, LineNo, QId, VarIdStr, Mas= k, ListLen, ValueList)=0D + else:=0D + EILObj =3D CIfrEqIdList(Line, ListLen)=0D + if QId !=3D EFI_QUESTION_ID_INVALID:=0D + EILObj.SetQuestionId(QId, VarIdStr, LineNo)=0D + EILObj.SetListLength(ListLen)=0D + EILObj.SetValueList(ValueList)=0D + self.__SaveOpHdrCond(EILObj.GetHeader(), (ctx.ExpInfo.ExpOpCou= nt =3D=3D 0), Line)=0D + if QId =3D=3D EFI_QUESTION_ID_INVALID:=0D + EILObj.SetQuestionId(QId, VarIdStr, LineNo)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.ExpInfo=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrQuestionDataFieldN= ameRule1.=0D + def visitVfrQuestionDataFieldNameRule1(self, ctx:VfrSyntaxParser.VfrQu= estionDataFieldNameRule1Context):=0D + ctx.Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.VarIdStr +=3D ctx.SN1.text=0D + ctx.VarIdStr +=3D '['=0D + ctx.VarIdStr +=3D ctx.I.text=0D + ctx.VarIdStr +=3D ']'=0D + ctx.QId, ctx.Mask, _ =3D self.__CVfrQuestionDB.GetQuestionId(None,= ctx.VarIdStr)=0D + if self.__ConstantOnlyInExpression:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_CONSTANT_ONLY, ct= x.SN1.line)=0D + return ctx.QId, ctx.Mask, ctx.VarIdStr=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrQuestionDataFieldN= ameRule2.=0D + def visitVfrQuestionDataFieldNameRule2(self, ctx:VfrSyntaxParser.VfrQu= estionDataFieldNameRule2Context):=0D + ctx.Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.VarIdStr +=3D ctx.SN2.text=0D + for i in range(0, len(ctx.arrayName())):=0D + ctx.VarIdStr +=3D '.'=0D + if self.__ConstantOnlyInExpression:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_CONSTANT_ONLY= , ctx.SN2.line)=0D + ctx.VarIdStr +=3D ctx.arrayName(i).SubStrZ=0D +=0D + ctx.QId, ctx.Mask, _ =3D self.__CVfrQuestionDB.GetQuestionId(None,= ctx.VarIdStr)=0D + return ctx.QId, ctx.Mask, ctx.VarIdStr=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#arrayName.=0D + def visitArrayName(self, ctx:VfrSyntaxParser.ArrayNameContext):=0D +=0D + self.visitChildren(ctx)=0D + ctx.SubStr +=3D self.__TransId(ctx.StringIdentifier())=0D + ctx.SubStrZ +=3D self.__TransId(ctx.StringIdentifier())=0D + if ctx.N !=3D None:=0D + Idx =3D self.__TransNum(ctx.N.text)=0D + if Idx > 0:=0D + ctx.SubStr +=3D '['=0D + ctx.SubStr +=3D str(Idx)=0D + ctx.SubStr +=3D ']'=0D +=0D + ctx.SubStrZ +=3D '['=0D + ctx.SubStrZ +=3D str(Idx)=0D + ctx.SubStrZ +=3D ']'=0D +=0D + return ctx.SubStr, ctx.SubStrZ=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#questionref1Exp.=0D + def visitQuestionref1Exp(self, ctx:VfrSyntaxParser.Questionref1ExpCont= ext):=0D + Line =3D ctx.start.line #=0D + QName =3D None #=0D + QId =3D EFI_QUESTION_ID_INVALID=0D + self.visitChildren(ctx)=0D + if ctx.StringIdentifier() !=3D None:=0D + QName =3D self.__TransId(ctx.StringIdentifier())=0D + QId, _ , _ =3D self.__CVfrQuestionDB.GetQuestionId(QName)=0D +=0D + elif ctx.Number() !=3D None:=0D + QId =3D self.__TransNum(ctx.Number())=0D +=0D + QR1Obj =3D CIfrQuestionRef1(Line)=0D + self.__SaveOpHdrCond(QR1Obj.GetHeader(), (ctx.ExpInfo.ExpOpCount = =3D=3D 0), Line)=0D + QR1Obj.SetQuestionId(QId, QName, Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#rulerefExp.=0D + def visitRulerefExp(self, ctx:VfrSyntaxParser.RulerefExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + RRObj =3D CIfrRuleRef(Line)=0D + self.__SaveOpHdrCond(RRObj.GetHeader(), (ctx.ExpInfo.ExpOpCount = =3D=3D 0), Line)=0D + RuleId =3D self.__CVfrRulesDB.GetRuleId(self.__TransId(ctx.StringI= dentifier()))=0D + RRObj.SetRuleId(RuleId)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#stringref1Exp.=0D + def visitStringref1Exp(self, ctx:VfrSyntaxParser.Stringref1ExpContext)= :=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + RefStringId =3D self.__TransNum(ctx.Number())=0D + SR1Obj =3D CIfrStringRef1(Line)=0D + self.__SaveOpHdrCond(SR1Obj.GetHeader(), (ctx.ExpInfo.ExpOpCount = =3D=3D 0), Line)=0D + SR1Obj.SetStringId(RefStringId)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#pushthisExp.=0D + def visitPushthisExp(self, ctx:VfrSyntaxParser.PushthisExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + TObj =3D CIfrThis(Line)=0D + self.__SaveOpHdrCond(TObj.GetHeader(), (ctx.ExpInfo.ExpOpCount =3D= =3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#securityExp.=0D + def visitSecurityExp(self, ctx:VfrSyntaxParser.SecurityExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + SObj =3D CIfrSecurity(Line)=0D + self.__SaveOpHdrCond(SObj.GetHeader(), (ctx.ExpInfo.ExpOpCount =3D= =3D 0), Line)=0D + SObj.SetPermissions(ctx.guidDefinition().Guid)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#numericVarStoreType.= =0D + def visitNumericVarStoreType(self, ctx:VfrSyntaxParser.NumericVarStore= TypeContext):=0D + self.visitChildren(ctx)=0D + if ctx.NumericSizeOne() !=3D None:=0D + ctx.VarType =3D EFI_IFR_NUMERIC_SIZE_1=0D + if ctx.NumericSizeTwo() !=3D None:=0D + ctx.VarType =3D EFI_IFR_NUMERIC_SIZE_2=0D + if ctx.NumericSizeFour() !=3D None:=0D + ctx.VarType =3D EFI_IFR_NUMERIC_SIZE_4=0D + if ctx.NumericSizeEight() !=3D None:=0D + ctx.VarType =3D EFI_IFR_NUMERIC_SIZE_8=0D +=0D + return ctx.VarType=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#getExp.=0D + def visitGetExp(self, ctx:VfrSyntaxParser.GetExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + if ctx.BaseInfo.VarStoreId =3D=3D 0:=0D + # support Date/Time question=0D + VarIdStr =3D ctx.vfrStorageVarId().VarIdStr=0D + QId, Mask, QType =3D self.__CVfrQuestionDB.GetQuestionId(None,= VarIdStr, EFI_QUESION_TYPE.QUESTION_NORMAL)=0D + if (QId =3D=3D EFI_QUESTION_ID_INVALID) or (Mask =3D=3D 0) or = (QType =3D=3D EFI_QUESION_TYPE.QUESTION_NORMAL):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode can't get the enough varstore information")=0D + if QType =3D=3D EFI_QUESION_TYPE.QUESTION_DATE:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_DATE=0D + elif QType =3D=3D EFI_QUESION_TYPE.QUESTION_TIME:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_TIME=0D +=0D + if Mask =3D=3D DATE_YEAR_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 0=0D + elif Mask =3D=3D DATE_DAY_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 3=0D + elif Mask =3D=3D TIME_HOUR_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 0=0D + elif Mask =3D=3D TIME_MINUTE_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 1=0D + elif Mask =3D=3D TIME_SECOND_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 2=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode can't get the enough varstore information")=0D +=0D + else:=0D + VarType =3D EFI_IFR_TYPE_UNDEFINED=0D + if ctx.FLAGS() !=3D None:=0D + VarType =3D ctx.numericVarStoreType().VarType=0D +=0D + if (gCVfrDataStorage.GetVarStoreType(ctx.BaseInfo.VarStoreId) = =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_NAME) and (VarType =3D=3D EFI= _IFR_TYPE_UNDEFINED):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode don't support name string")=0D +=0D + if VarType !=3D EFI_IFR_TYPE_UNDEFINED:=0D + ctx.BaseInfo.VarType =3D VarType=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByD= ataType(ctx.BaseInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, "Get/Set opcode can'= t get var type size")=0D + ctx.BaseInfo.VarTotalSize =3D Size=0D +=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByDataT= ype(ctx.BaseInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, "Get/Set opcode can't ge= t var type size")=0D +=0D + if Size !=3D ctx.BaseInfo.VarTotalSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode don't support data array")=0D +=0D + ctx.GObj =3D CIfrGet(Line)=0D + self.__SaveOpHdrCond(ctx.GObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.GObj.SetVarInfo(ctx.BaseInfo)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.GObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionConstant= .=0D + def visitVfrExpressionConstant(self, ctx:VfrSyntaxParser.VfrExpression= ConstantContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + if ctx.TrueSymbol() !=3D None:=0D + TObj =3D CIfrTrue(Line)=0D + self.__SaveOpHdrCond(TObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.FalseSymbol() !=3D None:=0D + FObj =3D CIfrFalse(Line)=0D + self.__SaveOpHdrCond(FObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.One() !=3D None:=0D + OObj =3D CIfrOne(Line)=0D + self.__SaveOpHdrCond(OObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.Ones() !=3D None:=0D + OObj =3D CIfrOnes(Line)=0D + self.__SaveOpHdrCond(OObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.Zero() !=3D None:=0D + ZObj =3D CIfrZero(Line)=0D + self.__SaveOpHdrCond(ZObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.Undefined() !=3D None:=0D + UObj =3D CIfrUndefined(Line)=0D + self.__SaveOpHdrCond(UObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.Version() !=3D None:=0D + VObj =3D CIfrVersion(Line)=0D + self.__SaveOpHdrCond(VObj.GetHeader(), (ctx.ExpInfo.ExpOpCount= =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + if ctx.Number() !=3D None:=0D + U64Obj =3D CIfrUint64(Line)=0D + U64Obj.SetValue(self.__TransNum(ctx.Number()))=0D + self.__SaveOpHdrCond(U64Obj.GetHeader(), (ctx.ExpInfo.ExpOpCou= nt =3D=3D 0), Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionUnaryOp.= =0D + def visitVfrExpressionUnaryOp(self, ctx:VfrSyntaxParser.VfrExpressionU= naryOpContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#lengthExp.=0D + def visitLengthExp(self, ctx:VfrSyntaxParser.LengthExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.LObj =3D CIfrLength(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.LObj=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#bitwisenotExp.=0D + def visitBitwisenotExp(self, ctx:VfrSyntaxParser.BitwisenotExpContext)= :=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.BWNObj =3D CIfrBitWiseNot(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.BWNObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#question23refExp.=0D + def visitQuestion23refExp(self, ctx:VfrSyntaxParser.Question23refExpCo= ntext):=0D + Line =3D ctx.start.line=0D + Type =3D 0x1=0D + DevicePath =3D EFI_STRING_ID_INVALID=0D + self.visitChildren(ctx)=0D + if ctx.DevicePath() !=3D None:=0D + Type =3D 0x2=0D + DevicePath =3D self.__TransNum(ctx.Number())=0D +=0D + if ctx.Uuid() !=3D None:=0D + Type =3D 0x3=0D +=0D + if Type =3D=3D 0x1:=0D + QR2Obj =3D CIfrQuestionRef2(Line)=0D + self.__SaveOpHdrCond(QR2Obj.GetHeader(), (ctx.ExpInfo.ExpOpCou= nt =3D=3D 0), Line)=0D +=0D + if Type =3D=3D 0x2:=0D + QR3_2Obj =3D CIfrQuestionRef3_2(Line)=0D + self.__SaveOpHdrCond(QR3_2Obj.GetHeader(), (ctx.ExpInfo.ExpOpC= ount =3D=3D 0), Line)=0D + QR3_2Obj.SetDevicePath(DevicePath)=0D +=0D + if Type =3D=3D 0x3:=0D + QR3_3Obj =3D CIfrQuestionRef3_3(Line)=0D + self.__SaveOpHdrCond(QR3_3Obj.GetHeader(), (ctx.ExpInfo.ExpOpC= ount =3D=3D 0), Line)=0D + QR3_3Obj.SetDevicePath(DevicePath)=0D + QR3_3Obj.SetGuid(ctx.guidDefinition().Guid)=0D +=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D +=0D + return ctx.ExpInfo=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#stringref2Exp.=0D + def visitStringref2Exp(self, ctx:VfrSyntaxParser.Stringref2ExpContext)= :=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.SR2Obj =3D CIfrStringRef2(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.SR2Obj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#toboolExp.=0D + def visitToboolExp(self, ctx:VfrSyntaxParser.ToboolExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.TBObj =3D CIfrToBoolean(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TBObj=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#tostringExp.=0D + def visitTostringExp(self, ctx:VfrSyntaxParser.TostringExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.TSObj =3D CIfrToString(Line)=0D + Fmt =3D self.__TransNum(ctx.Number())=0D + ctx.TSObj.SetFormat(Fmt)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TSObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#unintExp.=0D + def visitUnintExp(self, ctx:VfrSyntaxParser.UnintExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.TUObj =3D CIfrToUint(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TUObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#toupperExp.=0D + def visitToupperExp(self, ctx:VfrSyntaxParser.ToupperExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.TUObj =3D CIfrToUpper(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TUObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#tolwerExp.=0D + def visitTolwerExp(self, ctx:VfrSyntaxParser.TolwerExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.TLObj =3D CIfrToLower(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TLObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#setExp.=0D + def visitSetExp(self, ctx:VfrSyntaxParser.SetExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + if ctx.BaseInfo.VarStoreId =3D=3D 0:=0D + # support Date/Time question=0D + VarIdStr =3D ctx.vfrStorageVarId().VarIdStr=0D + QId, Mask, QType =3D self.__CVfrQuestionDB.GetQuestionId(None,= VarIdStr, EFI_QUESION_TYPE.QUESTION_NORMAL)=0D + if (QId =3D=3D EFI_QUESTION_ID_INVALID) or (Mask =3D=3D 0) or = (QType =3D=3D EFI_QUESION_TYPE.QUESTION_NORMAL):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode can't get the enough varstore information")=0D + if QType =3D=3D EFI_QUESION_TYPE.QUESTION_DATE:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_DATE=0D + elif QType =3D=3D EFI_QUESION_TYPE.QUESTION_TIME:=0D + ctx.BaseInfo.VarType =3D EFI_IFR_TYPE_TIME=0D +=0D + if Mask =3D=3D DATE_YEAR_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 0=0D + elif Mask =3D=3D DATE_DAY_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 3=0D + elif Mask =3D=3D TIME_HOUR_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 0=0D + elif Mask =3D=3D TIME_MINUTE_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 1=0D + elif Mask =3D=3D TIME_SECOND_BITMASK:=0D + ctx.BaseInfo.VarOffset =3D 2=0D + else:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode can't get the enough varstore information")=0D +=0D + else:=0D + VarType =3D EFI_IFR_TYPE_UNDEFINED=0D + if ctx.FLAGS() !=3D None:=0D + VarType =3D ctx.numericVarStoreType().VarType=0D +=0D + if (gCVfrDataStorage.GetVarStoreType(ctx.BaseInfo.VarStoreId) = =3D=3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_NAME) and (VarType =3D=3D EFI= _IFR_TYPE_UNDEFINED):=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode don't support name string")=0D +=0D + if VarType !=3D EFI_IFR_TYPE_UNDEFINED:=0D + ctx.BaseInfo.VarType =3D VarType=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByD= ataType(ctx.BaseInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, "Get/Set opcode can'= t get var type size")=0D + ctx.BaseInfo.VarTotalSize =3D Size=0D +=0D + Size, ReturnCode =3D gCVfrVarDataTypeDB.GetDataTypeSizeByDataT= ype(ctx.BaseInfo.VarType)=0D + self.__ErrorHandler(ReturnCode, Line, "Get/Set opcode can't ge= t var type size")=0D +=0D + if Size !=3D ctx.BaseInfo.VarTotalSize:=0D + self.__ErrorHandler(VfrReturnCode.VFR_RETURN_UNSUPPORTED, = Line, "Get/Set opcode don't support data array")=0D +=0D + ctx.TSObj =3D CIfrSet(Line)=0D + self.__SaveOpHdrCond(ctx.TSObj.GetHeader(), (ctx.ExpInfo.ExpOpCoun= t =3D=3D 0), Line)=0D + ctx.TSObj.SetVarInfo(ctx.BaseInfo)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D +=0D + return ctx.TSObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionTernaryO= p.=0D + def visitVfrExpressionTernaryOp(self, ctx:VfrSyntaxParser.VfrExpressio= nTernaryOpContext):=0D + return self.visitChildren(ctx)=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#conditionalExp.=0D + def visitConditionalExp(self, ctx:VfrSyntaxParser.ConditionalExpContex= t):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.CObj =3D CIfrConditional(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.CObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#findExp.=0D + def visitFindExp(self, ctx:VfrSyntaxParser.FindExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + FObj =3D CIfrFind(Line)=0D + Format =3D 0=0D + for i in range(0, len(ctx.findFormat())):=0D + Format =3D ctx.findFormat(i).Format=0D +=0D + FObj.SetFormat(Format)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return FObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#findFormat.=0D + def visitFindFormat(self, ctx:VfrSyntaxParser.FindFormatContext):=0D + self.visitChildren(ctx)=0D + if ctx.Sensitive() !=3D None:=0D + ctx.Format =3D 0x00=0D + elif ctx.Insensitive() !=3D None:=0D + ctx.Format =3D 0x01=0D + return ctx.Format=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#midExp.=0D + def visitMidExp(self, ctx:VfrSyntaxParser.MidExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.MObj =3D CIfrMid(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.MObj=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#tokenExp.=0D + def visitTokenExp(self, ctx:VfrSyntaxParser.TokenExpContext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.TObj =3D CIfrToken(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.TObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#spanExp.=0D + def visitSpanExp(self, ctx:VfrSyntaxParser.SpanExpContext):=0D + Line =3D ctx.start.line=0D + Flags =3D 0=0D + self.visitChildren(ctx)=0D + for FlagsCtx in ctx.spanFlags():=0D + Flags |=3D FlagsCtx.Flag=0D + ctx.SObj =3D CIfrSpan(Line)=0D + ctx.SObj.SetFlags(Flags)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.SObj=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#spanFlags.=0D + def visitSpanFlags(self, ctx:VfrSyntaxParser.SpanFlagsContext):=0D + self.visitChildren(ctx)=0D + if ctx.Number() !=3D None:=0D + ctx.Flag =3D self.__TransNum(ctx.Number())=0D + elif ctx.LastNonMatch() !=3D None:=0D + ctx.Flag =3D 0x00=0D + elif ctx.FirstNonMatch() !=3D None:=0D + ctx.Flag =3D 0x01=0D + return ctx.Flag=0D +=0D +=0D + # Visit a parse tree produced by VfrSyntaxParser#vfrExpressionMap.=0D + def visitVfrExpressionMap(self, ctx:VfrSyntaxParser.VfrExpressionMapCo= ntext):=0D + Line =3D ctx.start.line=0D + self.visitChildren(ctx)=0D + ctx.MObj =3D CIfrMap(Line)=0D + EObj =3D CIfrEnd()=0D + Line =3D (None if ctx.stop is None else ctx.stop).line=0D + EObj.SetLineNo(Line)=0D + ctx.ExpInfo.ExpOpCount +=3D 1=0D + return ctx.MObj=0D +=0D + def __GetText(self, ctx):=0D + if ctx =3D=3D None:=0D + return None=0D + else:=0D + return ctx.text=0D +=0D + def __TransId(self, StringIdentifierToken, DefaultValue=3DNone):=0D + if StringIdentifierToken =3D=3D None:=0D + return DefaultValue=0D + else:=0D + return str(StringIdentifierToken)=0D +=0D + def __TransNum(self, NumberToken, DefaultValue=3D0):=0D + if NumberToken =3D=3D None:=0D + return DefaultValue=0D + else:=0D + StrToken =3D str(NumberToken)=0D + if '0x' in StrToken:=0D + NumberToken =3D int(StrToken, 0)=0D + else:=0D + NumberToken =3D int(StrToken)=0D + # error handle , value is too large to store=0D + return NumberToken=0D +=0D + def __AssignQuestionKey(self, OpObj, Key):=0D +=0D + if Key =3D=3D None:=0D + return=0D + if OpObj.GetFlags() & EFI_IFR_FLAG_CALLBACK:=0D + # if the question is not CALLBACK ignore the key.=0D + self.__CVfrQuestionDB.UpdateQuestionId(OpObj.GetQuestionId(), = Key)=0D + OpObj.SetQuestionId(Key)=0D + return=0D +=0D + def __ExtractOriginalText(self, ctx):=0D + Source =3D ctx.start.getTokenSource()=0D + InputStream =3D Source.inputStream=0D + start, stop =3D ctx.start.start, ctx.stop.stop=0D + Text =3D InputStream.getText(start, stop)=0D + return Text.replace('\n', '')=0D +=0D + def __CheckDuplicateDefaultValue(self, DefaultId, Line, TokenValue):=0D + for i in range(0, len(self.__UsedDefaultArray)):=0D + if self.__UsedDefaultArray[i] =3D=3D DefaultId:=0D + gCVfrErrorHandle.HandleWarning(EFI_VFR_WARNING_CODE.VFR_WA= RNING_DEFAULT_VALUE_REDEFINED, Line, TokenValue)=0D +=0D + if len(self.__UsedDefaultArray) >=3D EFI_IFR_MAX_DEFAULT_TYPE - 1:= =0D + gCVfrErrorHandle.HandleError(VfrReturnCode.VFR_RETURN_FATAL_ER= ROR, Line, TokenValue)=0D +=0D + self.__UsedDefaultArray.append(DefaultId)=0D +=0D + def __ErrorHandler(self, ReturnCode, LineNum, TokenValue=3DNone):=0D + self.__ParserStatus +=3D gCVfrErrorHandle.HandleError(ReturnCode, = LineNum, TokenValue)=0D +=0D + def __CompareErrorHandler(self, ReturnCode, ExpectedCode, LineNum, Tok= enValue=3DNone, ErrorMsg=3DNone):=0D + if ReturnCode !=3D ExpectedCode:=0D + self.__ParserStatus +=3D 1=0D + gCVfrErrorHandle.PrintMsg(LineNum, 'Error', ErrorMsg, TokenVal= ue)=0D +=0D + def __InsertChild(self, ParentNode: VfrTreeNode, ChildCtx):=0D + if ChildCtx !=3D None and ChildCtx.Node !=3D None:=0D + ParentNode.insertChild(ChildCtx.Node)=0D +=0D + def GetRoot(self):=0D + return self.__Root=0D +=0D + def GetQuestionDB(self):=0D + return self.__CVfrQuestionDB=0D +=0D + def DumpJson(self, FileName):=0D + try:=0D + with open(FileName, 'w') as f:=0D + f.write('{\n')=0D + f.write(' \"DataStruct\" : {\n')=0D + pNode =3D gCVfrVarDataTypeDB.GetDataTypeList()=0D + while pNode !=3D None:=0D + f.write(' \"{}\" : [\n'.format(str(pNode.TypeName))= )=0D + FNode =3D pNode.Members=0D + while FNode !=3D None:=0D + f.write(' {\n')=0D + f.write(' \"Name\": \"{}\",\n'.format(str(F= Node.FieldName)))=0D + if FNode.ArrayNum > 0:=0D + f.write(' \"Type\": \"{}[{}]\",\n'.form= at(str(FNode.FieldType.TypeName),str(FNode.ArrayNum)))=0D + else:=0D + f.write(' \"Type\": \"{}\",\n'.format(s= tr(FNode.FieldType.TypeName)))=0D + f.write(' \"Offset\": {}\n'.format(str(FNod= e.Offset)))=0D + if FNode.Next =3D=3D None:=0D + f.write(' }\n')=0D + else:=0D + f.write(' }, \n')=0D + FNode =3D FNode.Next=0D + if pNode.Next =3D=3D None:=0D + f.write(' ]\n')=0D + else:=0D + f.write(' ],\n')=0D + pNode =3D pNode.Next=0D + f.write(' },\n')=0D + f.write(' \"DataStructAttribute\": {\n')=0D + pNode =3D gCVfrVarDataTypeDB.GetDataTypeList()=0D + while pNode !=3D None:=0D + f.write(' \"{}\"'.format(str(pNode.TypeName)) + ': = {\n')=0D + f.write(' \"Alignment\": {},\n'.format(str(pNod= e.Align)))=0D + f.write(' \"TotalSize\": {}\n'.format(str(pNode= .TotalSize)))=0D + if pNode.Next =3D=3D None:=0D + f.write(' }\n')=0D + else:=0D + f.write(' },\n')=0D + pNode =3D pNode.Next=0D + f.write(' },\n')=0D + f.write(' \"VarDefine\" : {\n')=0D + pVsNode =3D gCVfrDataStorage.GetBufferVarStoreList()=0D + while pVsNode !=3D None:=0D + f.write(' \"{}\"'.format(str(pVsNode.VarStoreName))= + ': {\n')=0D + f.write(' \"Type\": \"{}\",\n'.format(str(pVsNo= de.DataType.TypeName)))=0D + f.write(' \"Attributes\": {},\n'.format(str(pVs= Node.Attributes)))=0D + f.write(' \"VarStoreId\": {},\n'.format(str(pVs= Node.VarStoreId)))=0D + f.write(' \"VendorGuid\": ' + '\"{}, {}, {},'.f= ormat('0x%x'%(pVsNode.Guid.Data1),'0x%x'%(pVsNode.Guid.Data2), '0x%x'%(pVsN= ode.Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(pVsNode.Guid.Data4[0]), '0x%x'%(pVsNode.Guid.Data4[1]), '0x%x'%(pVsNod= e.Guid.Data4[2]), '0x%x'%(pVsNode.Guid.Data4[3]), \=0D + '0x%x'%(pVsNode.Guid.Data4[4]), '0x%x'%(pVsNode.Guid.D= ata4[5]), '0x%x'%(pVsNode.Guid.Data4[6]), '0x%x'%(pVsNode.Guid.Data4[7])) += ' }}\"\n')=0D + if pVsNode.Next =3D=3D None:=0D + f.write(' }\n')=0D + else:=0D + f.write(' },\n')=0D +=0D + pVsNode =3D pVsNode.Next=0D + f.write(' },\n')=0D + f.write(' \"Data\" : [\n')=0D + pVsNode =3D gCVfrBufferConfig.GetVarItemList()=0D + while pVsNode !=3D None:=0D + if pVsNode.Id =3D=3D None:=0D + pVsNode =3D pVsNode.Next=0D + continue=0D + pInfoNode =3D pVsNode.InfoStrList=0D + while pInfoNode !=3D None:=0D + f.write(' {\n')=0D + f.write(' \"VendorGuid\": ' + '\"{}, {}, {}= ,'.format('0x%x'%(pVsNode.Guid.Data1),'0x%x'%(pVsNode.Guid.Data2), '0x%x'%(= pVsNode.Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format= ('0x%x'%(pVsNode.Guid.Data4[0]), '0x%x'%(pVsNode.Guid.Data4[1]), '0x%x'%(pV= sNode.Guid.Data4[2]), '0x%x'%(pVsNode.Guid.Data4[3]), \=0D + '0x%x'%(pVsNode.Guid.Data4[4]), '0x%x'%(pVsNode.Gu= id.Data4[5]), '0x%x'%(pVsNode.Guid.Data4[6]), '0x%x'%(pVsNode.Guid.Data4[7]= )) + ' }}\",\n')=0D + f.write(' \"VarName\": \"{}\",\n'.format(st= r(pVsNode.Name)))=0D + f.write(' \"DefaultStore\": \"{}\",\n'.form= at(str(pVsNode.Id)))=0D + f.write(' \"Size\": \"{}\",\n'.format(str(p= InfoNode.Width)))=0D + f.write(' \"Offset\": {},\n'.format(str(pIn= foNode.Offset)))=0D + #f.write(' \"Value\": \"{}\"\n'.format(str(= pInfoNode.Value)))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_DATE:=0D + f.write(' \"Value\": \"{}/{}/{}\"\n'.fo= rmat(pInfoNode.Value.date.Year, pInfoNode.Value.date.Month, pInfoNode.Value= .date.Day))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_TIME:=0D + f.write(' \"Value\": \"{}:{}:{}\"\n'.fo= rmat(pInfoNode.Value.time.Hour, pInfoNode.Value.time.Minute, pInfoNode.Valu= e.time.Second))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_REF:=0D + f.write(' \"Value\": \"{};{};'.format(p= InfoNode.Value.ref.QuestionId, pInfoNode.Value.ref.FormId) + '{' + '{}, {}= , {},'.format('0x%x'%(pInfoNode.Value.ref.FormSetGuid.Data1),'0x%x'%(pInfoN= ode.Value.ref.FormSetGuid.Data2), '0x%x'%(pInfoNode.Value.ref.FormSetGuid.D= ata3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.fo= rmat('0x%x'%(pInfoNode.Value.ref.FormSetGuid.Data4[0]), '0x%x'%(pInfoNode.V= alue.ref.FormSetGuid.Data4[1]), '0x%x'%(pInfoNode.Value.ref.FormSetGuid.Dat= a4[2]), '0x%x'%(pInfoNode.Value.ref.FormSetGuid.Data4[3]), \=0D + '0x%x'%(pInfoNode.Value.ref.FormSetGuid.Data4[= 4]), '0x%x'%(pInfoNode.Value.ref.FormSetGuid.Data4[5]), '0x%x'%(pInfoNode.V= alue.ref.FormSetGuid.Data4[6]), '0x%x'%(pInfoNode.Value.ref.FormSetGuid.Dat= a4[7])) + ' }}' + ';{}\n'.format(pInfoNode.Value.ref.DevicePath))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_STRING:=0D + f.write(' \"Value\": \"{}\"\n'.format(p= InfoNode.Value.string))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:= =0D + f.write(' \"Value\": \"{}\"\n'.format(p= InfoNode.Value.u8))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:= =0D + f.write(' \"Value\": \"{}\"\n'.format(p= InfoNode.Value.u16))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:= =0D + f.write(' \"Value\": \"{}\"\n'.format(p= InfoNode.Value.u32))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:= =0D + f.write(' \"Value\": \"{}\"\n'.format(p= InfoNode.Value.u64))=0D + if pInfoNode.Type =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + f.write(' \"Value\": \"{}\"\n'.format(p= InfoNode.Value.b))=0D +=0D + f.write(' },\n')=0D + pInfoNode =3D pInfoNode.Next=0D + pVsNode =3D pVsNode.Next=0D + f.write(' {\n')=0D + f.write(' \"VendorGuid\": \"NA\",\n')=0D + f.write(' \"VarName\": \"NA\",\n')=0D + f.write(' \"DefaultStore\": \"NA\",\n')=0D + f.write(' \"Size\": 0,\n')=0D + f.write(' \"Offset\": 0,\n')=0D + f.write(' \"Value\": \"0x00\"\n')=0D + f.write(' }\n')=0D + f.write(' ]\n')=0D + f.write('}\n')=0D +=0D + f.close()=0D + except:=0D + EdkLogger.error("VfrCompiler", FILE_OPEN_FAILURE, "File open f= ailed for %s" % FileName, None)=0D +=0D + def DumpYaml(self, Root, FileName):=0D + try:=0D + with open(FileName, 'w') as f:=0D + f.write('## DO NOT REMOVE -- VFR Mode\n')=0D + self.DumpYamlDfs(Root, f)=0D + f.close()=0D + except:=0D + EdkLogger.error("VfrCompiler", FILE_OPEN_FAILURE, "File open f= ailed for %s" % FileName, None)=0D +=0D + def DumpYamlDfs(self, Root, f):=0D +=0D + if Root.OpCode !=3D None:=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_FORM_SET_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write('Formset:\n')=0D + f.write(' Guid: {' + '{}, {}, {},'.format('0x%x'%(Info.G= uid.Data1),'0x%x'%(Info.Guid.Data2), '0x%x'%(Info.Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.Guid.Data4[0]), '0x%x'%(Info.Guid.Data4[1]), '0x%x'%(Info.Guid.Da= ta4[2]), '0x%x'%(Info.Guid.Data4[3]), \=0D + '0x%x'%(Info.Guid.Data4[4]), '0x%x'%(Info.Guid.Data4[5= ]), '0x%x'%(Info.Guid.Data4[6]), '0x%x'%(Info.Guid.Data4[7])) + ' }}\n')=0D + f.write(' Title: {} # Title STRING_ID\n'.format(Info.Fo= rmSetTitle))=0D + f.write(' Help: {} # Help STRING_ID\n'.format(Info.Help= ))=0D + for Guid in Root.Data.GetClassGuid():=0D + f.write(' ClassGuid: {' + '{}, {}, {},'.format('0x%x= '%(Guid.Data1),'0x%x'%(Guid.Data2), '0x%x'%(Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Guid.Data4[0]), '0x%x'%(Guid.Data4[1]), '0x%x'%(Guid.Data4[2]), '0x%x'= %(Guid.Data4[3]), \=0D + '0x%x'%(Guid.Data4[4]), '0x%x'%(Guid.Data4[5]), '0x%x'= %(Guid.Data4[6]), '0x%x'%(Guid.Data4[7])) + ' }}\n')=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_VARSTORE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - varstore:\n')=0D + f.write(' varid: {}\n'.format(Info.VarStoreId))=0D + f.write(' name: {}\n'.format(Info.Name))=0D + f.write(' size: {}\n'.format(Info.Size))=0D + f.write(' guid: {' + '{}, {}, {},'.format('0x%x'%(In= fo.Guid.Data1),'0x%x'%(Info.Guid.Data2), '0x%x'%(Info.Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.Guid.Data4[0]), '0x%x'%(Info.Guid.Data4[1]), '0x%x'%(Info.Guid.Da= ta4[2]), '0x%x'%(Info.Guid.Data4[3]), \=0D + '0x%x'%(Info.Guid.Data4[4]), '0x%x'%(Info.Guid.Data4[5= ]), '0x%x'%(Info.Guid.Data4[6]), '0x%x'%(Info.Guid.Data4[7])) + ' }}\n')=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_VARSTORE_EFI_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - efivarstore:\n')=0D + f.write(' varid: {}\n'.format(Info.VarStoreId))=0D + f.write(' name: {}\n'.format(Info.Name))=0D + f.write(' size: {}\n'.format(Info.Size))=0D + f.write(' guid: {' + '{}, {}, {},'.format('0x%x'%(In= fo.Guid.Data1),'0x%x'%(Info.Guid.Data2), '0x%x'%(Info.Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.Guid.Data4[0]), '0x%x'%(Info.Guid.Data4[1]), '0x%x'%(Info.Guid.Da= ta4[2]), '0x%x'%(Info.Guid.Data4[3]), \=0D + '0x%x'%(Info.Guid.Data4[4]), '0x%x'%(Info.Guid.Data4[5= ]), '0x%x'%(Info.Guid.Data4[6]), '0x%x'%(Info.Guid.Data4[7])) + ' }}\n')=0D + f.write(' attribute: {}\n'.format(Info.Attributes))= =0D +=0D + if Root.OpCode =3D=3D EFI_IFR_VARSTORE_NAME_VALUE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - namevaluevarstore:\n')=0D + f.write(' varid: {}\n'.format(Info.VarStoreId))=0D + # f.write(' name: {}\n'.format(Info.Name))=0D + f.write(' guid: {' + '{}, {}, {},'.format('0x%x'%(In= fo.Guid.Data1),'0x%x'%(Info.Guid.Data2), '0x%x'%(Info.Guid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.Guid.Data4[0]), '0x%x'%(Info.Guid.Data4[1]), '0x%x'%(Info.Guid.Da= ta4[2]), '0x%x'%(Info.Guid.Data4[3]), \=0D + '0x%x'%(Info.Guid.Data4[4]), '0x%x'%(Info.Guid.Data4[5= ]), '0x%x'%(Info.Guid.Data4[6]), '0x%x'%(Info.Guid.Data4[7])) + ' }}\n')=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_FORM_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - form:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condition= ))=0D + f.write(' FormId: {} # FormId STRING_ID\n'.format(I= nfo.FormId))=0D + f.write(' FormTitle: {} # FormTitle STRING_ID\n'.fo= rmat(Info.FormTitle))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_FORM_MAP_OP:=0D + Info, MethodMapList =3D Root.Data.GetInfo()=0D + f.write(' - formmap:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condition= ))=0D + f.write(' FormId: {} # FormId STRING_ID\n'.format(I= nfo.FormId))=0D + for MethodMap in MethodMapList:=0D + f.write(' maptitle: {}\n'.format(MethodMap.Metho= dTitle))=0D + f.write(' mapguid: {' + '{}, {}, {},'.format('0x= %x'%(MethodMap.MethodIdentifier.Data1),'0x%x'%(MethodMap.MethodIdentifier.D= ata2), '0x%x'%(MethodMap.MethodIdentifier.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(MethodMap.MethodIdentifier.Data4[0]), '0x%x'%(MethodMap.MethodIdentifi= er.Data4[1]), '0x%x'%(MethodMap.MethodIdentifier.Data4[2]), '0x%x'%(MethodM= ap.MethodIdentifier.Data4[3]), \=0D + '0x%x'%(MethodMap.MethodIdentifier.Data4[4]), '0x%x'%(= MethodMap.MethodIdentifier.Data4[5]), '0x%x'%(MethodMap.MethodIdentifier.Da= ta4[6]), '0x%x'%(MethodMap.MethodIdentifier.Data4[7])) + ' }}\n')=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_IMAGE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - image:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' Id: {} # ImageId\n'.format(Info.Id))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_RULE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - rule:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' RuleId: {} # RuleId\n'.format(Info.Rul= eId))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_SUBTITLE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - subtitle:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Statement.Prompt))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_TEXT_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - text:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Statement.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Statement.Help))=0D + f.write(' text: {} # Statement Help STRING_ID\n= '.format(Info.TextTwo))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_ACTION_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - action:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' flags: {} # Question Flags\n'.format(= Info.Question.Flags))=0D + f.write(' questionconfig: {} # QuestionConfig\n= '.format(Info.QuestionConfig))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_ONE_OF_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - oneof:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D +=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {} # Question VarName STRING= _ID\n'.format(Info.Question.VarStoreInfo.VarName))=0D + f.write(' varoffset: {} # Question VarOffset\n'= .format(Info.Question.VarStoreInfo.VarOffset))=0D + f.write(' flags: {} # Question Flags\n'.format(= Info.Question.Flags))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_ONE_OF_OPTION_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - option: {}\n'.format(Info.Option))=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D +=0D + f.write(' option flag: {}\n'.format(Info.Fla= gs))=0D + f.write(' option type: {}\n'.format(Info.Typ= e))=0D +=0D + if type(Root.Data) =3D=3D CIfrOneOfOption:=0D + if Info.Type =3D=3D EFI_IFR_TYPE_DATE:=0D + f.write(' option value: {}/{}/{}\n'.= format(Info.Value.date.Year, Info.Value.date.Month, Info.Value.date.Day))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_TIME:=0D + f.write(' option value: {}:{}:{}\n'.= format(Info.Value.time.Hour, Info.Value.time.Minute, Info.Value.time.Second= ))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_REF:=0D + f.write(' option value: {};{};'.form= at(Info.Value.ref.QuestionId, Info.Value.ref.FormId) + '{' + '{}, {}, {},'= .format('0x%x'%(Info.Value.ref.FormSetGuid.Data1),'0x%x'%(Info.Value.ref.Fo= rmSetGuid.Data2), '0x%x'%(Info.Value.ref.FormSetGuid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format= ('0x%x'%(Info.Value.ref.FormSetGuid.Data4[0]), '0x%x'%(Info.Value.ref.FormS= etGuid.Data4[1]), '0x%x'%(Info.Value.ref.FormSetGuid.Data4[2]), '0x%x'%(Inf= o.Value.ref.FormSetGuid.Data4[3]), \=0D + '0x%x'%(Info.Value.ref.FormSetGuid.Data4[4]), '0x%= x'%(Info.Value.ref.FormSetGuid.Data4[5]), '0x%x'%(Info.Value.ref.FormSetGui= d.Data4[6]), '0x%x'%(Info.Value.ref.FormSetGuid.Data4[7])) + ' }}' + ';{}\n= '.format(Info.Value.ref.DevicePath))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_STRING:=0D + f.write(' option value: {}\n'.format= (Info.Value.string))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + f.write(' option value: {}\n'.format= (Info.Value.u8))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + f.write(' option value: {}\n'.format= (Info.Value.u16))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + f.write(' option value: {}\n'.format= (Info.Value.u32))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + f.write(' option value: {}\n'.format= (Info.Value.u64))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + f.write(' option value: {}\n'.format= (Info.Value.b))=0D +=0D + if type(Root.Data) =3D=3D CIfrOneOfOption2:=0D + f.write(' value: {')=0D + ValueType =3D Root.Data.GetValueType()=0D + if ValueType =3D=3D EFI_IFR_TYPE_STRING:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].string))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= string) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u8))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u8) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u16))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u16) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u32))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u32) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u64))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u64) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].b))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= b) + '}\n')=0D +=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_DEFAULT_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - default:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D + f.write(' type: {}\n'.format(Info.Type))=0D + f.write(' defaultId: {}\n'.format(Info.Defau= ltId))=0D + if type(Root.Data) =3D=3D CIfrDefault:=0D + if Info.Type =3D=3D EFI_IFR_TYPE_DATE:=0D + f.write(' value: {}/{}/{}\n'.format(= Info.Value.date.Year, Info.Value.date.Month, Info.Value.date.Day))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_TIME:=0D + f.write(' value: {}:{}:{}\n'.format(= Info.Value.time.Hour, Info.Value.time.Minute, Info.Value.time.Second))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_REF:=0D + f.write(' option value: {};{};'.form= at(Info.Value.ref.QuestionId, Info.Value.ref.FormId) + '{' + '{}, {}, {},'= .format('0x%x'%(Info.Value.ref.FormSetGuid.Data1),'0x%x'%(Info.Value.ref.Fo= rmSetGuid.Data2), '0x%x'%(Info.Value.ref.FormSetGuid.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format= ('0x%x'%(Info.Value.ref.FormSetGuid.Data4[0]), '0x%x'%(Info.Value.ref.FormS= etGuid.Data4[1]), '0x%x'%(Info.Value.ref.FormSetGuid.Data4[2]), '0x%x'%(Inf= o.Value.ref.FormSetGuid.Data4[3]), \=0D + '0x%x'%(Info.Value.ref.FormSetGuid.Data4[4]), '0x%= x'%(Info.Value.ref.FormSetGuid.Data4[5]), '0x%x'%(Info.Value.ref.FormSetGui= d.Data4[6]), '0x%x'%(Info.Value.ref.FormSetGuid.Data4[7])) + ' }}' + ';{}\n= '.format(Info.Value.ref.DevicePath))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_STRING:=0D + f.write(' value: {}\n'.format(Info.V= alue.string))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + f.write(' value: {}\n'.format(Info.V= alue.u8))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + f.write(' value: {}\n'.format(Info.V= alue.u16))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + f.write(' value: {}\n'.format(Info.V= alue.u32))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + f.write(' value: {}\n'.format(Info.V= alue.u64))=0D + if Info.Type =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + f.write(' value: {}\n'.format(Info.V= alue.b))=0D +=0D + if type(Root.Data) =3D=3D CIfrDefault3:=0D + f.write(' value: {')=0D + ValueType =3D Root.Data.GetValueType()=0D + if ValueType =3D=3D EFI_IFR_TYPE_STRING:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].string))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= string) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u8))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u8) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u16))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u16) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u32))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u32) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].u64))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= u64) + '}\n')=0D +=0D + if ValueType =3D=3D EFI_IFR_TYPE_BOOLEAN:=0D + for i in range(0, len(Info.Value)-1):=0D + f.write('{},'.format(Info.Value[i].b))=0D + f.write('{}'.format(Info.Value[len(Info.Value)-1].= b) + '}\n')=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_ORDERED_LIST_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - orderedlist:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D +=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' maxContainers: {}\n'.format(Info.MaxCo= ntainers))=0D + f.write(' flags: {}\n'.format(Info.Question.Flag= s))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_NUMERIC_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - numeric:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {} # Question VarName STRING= _ID\n'.format(Info.Question.VarStoreInfo.VarName))=0D + f.write(' varoffset: {} # Question VarOffset\n'= .format(Info.Question.VarStoreInfo.VarOffset))=0D + f.write(' flags: {} # Question Flags\n'.format(= Info.Question.Flags))=0D +=0D + if Root.Data.GetVarType() =3D=3D EFI_IFR_TYPE_NUM_SIZE_64:= =0D + f.write(' maxvalue: {}\n'.format(Info.Data.u= 64.MaxValue))=0D + f.write(' minvalue: {}\n'.format(Info.Data.u= 64.MinValue))=0D + f.write(' step: {}\n'.format(Info.Data.u64.S= tep))=0D +=0D + if Root.Data.GetVarType() =3D=3D EFI_IFR_TYPE_NUM_SIZE_32:= =0D + f.write(' maxvalue: {}\n'.format(Info.Data.u= 32.MaxValue))=0D + f.write(' minvalue: {}\n'.format(Info.Data.u= 32.MinValue))=0D + f.write(' step: {}\n'.format(Info.Data.u32.S= tep))=0D +=0D + if Root.Data.GetVarType() =3D=3D EFI_IFR_TYPE_NUM_SIZE_16:= =0D + f.write(' maxvalue: {}\n'.format(Info.Data.u= 16.MaxValue))=0D + f.write(' minvalue: {}\n'.format(Info.Data.u= 16.MinValue))=0D + f.write(' step: {}\n'.format(Info.Data.u16.S= tep))=0D +=0D + if Root.Data.GetVarType() =3D=3D EFI_IFR_TYPE_NUM_SIZE_8:= =0D + f.write(' maxvalue: {}\n'.format(Info.Data.u= 8.MaxValue))=0D + f.write(' minvalue: {}\n'.format(Info.Data.u= 8.MinValue))=0D + f.write(' step: {}\n'.format(Info.Data.u8.St= ep))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_CHECKBOX_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - checkbox:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {} # Question VarName STRING= _ID\n'.format(Info.Question.VarStoreInfo.VarName))=0D + f.write(' varoffset: {} # Question VarOffset\n'= .format(Info.Question.VarStoreInfo.VarOffset))=0D + f.write(' flags: {} # Flags\n'.format(Info.Flag= s))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_TIME_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - time:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' questionid: {} # Statement Prompt STR= ING_ID\n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {}\n'.format(Info.Question.Va= rStoreInfo.VarName))=0D + f.write(' varoffset: {}\n'.format(Info.Question.= VarStoreInfo.VarOffset))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' flags: {}\n'.format(Info.Flags))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_DATE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - date:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' questionid: {} # Statement Prompt STR= ING_ID\n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {}\n'.format(Info.Question.Va= rStoreInfo.VarName))=0D + f.write(' varoffset: {}\n'.format(Info.Question.= VarStoreInfo.VarOffset))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' flags: {}\n'.format(Info.Flags))=0D +=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_STRING_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - string:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {} # Question VarName STRING= _ID\n'.format(Info.Question.VarStoreInfo.VarName))=0D + f.write(' varoffset: {} # Question VarOffset\n'= .format(Info.Question.VarStoreInfo.VarOffset))=0D + f.write(' flags: {} # Question Flags\n'.format(= Info.Question.Flags))=0D + f.write(' stringflags: {}\n'.format(Info.Flags))= =0D + f.write(' stringminsize: {}\n'.format(Info.MinSi= ze))=0D + f.write(' stringmaxsize: {}\n'.format(Info.MaxSi= ze))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_PASSWORD_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - password:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Question.Header.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Question.Header.Help))=0D + f.write(' questionid: {} # Question QuestionId\= n'.format(Info.Question.QuestionId))=0D + f.write(' varstoreid: {} # Question VarStoreId\= n'.format(Info.Question.VarStoreId))=0D + f.write(' varname: {} # Question VarName STRING= _ID\n'.format(Info.Question.VarStoreInfo.VarName))=0D + f.write(' varoffset: {} # Question VarOffset\n'= .format(Info.Question.VarStoreInfo.VarOffset))=0D + f.write(' flags: {} # Question Flags\n'.format(= Info.Question.Flags))=0D + f.write(' minsize: {}\n'.format(Info.MinSize))=0D + f.write(' maxsize: {}\n'.format(Info.MaxSize))=0D +=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_RESET_BUTTON_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - resetbutton:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D + f.write(' prompt: {} # Statement Prompt STRING_= ID\n'.format(Info.Statement.Prompt))=0D + f.write(' help: {} # Statement Help STRING_ID\n= '.format(Info.Statement.Help))=0D + f.write(' defaultid: {}\n'.format(Info.DefaultId= ))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_REF_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - goto:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.Condi= tion))=0D +=0D + if type(Root.Data) =3D=3D CIfrRef4:=0D + f.write(' formid: {}\n'.format(Info.FormId))= =0D + f.write(' formsetid: {' + '{}, {}, {},'.form= at('0x%x'%(Info.FormSetId.Data1),'0x%x'%(Info.FormSetId.Data2), '0x%x'%(Inf= o.FormSetId.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.FormSetId.Data4[0]), '0x%x'%(Info.FormSetId.Data4[1]), '0x%x'%(In= fo.FormSetId.Data4[2]), '0x%x'%(Info.FormSetId.Data4[3]), \=0D + '0x%x'%(Info.FormSetId.Data4[4]), '0x%x'%(Info.FormSet= Id.Data4[5]), '0x%x'%(Info.FormSetId.Data4[6]), '0x%x'%(Info.FormSetId.Data= 4[7])) + ' }}\n')=0D + f.write(' questionid: {}\n'.format(Info.Ques= tionId))=0D + f.write(' devicepath: {}\n'.format(Info.Devi= cePath))=0D +=0D + if type(Root.Data) =3D=3D CIfrRef3:=0D + f.write(' formid: {}\n'.format(Info.FormId))= =0D + f.write(' formsetid: {' + '{}, {}, {},'.form= at('0x%x'%(Info.FormSetId.Data1),'0x%x'%(Info.FormSetId.Data2), '0x%x'%(Inf= o.FormSetId.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.FormSetId.Data4[0]), '0x%x'%(Info.FormSetId.Data4[1]), '0x%x'%(In= fo.FormSetId.Data4[2]), '0x%x'%(Info.FormSetId.Data4[3]), \=0D + '0x%x'%(Info.FormSetId.Data4[4]), '0x%x'%(Info.FormSet= Id.Data4[5]), '0x%x'%(Info.FormSetId.Data4[6]), '0x%x'%(Info.FormSetId.Data= 4[7])) + ' }}\n')=0D + f.write(' questionid: {}\n'.format(Info.Ques= tionId))=0D +=0D + if type(Root.Data) =3D=3D CIfrRef2:=0D + f.write(' formid: {}\n'.format(Info.FormId))= =0D + f.write(' questionid: {}\n'.format(Info.Ques= tionId))=0D +=0D + if type(Root.Data) =3D=3D CIfrRef:=0D + f.write(' formid: {}\n'.format(Info.FormId))= =0D + f.write(' questionid: {}\n'.format(Info.Ques= tion.QuestionId))=0D +=0D + f.write(' prompt: {}\n'.format(Info.Question.Hea= der.Prompt))=0D + f.write(' help: {}\n'.format(Info.Question.Heade= r.Help))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_REFRESH_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - refresh:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D + f.write(' interval: {} # RefreshInterval\n'= .format(Info.RefreshInterval))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_VARSTORE_DEVICE_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - varstoredevice:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D + f.write(' devicepath: {} # DevicePath\n'.fo= rmat(Info.DevicePath))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_REFRESH_ID_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - refreshguid:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D + f.write(' eventgroupid: {' + '{}, {}, {},'.f= ormat('0x%x'%(Info.RefreshEventGroupId.Data1),'0x%x'%(Info.RefreshEventGrou= pId.Data2), '0x%x'%(Info.RefreshEventGroupId.Data3)) \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.RefreshEventGroupId.Data4[0]), '0x%x'%(Info.RefreshEventGroupId.D= ata4[1]), '0x%x'%(Info.RefreshEventGroupId.Data4[2]), '0x%x'%(Info.RefreshE= ventGroupId.Data4[3]), \=0D + '0x%x'%(Info.RefreshEventGroupId.Data4[4]), '0x%x'%(In= fo.RefreshEventGroupId.Data4[5]), '0x%x'%(Info.RefreshEventGroupId.Data4[6]= ), '0x%x'%(Info.RefreshEventGroupId.Data4[7])) + ' }}\n')=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_WARNING_IF_OP:=0D + Info =3D Root.Data.GetInfo()=0D + f.write(' - warningif:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D + f.write(' warning: {}\n'.format(Info.Warning= ))=0D + f.write(' timeOut: {}\n'.format(Info.TimeOut= ))=0D +=0D + if Root.OpCode =3D=3D EFI_IFR_GUID_OP:=0D + Info =3D Root.Data.GetInfo()=0D + if type(Root.Data) =3D=3D CIfrLabel: # type(Info) =3D=3D E= FI_IFR_GUID_LABEL=0D + f.write(' - label:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D +=0D + f.write(' labelnumber: {} # LabelNumber\n'.= format(Info.Number))=0D +=0D + if type(Root.Data) =3D=3D CIfrBanner:=0D + f.write(' - banner:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D +=0D + f.write(' title: {}\n'.format(Info.Title))=0D + f.write(' linenumber: {}\n'.format(Info.Line= Number))=0D + f.write(' align: {}\n'.format(Info.Alignment= ))=0D +=0D + if type(Root.Data) =3D=3D CIfrTimeout:=0D + f.write(' - banner:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D +=0D + f.write(' timeout: {}\n'.format(Info.TimeOut= ))=0D +=0D + if type(Root.Data) =3D=3D CIfrClass:=0D + f.write(' Class: {}\n'.format(Info.Class))=0D +=0D + if type(Root.Data) =3D=3D CIfrSubClass:=0D + f.write(' SubClass: {}\n'.format(Info.SubClass))=0D +=0D + if type(Root.Data) =3D=3D CIfrGuid:=0D + f.write(' - guidop:\n')=0D + if Root.Condition !=3D None:=0D + f.write(' condition: {}\n'.format(Root.C= ondition))=0D + f.write(' guid: {' + '{}, {}, {},'.format('0= x%x'%(Info.Guid.Data1),'0x%x'%(Info.Guid.Data2), '0x%x'%(Info.Guid.Data3)) = \=0D + + ' { ' + '{}, {}, {}, {}, {}, {}, {}, {}'.format('0x= %x'%(Info.Guid.Data4[0]), '0x%x'%(Info.Guid.Data4[1]), '0x%x'%(Info.Guid.Da= ta4[2]), '0x%x'%(Info.Guid.Data4[3]), \=0D + '0x%x'%(Info.Guid.Data4[4]), '0x%x'%(Info.Guid.Data4[5= ]), '0x%x'%(Info.Guid.Data4[6]), '0x%x'%(Info.Guid.Data4[7])) + ' }}\n')=0D +=0D +=0D + if Root.Child !=3D []:=0D + for ChildNode in Root.Child:=0D + if Root.OpCode in ConditionOps:=0D + if ChildNode.OpCode in ConditionOps:=0D + ChildNode.Condition =3D Root.Condition + ' | ' + C= hildNode.Condition=0D + else:=0D + ChildNode.Condition =3D Root.Condition=0D +=0D + self.DumpYamlDfs(ChildNode, f)=0D +=0D + return=0D +=0D +del VfrSyntaxParser \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/VfrTree.py b/BaseTools/Sou= rce/Python/VfrCompiler/VfrTree.py new file mode 100644 index 0000000000..34f9ce4e33 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrTree.py @@ -0,0 +1,88 @@ +from VfrCompiler.CommonCtypes import *=0D +from VfrCompiler.VfrFormPkg import *=0D +=0D +# Ifr related Info -> ctypes obj=0D +#=E3=80=80conditional Info=0D +# Structure Info=0D +=0D +=0D +class VfrTreeNode():=0D + def __init__(self, Opcode: int=3DNone) -> None:=0D +=0D + self.OpCode =3D Opcode=0D + self.Data =3D None # save class or bytes=0D + self.Condition =3D None=0D + self.Expression =3D None=0D + self.Parent =3D None=0D + self.Child =3D []=0D +=0D +=0D + def hasCondition(self) ->bool:=0D + if self.Condition =3D=3D None:=0D + return False=0D + else:=0D + return True=0D +=0D + # Get data from ctypes to bytes.=0D + def struct2stream(self, s) -> bytes:=0D + length =3D sizeof(s)=0D + p =3D cast(pointer(s), POINTER(c_char * length))=0D + return p.contents.raw=0D +=0D + def hasChild(self) -> bool:=0D + if self.Child =3D=3D []:=0D + return False=0D + else:=0D + return True=0D +=0D + def isFinalChild(self) -> bool:=0D + ParTree =3D self.Parent=0D + if ParTree:=0D + if ParTree.Child[-1] =3D=3D self:=0D + return True=0D + return False=0D +=0D +=0D + def insertChild(self, NewNode, pos: int=3DNone) -> None:=0D + if len(self.Child) =3D=3D 0:=0D + self.Child.append(NewNode)=0D + else:=0D + if not pos:=0D + LastTree =3D self.Child[-1]=0D + self.Child.append(NewNode)=0D + else:=0D + self.Child.insert(pos, NewNode)=0D +=0D + NewNode.Parent =3D self=0D +=0D +=0D + # lastNode.insertRel(newNode)=0D + def insertRel(self, newNode) -> None:=0D + if self.Parent:=0D + parentTree =3D self.Parent=0D + new_index =3D parentTree.Child.index(self) + 1=0D + parentTree.Child.insert(new_index, newNode)=0D + self.NextRel =3D newNode=0D + newNode.LastRel =3D self=0D +=0D +=0D + def deleteNode(self, deletekey: str) -> None:=0D + FindStatus, DeleteTree =3D self.FindNode(deletekey)=0D + if FindStatus:=0D + parentTree =3D DeleteTree.Parent=0D + lastTree =3D DeleteTree.LastRel=0D + nextTree =3D DeleteTree.NextRel=0D + if parentTree:=0D + index =3D parentTree.Child.index(DeleteTree)=0D + del parentTree.Child[index]=0D + if lastTree and nextTree:=0D + lastTree.NextRel =3D nextTree=0D + nextTree.LastRel =3D lastTree=0D + elif lastTree:=0D + lastTree.NextRel =3D None=0D + elif nextTree:=0D + nextTree.LastRel =3D None=0D + return DeleteTree=0D + else:=0D + print('Could not find the target tree')=0D + return None=0D diff --git a/BaseTools/Source/Python/VfrCompiler/VfrUtility.py b/BaseTools/= Source/Python/VfrCompiler/VfrUtility.py new file mode 100644 index 0000000000..1a2bf995dc --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/VfrUtility.py @@ -0,0 +1,1991 @@ +from ast import Pass, Return=0D +from asyncio.windows_events import NULL=0D +from ctypes.wintypes import SIZEL=0D +from msilib.schema import Error=0D +from tkinter import N=0D +from turtle import goto=0D +from typing import List=0D +from unittest.mock import NonCallableMagicMock=0D +from xmlrpc.client import boolean=0D +from VfrCompiler.VfrError import *=0D +from VfrCompiler.CommonCtypes import *=0D +from abc import ABCMeta, abstractmethod=0D +import ctypes=0D +=0D +import sys=0D +=0D +VFR_PACK_SHOW =3D 0x02=0D +VFR_PACK_ASSIGN =3D 0x01=0D +VFR_PACK_PUSH =3D 0x04=0D +VFR_PACK_POP =3D 0x08=0D +DEFAULT_PACK_ALIGN =3D 0x8=0D +DEFAULT_ALIGN =3D 1=0D +MAX_NAME_LEN =3D 64=0D +MAX_BIT_WIDTH =3D 32=0D +EFI_VARSTORE_ID_MAX =3D 0xFFFF=0D +EFI_BITS_SHIFT_PER_UINT32 =3D 0x5=0D +EFI_BITS_PER_UINT32 =3D (1 << EFI_BITS_SHIFT_PER_UINT32)=0D +EFI_FREE_VARSTORE_ID_BITMAP_SIZE =3D int(=0D + (EFI_VARSTORE_ID_MAX + 1) / EFI_BITS_PER_UINT32)=0D +=0D +=0D +class SVfrPackStackNode(object):=0D +=0D + def __init__(self, Identifier, Number):=0D + self.Identifier =3D Identifier=0D + self.Number =3D Number=0D + self.Next =3D None=0D +=0D + def Match(self, Identifier):=0D + if Identifier =3D=3D None:=0D + return True=0D + elif self.Identifier =3D=3D None:=0D + return False=0D + elif self.Identifier =3D=3D Identifier:=0D + return True=0D + else:=0D + return False=0D +=0D +=0D +class SVfrDataType(object):=0D +=0D + def __init__(self, TypeName=3D''):=0D + self.TypeName =3D TypeName=0D + self.Type =3D 0=0D + self.Align =3D 1=0D + self.TotalSize =3D 0=0D + self.HasBitField =3D False=0D + self.Members =3D None=0D + self.Next =3D None=0D +=0D +=0D +class SVfrDataField(object):=0D +=0D + def __init__(self, FieldName=3DNone):=0D + self.FieldName =3D FieldName=0D + self.FieldType =3D None=0D + self.Offset =3D 0=0D + self.ArrayNum =3D 0=0D + self.IsBitField =3D False=0D + self.BitWidth =3D 0=0D + self.BitOffset =3D 0=0D + self.Next =3D None=0D +=0D +class InternalTypes():=0D + def __init__(self, TypeName, Type, Size, Align):=0D + self.TypeName =3D TypeName=0D + self.Type =3D Type=0D + self.Size =3D Size=0D + self.Align =3D Align=0D +=0D +gInternalTypesTable =3D [=0D + InternalTypes("UINT64", EFI_IFR_TYPE_NUM_SIZE_64,=0D + sizeof(ctypes.c_ulonglong), sizeof(ctypes.c_ulonglong)),= =0D + InternalTypes("UINT32", EFI_IFR_TYPE_NUM_SIZE_32, sizeof(ctypes.c_ulon= g),=0D + sizeof(ctypes.c_ulong)),=0D + InternalTypes("UINT16", EFI_IFR_TYPE_NUM_SIZE_16, sizeof(ctypes.c_usho= rt),=0D + sizeof(ctypes.c_ushort)),=0D + InternalTypes("UINT8", EFI_IFR_TYPE_NUM_SIZE_8, sizeof(ctypes.c_ubyte)= ,=0D + sizeof(ctypes.c_ubyte)),=0D + InternalTypes("BOOLEAN", EFI_IFR_TYPE_BOOLEAN, sizeof(ctypes.c_ubyte),= =0D + sizeof(ctypes.c_ubyte)),=0D + InternalTypes("EFI_GUID", EFI_IFR_TYPE_OTHER, sizeof(EFI_GUID),=0D + sizeof(c_ubyte * 8)),=0D + InternalTypes("EFI_HII_DATE", EFI_IFR_TYPE_DATE, sizeof(EFI_HII_DATE),= =0D + sizeof(ctypes.c_ushort)),=0D + InternalTypes("EFI_STRING_ID", EFI_IFR_TYPE_STRING,=0D + sizeof(ctypes.c_ushort), sizeof(ctypes.c_ushort)),=0D + InternalTypes("EFI_HII_TIME", EFI_IFR_TYPE_TIME, sizeof(EFI_HII_TIME),= =0D + sizeof(ctypes.c_ubyte)),=0D + InternalTypes("EFI_HII_REF", EFI_IFR_TYPE_REF, sizeof(EFI_HII_REF),=0D + sizeof(EFI_GUID)),=0D +]=0D +=0D +class CVfrVarDataTypeDB(object):=0D +=0D + def __init__(self):=0D + self.__PackAlign =3D DEFAULT_PACK_ALIGN=0D + self.__PackStack =3D None=0D + self.__DataTypeList =3D None=0D + self.__NewDataType =3D None=0D + self.__CurrDataType =3D None=0D + self.__CurrDataField =3D None=0D + self.__FirstNewDataTypeName =3D None=0D + self.InternalTypesListInit()=0D +=0D +=0D + def InternalTypesListInit(self):=0D + for i in range(0, len(gInternalTypesTable)):=0D + pNewType =3D SVfrDataType()=0D + pNewType.TypeName =3D gInternalTypesTable[i].TypeName=0D + pNewType.Type =3D gInternalTypesTable[i].Type=0D + pNewType.Align =3D gInternalTypesTable[i].Align=0D + pNewType.TotalSize =3D gInternalTypesTable[i].Size=0D +=0D + if gInternalTypesTable[i].TypeName =3D=3D 'EFI_HII_DATE':=0D + pYearField =3D SVfrDataField()=0D + pMonthField =3D SVfrDataField()=0D + pDayField =3D SVfrDataField()=0D +=0D + pYearField.FieldName =3D 'Year'=0D + pYearField.FieldType, _ =3D self.GetDataType('UINT16')=0D + pYearField.Offset =3D 0=0D + pYearField.Next =3D pMonthField=0D + pYearField.ArrayNum =3D 0=0D + pYearField.IsBitField =3D False=0D +=0D + pMonthField.FieldName =3D 'Month'=0D + pMonthField.FieldType, _ =3D self.GetDataType('UINT8')=0D + pMonthField.Offset =3D 2=0D + pMonthField.Next =3D pDayField=0D + pMonthField.ArrayNum =3D 0=0D + pMonthField.IsBitField =3D False=0D +=0D + pDayField.FieldName =3D 'Day'=0D + pDayField.FieldType, _ =3D self.GetDataType('UINT8')=0D + pDayField.Offset =3D 3=0D + pDayField.Next =3D None=0D + pDayField.ArrayNum =3D 0=0D + pDayField.IsBitField =3D False=0D +=0D + pNewType.Members =3D pYearField=0D +=0D + elif gInternalTypesTable[i].TypeName =3D=3D 'EFI_HII_TIME':=0D + pHoursField =3D SVfrDataField()=0D + pMinutesField =3D SVfrDataField()=0D + pSecondsField =3D SVfrDataField()=0D +=0D + pHoursField.FieldName =3D 'Hours'=0D + pHoursField.FieldType, _ =3D self.GetDataType('UINT8')=0D + pHoursField.Offset =3D 0=0D + pHoursField.Next =3D pMinutesField=0D + pHoursField.ArrayNum =3D 0=0D + pHoursField.IsBitField =3D False=0D +=0D + pMinutesField.FieldName =3D 'Minutes'=0D + pMinutesField.FieldType, _ =3D self.GetDataType('UINT8')=0D + pMinutesField.Offset =3D 1=0D + pMinutesField.Next =3D pSecondsField=0D + pMinutesField.ArrayNum =3D 0=0D + pMinutesField.IsBitField =3D False=0D +=0D + pSecondsField.FieldName =3D 'Seconds'=0D + pSecondsField.FieldType, _ =3D self.GetDataType('UINT8')=0D + pSecondsField.Offset =3D 2=0D + pSecondsField.Next =3D None=0D + pSecondsField.ArrayNum =3D 0=0D + pSecondsField.IsBitField =3D False=0D +=0D + pNewType.Members =3D pHoursField=0D +=0D + elif gInternalTypesTable[i].TypeName =3D=3D 'EFI_HII_REF':=0D + pQuestionIdField =3D SVfrDataField()=0D + pFormIdField =3D SVfrDataField()=0D + pFormSetGuidField =3D SVfrDataField()=0D + pDevicePathField =3D SVfrDataField()=0D +=0D + pQuestionIdField.FieldName =3D 'QuestionId'=0D + pQuestionIdField.FieldType, _ =3D self.GetDataType('UINT16= ')=0D + pQuestionIdField.Offset =3D 0=0D + pQuestionIdField.Next =3D pFormIdField=0D + pQuestionIdField.ArrayNum =3D 0=0D + pQuestionIdField.IsBitField =3D False=0D +=0D + pFormIdField.FieldName =3D 'FormId'=0D + pFormIdField.FieldType, _ =3D self.GetDataType('UINT16')=0D + pFormIdField.Offset =3D 2=0D + pFormIdField.Next =3D pFormSetGuidField=0D + pFormIdField.ArrayNum =3D 0=0D + pFormIdField.IsBitField =3D False=0D +=0D + pFormSetGuidField.FieldName =3D 'FormSetGuid'=0D + pFormSetGuidField.FieldType, _ =3D self.GetDataType('EFI_G= UID')=0D + pFormSetGuidField.Offset =3D 4=0D + pFormSetGuidField.Next =3D pDevicePathField=0D + pFormSetGuidField.ArrayNum =3D 0=0D + pFormSetGuidField.IsBitField =3D False=0D +=0D + pDevicePathField.FieldName =3D 'DevicePath'=0D + pDevicePathField.FieldType, _ =3D self.GetDataType('EFI_ST= RING_ID')=0D + pDevicePathField.Offset =3D 20=0D + pDevicePathField.Next =3D None=0D + pDevicePathField.ArrayNum =3D 0=0D + pDevicePathField.IsBitField =3D False=0D +=0D + pNewType.Members =3D pQuestionIdField=0D +=0D + pNewType.Next =3D None=0D + self.__RegisterNewType(pNewType)=0D + pNewType =3D None=0D +=0D + def GetDataTypeList(self):=0D + return self.__DataTypeList=0D +=0D + def Pack(self,=0D + LineNum,=0D + Action,=0D + Identifier=3DNone,=0D + Number=3DDEFAULT_PACK_ALIGN):=0D +=0D + if Action & VFR_PACK_SHOW:=0D + Msg =3D str.format('value of pragma pack(show) =3D=3D %d' %=0D + (self.__PackAlign))=0D + gCVfrErrorHandle.PrintMsg(LineNum, 'Warning', Msg)=0D +=0D + if Action & VFR_PACK_PUSH:=0D + pNew =3D SVfrPackStackNode(Identifier, self.__PackAlign)=0D + if pNew =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D + pNew.Next =3D self.__PackStack=0D + self.__PackStack =3D pNew=0D +=0D + if Action & VFR_PACK_POP:=0D + pNode =3D None=0D + if self.__PackStack =3D=3D None:=0D + gCVfrErrorHandle.PrintMsg(LineNum, 'Error', '#pragma pack(= pop...) : more pops than pushes')=0D +=0D + pNode =3D self.__PackStack=0D + while pNode !=3D None:=0D + if pNode.Match(Identifier) =3D=3D True:=0D + self.__PackAlign =3D pNode.Number=0D + self.__PackStack =3D pNode.Next=0D + pNode =3D pNode.Next=0D +=0D + if Action & VFR_PACK_ASSIGN:=0D + PackAlign =3D (Number + Number % 2) if (Number > 1) else Numbe= r=0D + if PackAlign =3D=3D 0 or PackAlign > 16:=0D + gCVfrErrorHandle.PrintMsg(LineNum, 'Error', "expected prag= ma parameter to be '1', '2', '4', '8', or '16'")=0D + else:=0D + self.__PackAlign =3D PackAlign=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def DeclareDataTypeBegin(self):=0D + pNewType =3D SVfrDataType()=0D +=0D + pNewType.TypeName =3D ''=0D + pNewType.Type =3D EFI_IFR_TYPE_OTHER=0D + pNewType.Align =3D DEFAULT_ALIGN=0D + pNewType.TotalSize =3D 0=0D + pNewType.HasBitField =3D False=0D + pNewType.Members =3D None=0D + pNewType.Next =3D None=0D + self.__NewDataType =3D pNewType=0D +=0D + def SetNewTypeType(self, Type):=0D + if self.__NewDataType =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_ERROR_SKIPED=0D +=0D + if Type =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + self.__NewDataType.Type =3D Type # need to limit the value of the= type=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def SetNewTypeTotalSize(self, Size):=0D + self.__NewDataType.TotalSize =3D Size=0D +=0D + def SetNewTypeAlign(self, Align):=0D + self.__NewDataType.Align =3D Align=0D +=0D + def SetNewTypeName(self, TypeName):=0D + if self.__NewDataType =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_ERROR_SKIPED=0D +=0D + if TypeName =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + if len(TypeName) >=3D MAX_NAME_LEN:=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D +=0D + pType =3D self.__DataTypeList=0D + while pType !=3D None:=0D + if pType.TypeName =3D=3D TypeName:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D + pType =3D pType.Next=0D +=0D + self.__NewDataType.TypeName =3D TypeName=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def __AlignStuff(self, Size, Align):=0D + return Align - (Size) % (Align)=0D +=0D + def DeclareDataTypeEnd(self):=0D + if self.__NewDataType.TypeName =3D=3D '':=0D + return=0D +=0D + if self.__NewDataType.TotalSize % self.__NewDataType.Align !=3D 0:= =0D + self.__NewDataType.TotalSize +=3D self.__AlignStuff(=0D + self.__NewDataType.TotalSize, self.__NewDataType.Align)=0D +=0D + self.__RegisterNewType(self.__NewDataType)=0D + if self.__FirstNewDataTypeName =3D=3D None:=0D + self.__FirstNewDataTypeName =3D self.__NewDataType.TypeName=0D +=0D + self.__NewDataType =3D None=0D +=0D + # two definitions=0D + def GetDataTypeSizeByTypeName(self, TypeName):=0D + Size =3D 0=0D + pDataType =3D self.__DataTypeList=0D + while pDataType !=3D None:=0D + if pDataType.TypeName =3D=3D TypeName:=0D + Size =3D pDataType.TotalSize=0D + return Size, VfrReturnCode.VFR_RETURN_SUCCESS=0D + pDataType =3D pDataType.Next=0D +=0D + return Size, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def GetDataTypeSizeByDataType(self, DataType):=0D + Size =3D 0=0D + DataType =3D DataType & 0x0F=0D + # For user defined data type, the size can't be got by this functi= on.=0D + if DataType =3D=3D EFI_IFR_TYPE_OTHER:=0D + return Size, VfrReturnCode.VFR_RETURN_SUCCESS=0D + pDataType =3D self.__DataTypeList=0D + while pDataType !=3D None:=0D + if DataType =3D=3D pDataType.Type:=0D + Size =3D pDataType.TotalSize=0D + return Size, VfrReturnCode.VFR_RETURN_SUCCESS=0D + pDataType =3D pDataType.Next=0D +=0D + return Size, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def __ExtractStructTypeName(self, VarStr):=0D + try:=0D + index =3D VarStr.index('.')=0D + except ValueError:=0D + return VarStr, len(VarStr)=0D + else:=0D + return VarStr[0:index], index + 1=0D +=0D + def __ExtractFieldNameAndArrary(self, VarStr, s):=0D +=0D + ArrayIdx =3D INVALID_ARRAY_INDEX=0D + s_copy =3D s=0D + while (s < len(VarStr) and VarStr[s] !=3D '.' and VarStr[s] !=3D '= ['=0D + and VarStr[s] !=3D ']'):=0D + s +=3D 1=0D +=0D + FName =3D VarStr[s_copy:s]=0D +=0D + if s =3D=3D len(VarStr):=0D + return ArrayIdx, s, FName, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + elif VarStr[s] =3D=3D '.':=0D + s +=3D 1=0D + return ArrayIdx, s, FName, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + elif VarStr[s] =3D=3D '[':=0D + s +=3D 1=0D + try:=0D + e =3D s + VarStr[s:].index(']')=0D +=0D + except ValueError:=0D + return None, None, None, VfrReturnCode.VFR_RETURN_DATA_STR= ING_ERROR=0D + else:=0D + ArrayStr =3D VarStr[s:e]=0D + ArrayIdx =3D int(ArrayStr)=0D + if VarStr[e] =3D=3D ']':=0D + e +=3D 1=0D + if e < len(VarStr) and (VarStr[e] =3D=3D '.'):=0D + e +=3D 1=0D + return ArrayIdx, e, FName, VfrReturnCode.VFR_RETURN_SUCCES= S=0D +=0D + elif VarStr[s] =3D=3D ']':=0D + return None, None, None, VfrReturnCode.VFR_RETURN_DATA_STRING_= ERROR=0D +=0D + return ArrayIdx, s, FName, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetTypeField(self, FName, Type):=0D + if FName =3D=3D None or Type =3D=3D None:=0D + return None, VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + pField =3D Type.Members=0D + while (pField !=3D None):=0D +=0D + if Type.Type =3D=3D EFI_IFR_TYPE_TIME:=0D + if FName =3D=3D 'Hour':=0D + FName =3D 'Hours'=0D + elif FName =3D=3D 'Minute':=0D + FName =3D=3D 'Minutes'=0D + elif FName =3D=3D 'Second':=0D + FName =3D 'Seconds'=0D + if pField.FieldName =3D=3D FName:=0D + Field =3D pField=0D + return Field, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + pField =3D pField.Next=0D +=0D + return None, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def IsThisBitField(self, VarStrName):=0D +=0D + TName, i =3D self.__ExtractStructTypeName(VarStrName)=0D + pType, ReturnCode =3D self.GetDataType(TName)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return None, ReturnCode=0D + pField =3D None=0D + while (i < len(VarStrName)):=0D + # i start from field=0D + _, i, FName, ReturnCode =3D self.__ExtractFieldNameAndArrary(= =0D + VarStrName, i)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return None, ReturnCode=0D + pField, ReturnCode =3D self.GetTypeField(FName, pType)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return None, ReturnCode=0D + pType =3D pField.FieldType=0D +=0D + if pField !=3D None and pField.IsBitField:=0D + return True, ReturnCode=0D + else:=0D + return False, ReturnCode=0D +=0D + def GetFieldOffset(self, Field, ArrayIdx, IsBitField):=0D +=0D + if Field =3D=3D None:=0D + return None, VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + if (ArrayIdx !=3D INVALID_ARRAY_INDEX) and (Field.ArrayNum =3D=3D = 0 or=0D + Field.ArrayNum <=3D Arra= yIdx):=0D + return None, VfrReturnCode.VFR_RETURN_ERROR_ARRARY_NUM=0D +=0D + Idx =3D 0 if ArrayIdx =3D=3D INVALID_ARRAY_INDEX else ArrayIdx=0D + if IsBitField:=0D + Offset =3D Field.BitOffset + Field.FieldType.TotalSize * Idx *= 8=0D + else:=0D + Offset =3D Field.Offset + Field.FieldType.TotalSize * Idx=0D +=0D + return Offset, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def __GetFieldWidth(self, Field):=0D + if Field =3D=3D None:=0D + return 0=0D + return Field.FieldType.Type=0D +=0D + def __GetFieldSize(self, Field, ArrayIdx, BitField):=0D + if Field =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + if (ArrayIdx =3D=3D INVALID_ARRAY_INDEX) and (Field.ArrayNum !=3D = 0):=0D + return Field.FieldType.TotalSize * Field.ArrayNum=0D + else:=0D +=0D + if BitField:=0D + return Field.BitWidth=0D + else:=0D + return Field.FieldType.TotalSize=0D +=0D + def GetDataFieldInfo(self, VarStr):=0D +=0D + # VarStr -> Type.Field=0D + Offset =3D 0=0D + Type =3D EFI_IFR_TYPE_OTHER=0D + Size =3D 0=0D + BitField =3D False=0D +=0D + TName, i =3D self.__ExtractStructTypeName(VarStr)=0D +=0D + pType, ReturnCode =3D self.GetDataType(TName)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return Offset, Type, Size, BitField, ReturnCode=0D +=0D + BitField, ReturnCode =3D self.IsThisBitField(VarStr)=0D +=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return Offset, Type, Size, BitField, ReturnCode=0D +=0D + #=E3=80=80if it is not struct data type=0D + Type =3D pType.Type=0D + Size =3D pType.TotalSize=0D +=0D + while (i < len(VarStr)):=0D + ArrayIdx, i, FName, ReturnCode =3D self.__ExtractFieldNameAndA= rrary(=0D + VarStr, i)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return Offset, Type, Size, BitField, ReturnCode=0D + pField, ReturnCode =3D self.GetTypeField(FName, pType)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return Offset, Type, Size, BitField, ReturnCode=0D + pType =3D pField.FieldType=0D + Tmp, ReturnCode =3D self.GetFieldOffset(pField, ArrayIdx,=0D + pField.IsBitField)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return Offset, Type, Size, BitField, ReturnCode=0D +=0D + if BitField and pField.IsBitField =3D=3D False:=0D + Offset =3D int(Offset + Tmp * 8)=0D + else:=0D + Offset =3D int(Offset + Tmp)=0D +=0D + Type =3D self.__GetFieldWidth(pField)=0D + Size =3D self.__GetFieldSize(pField, ArrayIdx, BitField)=0D +=0D + return Offset, Type, Size, BitField, VfrReturnCode.VFR_RETURN_SUCC= ESS=0D +=0D + def __RegisterNewType(self, New):=0D + New.Next =3D self.__DataTypeList=0D + self.__DataTypeList =3D New=0D + return=0D +=0D + def DataTypeAddField(self, FieldName, TypeName, ArrayNum, FieldInUnion= ):=0D +=0D + pFieldType, ReturnCode =3D self.GetDataType(TypeName)=0D +=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + MaxDataTypeSize =3D self.__NewDataType.TotalSize=0D +=0D +=0D + if len(FieldName) >=3D MAX_NAME_LEN:=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D +=0D + pTmp =3D self.__NewDataType.Members=0D + while pTmp !=3D None:=0D + if pTmp.FieldName =3D=3D FieldName:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D + pTmp =3D pTmp.Next=0D +=0D + Align =3D min(self.__PackAlign, pFieldType.Align)=0D + pNewField =3D SVfrDataField()=0D + if pNewField =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES=0D + pNewField.FieldName =3D FieldName=0D + pNewField.FieldType =3D pFieldType=0D + pNewField.ArrayNum =3D ArrayNum=0D + pNewField.IsBitField =3D False=0D +=0D + if self.__NewDataType.TotalSize % Align =3D=3D 0:=0D + pNewField.Offset =3D self.__NewDataType.TotalSize=0D + else:=0D + pNewField.Offset =3D self.__NewDataType.TotalSize + self.__Ali= gnStuff(=0D + self.__NewDataType.TotalSize, Align)=0D +=0D + if self.__NewDataType.Members =3D=3D None:=0D + self.__NewDataType.Members =3D pNewField=0D + pNewField.Next =3D None=0D + else:=0D + pTmp =3D self.__NewDataType.Members=0D + while pTmp.Next !=3D None:=0D + pTmp =3D pTmp.Next=0D + pTmp.Next =3D pNewField=0D + pNewField.Next =3D None=0D +=0D + self.__NewDataType.Align =3D min(=0D + self.__PackAlign, max(pFieldType.Align, self.__NewDataType.Ali= gn))=0D +=0D + if FieldInUnion:=0D + if MaxDataTypeSize < pNewField.FieldType.TotalSize:=0D + self.__NewDataType.TotalSize =3D pNewField.FieldType.Total= Size=0D + pNewField.Offset =3D 0=0D + else:=0D + Num =3D ArrayNum if ArrayNum !=3D 0 else 1=0D + self.__NewDataType.TotalSize =3D pNewField.Offset + (=0D + pNewField.FieldType.TotalSize) * Num=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def DataTypeAddBitField(self, FieldName, TypeName, Width, FieldInUnion= ):=0D +=0D + pFieldType, ReturnCode =3D self.GetDataType(TypeName)=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + if Width > MAX_BIT_WIDTH:=0D + return VfrReturnCode.VFR_RETURN_BIT_WIDTH_ERROR=0D +=0D + if Width > (pFieldType.TotalSize) * 8:=0D + return VfrReturnCode.VFR_RETURN_BIT_WIDTH_ERROR=0D +=0D + if (FieldName !=3D None) and (len(FieldName) >=3D MAX_NAME_LEN):=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D +=0D + if Width =3D=3D 0 and FieldName !=3D None:=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D +=0D + pTmp =3D self.__NewDataType.Members=0D + while pTmp !=3D None:=0D + if FieldName !=3D None and pTmp.FieldName =3D=3D FieldName:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D + pTmp =3D pTmp.Next=0D +=0D + Align =3D min(self.__PackAlign, pFieldType.Align)=0D + UpdateTotalSize =3D False=0D +=0D + pNewField =3D SVfrDataField()=0D + if pNewField =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES=0D +=0D + MaxDataTypeSize =3D self.__NewDataType.TotalSize=0D +=0D + pNewField.FieldName =3D FieldName=0D + pNewField.FieldType =3D pFieldType=0D + pNewField.IsBitField =3D True=0D + pNewField.BitWidth =3D Width=0D + pNewField.ArrayNum =3D 0=0D + pNewField.BitOffset =3D 0=0D + pNewField.Offset =3D 0=0D +=0D + if self.__NewDataType.Members =3D=3D None:=0D + self.__NewDataType.Members =3D pNewField=0D + pNewField.Next =3D None=0D + else:=0D + pTmp =3D self.__NewDataType.Members=0D + while pTmp.Next !=3D None:=0D + pTmp =3D pTmp.Next=0D + pTmp.Next =3D pNewField=0D + pNewField.Next =3D None=0D +=0D + if FieldInUnion:=0D + pNewField.Offset =3D 0=0D + if MaxDataTypeSize < pNewField.FieldType.TotalSize:=0D + self.__NewDataType.TotalSize =3D pNewField.FieldType.Total= Size=0D + else:=0D + # Check whether the bit fields can be contained within one Fie= ldType.=0D + cond1 =3D (pTmp !=3D None) and (pTmp.IsBitField) and (=0D + pTmp.FieldType.TypeName =3D=3D pNewField.FieldType.TypeNam= e)=0D + cond2 =3D (pTmp !=3D None) and (pTmp.BitOffset - pTmp.Offset *= 8 +=0D + pTmp.BitWidth + pNewField.BitWidth= <=3D=0D + pNewField.FieldType.TotalSize * 8)= =0D + if cond1 and cond2:=0D + pNewField.BitOffset =3D pTmp.BitOffset + pTmp.BitWidth=0D + pNewField.Offset =3D pTmp.Offset=0D +=0D + if pNewField.BitWidth =3D=3D 0:=0D + pNewField.BitWidth =3D pNewField.FieldType.TotalSize *= 8 - (=0D + pNewField.BitOffset - pTmp.Offset * 8)=0D + else:=0D + pNewField.BitOffset =3D self.__NewDataType.TotalSize * 8=0D + UpdateTotalSize =3D True=0D +=0D + if UpdateTotalSize:=0D + if self.__NewDataType.TotalSize % Align =3D=3D 0:=0D + pNewField.Offset =3D self.__NewDataType.TotalSize=0D + else:=0D + pNewField.Offset =3D self.__NewDataType.TotalSize + self._= _AlignStuff(=0D + self.__NewDataType.TotalSize, Align)=0D + self.__NewDataType.TotalSize =3D pNewField.Offset + pNewField.= FieldType.TotalSize=0D +=0D + self.__NewDataType.Align =3D min(=0D + self.__PackAlign, max(pFieldType.Align, self.__NewDataType.Ali= gn))=0D + self.__NewDataType.HasBitField =3D True=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetDataType(self, TypeName):=0D + if TypeName =3D=3D None:=0D + return None, VfrReturnCode.VFR_RETURN_ERROR_SKIPED=0D +=0D + DataType =3D self.__DataTypeList=0D + while DataType !=3D None:=0D + if DataType.TypeName =3D=3D TypeName:=0D + return DataType, VfrReturnCode.VFR_RETURN_SUCCESS=0D + DataType =3D DataType.Next=0D + return None, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def DataTypeHasBitField(self, TypeName):=0D + if TypeName =3D=3D None:=0D + return False=0D +=0D + pType =3D self.__DataTypeList=0D + while pType !=3D None:=0D + if pType.TypeName =3D=3D TypeName:=0D + break=0D + pType =3D pType.Next=0D +=0D + if pType =3D=3D None:=0D + return False=0D +=0D + pTmp =3D pType.Members=0D + while pTmp !=3D None:=0D + if pTmp.IsBitField:=0D + return True=0D + pTmp =3D pTmp.Next=0D + return False=0D +=0D + def Dump(self, FileName):=0D + try:=0D + with open(FileName, 'w') as f:=0D + f.write("PackAlign =3D " + str(self.__PackAlign) + '\n')=0D + pNode =3D self.__DataTypeList=0D + while pNode !=3D None:=0D + f.write('struct {} : Align : {} TotalSize : '.format(= str(pNode.TypeName), str(pNode.Align)))=0D + f.write('%#x\n'%(pNode.TotalSize))=0D + # f.write(" struct " + str(pNode.TypeName) + " : " + "= Align " + str(pNode.Align)) + " TotalSize " + str('%#x'%pNode.TotalSize))= =0D + f.write('struct {} \n'.format(str(pNode.TypeName)))=0D + FNode =3D pNode.Members=0D + while(FNode !=3D None):=0D + if FNode.ArrayNum > 0:=0D + f.write('FieldName : {} , Offset : {}, ArrayNu= m : {} , FieldTypeName : {} , IsBitField : {} \n '.format(str(FNode.FieldNa= me), str(FNode.Offset), str(FNode.ArrayNum), str(FNode.FieldType.TypeName),= str(FNode.IsBitField)))=0D + else:=0D + f.write('FieldName : {} , Offset : {}, FieldTy= peName : {} , IsBitField : {} \n '.format(str(FNode.FieldName), str(FNode.= Offset), str(FNode.FieldType.TypeName), str(FNode.IsBitField)))=0D + FNode =3D FNode.Next=0D + f.write('\n')=0D + pNode =3D pNode.Next=0D + f.close()=0D + except IOError as e:=0D + print("error")=0D + pass=0D +=0D +class SVfrDefaultStoreNode(object):=0D +=0D + def __init__(self,=0D + ObjAddr=3DNone,=0D + RefName=3D'',=0D + DefaultStoreNameId=3D0,=0D + DefaultId=3D0):=0D + self.ObjAddr =3D ObjAddr=0D + self.RefName =3D RefName=0D + self.DefaultStoreNameId =3D DefaultStoreNameId=0D + self.DefaultId =3D DefaultId=0D + self.Next =3D None=0D +=0D +=0D +class CVfrDefaultStore(object):=0D +=0D + def __init__(self):=0D + self.__DefaultStoreList =3D None=0D +=0D + def RegisterDefaultStore(self, ObjAddr: EFI_IFR_DEFAULTSTORE, RefName,= DefaultStoreNameId, DefaultId):=0D + if RefName =3D=3D '' or RefName =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + pNode =3D self.__DefaultStoreList=0D + while pNode !=3D None:=0D + if pNode.RefName =3D=3D RefName:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D SVfrDefaultStoreNode(ObjAddr, RefName, DefaultStoreNameI= d, DefaultId)=0D +=0D + if pNode =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES=0D +=0D + pNode.Next =3D self.__DefaultStoreList=0D + self.__DefaultStoreList =3D pNode=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def DefaultIdRegistered(self, DefaultId):=0D + pNode =3D self.__DefaultStoreList=0D + while pNode !=3D None:=0D + if pNode.DefaultId =3D=3D DefaultId:=0D + return True=0D + pNode =3D pNode.Next=0D +=0D + return False=0D +=0D + def ReRegisterDefaultStoreById(self, DefaultId, RefName, DefaultStoreN= ameId):=0D +=0D + pNode =3D self.__DefaultStoreList=0D + while pNode !=3D None:=0D + if pNode.DefaultId =3D=3D DefaultId:=0D + break=0D + pNode =3D pNode.Next=0D +=0D + if pNode =3D=3D None:=0D + return None, VfrReturnCode.VFR_RETURN_UNDEFINED=0D + else:=0D + if pNode.DefaultStoreNameId =3D=3D EFI_STRING_ID_INVALID:=0D + pNode.DefaultStoreNameId =3D=3D DefaultStoreNameId=0D + pNode.RefName =3D RefName=0D + if pNode.ObjAddr !=3D None:=0D + pNode.ObjAddr.DefaultName =3D DefaultStoreNameId=0D + else:=0D + return None, VfrReturnCode.VFR_RETURN_REDEFINED=0D +=0D + return pNode, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetDefaultId(self, RefName):=0D + pTmp =3D self.__DefaultStoreList=0D + while(pTmp !=3D None):=0D + if pTmp.RefName =3D=3D RefName:=0D + DefaultId =3D pTmp.DefaultId=0D + return DefaultId, VfrReturnCode.VFR_RETURN_SUCCESS=0D + pTmp =3D pTmp.Next=0D + return None, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def BufferVarStoreAltConfigAdd(self, DefaultId, BaseInfo, VarStoreName= ,=0D + VarStoreGuid, Type, Value):=0D + if VarStoreName =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D + pNode =3D self.__DefaultStoreList=0D + while pNode !=3D None:=0D + if pNode.DefaultId =3D=3D DefaultId:=0D + break=0D + pNode =3D pNode.Next=0D + if pNode =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_UNDEFINED=0D + # pNode.DefaultId sprintf (NewAltCfg, "%04x", pNode->mDefaultId)=0D + gCVfrBufferConfig.Open()=0D + if gCVfrBufferConfig.Select(VarStoreName, VarStoreGuid) =3D=3D 0:= =0D + Returnvalue =3D gCVfrBufferConfig.Write('a', VarStoreName,=0D + VarStoreGuid,=0D + pNode.DefaultId, Type,=0D + BaseInfo.Info.VarOffset,= =0D + BaseInfo.VarTotalSize, V= alue)=0D + if Returnvalue !=3D 0:=0D + gCVfrBufferConfig.Close()=0D + return VfrReturnCode(Returnvalue)=0D + gCVfrBufferConfig.Close()=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D +=0D +=0D +class EFI_VFR_VARSTORE_TYPE(Enum):=0D + EFI_VFR_VARSTORE_INVALID =3D 0=0D + EFI_VFR_VARSTORE_BUFFER =3D 1=0D + EFI_VFR_VARSTORE_EFI =3D 2=0D + EFI_VFR_VARSTORE_NAME =3D 3=0D + EFI_VFR_VARSTORE_BUFFER_BITS =3D 4=0D +=0D +=0D +class EfiVar():=0D +=0D + def __init__(self, VarName=3D0, VarSize=3D0):=0D + self.EfiVarName =3D VarName=0D + self.EfiVarSize =3D VarSize=0D +=0D +=0D +DEFAULT_NAME_TABLE_ITEMS =3D 1024=0D +=0D +=0D +class SVfrVarStorageNode():=0D +=0D + def __init__(self,=0D + VarStoreName=3D'',=0D + VarStoreId=3D0,=0D + Guid=3DNone,=0D + Attributes=3D0,=0D + Flag=3DTrue,=0D + EfiValue=3DNone,=0D + DataType=3DNone,=0D + BitsVarstore=3DFalse):=0D +=0D + self.Guid =3D Guid=0D + self.VarStoreName =3D VarStoreName=0D + self.VarStoreId =3D VarStoreId=0D + self.AssignedFlag =3D Flag=0D + self.Attributes =3D Attributes=0D + self.Next =3D None=0D + self.EfiVar =3D EfiValue=0D + self.DataType =3D DataType=0D + self.NameSpace =3D []=0D +=0D + if EfiValue !=3D None:=0D + self.VarstoreType =3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_E= FI=0D + elif DataType !=3D None:=0D + if BitsVarstore:=0D + self.VarstoreType =3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTO= RE_BUFFER_BITS=0D + else:=0D + self.VarstoreType =3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTO= RE_BUFFER=0D + else:=0D + self.VarstoreType =3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_N= AME=0D +=0D +class SConfigItem():=0D +=0D + def __init__(self,=0D + Name=3DNone,=0D + Guid=3DNone,=0D + Id=3DNone,=0D + Type=3DNone,=0D + Offset=3DNone,=0D + Width=3DNone,=0D + Value=3DNone):=0D + self.Name =3D Name # varstore name=0D + self.Guid =3D Guid # varstore guid, varstore name + guid deside o= ne varstore=0D + self.Id =3D Id # default ID=0D + if Type !=3D None:=0D + # list of Offset/Value in the varstore=0D + self.InfoStrList =3D SConfigInfo(Type, Offset, Width, Value)=0D + else:=0D + self.InfoStrList =3D None=0D + self.Next =3D None=0D +=0D +=0D +class SConfigInfo():=0D +=0D + def __init__(self, Type, Offset, Width, Value: EFI_IFR_TYPE_VALUE):=0D + self.Type =3D Type=0D + self.Offset =3D Offset=0D + self.Width =3D Width=0D + self.Next =3D None=0D + self.Value =3D Value=0D +=0D +class CVfrBufferConfig(object):=0D + __metaclass__ =3D ABCMeta=0D +=0D + def __init__(self):=0D + self.__ItemListHead =3D None # SConfigItem=0D + self.__ItemListTail =3D None=0D + self.__ItemListPos =3D None=0D +=0D + def GetVarItemList(self):=0D + return self.__ItemListHead=0D +=0D + @abstractmethod=0D + def Open(self):=0D + self.__ItemListPos =3D self.__ItemListHead=0D +=0D + @abstractmethod=0D + def Close(self):=0D + self.__ItemListPos =3D None=0D +=0D + @abstractmethod=0D + def Select(self, Name, Guid, Id=3DNone):=0D + if Name =3D=3D None or Guid =3D=3D None:=0D + self.__ItemListPos =3D self.__ItemListHead=0D + return 0=0D + else:=0D + p =3D self.__ItemListHead=0D + while p !=3D None:=0D + if p.Name !=3D Name or p.Guid.__cmp__(Guid) =3D=3D False:= =0D + p =3D p.Next=0D + continue=0D + if Id !=3D None:=0D + if p.Id =3D=3D None or p.Id !=3D Id:=0D + p =3D p.Next=0D + continue=0D + elif p.Id !=3D None:=0D + p =3D p.Next=0D + continue=0D + self.__ItemListPos =3D p=0D + return 0=0D + return 1=0D +=0D + @abstractmethod=0D + def Register(self, Name, Guid, Id=3DNone):=0D + if self.Select(Name, Guid) =3D=3D 0:=0D + return 1=0D + pNew =3D SConfigItem(Name, Guid, Id)=0D + if pNew =3D=3D None:=0D + return 2=0D + if self.__ItemListHead =3D=3D None:=0D + self.__ItemListHead =3D pNew=0D + self.__ItemListTail =3D pNew=0D + else:=0D + self.__ItemListTail.Next =3D pNew=0D + self.__ItemListTail =3D pNew=0D + self.__ItemListPos =3D pNew=0D + return 0=0D +=0D + @abstractmethod=0D + def Write(self, Mode, Name, Guid, Id, Type, Offset, Width,=0D + Value: EFI_IFR_TYPE_VALUE):=0D + Ret =3D self.Select(Name, Guid)=0D + if Ret !=3D 0:=0D + return Ret=0D +=0D + if Mode =3D=3D 'a': # add=0D + if self.Select(Name, Guid, Id) !=3D 0:=0D + pItem =3D SConfigItem(Name, Guid, Id, Type, Offset, Width,= Value)=0D + if pItem =3D=3D None:=0D + return 2=0D +=0D + if self.__ItemListHead =3D=3D None:=0D + self.__ItemListHead =3D pItem=0D + self.__ItemListTail =3D pItem=0D + else:=0D + self.__ItemListTail.Next =3D pItem=0D + self.__ItemListTail =3D pItem=0D +=0D + self.__ItemListPos =3D pItem=0D +=0D + else:=0D + # tranverse the list to find out if there's already the va= lue for the same offset=0D + pInfo =3D self.__ItemListPos.InfoStrList=0D + while pInfo !=3D None:=0D + if pInfo.Offset =3D=3D Offset:=0D + return 0=0D + pInfo =3D pInfo.Next=0D +=0D + pInfo =3D SConfigInfo(Type, Offset, Width, Value)=0D + if pInfo =3D=3D None:=0D + return 2=0D +=0D + pInfo.Next =3D self.__ItemListPos.InfoStrList=0D + self.__ItemListPos.InfoStrList =3D pInfo=0D +=0D + elif Mode =3D=3D 'd': # delete=0D + if self.__ItemListHead =3D=3D self.__ItemListPos:=0D + self.__ItemListHead =3D self.__ItemListPos.Next=0D +=0D + pItem =3D self.__ItemListHead=0D + while pItem.Next !=3D self.__ItemListPos:=0D + pItem =3D pItem.Next=0D + pItem.Next =3D self.__ItemListPos.Next=0D +=0D + if self.__ItemListTail =3D=3D self.__ItemListPos:=0D + self.__ItemListTail =3D pItem=0D +=0D + self.__ItemListPos =3D pItem.Next=0D +=0D + elif Mode =3D=3D 'i': # set info=0D + if Id !=3D None:=0D + self.__ItemListPos.Id =3D Id=0D + else:=0D + return 1=0D + return 0=0D +=0D +gCVfrBufferConfig =3D CVfrBufferConfig()=0D +=0D +class EFI_VARSTORE_INFO(Structure):=0D + _pack_ =3D 1=0D + _fields_ =3D [=0D + ('VarStoreId', c_uint16),=0D + ('Info', VarStoreInfoNode),=0D + ('VarType', c_uint8),=0D + ('VarTotalSize', c_uint32),=0D + ('IsBitVar', c_bool),=0D + ]=0D +=0D + def __init__(self,=0D + VarStoreId=3DEFI_VARSTORE_ID_INVALID,=0D + VarName=3DEFI_STRING_ID_INVALID,=0D + VarOffset=3DEFI_VAROFFSET_INVALID,=0D + VarType=3DEFI_IFR_TYPE_OTHER,=0D + VarTotalSize=3D0,=0D + IsBitVar=3DFalse):=0D +=0D + self.VarStoreId =3D VarStoreId=0D + self.Info.VarName =3D VarName=0D + self.Info.VarOffset =3D VarOffset=0D + self.VarTotalSize =3D VarTotalSize=0D + self.IsBitVar =3D IsBitVar=0D + self.VarType =3D VarType=0D +=0D +=0D +class BufferVarStoreFieldInfoNode():=0D +=0D + def __init__(self, BaseInfo: EFI_VARSTORE_INFO):=0D +=0D + self.VarStoreInfo =3D EFI_VARSTORE_INFO()=0D + self.VarStoreInfo.VarType =3D BaseInfo.VarType=0D + self.VarStoreInfo.VarTotalSize =3D BaseInfo.VarTotalSize=0D + self.VarStoreInfo.Info.VarOffset =3D BaseInfo.Info.VarOffset=0D + self.VarStoreInfo.VarStoreId =3D BaseInfo.VarStoreId=0D + self.Next =3D None=0D +=0D +=0D +class CVfrDataStorage(object):=0D +=0D + def __init__(self):=0D + self.__BufferVarStoreList =3D None # SVfrVarStorageNode=0D + self.__EfiVarStoreList =3D None=0D + self.__NameVarStoreList =3D None=0D + self.__CurrVarStorageNode =3D None=0D + self.__NewVarStorageNode =3D None=0D + self.__BufferFieldInfoListHead =3D None=0D + self.__mBufferFieldInfoListTail =3D None=0D + self.__FreeVarStoreIdBitMap =3D []=0D + for i in range(0, EFI_FREE_VARSTORE_ID_BITMAP_SIZE):=0D + self.__FreeVarStoreIdBitMap.append(0)=0D + #Question ID0 is reserved=0D + self.__FreeVarStoreIdBitMap[0] =3D 0x80000000=0D +=0D + def GetBufferVarStoreList(self):=0D + return self.__BufferVarStoreList=0D +=0D + def __CheckGuidField(self, pNode, StoreGuid, HasFoundOne, ReturnCode):= =0D + if StoreGuid !=3D None:=0D + #=E3=80=80If has guid info, compare the guid filed.=0D + if pNode.Guid.__cmp__(StoreGuid):=0D + self.__CurrVarStorageNode =3D pNode=0D + ReturnCode =3D VfrReturnCode.VFR_RETURN_SUCCESS=0D + return True, ReturnCode, HasFoundOne=0D + else:=0D + #=E3=80=80not has Guid field, check whether this name is the o= nly one.=0D + if HasFoundOne:=0D + # The name has conflict, return name redefined.=0D + ReturnCode =3D VfrReturnCode.VFR_RETURN_VARSTORE_NAME_REDE= FINED_ERROR=0D + return True, ReturnCode, HasFoundOne=0D +=0D + self.__CurrVarStorageNode =3D pNode=0D + HasFoundOne =3D True=0D + return False, ReturnCode, HasFoundOne=0D +=0D + def __GetVarStoreByDataType(self, DataTypeName, VarGuid):=0D + MatchNode =3D None=0D + pNode =3D self.__BufferVarStoreList=0D + while pNode !=3D None:=0D + if pNode.DataType.TypeName !=3D DataTypeName:=0D + pNode =3D pNode.Next=0D + continue=0D + if VarGuid !=3D None:=0D + if pNode.Guid.__cmp__(VarGuid):=0D + return pNode, VfrReturnCode.VFR_RETURN_SUCCESS=0D + else:=0D + if MatchNode =3D=3D None:=0D + MatchNode =3D pNode=0D + else:=0D + # More than one varstores referred the same data struc= tures=0D + return None, VfrReturnCode.VFR_RETURN_VARSTORE_DATATYP= E_REDEFINED_ERROR=0D + pNode =3D pNode.Next=0D +=0D + if MatchNode =3D=3D None:=0D + return MatchNode, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + return MatchNode, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + """=0D + Base on the input store name and guid to find the varstore id.=0D + If both name and guid are inputed, base on the name and guid to=0D + found the varstore. If only name inputed, base on the name to=0D + found the varstore and go on to check whether more than one varstor= e=0D + has the same name. If only has found one varstore, return this=0D + varstore; if more than one varstore has same name, return varstore= =0D + name redefined error. If no varstore found by varstore name, call=0D + function GetVarStoreByDataType and use inputed varstore name as=0D + data type name to search.=0D + """=0D +=0D + def GetVarStoreId(self, StoreName, StoreGuid=3DNone):=0D +=0D + ReturnCode =3D None=0D + HasFoundOne =3D False=0D + self.__CurrVarStorageNode =3D None=0D +=0D + pNode =3D self.__BufferVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreName =3D=3D StoreName:=0D + Result, ReturnCode, HasFoundOne =3D self.__CheckGuidField(= =0D + pNode, StoreGuid, HasFoundOne, ReturnCode)=0D + if Result:=0D + VarStoreId =3D self.__CurrVarStorageNode.VarStoreId=0D + return VarStoreId, ReturnCode=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__EfiVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreName =3D=3D StoreName:=0D + Result, ReturnCode, HasFoundOne =3D self.__CheckGuidField(= =0D + pNode, StoreGuid, HasFoundOne, ReturnCode)=0D + if Result:=0D + VarStoreId =3D self.__CurrVarStorageNode.VarStoreId=0D + return VarStoreId, ReturnCode=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__NameVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreName =3D=3D StoreName:=0D + Result, ReturnCode, HasFoundOne =3D self.__CheckGuidField(= =0D + pNode, StoreGuid, HasFoundOne, ReturnCode)=0D + if Result:=0D + VarStoreId =3D self.__CurrVarStorageNode.VarStoreId=0D + return VarStoreId, ReturnCode=0D + pNode =3D pNode.Next=0D +=0D + if HasFoundOne:=0D + VarStoreId =3D self.__CurrVarStorageNode.VarStoreId=0D + return VarStoreId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + VarStoreId =3D EFI_VARSTORE_ID_INVALID=0D + pNode, ReturnCode =3D self.__GetVarStoreByDataType(StoreName,=0D + StoreGuid) #=0D + if pNode !=3D None:=0D + self.__CurrVarStorageNode =3D pNode=0D + VarStoreId =3D pNode.VarStoreId=0D +=0D + return VarStoreId, ReturnCode=0D +=0D + def __GetFreeVarStoreId(self, VarType):=0D +=0D + Index =3D 0=0D + for i in range(0, EFI_FREE_VARSTORE_ID_BITMAP_SIZE):=0D + if self.__FreeVarStoreIdBitMap[i] !=3D 0xFFFFFFFF:=0D + Index =3D i=0D + break=0D + if Index =3D=3D EFI_FREE_VARSTORE_ID_BITMAP_SIZE:=0D + return EFI_VARSTORE_ID_INVALID=0D +=0D + Offset =3D 0=0D + Mask =3D 0x80000000=0D + while Mask !=3D 0:=0D + if (self.__FreeVarStoreIdBitMap[Index] & Mask) =3D=3D 0:=0D + self.__FreeVarStoreIdBitMap[Index] |=3D Mask=0D + return (Index << EFI_BITS_SHIFT_PER_UINT32) + Offset=0D + Mask >>=3D 1=0D + Offset +=3D 1=0D + return EFI_VARSTORE_ID_INVALID=0D +=0D + def __CheckVarStoreIdFree(self, VarStoreId):=0D +=0D + Index =3D int(VarStoreId / EFI_BITS_PER_UINT32)=0D + Offset =3D VarStoreId % EFI_BITS_PER_UINT32=0D + return (self.__FreeVarStoreIdBitMap[Index] &=0D + (0x80000000 >> Offset)) =3D=3D 0=0D +=0D + def __MarkVarStoreIdUsed(self, VarStoreId):=0D +=0D + Index =3D int(VarStoreId / EFI_BITS_PER_UINT32)=0D + Offset =3D VarStoreId % EFI_BITS_PER_UINT32=0D + self.__FreeVarStoreIdBitMap[Index] |=3D (0x80000000 >> Offset)=0D +=0D + def DeclareBufferVarStore(self,=0D + StoreName,=0D + Guid,=0D + DataTypeDB,=0D + TypeName,=0D + VarStoreId,=0D + IsBitVarStore,=0D + Attr=3D0,=0D + Flag=3DTrue):=0D +=0D + if StoreName =3D=3D None or Guid =3D=3D None or DataTypeDB =3D=3D = None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D + _, ReturnCode =3D self.GetVarStoreId(StoreName, Guid)=0D +=0D + if ReturnCode =3D=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D +=0D + DataType, ReturnCode =3D DataTypeDB.GetDataType(TypeName)=0D +=0D + if ReturnCode !=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return ReturnCode=0D +=0D + if VarStoreId =3D=3D EFI_VARSTORE_ID_INVALID:=0D + VarStoreId =3D self.__GetFreeVarStoreId(=0D + EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_BUFFER)=0D + else:=0D + if self.__CheckVarStoreIdFree(VarStoreId) =3D=3D False:=0D + return VfrReturnCode.VFR_RETURN_VARSTOREID_REDEFINED=0D + self.__MarkVarStoreIdUsed(VarStoreId)=0D + pNew =3D SVfrVarStorageNode(StoreName, VarStoreId, Guid, Attr, Fla= g, None,=0D + DataType, IsBitVarStore)=0D +=0D + if pNew =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES=0D +=0D + pNew.Next =3D self.__BufferVarStoreList=0D + self.__BufferVarStoreList =3D pNew=0D +=0D + if gCVfrBufferConfig.Register(StoreName, Guid) !=3D 0:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def DeclareNameVarStoreBegin(self, StoreName, VarStoreId):=0D + if StoreName =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + _, ReturnCode =3D self.GetVarStoreId(StoreName)=0D + if ReturnCode =3D=3D VfrReturnCode.VFR_RETURN_SUCCESS:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D +=0D + if VarStoreId =3D=3D EFI_VARSTORE_ID_INVALID:=0D + VarStoreId =3D self.__GetFreeVarStoreId(=0D + EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_NAME)=0D + else:=0D + if self.__CheckVarStoreIdFree(VarStoreId) =3D=3D False:=0D + return VfrReturnCode.VFR_RETURN_VARSTOREID_REDEFINED=0D + self.__MarkVarStoreIdUsed(VarStoreId)=0D +=0D + pNode =3D SVfrVarStorageNode(StoreName, VarStoreId)=0D +=0D + if pNode =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES=0D +=0D + self.__NewVarStorageNode =3D pNode=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def DeclareNameVarStoreEnd(self, Guid):=0D + self.__NewVarStorageNode.Guid =3D Guid=0D + self.__NewVarStorageNode.Next =3D self.__NameVarStoreList=0D + self.__NameVarStoreList =3D self.__NewVarStorageNode=0D + self.__NewVarStorageNode =3D None=0D +=0D + def NameTableAddItem(self, Item):=0D + self.__NewVarStorageNode.NameSpace.append(Item)=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetNameVarStoreInfo(self, BaseInfo, Index):=0D + if BaseInfo =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + if self.__CurrVarStorageNode =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_GET_NVVARSTORE_ERROR=0D +=0D + BaseInfo.Info.VarName =3D self.__CurrVarStorageNode.NameSpace[Inde= x]=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetVarStoreType(self, VarStoreId):=0D +=0D + VarStoreType =3D EFI_VFR_VARSTORE_TYPE.EFI_VFR_VARSTORE_INVALID=0D +=0D + if VarStoreId =3D=3D EFI_VARSTORE_ID_INVALID:=0D + return VarStoreType=0D +=0D + pNode =3D self.__BufferVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + VarStoreType =3D pNode.VarstoreType=0D + return VarStoreType=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__EfiVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + VarStoreType =3D pNode.VarstoreType=0D + return VarStoreType=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__NameVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + VarStoreType =3D pNode.VarstoreType=0D + return VarStoreType=0D + pNode =3D pNode.Next=0D +=0D + return VarStoreType=0D +=0D + def GetVarStoreName(self, VarStoreId):=0D +=0D + pNode =3D self.__BufferVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + return pNode.VarStoreName, VfrReturnCode.VFR_RETURN_SUCCES= S=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__EfiVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + return pNode.VarStoreName, VfrReturnCode.VFR_RETURN_SUCCES= S=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__NameVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + return pNode.VarStoreName, VfrReturnCode.VFR_RETURN_SUCCES= S=0D + pNode =3D pNode.Next=0D +=0D + return None, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D +=0D + def GetBufferVarStoreDataTypeName(self, VarStoreId):=0D +=0D + DataTypeName =3D None=0D + if VarStoreId =3D=3D EFI_VARSTORE_ID_INVALID:=0D + return DataTypeName, VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + pNode =3D self.__BufferVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + DataTypeName =3D pNode.DataType.TypeName=0D + return DataTypeName, VfrReturnCode.VFR_RETURN_SUCCESS=0D + pNode =3D pNode.Next=0D +=0D + return DataTypeName, VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def GetEfiVarStoreInfo(self, BaseInfo: EFI_VARSTORE_INFO):=0D +=0D + if BaseInfo =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + if self.__CurrVarStorageNode =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_GET_EFIVARSTORE_ERROR=0D +=0D + BaseInfo.Info.VarName =3D self.__CurrVarStorageNode.EfiVar.EfiVarN= ame=0D + BaseInfo.VarTotalSize =3D self.__CurrVarStorageNode.EfiVar.EfiVarS= ize=0D +=0D + if BaseInfo.VarTotalSize =3D=3D 1:=0D + BaseInfo.VarType =3D EFI_IFR_TYPE_NUM_SIZE_8=0D + elif BaseInfo.VarTotalSize =3D=3D 2:=0D + BaseInfo.VarType =3D EFI_IFR_TYPE_NUM_SIZE_16=0D + elif BaseInfo.VarTotalSize =3D=3D 4:=0D + BaseInfo.VarType =3D EFI_IFR_TYPE_NUM_SIZE_32=0D + elif BaseInfo.VarTotalSize =3D=3D 8:=0D + BaseInfo.VarType =3D EFI_IFR_TYPE_NUM_SIZE_64=0D + else:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetVarStoreGuid(self, VarStoreId):=0D +=0D + VarGuid =3D None=0D + if VarStoreId =3D=3D EFI_VARSTORE_ID_INVALID:=0D + return VarGuid=0D +=0D + pNode =3D self.__BufferVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + VarGuid =3D pNode.Guid=0D + return VarGuid=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__EfiVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + VarGuid =3D pNode.Guid=0D + return VarGuid=0D + pNode =3D pNode.Next=0D +=0D + pNode =3D self.__NameVarStoreList=0D + while pNode !=3D None:=0D + if pNode.VarStoreId =3D=3D VarStoreId:=0D + VarGuid =3D pNode.Guid=0D + return VarGuid=0D + pNode =3D pNode.Next=0D +=0D + return VarGuid=0D +=0D + def AddBufferVarStoreFieldInfo(self, BaseInfo: EFI_VARSTORE_INFO):=0D +=0D + pNew =3D BufferVarStoreFieldInfoNode(BaseInfo)=0D + if pNew =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + if self.__BufferFieldInfoListHead =3D=3D None:=0D + self.__BufferFieldInfoListHead =3D pNew=0D + self.__mBufferFieldInfoListTail =3D pNew=0D + else:=0D + self.__mBufferFieldInfoListTail.Next =3D pNew=0D + self.__mBufferFieldInfoListTail =3D pNew=0D +=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D +=0D +class CVfrStringDB(object):=0D +=0D + def __init__(self):=0D + self.__StringFileName =3D ''=0D +=0D + def GetVarStoreNameFromStringId(self, StringId):=0D + if self.__StringFileName =3D=3D '':=0D + return None=0D + try:=0D + f =3D open(self.__StringFileName)=0D + StringPtr =3D f.read()=0D + f.close()=0D + except IOError:=0D + print('Error')=0D +=0D +gCVfrStringDB =3D CVfrStringDB()=0D +=0D +EFI_RULE_ID_START =3D 0x01=0D +EFI_RULE_ID_INVALID =3D 0x00=0D +=0D +=0D +class SVfrRuleNode():=0D +=0D + def __init__(self, RuleName=3DNone, RuleId=3D0):=0D + self.RuleId =3D RuleId=0D + self.RuleName =3D RuleName=0D + self.Next =3D None=0D +=0D +=0D +class CVfrRulesDB(object):=0D +=0D + def __init__(self):=0D + self.__RuleList =3D None=0D + self.__FreeRuleId =3D EFI_VARSTORE_ID_START=0D +=0D + def RegisterRule(self, RuleName):=0D + if RuleName =3D=3D None:=0D + return=0D +=0D + pNew =3D SVfrRuleNode(RuleName, self.__FreeRuleId)=0D + if pNew =3D=3D None: return=0D + self.__FreeRuleId +=3D 1=0D + pNew.Next =3D self.__RuleList=0D + self.__RuleList =3D pNew=0D +=0D + def GetRuleId(self, RuleName):=0D + if RuleName =3D=3D None:=0D + return=0D +=0D + pNode =3D self.__RuleList=0D + while pNode !=3D None:=0D + if pNode.RuleName =3D=3D RuleName:=0D + return pNode.RuleId=0D + pNode =3D pNode.Next=0D +=0D + return EFI_RULE_ID_INVALID=0D +=0D +=0D +EFI_QUESTION_ID_MAX =3D 0xFFFF=0D +EFI_FREE_QUESTION_ID_BITMAP_SIZE =3D int(=0D + (EFI_QUESTION_ID_MAX + 1) / EFI_BITS_PER_UINT32)=0D +EFI_QUESTION_ID_INVALID =3D 0x0=0D +=0D +=0D +class EFI_QUESION_TYPE(Enum):=0D + QUESTION_NORMAL =3D 0=0D + QUESTION_DATE =3D 1=0D + QUESTION_TIME =3D 2=0D + QUESTION_REF =3D 3=0D +=0D +=0D +class SVfrQuestionNode():=0D +=0D + def __init__(self, Name=3DNone, VarIdStr=3DNone, BitMask=3D0): #=0D + self.Name =3D Name=0D + self.VarIdStr =3D VarIdStr=0D + self.QuestionId =3D EFI_QUESTION_ID_INVALID=0D + self.BitMask =3D BitMask=0D + self.Next =3D None=0D + self.QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D +=0D +=0D +DATE_YEAR_BITMASK =3D 0x0000FFFF=0D +DATE_MONTH_BITMASK =3D 0x00FF0000=0D +DATE_DAY_BITMASK =3D 0xFF000000=0D +TIME_HOUR_BITMASK =3D 0x000000FF=0D +TIME_MINUTE_BITMASK =3D 0x0000FF00=0D +TIME_SECOND_BITMASK =3D 0x00FF0000=0D +=0D +=0D +class CVfrQuestionDB(object):=0D +=0D + def __init__(self):=0D + self.__FreeQIdBitMap =3D []=0D + for i in range(0, EFI_FREE_QUESTION_ID_BITMAP_SIZE):=0D + self.__FreeQIdBitMap.append(0)=0D +=0D + # Question ID 0 is reserved.=0D + self.__FreeQIdBitMap[0] =3D 0x80000000=0D +=0D + self.__QuestionList =3D None=0D +=0D + def FindQuestionByName(self, Name):=0D + if Name =3D=3D None:=0D + return VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + pNode =3D self.__QuestionList=0D + while pNode !=3D None:=0D + if pNode.Name =3D=3D Name:=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D + pNode =3D pNode.Next=0D +=0D + return VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def FindQuestionById(self, QuestionId):=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + return VfrReturnCode.VFR_RETURN_INVALID_PARAMETER=0D +=0D + pNode =3D self.__QuestionList=0D + while pNode !=3D None:=0D + if pNode.QuestionId =3D=3D QuestionId:=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D + pNode =3D pNode.Next=0D +=0D + return VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + def __GetFreeQuestionId(self):=0D +=0D + Index =3D 0=0D + for i in range(0, EFI_FREE_QUESTION_ID_BITMAP_SIZE):=0D + if self.__FreeQIdBitMap[i] !=3D 0xFFFFFFFF:=0D + Index =3D i=0D + break=0D + if Index =3D=3D EFI_FREE_QUESTION_ID_BITMAP_SIZE:=0D + return EFI_QUESTION_ID_INVALID=0D +=0D + Offset =3D 0=0D + Mask =3D 0x80000000=0D + while Mask !=3D 0:=0D + if (self.__FreeQIdBitMap[Index] & Mask) =3D=3D 0:=0D + self.__FreeQIdBitMap[Index] |=3D Mask=0D + return (Index << EFI_BITS_SHIFT_PER_UINT32) + Offset=0D + Mask >>=3D 1=0D + Offset +=3D 1=0D +=0D + return EFI_QUESTION_ID_INVALID=0D +=0D + def __CheckQuestionIdFree(self, QId):=0D + Index =3D int(QId / EFI_BITS_PER_UINT32)=0D + Offset =3D QId % EFI_BITS_PER_UINT32=0D + return (self.__FreeQIdBitMap[Index] & (0x80000000 >> Offset)) =3D= =3D 0=0D +=0D + def __MarkQuestionIdUsed(self, QId):=0D +=0D + Index =3D int(QId / EFI_BITS_PER_UINT32)=0D + Offset =3D QId % EFI_BITS_PER_UINT32=0D + self.__FreeQIdBitMap[Index] |=3D (0x80000000 >> Offset)=0D +=0D + def __MarkQuestionIdUnused(self, QId):=0D + Index =3D int(QId / EFI_BITS_PER_UINT32)=0D + Offset =3D QId % EFI_BITS_PER_UINT32=0D + self.__FreeQIdBitMap[Index] &=3D ~(0x80000000 >> Offset)=0D +=0D + def RegisterQuestion(self, Name, VarIdStr, QuestionId):=0D +=0D + if (Name !=3D None) and (self.FindQuestionByName(Name) =3D=3D VfrR= eturnCode.VFR_RETURN_SUCCESS):=0D + return QuestionId, VfrReturnCode.VFR_RETURN_REDEFINED=0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStr)=0D + if pNode =3D=3D None:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_QUESTIONID_RED= EFINED=0D + self.__MarkQuestionIdUsed(QuestionId)=0D +=0D + pNode.QuestionId =3D QuestionId=0D + pNode.Next =3D self.__QuestionList=0D + self.__QuestionList =3D pNode=0D +=0D + # gCFormPkg.DoPendingAssign=0D +=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def UpdateQuestionId(self, QId, NewQId):=0D +=0D + if QId =3D=3D NewQId:=0D + # don't update=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + if self.__CheckQuestionIdFree(NewQId) =3D=3D False:=0D + return VfrReturnCode.VFR_RETURN_REDEFINED=0D +=0D + pNode =3D self.__QuestionList=0D + TempList =3D []=0D + while pNode !=3D None:=0D + if pNode.QuestionId =3D=3D QId:=0D + TempList.append(pNode)=0D + pNode =3D pNode.Next=0D +=0D + if len(TempList) =3D=3D 0:=0D + return VfrReturnCode.VFR_RETURN_UNDEFINED=0D +=0D + self.__MarkQuestionIdUnused(QId)=0D +=0D + for pNode in TempList:=0D + pNode.QuestionId =3D NewQId=0D +=0D + self.__MarkQuestionIdUsed(NewQId)=0D +=0D + # gCFormPkg.DoPendingAssign=0D + return VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def GetQuestionId(self, Name, VarIdStr=3DNone, QType=3DNone):=0D +=0D + QuestionId =3D EFI_QUESTION_ID_INVALID=0D + BitMask =3D 0x00000000=0D + if QType !=3D None:=0D + QType =3D EFI_QUESION_TYPE.QUESTION_NORMAL=0D +=0D + if Name =3D=3D None and VarIdStr =3D=3D None:=0D + return QuestionId, BitMask, QType=0D +=0D + pNode =3D self.__QuestionList=0D + while pNode !=3D None:=0D +=0D + if Name !=3D None:=0D + if pNode.Name !=3D Name:=0D + pNode =3D pNode.Next=0D + continue=0D +=0D + if VarIdStr !=3D None:=0D + if pNode.VarIdStr !=3D VarIdStr:=0D + pNode =3D pNode.Next=0D + continue=0D +=0D + QuestionId =3D pNode.QuestionId=0D + BitMask =3D pNode.BitMask=0D + if QType !=3D None:=0D + QType =3D pNode.QType=0D + break=0D +=0D + return QuestionId, BitMask, QType=0D +=0D + def RegisterNewDateQuestion(self, Name, BaseVarId, QuestionId):=0D +=0D + if BaseVarId =3D=3D '' and Name =3D=3D None:=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_REDEFINED= =0D + self.__MarkQuestionIdUsed(QuestionId)=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + VarIdStrList =3D []=0D + if BaseVarId !=3D '':=0D + VarIdStrList.append(BaseVarId + '.Year')=0D + VarIdStrList.append(BaseVarId + '.Month')=0D + VarIdStrList.append(BaseVarId + '.Day')=0D +=0D + else:=0D + VarIdStrList.append(Name + '.Year')=0D + VarIdStrList.append(Name + '.Month')=0D + VarIdStrList.append(Name + '.Day')=0D +=0D + pNodeList =3D []=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[0], DATE_YEAR_BITMAS= K)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[1], DATE_MONTH_BITMA= SK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[2], DATE_DAY_BITMASK= )=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_REDEFINED=0D + self.__MarkQuestionIdUsed(QuestionId)=0D +=0D + pNodeList[0].QuestionId =3D QuestionId=0D + pNodeList[1].QuestionId =3D QuestionId=0D + pNodeList[2].QuestionId =3D QuestionId=0D + pNodeList[0].QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + pNodeList[1].QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + pNodeList[2].QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + pNodeList[0].Next =3D pNodeList[1]=0D + pNodeList[1].Next =3D pNodeList[2]=0D + pNodeList[2].Next =3D self.__QuestionList=0D + self.__QuestionList =3D pNodeList[0]=0D +=0D + # DoPendingAssign=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def RegisterNewTimeQuestion(self, Name, BaseVarId, QuestionId):=0D + if BaseVarId =3D=3D '' and Name =3D=3D None:=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_REDEFINED= =0D + self.__MarkQuestionIdUsed(QuestionId)=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + VarIdStrList =3D []=0D + if BaseVarId !=3D '':=0D + VarIdStrList.append(BaseVarId + '.Hour')=0D + VarIdStrList.append(BaseVarId + '.Minute')=0D + VarIdStrList.append(BaseVarId + '.Second')=0D +=0D + else:=0D + VarIdStrList.append(Name + '.Hour')=0D + VarIdStrList.append(Name + '.Minute')=0D + VarIdStrList.append(Name + '.Second')=0D +=0D + pNodeList =3D []=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[0], TIME_HOUR_BITMAS= K)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[1], TIME_MINUTE_BITM= ASK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[2], TIME_SECOND_BITM= ASK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_REDEFINED=0D + self.__MarkQuestionIdUsed(QuestionId)=0D +=0D + pNodeList[0].QuestionId =3D QuestionId=0D + pNodeList[1].QuestionId =3D QuestionId=0D + pNodeList[2].QuestionId =3D QuestionId=0D + pNodeList[0].QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + pNodeList[1].QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + pNodeList[2].QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + pNodeList[0].Next =3D pNodeList[1]=0D + pNodeList[1].Next =3D pNodeList[2]=0D + pNodeList[2].Next =3D self.__QuestionList=0D + self.__QuestionList =3D pNodeList[0]=0D +=0D + # DoPendingAssign=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def RegisterRefQuestion(self, Name, BaseVarId, QuestionId):=0D +=0D + if BaseVarId =3D=3D '' and Name =3D=3D None:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_FATAL_ERROR=0D +=0D + VarIdStrList =3D []=0D + if BaseVarId !=3D '':=0D + VarIdStrList.append(BaseVarId + '.QuestionId')=0D + VarIdStrList.append(BaseVarId + '.FormId')=0D + VarIdStrList.append(BaseVarId + '.FormSetGuid')=0D + VarIdStrList.append(BaseVarId + '.DevicePath')=0D +=0D + else:=0D + VarIdStrList.append(BaseVarId + '.QuestionId')=0D + VarIdStrList.append(BaseVarId + '.FormId')=0D + VarIdStrList.append(BaseVarId + '.FormSetGuid')=0D + VarIdStrList.append(BaseVarId + '.DevicePath')=0D +=0D + pNodeList =3D []=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[0])=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[1])=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[2])=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + pNode =3D SVfrQuestionNode(Name, VarIdStrList[3])=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_OUT_FOR_RESOURCES= =0D +=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_REDEFINED=0D + self.__MarkQuestionIdUsed(QuestionId)=0D +=0D + pNodeList[0].QuestionId =3D QuestionId=0D + pNodeList[1].QuestionId =3D QuestionId=0D + pNodeList[2].QuestionId =3D QuestionId=0D + pNodeList[3].QuestionId =3D QuestionId=0D +=0D + pNodeList[0].QType =3D EFI_QUESION_TYPE.QUESTION_REF=0D + pNodeList[1].QType =3D EFI_QUESION_TYPE.QUESTION_REF=0D + pNodeList[2].QType =3D EFI_QUESION_TYPE.QUESTION_REF=0D + pNodeList[3].QType =3D EFI_QUESION_TYPE.QUESTION_REF=0D +=0D + pNodeList[0].Next =3D pNodeList[1]=0D + pNodeList[1].Next =3D pNodeList[2]=0D + pNodeList[2].Next =3D pNodeList[3]=0D + pNodeList[3].Next =3D self.__QuestionList=0D + self.__QuestionList =3D pNodeList[0]=0D + x =3D self.__QuestionList=0D +=0D + # DoPendingAssign=0D +=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def RegisterOldDateQuestion(self, YearVarId, MonthVarId, DayVarId, Que= stionId):=0D + pNodeList =3D []=0D + if YearVarId =3D=3D '' or MonthVarId =3D=3D '' or DayVarId =3D=3D = '' or YearVarId =3D=3D None or MonthVarId =3D=3D None or DayVarId =3D=3D No= ne:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_ERROR_SKIPED=0D +=0D + pNode =3D SVfrQuestionNode(None, YearVarId, DATE_YEAR_BITMASK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_OUT_F= OR_RESOURCES=0D +=0D + pNode =3D SVfrQuestionNode(None, MonthVarId, DATE_MONTH_BITMASK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_OUT_F= OR_RESOURCES=0D +=0D + pNode =3D SVfrQuestionNode(None, DayVarId, DATE_DAY_BITMASK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_OUT_F= OR_RESOURCES=0D +=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_R= EDEFINED=0D + self.__MarkQuestionIdUsed(QuestionId)=0D +=0D + pNodeList[0].QuestionId =3D QuestionId=0D + pNodeList[1].QuestionId =3D QuestionId=0D + pNodeList[2].QuestionId =3D QuestionId=0D + pNodeList[0].QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + pNodeList[1].QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + pNodeList[2].QType =3D EFI_QUESION_TYPE.QUESTION_DATE=0D + pNodeList[0].Next =3D pNodeList[1]=0D + pNodeList[1].Next =3D pNodeList[2]=0D + pNodeList[2].Next =3D self.__QuestionList=0D + self.__QuestionList =3D pNodeList[0]=0D +=0D + # DoPendingAssign=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def RegisterOldTimeQuestion(self, HourVarId, MinuteVarId, SecondVarId,= QuestionId):=0D + pNodeList =3D []=0D + if HourVarId =3D=3D '' or MinuteVarId =3D=3D '' or SecondVarId =3D= =3D '' or HourVarId =3D=3D None or MinuteVarId =3D=3D None or SecondVarId = =3D=3D None:=0D + return QuestionId, VfrReturnCode.VFR_RETURN_ERROR_SKIPED=0D +=0D + pNode =3D SVfrQuestionNode(None, HourVarId, TIME_HOUR_BITMASK)=0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_OUT_F= OR_RESOURCES=0D +=0D + pNode =3D SVfrQuestionNode(None, MinuteVarId, TIME_MINUTE_BITMASK)= =0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_OUT_F= OR_RESOURCES=0D +=0D + pNode =3D SVfrQuestionNode(None, SecondVarId, TIME_SECOND_BITMASK)= =0D + if pNode !=3D None:=0D + pNodeList.append(pNode)=0D + else:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_OUT_F= OR_RESOURCES=0D +=0D + if QuestionId =3D=3D EFI_QUESTION_ID_INVALID:=0D + QuestionId =3D self.__GetFreeQuestionId()=0D + else:=0D + if self.__CheckQuestionIdFree(QuestionId) =3D=3D False:=0D + return EFI_QUESTION_ID_INVALID, VfrReturnCode.VFR_RETURN_R= EDEFINED=0D + self.__MarkQuestionIdUsed(QuestionId)=0D +=0D + pNodeList[0].QuestionId =3D QuestionId=0D + pNodeList[1].QuestionId =3D QuestionId=0D + pNodeList[2].QuestionId =3D QuestionId=0D + pNodeList[0].QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + pNodeList[1].QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + pNodeList[2].QType =3D EFI_QUESION_TYPE.QUESTION_TIME=0D + pNodeList[0].Next =3D pNodeList[1]=0D + pNodeList[1].Next =3D pNodeList[2]=0D + pNodeList[2].Next =3D self.__QuestionList=0D + self.__QuestionList =3D pNodeList[0]=0D +=0D + # DoPendingAssign=0D + return QuestionId, VfrReturnCode.VFR_RETURN_SUCCESS=0D +=0D + def PrintAllQuestion(self, FileName):=0D +=0D + with open(FileName, 'w') as f:=0D + pNode =3D self.__QuestionList=0D + while(pNode !=3D None):=0D +=0D + f.write('Question VarId is {} and QuestionId is '.format(p= Node.VarIdStr))=0D + f.write('%d\n'%(pNode.QuestionId))=0D + # f.write('%#x\n'%(pNode.QuestionId))=0D + pNode =3D pNode.Next=0D +=0D + f.close() \ No newline at end of file diff --git a/BaseTools/Source/Python/VfrCompiler/main.py b/BaseTools/Source= /Python/VfrCompiler/main.py new file mode 100644 index 0000000000..624cfe3aa8 --- /dev/null +++ b/BaseTools/Source/Python/VfrCompiler/main.py @@ -0,0 +1,27 @@ +from distutils.filelist import FileList=0D +from pickletools import uint8=0D +import sys=0D +from tkinter.ttk import Treeview=0D +from antlr4 import*=0D +from VfrCompiler.VfrSyntaxLexer import VfrSyntaxLexer=0D +from VfrCompiler.VfrSyntaxParser import VfrSyntaxParser=0D +from VfrCompiler.VfrSyntaxVisitor import VfrSyntaxVisitor=0D +from VfrCompiler.VfrError import *=0D +=0D +def VfrParse(Infile, YamlOutFile, JsonOutFile):=0D + gCVfrErrorHandle.SetInputFile (Infile)=0D + InputStream =3D FileStream(Infile)=0D + Lexer =3D VfrSyntaxLexer(InputStream)=0D + Stream =3D CommonTokenStream(Lexer)=0D + Parser =3D VfrSyntaxParser(Stream)=0D + Tree =3D Parser.vfrProgram()=0D + Visitor =3D VfrSyntaxVisitor()=0D + Visitor.visit(Tree)=0D + Visitor.DumpYaml(Visitor.GetRoot(), YamlOutFile)=0D + Visitor.DumpJson(JsonOutFile)=0D +=0D +if __name__ =3D=3D '__main__':=0D + Infile =3D 'VfrCompiler/test.i'=0D + YamlOutFile =3D 'VfrCompiler/test.yaml'=0D + JsonOutFile =3D 'VfrCompiler/test.json'=0D + VfrParse(Infile, YamlOutFile, JsonOutFile)=0D --=20 2.27.0.windows.1