add a task to do the parsing on the server

This commit is contained in:
Torsten Ruger
2015-07-11 21:41:38 +03:00
parent 9822f3d770
commit 1ebdf7f43c
3 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,11 @@
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