Permalink
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...
Andy Chu
Andy Chu committed Jun 30, 2018
1 parent 85e0b15 commit 6c0c9b9d339a59a3702e3692eab243c27e67937e
Showing with 755 additions and 19 deletions.
  1. +515 −0 opy/byterun/ovm.py
  2. +11 −7 opy/byterun/pyvm2.py
  3. +151 −0 opy/compiler2/ovm_codegen.py
  4. +10 −2 opy/gold/fibonacci.py
  5. +38 −6 opy/opy_main.py
  6. +12 −2 opy/skeleton.py
  7. +18 −2 opy/test.sh
Oops, something went wrong.

0 comments on commit 6c0c9b9

Please sign in to comment.