From 30d16d5b1209e96dda6a55b6c16b3ca69197a7a1 Mon Sep 17 00:00:00 2001 From: vonhyou Date: Mon, 12 Apr 2021 19:53:53 +0800 Subject: [PATCH] finish calculator --- minlisp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/minlisp.rb b/minlisp.rb index 0cedb49..fb19bfb 100644 --- a/minlisp.rb +++ b/minlisp.rb @@ -80,7 +80,6 @@ end # puts lisp_env[:*].call 2, 3, 4 # puts lisp_env[:/].call 9, 5, 1 # puts lisp_env[:>].call 1, 2 - # p lisp_env[:car].call [1, 2, 3] # p lisp_env[:cdr].call [1, 2, 3] @@ -106,4 +105,4 @@ def lisp_eval(elem, env = generate_env) end -p lisp_eval(parse '(/ (+ 1 (* 2 3) 1 1 (+ 1 (- 7 2) 1)) 4)') +# p lisp_eval(parse '(/ (+ 1 (* 2 3) 1 1 (+ 1 (- 7 2) 1)) 4)')