2 Commits

Author SHA1 Message Date
haoeliu@foxmail.com
645f863d7b update syntax tree 2023-01-08 19:39:32 +08:00
CaiHQ
309a60e561 add gitignore 2022-05-05 13:43:20 +08:00
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/build/
/gen/ /gen/
/input/JavaScriptLexer.tokens /input/JavaScriptLexer.tokens
/input/gen /input/gen

View File

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

View File

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