Skip to content

Commit 410f9c3

Browse files
committed
Move YARV out of syntax tree
1 parent b2c3dc8 commit 410f9c3

36 files changed

+10916
-11401
lines changed

exe/yarv

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
$:.unshift(File.expand_path("../lib", __dir__))
55

6-
require "syntax_tree"
7-
86
# Require these here so that we can run binding.irb without having them require
97
# anything that we've already patched.
108
require "irb"
@@ -15,12 +13,12 @@ require "readline"
1513
# First, create an instance of our virtual machine.
1614
events =
1715
if ENV["DEBUG"]
18-
SyntaxTree::YARV::VM::STDOUTEvents.new
16+
YARV::VM::STDOUTEvents.new
1917
else
20-
SyntaxTree::YARV::VM::NullEvents.new
18+
YARV::VM::NullEvents.new
2119
end
2220

23-
vm = SyntaxTree::YARV::VM.new(events)
21+
vm = YARV::VM.new(events)
2422

2523
# Next, set up a bunch of aliases for methods that we're going to hook into in
2624
# order to set up our virtual machine.

lib/syntax_tree.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ module SyntaxTree
3535
autoload :PrettyPrintVisitor, "syntax_tree/pretty_print_visitor"
3636
autoload :Search, "syntax_tree/search"
3737
autoload :WithScope, "syntax_tree/with_scope"
38-
autoload :YARV, "syntax_tree/yarv"
3938

4039
# This holds references to objects that respond to both #parse and #format
4140
# so that we can use them in the CLI.

lib/syntax_tree/yarv.rb

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)