Skip to content

Instantly share code, notes, and snippets.

@simonask
Created July 8, 2009 11:19
Show Gist options
  • Save simonask/142751 to your computer and use it in GitHub Desktop.
Save simonask/142751 to your computer and use it in GitHub Desktop.
foo: [a, b] {
a + b
}
foo(2, 3) // => 5
ast: foo.ast.copy()
ast_addition: ast.children(0)
ast_call: ast_addition.children(0)
ast_call_target: ast_call.caller
ast_call_target.member: #'-'
bar: Snow.compile(ast)
bar(2, 3) // => -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment