Permalink
Please sign in to comment.
Browse files
Add ovm.py, a subset of byterun which runs gold/fibonacci.py.
This is to plan what needs to go in our new VM. In particular, we want more, not the BREAK_LOOP / block stack stuff which is implemented in CPython (and in the current version of ovm.py.) - Add ovm_codegen.py and hook it up to opy_main.py and test.sh. It doesn't work yet, but it's useful because it makes note of all the AST node types we have to handle. - Stub out a 'cfg' action. (However, I realized that we don't want to use Python's control flow graph as-is.)
- Loading branch information...
Showing
with
755 additions
and 19 deletions.
- +515 −0 opy/byterun/ovm.py
- +11 −7 opy/byterun/pyvm2.py
- +151 −0 opy/compiler2/ovm_codegen.py
- +10 −2 opy/gold/fibonacci.py
- +38 −6 opy/opy_main.py
- +12 −2 opy/skeleton.py
- +18 −2 opy/test.sh
Oops, something went wrong.
0 comments on commit
6c0c9b9