move parfait adapter into parfait ruby

in the future parfait will be coded in some and translated back into
ruby to “adapt”
until then, all ruby code is the adapter
This commit is contained in:
Torsten Ruger
2015-11-18 11:55:29 +02:00
parent aa30864fcb
commit 40d81681b5
16 changed files with 155 additions and 208 deletions

View File

@ -74,7 +74,7 @@ module Soml
end
arguments << arg
end
@method = clazz.create_instance_method( method_name , Register.new_list(arguments))
@method = clazz.create_instance_method( method_name , Parfait.new_list(arguments))
self
end

View File

@ -36,7 +36,7 @@ module Soml
end
def on_string expression
value = Register.new_word expression.first.to_sym
value = Parfait.new_word expression.first.to_sym
reg = use_reg :Word
Register.machine.constants << value
add_code Register::LoadConstant.new( expression, value , reg )