Lisp eval and read-from-string
Posted: Wed Aug 29, 2012 6:30 pm
Hey everyone,
I've been slowly learning Lisp, but really don't know much yet, so I wasn't sure what to search for here. I apologize if this question has already been posted.
I came across a combined Lisp statement: (eval (read-from-string (read-line))) ⇒ ???
I attempted to create a Lisp app to test it, but I am running into problems. My question is, after creating an application with the above statement (or a very similar statement), what would I enter in order to return an answer (once the app is running)? From what I have read, there are 3 ways to enter a line for the compiler to read, but only one way is accepted and the other 2 methods return exception errors. Could you tell me what I would enter to return a valid answer and what I would enter to return the exception errors?
Sorry if that is confusing. I am pretty confused myself. Thanks everyone!
I've been slowly learning Lisp, but really don't know much yet, so I wasn't sure what to search for here. I apologize if this question has already been posted.
I came across a combined Lisp statement: (eval (read-from-string (read-line))) ⇒ ???
I attempted to create a Lisp app to test it, but I am running into problems. My question is, after creating an application with the above statement (or a very similar statement), what would I enter in order to return an answer (once the app is running)? From what I have read, there are 3 ways to enter a line for the compiler to read, but only one way is accepted and the other 2 methods return exception errors. Could you tell me what I would enter to return a valid answer and what I would enter to return the exception errors?
Sorry if that is confusing. I am pretty confused myself. Thanks everyone!