update stdlib append after testing

This commit is contained in:
Aidan 2020-06-21 13:13:46 -07:00
parent 9c25ac21f9
commit fe5afcb345
No known key found for this signature in database
GPG key ID: 327711E983899316
3 changed files with 6 additions and 6 deletions

View file

@ -45,9 +45,8 @@ func l_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Tok
src := input
if input.Tag != ast.LIST {
// TODO: Position, if I can figure out what to do with it
src = &ast.Token{Tag: ast.LIST, Inner: input}
return src
// TODO: position??
return input
}
// deref inner first
@ -63,5 +62,5 @@ func l_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Tok
}
(*iter).Next = input.Next
return src
return *iter
}