31 lines
753 B
Go
31 lines
753 B
Go
package runtime
|
|
|
|
import "git.red-panda.pet/pandaware/lox-go/ast"
|
|
|
|
type Interpreter struct{}
|
|
|
|
var _ ast.ExprVisitor = new(Interpreter)
|
|
|
|
func NewInterpreter() *Interpreter {
|
|
return new(Interpreter)
|
|
}
|
|
|
|
// VisitBinaryExpr implements ast.ExprVisitor.
|
|
func (i *Interpreter) VisitBinaryExpr(b *ast.BinaryExpr) any {
|
|
panic("unimplemented")
|
|
}
|
|
|
|
// VisitGroupingExpr implements ast.ExprVisitor.
|
|
func (i *Interpreter) VisitGroupingExpr(g *ast.GroupingExpr) any {
|
|
panic("unimplemented")
|
|
}
|
|
|
|
// VisitLiteralExpr implements ast.ExprVisitor.
|
|
func (i *Interpreter) VisitLiteralExpr(g *ast.LiteralExpr) any {
|
|
panic("unimplemented")
|
|
}
|
|
|
|
// VisitUnaryExpr implements ast.ExprVisitor.
|
|
func (i *Interpreter) VisitUnaryExpr(g *ast.UnaryExpr) any {
|
|
panic("unimplemented")
|
|
}
|