Skip to content

Commit

Permalink
added bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsu committed Nov 14, 2011
1 parent f2428ec commit 74be98c
Show file tree
Hide file tree
Showing 10 changed files with 1,200 additions and 32 deletions.
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ namespace :test do
ctx = Mochiscript::Context.new
begin
ctx.eval_ms(File.read(f))
puts ctx.parse(File.read(f))
if ENV['VERBOSE']
puts ctx.parse(File.read(f))
end
rescue Exception => e
puts "Error: " + ctx.parse(File.read(f))
puts "ERROR: " + ctx.parse(File.read(f))
puts "TREE:\n" + ctx.pp(File.read(f))
puts e.to_s
end
Expand All @@ -37,6 +39,7 @@ namespace :test do
get_files.each do |f|
puts "Testing: " + f
unless system("./bin/ms-run #{f}")
system("ERROR!!")
system("./bin/ms-parse #{f}")
end
end
Expand Down Expand Up @@ -79,5 +82,5 @@ task :compile do
end

def parse(file)
`./bin/ms-parse #{file}`
`./bootstrap/ms-parse #{file}`
end
1 change: 1 addition & 0 deletions bootstrap/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("./mochiscript");
Loading

0 comments on commit 74be98c

Please sign in to comment.