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