wrote dsl for ast boiler plate generation
This commit is contained in:
parent
b244f7e3b2
commit
e0dd8ff9d5
16 changed files with 915 additions and 60 deletions
20
ast/expr.ast
Normal file
20
ast/expr.ast
Normal 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;
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue