2015-07-11 20:41:38 +02:00
|
|
|
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)
|
2015-07-12 09:03:23 +02:00
|
|
|
parts.to_basic
|
2015-07-11 20:41:38 +02:00
|
|
|
end
|
|
|
|
end
|