From e2a5feb9d6c468c0ddb0caed2581d10585819db5 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Wed, 6 May 2015 09:27:07 +0000 Subject: [PATCH] BaseTool: Add refresh form opcode in vfrcompiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17333 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/C/VfrCompile/VfrSyntax.g | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/C/VfrCompile/VfrSyntax.g b/BaseTools/Source/C/VfrCompile/VfrSyntax.g index 2255d6f60b..8e9f32b815 100644 --- a/BaseTools/Source/C/VfrCompile/VfrSyntax.g +++ b/BaseTools/Source/C/VfrCompile/VfrSyntax.g @@ -1458,7 +1458,8 @@ vfrFormDefinition : // Just for framework vfr compatibility vfrStatementInvalid | vfrStatementExtension | - vfrStatementModal + vfrStatementModal | + vfrStatementRefreshEvent ";" )* E:EndForm << if (mCompatibleMode) { @@ -1504,7 +1505,8 @@ vfrFormMapDefinition : vfrStatementLabel | vfrStatementBanner | vfrStatementExtension | - vfrStatementModal + vfrStatementModal | + vfrStatementRefreshEvent ";" )* E:EndForm << CRT_END_OP (E); >> ";" @@ -2710,7 +2712,7 @@ vfrStatementQuestionTag : vfrStatementRefresh | vfrStatementVarstoreDevice | vfrStatementExtension | - vfrStatementRefreshEvent | + vfrStatementRefreshEvent "," | vfrStatementWarningIf ; @@ -2940,7 +2942,7 @@ vfrStatementRefreshEvent : EFI_GUID Guid; >> L:RefreshGuid << RiObj.SetLineNo(L->getLine()); >> - "=" guidDefinition[Guid] "," << RiObj.SetRefreshEventGroutId (&Guid); >> + "=" guidDefinition[Guid] << RiObj.SetRefreshEventGroutId (&Guid); >> ; vfrStatementVarstoreDevice :