Last active
November 13, 2017 09:15
-
-
Save vyzo/496f6c4080646b98ebf2f2b61440eaaf to your computer and use it in GitHub Desktop.
l2r: left-to-right evaluation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defsyntax (l2r stx) | |
(syntax-case stx () | |
((_ fun arg ...) | |
(with-syntax (((tmp ...) (gentemps #'(arg ...)))) | |
#'(let* ((tmp arg) ...) | |
(fun tmp ...)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment