update syntax tree

This commit is contained in:
haoeliu@foxmail.com 2023-01-08 19:39:32 +08:00
parent 309a60e561
commit 645f863d7b
2 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,7 @@ Import: 'import';
Contract: 'contract';
Module: 'module';
Oracle: 'oracle';
DoipModule: 'doipmodule';
/// The following tokens are also considered to be FutureReservedWords
/// when parsing strict mode

View File

@ -38,7 +38,7 @@ program
;
contractDeclar
: annotations? (Contract|Module|Oracle) Identifier '{' clzOrFunctionDeclaration+ '}'
: annotations? (Contract|Module|Oracle|DoipModule) Identifier '{' clzOrFunctionDeclaration+ '}'
;
annotations