wrote dsl for ast boiler plate generation

This commit is contained in:
basil 2025-06-08 21:18:17 -04:00
parent b244f7e3b2
commit e0dd8ff9d5
Signed by: basil
SSH key fingerprint: SHA256:y04xIFL/yqNaG9ae9Vl95vELtHfApGAIoOGLeVLP/fE
16 changed files with 915 additions and 60 deletions

20
ast/expr.ast Normal file
View file

@ -0,0 +1,20 @@
#Expr
Binary [
Left = Expr;
Op = *lexer.Token;
Right = Expr;
]
Grouping [
Expr = Expr;
]
Literal [
Value = any;
]
Unary [
Op = *lexer.Token;
Right = Expr;
]