Hi, lisp in lisp evaluator is the simplest evaluator you can build, because lisp uses list to represent its program, and all lisp dialect provide `read` function, so if you want to build an evaluator, you could just use this function and don't need to do lexical and syntax analysis. This is the power of lisp, so I can't see why you can't do it. The difficult part is adding core library support, this will take a lot of time and code to implement.
2014-02-12 12:18 GMT+08:00 t x <txrev...@gmail.com>: > Hi, > > With apologies for a soft question: > > * in SICP, the meta circular evaluator of scheme in scheme (chapter > 4) is about a page > * in Ansi Common Lisp, there's a lisp in lisp in about half a page > > * if we took Clojure, and ripped out all the JVM support (i.e. > gen-class, proxy, (.javaFunc ... ), (. obj javaFunc) ... ), but kept > clojure data structures (atoms, agents, maps, vectors, lists) -- is > there any reason we can't have a Clojure in Clojure meta circular > evaluator in about 2-3 pages? > > > If the above exists, can someone please point me to a > clojure-in-clojure meta circular evaluator? (besides 'eval') > > If no such evaluator exists, where is the complexity of a > clojure-in-clojure evaluator that I failed to mention above? > > Thanks! > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.