diff --git a/lib/register/machine.rb b/lib/register/machine.rb index 836878ce..4214fc76 100644 --- a/lib/register/machine.rb +++ b/lib/register/machine.rb @@ -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 ) diff --git a/test/parfait/helper.rb b/test/parfait/helper.rb new file mode 100644 index 00000000..4547138d --- /dev/null +++ b/test/parfait/helper.rb @@ -0,0 +1,39 @@ +require_relative '../helper' +require "interpreter/interpreter" + +module RuntimeTests + + def setup + @stdout = "" + end + def main +<