fixed append bug
This commit is contained in:
parent
fe5afcb345
commit
1889942db8
3 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue