add FunctionCall instruction and the missing puts (stub)
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user