work on ObjectWriter
Back to the root! but lots of adjusting ObjectWriter takes machine, machine has space Virtual constants become Parfait::Objects etc
This commit is contained in:
@ -2,20 +2,20 @@ require_relative "virtual_helper"
|
||||
|
||||
class HelloTest < MiniTest::Test
|
||||
include VirtualHelper
|
||||
|
||||
|
||||
def check
|
||||
machine = Virtual::Machine.boot
|
||||
expressions = machine.compile_main @string_input
|
||||
|
||||
writer = Elf::ObjectWriter.new(Virtual::Space.space)
|
||||
writer = Elf::ObjectWriter.new(machine)
|
||||
writer.save "hello.o"
|
||||
# puts Sof::Writer.write(expressions)
|
||||
puts Sof::Writer.write(Virtual::Space.space)
|
||||
puts Sof::Writer.write(machine.space)
|
||||
end
|
||||
|
||||
def qtest_simplest_function
|
||||
@string_input = <<HERE
|
||||
def foo(x)
|
||||
def foo(x)
|
||||
5
|
||||
end
|
||||
HERE
|
||||
@ -40,4 +40,4 @@ end
|
||||
HERE
|
||||
check
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user