mirror of
https://gitee.com/BDWare/genparser
synced 2026-02-14 13:39:25 +00:00
feat: update event mechanism
add event type local and global, clients have to use contractID and topic to subscribe local event; allow clients to subscribe topics (will not be recorded)
This commit is contained in:
@@ -69,9 +69,13 @@ eventSemantics
|
||||
|OnlyOnce
|
||||
;
|
||||
eventDeclaration
|
||||
:Event eventSemantics? Identifier SemiColon
|
||||
// |Event eventSemantics? Identifier '(' annotationArgs? ')' SemiColon
|
||||
:Event eventGlobalOrLocal? Identifier SemiColon
|
||||
|Event eventGlobalOrLocal? Identifier '(' eventSemantics? ')' SemiColon
|
||||
;
|
||||
eventGlobalOrLocal
|
||||
:Global
|
||||
|Local
|
||||
;
|
||||
sourceElement
|
||||
: statement
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user