about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-22 17:48:18 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-22 17:48:18 -0800
commit77b464fbf0de32868467cb6cb076ec05aabfe5b3 (patch)
tree7592c6cfdb80cdc6e54d3c4c2b3581d9373f8acb
parent940b885be755987650ead5cab896af17c71354a9 (diff)
downloadteliva-77b464fbf0de32868467cb6cb076ec05aabfe5b3.tar.gz
clean up my debug conlang
This isn't the ideal implementation either. Pure spaghetti. But I need
to clean up the debug prints to see that.
-rw-r--r--toot-toot.tlv6
1 files changed, 0 insertions, 6 deletions
diff --git a/toot-toot.tlv b/toot-toot.tlv
index e56e5ba..fa841dc 100644
--- a/toot-toot.tlv
+++ b/toot-toot.tlv
@@ -264,18 +264,14 @@
     >  local colidx = 0
     >  local old_colidx = -1
     >  for i=1,string.len(s) do
-    >    curses.addstr('|'..i..','..colidx)
     >    if i == old_idx then
-    >      print('col:', colidx)
     >      old_colidx = colidx
     >    elseif colidx == old_colidx then  -- next line
-    >      print('->', i)
     >      return i
     >    end
     >    -- loop update
     >    if s[i] == '\n' then
     >      if old_colidx ~= -1 and old_colidx > colidx then
-    >        print('=>', i)
     >        return i
     >      end
     >      colidx = 0
@@ -284,10 +280,8 @@
     >    end
     >  end
     >  if old_colidx == colidx then
-    >    print('->', string.len(s)+1)
     >    return string.len(s)+1
     >  else
-    >    print('|>', old_idx)
     >    return old_idx
     >  end
     >end