Commit Graph

3 Commits

Author SHA1 Message Date
c738c52455 Add Method type for objects
* Methods are wrappers created with an owner and a function, which
  passes the owner as the first argument when the function is called.
* Fix a small bug in the VM where the pc was being set at the wrong
  time

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-10-08 16:10:10 -07:00
321fe8e1ea Add custom debug impl for obj::int::Int
This removes the vtable and attrs members from appearing, which muddies
up what we really care about with ints

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-09-18 15:39:19 -07:00
372e58f620 Fold runtime/ crate into this source tree
While I like the idea of having a runtime completely decoupled from the
syntax and compiler, I don't think this is that big of a project for
that to be necessary or even useful yet.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-09-14 14:14:21 -07:00