From f2a2a2501c97b0f28d989a30097146a085daabcc Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 4 Mar 2015 13:41:25 -0500 Subject: [PATCH] Weird problems with interpreter --- TODO | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index e82bff21..5fdd4416 100644 --- a/TODO +++ b/TODO @@ -1,9 +1,29 @@ Working TODO list: - - compiled/interpreted code integration - * call an interpreted function from compiled code - need an example of this, for example maybe defining a function in the interpreter and - then passing it as a parameter. EG: (map (lambda ...) lst) + - Intepreter needs work: + +cyclone> (define a (lambda (x) x)) +ok +cyclone> a +(procedure (x) ...) +cyclone> (a 1) +1 +cyclone> a +(procedure (x) ...) +cyclone> (a 'e) +Error: Unknown procedure type -- EXECUTE-APPLICATION +(quote e) + +and issues with interpreted vars being lost - WTF? + +cyclone> (define a (lambda (x) x)) +ok +cyclone> (a 1) +1 +cyclone> (a 1) +Error: Unbound variable +a + - Issues with detecting cycles: - (equal?) loops forever when comparing two different circular lists