move mom instruction up one

just like the risc one, also some basic tests
This commit is contained in:
Torsten Rüger
2019-08-06 20:44:39 +03:00
parent 66c2adda20
commit 5d1d485565
4 changed files with 51 additions and 18 deletions

View File

@ -34,7 +34,7 @@ module Parfait
def compiler_for(self_type)
callable_method = create_callable_method(self_type)
compiler = Mom::CallableCompiler.new( callable_method )
compiler = Mom::MethodCompiler.new( callable_method )
head = @source.to_mom( compiler )
compiler.add_mom(head)
compiler