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:
@ -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
|
||||
|
||||
|
@ -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 )
|
||||
|
Reference in New Issue
Block a user