update debug log usage and add fanciness to log printing

This commit is contained in:
Aidan 2020-07-23 12:08:29 -07:00
parent 91498926d5
commit 1f192607b2
No known key found for this signature in database
GPG key ID: 327711E983899316
8 changed files with 27 additions and 25 deletions

View file

@ -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