fixed append bug

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

View file

@ -40,6 +40,9 @@ func (t *Token) Eval(funcs FuncTable, vars VarTable) *Token {
if tok.Tag == LIST { if tok.Tag == LIST {
eligibleForSystemCall = false eligibleForSystemCall = false
} }
tok.Next = t_.Next
return tok
} }
case LIST: case LIST:
@ -61,7 +64,7 @@ func (t *Token) Eval(funcs FuncTable, vars VarTable) *Token {
return nil return nil
} }
// hook into stdlib exec // TODO: hook into stdlib exec
return nil // TODO: Thats gotta change return nil // TODO: Thats gotta change
} }

View file

@ -35,6 +35,10 @@ func SetLogLvl(lvl int64) {
} }
} }
func GetLogLvl() int64 {
return logLevel
}
func Log(lvl int, msg, context string) { func Log(lvl int, msg, context string) {
if int64(lvl) > logLevel { if int64(lvl) > logLevel {
return return

View file

@ -62,5 +62,5 @@ func l_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Tok
} }
(*iter).Next = input.Next (*iter).Next = input.Next
return *iter return src.Inner.(*ast.Token)
} }