namechange

This commit is contained in:
Torsten Ruger
2014-07-29 18:33:11 +03:00
parent da9a57b3cf
commit 7b6f364ba8
24 changed files with 34 additions and 34 deletions

View File

@ -17,7 +17,7 @@ module Fragments
end
def parse
parser = Parser::Kide.new
parser = Parser::Salama.new
syntax = parser.parse_with_debug(@string_input)
parts = Parser::Transform.new.apply(syntax)
# file is a list of expressions, all but the last must be a function

View File

@ -5,10 +5,10 @@ class TestHello < MiniTest::Test
def test_hello
@string_input = <<HERE
"Hello Raisa, I am kide".putstring()
"Hello Raisa, I am salama".putstring()
HERE
@should = [0x0,0x40,0x2d,0xe9,0x1,0x0,0xa0,0xe3,0x2,0x10,0xa0,0xe1,0x3,0x20,0xa0,0xe1,0x4,0x70,0xa0,0xe3,0x0,0x0,0x0,0xef,0x0,0x80,0xbd,0xe8]
@output = "Hello Raisa, I am kide "
@output = "Hello Raisa, I am salama "
@target = [:Object , :putstring]
parse
write "hello"

View File

@ -75,7 +75,7 @@ HERE
end
def parse
parser = Parser::Kide.new
parser = Parser::Salama.new
syntax = parser.parse_with_debug(@string_input)
parts = Parser::Transform.new.apply(syntax)
# file is a list of expressions, all but the last must be a function

View File

@ -28,4 +28,4 @@ require "minitest/autorun"
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
require 'kide'
require 'salama'

View File

@ -19,7 +19,7 @@ class TestRunner < MiniTest::Test
def execute file
string = File.read(file)
parser = Parser::Kide.new
parser = Parser::Salama.new
object_space = Vm::Program.new "Arm"
syntax = parser.parse_with_debug(string)
assert syntax

View File

@ -8,7 +8,7 @@ module VirtualHelper
end
def check
parser = Parser::Kide.new
parser = Parser::Salama.new
syntax = parser.parse_with_debug(@string_input)
parts = Parser::Transform.new.apply(syntax)
machine = Virtual::Machine.new