framework for parfait runtime testing

with interpreter for now
later with arm exec support
This commit is contained in:
Torsten Ruger
2015-11-07 17:37:41 +02:00
parent 708cdace17
commit d878ce00d8
4 changed files with 43 additions and 2 deletions

View File

@ -14,7 +14,6 @@ module Register
include Collector
def initialize
@parser = Parser::Salama.new
@objects = {}
@booted = false
@constants = []
@ -70,7 +69,7 @@ module Register
end
def parse_and_compile bytes
syntax = @parser.parse_with_debug(bytes)
syntax = Parser::Salama.new.parse_with_debug(bytes)
parts = Parser::Transform.new.apply(syntax)
#puts parts.inspect
Soml.compile( parts )