rubyx-debugger/app/main/tasks/parse_task.rb
2015-07-31 19:31:02 +03:00

12 lines
264 B
Ruby

require "salama-reader"
class ParseTask < Volt::Task
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