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

@ -56,7 +56,7 @@ func (t *Token) Eval(funcs FuncTable, vars VarTable) *Token {
if f == nil {
if !eligibleForSystemCall {
log.Log(log.DEBUG,
"could not find definition for symbol " + ret.Inner.(string),
"could not find definition for symbol " + ret.Inner.(string),
"eval")
return nil
}

View file

@ -38,7 +38,8 @@ func (t *Token) String() string {
for i := t.Inner.(*Token); i != nil; i = i.Next {
repr = repr + i.String() + " "
}
return repr + ")"
// remove trailing space
return repr[:len(repr)-1] + ")"
case SYMBOL:
return "<" + t.Inner.(string) + ">"