fixed some weird transpilation output & removed old ast
This commit is contained in:
parent
e0dd8ff9d5
commit
b63741c8d1
4 changed files with 8 additions and 62 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue