From 77b464fbf0de32868467cb6cb076ec05aabfe5b3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 22 Dec 2021 17:48:18 -0800 Subject: [PATCH] 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. --- toot-toot.tlv | 6 ------ 1 file changed, 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