2014-02-13 1:05 GMT+08:00 Herwig Hochleitner <hhochleit...@gmail.com>:
> 2014-02-12 5:36 GMT+01:00 Di Xu <xudi...@gmail.com>: > >> >> 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. >> > > Maybe your understanding of these terms is different from mine, in my > view: A lisp evaluator needs to do syntactic and lexical analysis. Those > are both performed after the data structures have been parsed by `read` and > then macroexpanded by the compiler. Macroexpansion could be considered part > of syntactic analysis for most macros. > > Yeah, a little different indeed. I mean if you want to use `read` to read user's input, you don't have to do `read`'s part of lexical and syntax analysis (imagining your situation when you can only read a char in stream), that include checking parentheses matching and symbol picking from stream. Yes, to implement your different version of lisp, you have to do some lexical and syntax analysis, that's your job. I didn't phrase myself correctly. Sorry for that. -- 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.