Permalink
Browse files

remove kernel/boot.ay and --skip-kernel, +cleanup

no longer relevant now that everything's modular
  • Loading branch information...
1 parent a110307 commit b2764c825ca54112b0e2caa45b3e1888fdf561bf @vito committed May 7, 2012
Showing with 7 additions and 20 deletions.
  1. +7 −17 bin/atomy
  2. +0 −3 kernel/boot.ay
View
@@ -34,10 +34,6 @@ unless ARGV.empty? || ARGV[0][0] != ?-
options[:load] = v
end
- o.on("-x", "--skip-kernel", "don't load the kernel") do
- options[:skip_kernel] = true
- end
-
o.on("-p", "--profile", "perform profiling") do
options[:profile] = true
end
@@ -49,16 +45,12 @@ unless ARGV.empty? || ARGV[0][0] != ?-
end.parse!
end
-unless options[:skip_kernel]
- require("boot")
-end
-
-if options[:profile]
- profiler = Rubinius::Profiler::Instrumenter.new
- profiler.start
-end
-
def run_atomy(options)
+ if options[:profile]
+ profiler = Rubinius::Profiler::Instrumenter.new
+ profiler.start
+ end
+
if str = options[:evaluate] || options[:start]
$0 = "(eval)"
mod = Atomy::Module.new(:"(eval)")
@@ -83,14 +75,12 @@ def run_atomy(options)
nil,
options[:debug]
)
-end
-
-begin
- run_atomy(options)
ensure
if options[:profile]
profiler.stop
#data = profiler.info
profiler.show
end
end
+
+run_atomy(options)
View
@@ -1,3 +0,0 @@
-use("core")
-use("patterns")
-use("errors")

0 comments on commit b2764c8

Please sign in to comment.