update debug log usage and add fanciness to log printing
This commit is contained in:
parent
91498926d5
commit
1f192607b2
8 changed files with 27 additions and 25 deletions
|
|
@ -45,8 +45,8 @@ func ShsProgn(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
|
|||
* (if (eq (number "3") 3) (print "test passed") (print "test failed"))
|
||||
*/
|
||||
func ShsIf(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
|
||||
cond := in
|
||||
t := cond.Next
|
||||
cond := in.Copy()
|
||||
t := cond.Next.Copy()
|
||||
f := t.Next
|
||||
cond.Next = nil
|
||||
t.Next = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue