2019-03-04 19:00:47 +02:00
|
|
|
require "parser/current"
|
2018-07-19 14:46:51 +03:00
|
|
|
require "ast"
|
|
|
|
|
|
|
|
AST::Node.class_eval do
|
|
|
|
def first
|
|
|
|
children.first
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
require_relative "ruby/statement"
|
|
|
|
require_relative "ruby/statements"
|
2018-07-20 14:16:29 +03:00
|
|
|
require_relative "ruby/assignment"
|
2018-07-19 14:46:51 +03:00
|
|
|
require_relative "ruby/array_statement"
|
2019-08-19 10:40:22 +03:00
|
|
|
require_relative "ruby/ruby_block_statement"
|
2018-07-19 14:46:51 +03:00
|
|
|
require_relative "ruby/if_statement"
|
|
|
|
require_relative "ruby/normalizer"
|
|
|
|
require_relative "ruby/class_statement"
|
|
|
|
require_relative "ruby/logical_statement"
|
|
|
|
require_relative "ruby/return_statement"
|
|
|
|
require_relative "ruby/while_statement"
|
|
|
|
require_relative "ruby/basic_values"
|
|
|
|
require_relative "ruby/hash_statement"
|
|
|
|
require_relative "ruby/method_statement"
|
2019-02-12 22:36:37 +02:00
|
|
|
require_relative "ruby/class_method_statement"
|
2018-07-30 14:44:14 +03:00
|
|
|
require_relative "ruby/call_statement"
|
2018-07-21 14:34:39 +03:00
|
|
|
require_relative "ruby/send_statement"
|
2018-07-19 14:46:51 +03:00
|
|
|
require_relative "ruby/yield_statement"
|
2018-07-19 14:59:10 +03:00
|
|
|
require_relative "ruby/variables"
|
2018-07-19 14:46:51 +03:00
|
|
|
|
|
|
|
require_relative "ruby/ruby_compiler"
|