Created
March 5, 2014 21:29
-
-
Save be5invis/9377026 to your computer and use it in GitHub Desktop.
A draft for some weird language
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
[semantics [or a b] | |
[let [ta [evaluate a]] | |
[if ta [return ta] [return [evaluate b]]]]] | |
[semantics [while condition body] | |
[block LOOP_START | |
[let [continue? [evaluate condition]] | |
[if continue? | |
[begin | |
[evaluate body] | |
[LOOP_START]] | |
[return]]]]] | |
[semantics [call/cc fn] [[evaluate fn] return]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
《编程的修炼》肯定适合你,Dijkstra这本书做的是跟你一摸一样的东西