retrofit call functions for new eval alg
This commit is contained in:
parent
ea99142b3a
commit
2ae1145a50
9 changed files with 384 additions and 25 deletions
|
|
@ -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() + " ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue