rework eval loop to unwrap lists when function calls return
This commit is contained in:
parent
1889942db8
commit
3b0fb09e30
3 changed files with 45 additions and 11 deletions
|
|
@ -61,6 +61,7 @@ func l_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Tok
|
|||
iter = &((*iter).Next)
|
||||
}
|
||||
(*iter).Next = input.Next
|
||||
input.Next = nil
|
||||
|
||||
return src.Inner.(*ast.Token)
|
||||
return src
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue