rubyx/test/virtual/helper.rb

22 lines
452 B
Ruby
Raw Normal View History

2014-06-25 14:20:46 +02:00
require_relative '../helper'
require 'parslet/convenience'
2014-06-26 10:34:48 +02:00
module VirtualHelper
2014-06-25 14:20:46 +02:00
# need a code generator, for arm
def setup
2014-06-26 10:34:48 +02:00
# @object_space = Boot::BootSpace.new "Arm"
2014-06-25 14:20:46 +02:00
end
2014-06-26 10:34:48 +02:00
def check
2014-06-25 14:20:46 +02:00
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