rubyx-debugger/lib/parse_task.rb

12 lines
252 B
Ruby
Raw Normal View History

2015-07-14 13:21:33 +02:00
require "salama-reader"
class ParseTask
def parse(num)
string_input = '"Hello again".putstring()'
parser = Parser::Salama.new
out = parser.parse(string_input)
parts = Parser::Transform.new.apply(out)
parts.to_basic
end
end