Skip to content

Instantly share code, notes, and snippets.

@be5invis
Created March 5, 2014 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save be5invis/9377026 to your computer and use it in GitHub Desktop.
Save be5invis/9377026 to your computer and use it in GitHub Desktop.
A draft for some weird language
[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]]
@vczh
Copy link

vczh commented Mar 6, 2014

《编程的修炼》肯定适合你,Dijkstra这本书做的是跟你一摸一样的东西

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment