mirror of
https://gitee.com/BDWare/genparser
synced 2026-02-06 01:29:26 +00:00
support interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user