Skip to content

Instantly share code, notes, and snippets.

@prologic
Created October 16, 2014 03:55
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/906ac1f18a27d008a0be to your computer and use it in GitHub Desktop.
Save prologic/906ac1f18a27d008a0be to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
$ miopy -d
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-251/platcheck_4.c -o /tmp/usession-default-251/platcheck_4.o
[platform:execute] gcc /tmp/usession-default-251/platcheck_4.o -pthread -lintl -lrt -o /tmp/usession-default-251/platcheck_4
/home/prologic/work/langs/mio/mio/parser.py:126: ParserGeneratorWarning: 3 shift/reduce conflicts
parser = pg.build()
/home/prologic/work/langs/mio/mio/parser.py:126: ParserGeneratorWarning: 6 reduce/reduce conflicts
parser = pg.build()
mio 68d2e0a005ed
>>> set("foo", method(a, b, a +(b)))
set("foo", method(a, b, a +(b)))
Code:
LOAD 0
LOAD 1
LOAD 2
LOAD 3
LOAD 4
LOAD 5
LOAD 6
LOAD 7
EVAL 1
DROP 0
BIND 2
EVAL 3
DROP 0
EVAL 2
STOP 0
Constants:
0: 'set'
1: '"foo"'
2: 'method'
3: 'a'
4: 'b'
5: 'a'
6: '+'
7: 'b'
LookupError: <Object attrs=[]> has no attribute '+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment