AST gen tweaks.

This commit is contained in:
Jesse Brault 2025-08-30 09:43:11 -05:00
parent 673a008e16
commit 3ca488b76d

View File

@ -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