Skip to content

Instantly share code, notes, and snippets.

@prologic
Created October 16, 2014 12:01
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 prologic/ddff194422903847337e to your computer and use it in GitHub Desktop.
Save prologic/ddff194422903847337e to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
$ mio -d
mio 265c5b6ddf6c
>>> set("f", method(a, b, a +(b)))
set("f", method(a, b, a +(b)))
Code:
LOAD 0
LOAD 1
PUSH 0
LOAD 2
LOAD 3
PUSH 0
LOAD 4
PUSH 0
LOAD 5
PUSH 0
LOAD 6
LOAD 7
PUSH 0
PUSH 1
BIND 2
PUSH 3
EVAL 2
STOP 0
Constants:
0: 'set'
1: '"f"'
2: 'method'
3: 'a'
4: 'b'
5: 'a'
6: '+'
7: 'b'
method(...)
>>> f(1, 2)
f(1, 2)
Code:
LOAD 0
LOAD 1
PUSH 0
LOAD 2
PUSH 0
EVAL 2
STOP 0
Constants:
0: 'f'
1: '1'
2: '2'
3.000000
>>> (mio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment