Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 336 Bytes
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "bundler/setup"
file "lib/parsejs/grammar.kpeg.rb" => "lib/parsejs/grammar.kpeg" do
sh "kpeg -f lib/parsejs/grammar.kpeg --stand-alone --debug"
end
task :compile => "lib/parsejs/grammar.kpeg.rb"
task :spec => :compile do
sh "rspec -cfs spec"
end
task :default => :compile