12 lines
265 B
Ruby
12 lines
265 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)
|
||
|
Sof.write parts
|
||
|
end
|
||
|
end
|