diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 18:42:58 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 18:42:58 -0700 |
commit | 551985e383348a0544454030377262aad784055c (patch) | |
tree | e2f83ffce89ccd72a2862ea7b9595746694ef406 /main.lua | |
parent | 21a4d8a67e057e8ae8a77db5b8e25c51f064d1db (diff) | |
download | lines.love-551985e383348a0544454030377262aad784055c.tar.gz |
delete experimental REPL
We're going to focus on a simple text editor for now.
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/main.lua b/main.lua index 7536aa5..7cd410c 100644 --- a/main.lua +++ b/main.lua @@ -1,6 +1,5 @@ require 'keychord' require 'button' -require 'repl' local utf8 = require 'utf8' -- lines is an array of lines @@ -46,8 +45,6 @@ function coord(n) -- pixels to parts return math.floor(n*256/drawingw) end -exec_payload = nil - filename = nil function love.load(arg) @@ -155,11 +152,6 @@ function love.draw() -- cursor love.graphics.setColor(0,0,0) love.graphics.print('_', 25+text:getWidth()*1.5, y) - - -- display side effect - if exec_payload then - run(exec_payload) - end end function love.update(dt) @@ -512,11 +504,6 @@ function keychord_pressed(chord) lines[#lines] = string.sub(lines[#lines], 1, byteoffset-1) end end - elseif chord == 'C-r' then - lines[#lines+1] = eval(lines[#lines])[1] - lines[#lines+1] = '' - elseif chord == 'C-x' then - parse_into_exec_payload(lines[#lines]) elseif chord == 'escape' and love.mouse.isDown('1') then local drawing = current_drawing() drawing.pending = {} |