retrofit call functions for new eval alg

This commit is contained in:
Aidan 2020-06-29 19:15:00 -07:00
parent ea99142b3a
commit 2ae1145a50
No known key found for this signature in database
GPG key ID: 327711E983899316
9 changed files with 384 additions and 25 deletions

View file

@ -58,7 +58,7 @@ func main() {
ast.InitVarTable(vars)
ast.SyncTablesWithOSEnviron = true
ast.ExecWhenFuncUndef = false
ast.ExecWhenFuncUndef = true
var err error
@ -96,7 +96,7 @@ func main() {
ast.PrintSExprsIndividually(userInput)
}
result := userInput.Eval(funcs, vars)
result := userInput.Eval(funcs, vars, false)
if result != nil {
for i := result; i != nil; i = i.Next {
fmt.Printf(i.String() + " ")