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