rename bools compiler to ruby_compiler

as that is what is does, compile ruby strings into vool st
This commit is contained in:
Torsten Ruger
2017-04-06 15:36:41 +03:00
parent 3683aa8976
commit b9caad937a
16 changed files with 87 additions and 79 deletions

View File

@ -1,5 +1,13 @@
module Vool
class Compiler < AST::Processor
# This RubyCompiler compiles incoming ruby (string) into vools internal representation
# with the help of the parser gem. The parser outputs an abstract ast (nodes)
# that get transformed into concrete, specific classes.
#
# As a second step, it extracts classes, methods, ivars and locals.
#
# The next step is then to normalize the code and then finally to compile
# to the next level down, MOM (Minimal Object Machine)
class RubyCompiler < AST::Processor
def self.compile(input)
ast = Parser::Ruby22.parse( input )