rubyx-debugger/app/main/tasks/parse_task.rb
Torsten Ruger 157981edf0 with the to_basic it actually compiles in the browser
also outputs the space using sof, just like in terminal
opal really is a feat of engineering
2015-07-12 10:03:23 +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