From 3ca488b76d115c628e5534a7db9879ba7e1da7f4 Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Sat, 30 Aug 2025 09:43:11 -0500 Subject: [PATCH] AST gen tweaks. --- src/parser/ast.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/parser/ast.yaml b/src/parser/ast.yaml index fd982ad..694b428 100644 --- a/src/parser/ast.yaml +++ b/src/parser/ast.yaml @@ -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