support interface

This commit is contained in:
CaiHQ
2023-06-09 18:23:51 +08:00
parent 645f863d7b
commit b60e81e1a1
6 changed files with 85 additions and 5 deletions

View File

@@ -61,8 +61,14 @@ annotationLiteral
clzOrFunctionDeclaration
:classDeclaration
|functionDeclaration
|interfaceDeclaration
|eventDeclaration
;
interfaceDeclaration
: annotations? Interface Identifier '(' formalParameterList? ')' eos
;
eventDeclaration
:Event eventGlobalOrLocal? Identifier SemiColon
|Event eventGlobalOrLocal? Identifier '(' eventSemantics? ')' SemiColon