Skip to content

Instantly share code, notes, and snippets.

@Idorobots
Created August 17, 2012 14:25
Show Gist options
  • Save Idorobots/3379103 to your computer and use it in GitHub Desktop.
Save Idorobots/3379103 to your computer and use it in GitHub Desktop.
Grammar extension
(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