AST gen tweaks.
This commit is contained in:
parent
673a008e16
commit
3ca488b76d
@ -1,3 +1,4 @@
|
|||||||
|
# $schema: ./ast.schema.yaml
|
||||||
CompilationUnit:
|
CompilationUnit:
|
||||||
children:
|
children:
|
||||||
- namespace
|
- namespace
|
||||||
@ -29,6 +30,8 @@ ModuleLevelDeclaration:
|
|||||||
build: ModuleDeclaration
|
build: ModuleDeclaration
|
||||||
- rule: Interface
|
- rule: Interface
|
||||||
build: InterfaceDeclaration
|
build: InterfaceDeclaration
|
||||||
|
- rule: Class
|
||||||
|
build: ClassDeclaration
|
||||||
- FunctionDefinition
|
- FunctionDefinition
|
||||||
- PlatformFunction
|
- PlatformFunction
|
||||||
ModuleDeclaration:
|
ModuleDeclaration:
|
||||||
@ -46,7 +49,7 @@ ModuleDeclaration:
|
|||||||
- declarations:
|
- declarations:
|
||||||
rule: ModuleLevelDeclaration
|
rule: ModuleLevelDeclaration
|
||||||
vec: true
|
vec: true
|
||||||
Class:
|
ClassDeclaration:
|
||||||
children:
|
children:
|
||||||
- is_public:
|
- is_public:
|
||||||
rule: Pub
|
rule: Pub
|
||||||
|
Loading…
Reference in New Issue
Block a user