mirror of
https://gitee.com/BDWare/genparser
synced 2026-02-15 05:59:26 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
645f863d7b | ||
|
|
309a60e561 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
/build/
|
||||
/gen/
|
||||
/input/JavaScriptLexer.tokens
|
||||
/input/gen
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ program
|
||||
;
|
||||
|
||||
contractDeclar
|
||||
: annotations? (Contract|Module|Oracle) Identifier '{' clzOrFunctionDeclaration+ '}'
|
||||
: annotations? (Contract|Module|Oracle|DoipModule) Identifier '{' clzOrFunctionDeclaration+ '}'
|
||||
;
|
||||
|
||||
annotations
|
||||
|
||||
Reference in New Issue
Block a user