Skip to content

Instantly share code, notes, and snippets.

Nick Loewen nickloewen

View GitHub Profile
@jlongster
jlongster / gist:1712455
Created Jan 31, 2012
traditional lisp macros
View gist:1712455
;; outlet code for implementing traditional macro expansion
;; macros
(define (expand form)
(cond
((variable? form) form)
((literal? form) form)
((macro? (car form))
(expand ((macro-function (car form)) form)))
You can’t perform that action at this time.