pj1/pj1-go/ast.go
2024-08-07 15:59:35 +02:00

37 lines
483 B
Go

// Code generated by tools/gen-ast.go DO NOT EDIT.
package main
import "git.bonsai.cool/kayprish/pj1/pj1-go/lexer"
type Expr interface {
isExpr()
}
type Binary struct {
left Expr
operator lexer.Token
right Expr
}
func (x Binary) isExpr() {}
type Grouping struct {
expression Expr
}
func (x Grouping) isExpr() {}
type Literal struct {
value interface{}
}
func (x Literal) isExpr() {}
type Unary struct {
operator lexer.Token
right Expr
}
func (x Unary) isExpr() {}