add FunctionCall instruction and the missing puts (stub)

This commit is contained in:
Torsten Ruger
2014-08-22 15:08:46 +03:00
parent e19b7be111
commit 91ce05364a
7 changed files with 20 additions and 5 deletions

View File

@ -58,7 +58,7 @@ module Boot
obj.add_method_definition Salama::Kernel.send(f , @context)
end
obj = get_or_create_class :String
[:get , :set].each do |f|
[:get , :set , :puts].each do |f|
#puts "Boot String::#{f}"
obj.add_method_definition Boot::String.send(f , @context)
end

View File

@ -9,6 +9,10 @@ module Boot
set_function = Virtual::MethodDefinition.new(:set , [Virtual::Integer, Virtual::Integer] , Virtual::Integer ,Virtual::Integer )
return set_function
end
def puts context
puts_function = Virtual::MethodDefinition.new(:puts , [] )
return puts_function
end
end
extend ClassMethods
end