rename and a tiny start
This commit is contained in:
parent
e41bb8027d
commit
fe337fad79
@ -4,12 +4,4 @@ require "elf/object_writer"
|
||||
require 'parser/crystal'
|
||||
require 'parser/transform'
|
||||
require "ast/all"
|
||||
require "vm/register_machine"
|
||||
require "vm/code"
|
||||
require "vm/values"
|
||||
require "vm/block"
|
||||
require "vm/function"
|
||||
require "boot/boot_class"
|
||||
require "boot/boot_space"
|
||||
require "stream_reader"
|
||||
require "kernel/all"
|
||||
require "vm/object_machine"
|
||||
|
21
test/virtual/helper.rb
Normal file
21
test/virtual/helper.rb
Normal file
@ -0,0 +1,21 @@
|
||||
require_relative '../helper'
|
||||
require 'parslet/convenience'
|
||||
|
||||
module VmHelper
|
||||
# need a code generator, for arm
|
||||
def setup
|
||||
@object_space = Boot::BootSpace.new "Arm"
|
||||
end
|
||||
|
||||
def parse
|
||||
parser = Parser::Crystal.new
|
||||
syntax = parser.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
|
||||
parts.each_with_index do |part,index|
|
||||
expr = part.compile( @object_space.context )
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user