move vool statements into own directory

also tests for guard to work
This commit is contained in:
Torsten Ruger 2017-04-06 19:11:11 +03:00
parent 3fe286b5ed
commit db8f99409b
30 changed files with 29 additions and 27 deletions

View File

@ -3,19 +3,4 @@ module Vool
end end
end end
require_relative "vool/array_statement"
require_relative "vool/assignment_statement"
require_relative "vool/basic_values"
require_relative "vool/class_statement"
require_relative "vool/hash_statement"
require_relative "vool/if_statement"
require_relative "vool/logical_statement"
require_relative "vool/method_statement"
require_relative "vool/return_statement"
require_relative "vool/statements"
require_relative "vool/send_statement"
require_relative "vool/variables"
require_relative "vool/while_statement"
require_relative "vool/ruby_compiler" require_relative "vool/ruby_compiler"

View File

@ -1,3 +1,18 @@
require_relative "statements/array_statement"
require_relative "statements/assignment_statement"
require_relative "statements/basic_values"
require_relative "statements/class_statement"
require_relative "statements/hash_statement"
require_relative "statements/if_statement"
require_relative "statements/logical_statement"
require_relative "statements/method_statement"
require_relative "statements/return_statement"
require_relative "statements/statements"
require_relative "statements/send_statement"
require_relative "statements/variables"
require_relative "statements/while_statement"
module Vool module Vool
# This RubyCompiler compiles incoming ruby (string) into vools internal representation # This RubyCompiler compiles incoming ruby (string) into vools internal representation
# with the help of the parser gem. The parser outputs an abstract ast (nodes) # with the help of the parser gem. The parser outputs an abstract ast (nodes)

View File

@ -0,0 +1 @@
require_relative "../helper"

View File

@ -0,0 +1,12 @@
require_relative "test_array_statement"
require_relative "test_assignment_statement"
require_relative "test_basic_values"
require_relative "test_class_statement"
require_relative "test_hash_statement"
require_relative "test_if_statement"
require_relative "test_logical_statement"
require_relative "test_method_statement"
require_relative "test_return_statement"
require_relative "test_send_statement"
require_relative "test_variables"
require_relative "test_while_statement"

View File

@ -1,12 +1 @@
require_relative "test_array_statement" require_relative "statements/test_all"
require_relative "test_assignment_statement"
require_relative "test_basic_values"
require_relative "test_class_statement"
require_relative "test_hash_statement"
require_relative "test_if_statement"
require_relative "test_logical_statement"
require_relative "test_method_statement"
require_relative "test_return_statement"
require_relative "test_send_statement"
require_relative "test_variables"
require_relative "test_while_statement"