Given the following LISP eval function - what is required to add defmacro?

前端 未结 2 1041
情深已故
情深已故 2020-12-12 13:50

Given the following definition of the LISP eval function - what is required to add the defmacro function? (Or even just evaluate a macro)

(defun         


        
2条回答
  •  甜味超标
    2020-12-12 14:35

    This is also quite good: https://web.archive.org/web/20120702032624/http://jlongster.com/2012/02/18/its-not-about-macros-its-about-read.html

    "You can implement a macro system in 30 lines of Lisp. All you need is read, and it's easy." https://gist.github.com/1712455

提交回复
热议问题