newLISP Fan Club
Forum => So, what can you actually DO with newLISP? => Topic started by: newdep on April 21, 2008, 01:53:36 PM
Playing with all the changes in 9.3.x release i ran into read-expr.
very nice for pritty printing code or as a alternative debugger ;-)
here a simple debug/trace 1-liner =>
Quote
(read-expr (read-file "gurucode.lsp") (fn(x) (println "==EVAL" x) (eval-string x)) )
or
Quote
(read-expr (read-file "maybe.lsp") (fn(x) (println "Eval> " (eval-string x))) )
enjoy..
I prefer the last one..