fixed some weird transpilation output & removed old ast

This commit is contained in:
basil 2025-06-08 21:24:36 -04:00
parent e0dd8ff9d5
commit b63741c8d1
Signed by: basil
SSH key fingerprint: SHA256:y04xIFL/yqNaG9ae9Vl95vELtHfApGAIoOGLeVLP/fE
4 changed files with 8 additions and 62 deletions

View file

@ -16,10 +16,8 @@ type Expr interface {
}
type BinaryExpr struct {
Left Expr
Op *lexer.Token
Left Expr
Op *lexer.Token
Right Expr
}
@ -50,8 +48,7 @@ func (n *LiteralExpr) Accept(v ExprVisitor) any {
var _ Expr = new(LiteralExpr)
type UnaryExpr struct {
Op *lexer.Token
Op *lexer.Token
Right Expr
}