More or less a stash

This commit is contained in:
Torsten Ruger
2019-02-12 22:41:42 +02:00
parent 37571a0ff9
commit 86e3103543
4 changed files with 61 additions and 4 deletions

View File

@ -1 +1,14 @@
require_relative "../helper"
module Parfait
class ParfaitRewriter < AST::Processor
include AST::Sexp
def rewrite(input)
ast = Parser::Ruby22.parse( input )
new_ast = process(ast)
new_ast.to_s
end
end
end