Created
August 17, 2012 14:25
-
-
Save Idorobots/3379103 to your computer and use it in GitHub Desktop.
Grammar extension
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
(syntax (Lambda < List (: "->") Expression) | |
`($(car Lambda) | |
((lambda $(caadr Lambda) $(cadadr Lambda))))) | |
(syntax (Expression < (/ Lambda String List Atom))) | |
(Expression "(map (x) -> (* x x) | |
(list 1 2 3 4 5))") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment