aboutsummaryrefslogtreecommitdiff
path: root/cmd/interpreter
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/interpreter')
-rw-r--r--cmd/interpreter/main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/interpreter/main.go b/cmd/interpreter/main.go
index bd70af3..e0001a2 100644
--- a/cmd/interpreter/main.go
+++ b/cmd/interpreter/main.go
@@ -53,9 +53,7 @@ func main() {
for i := 2; i < len(os.Args); i++ {
args = append(args, *ell.NewString(os.Args[i]))
}
-
- var result []ell.V
- if !L.EvalBlock(program, args, &result) {
+ if _, ok := L.EvalBlock(program, args); !ok {
fmt.Printf("%s: %s\n", "runtime error", L.Error)
}
}