update reader
This commit is contained in:
20
test/virtual/virtual_helper.rb
Normal file
20
test/virtual/virtual_helper.rb
Normal file
@ -0,0 +1,20 @@
|
||||
require_relative '../helper'
|
||||
require 'parslet/convenience'
|
||||
|
||||
module VirtualHelper
|
||||
# need a code generator, for arm
|
||||
def setup
|
||||
# @object_space = Boot::BootSpace.new "Arm"
|
||||
end
|
||||
|
||||
def check
|
||||
parser = Parser::Crystal.new
|
||||
syntax = parser.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
machine = Virtual::Machine.new
|
||||
puts parts.class.inspect
|
||||
parts.compile(machine.bindings)
|
||||
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user