move vool statements into own directory
also tests for guard to work
This commit is contained in:
parent
3fe286b5ed
commit
db8f99409b
15
lib/vool.rb
15
lib/vool.rb
@ -3,19 +3,4 @@ module Vool
|
||||
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"
|
||||
|
@ -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
|
||||
# This RubyCompiler compiles incoming ruby (string) into vools internal representation
|
||||
# with the help of the parser gem. The parser outputs an abstract ast (nodes)
|
||||
|
1
test/vool/statements/helper.rb
Normal file
1
test/vool/statements/helper.rb
Normal file
@ -0,0 +1 @@
|
||||
require_relative "../helper"
|
12
test/vool/statements/test_all.rb
Normal file
12
test/vool/statements/test_all.rb
Normal 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"
|
@ -1,12 +1 @@
|
||||
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"
|
||||
require_relative "statements/test_all"
|
||||
|
Loading…
Reference in New Issue
Block a user