2019-03-04 18:00:47 +01:00
|
|
|
require "parser/current"
|
2018-07-19 13:46:51 +02: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 13:16:29 +02:00
|
|
|
require_relative "ruby/assignment"
|
2018-07-19 13:46:51 +02:00
|
|
|
require_relative "ruby/array_statement"
|
|
|
|
require_relative "ruby/block_statement"
|
|
|
|
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 21:36:37 +01:00
|
|
|
require_relative "ruby/class_method_statement"
|
2018-07-30 13:44:14 +02:00
|
|
|
require_relative "ruby/call_statement"
|
2018-07-21 13:34:39 +02:00
|
|
|
require_relative "ruby/send_statement"
|
2018-07-19 13:46:51 +02:00
|
|
|
require_relative "ruby/yield_statement"
|
2018-07-19 13:59:10 +02:00
|
|
|
require_relative "ruby/variables"
|
2018-07-19 13:46:51 +02:00
|
|
|
|
|
|
|
require_relative "ruby/ruby_compiler"
|