Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Eliminate middleman rake task. Depend directly on the metagrammar file.

  • Loading branch information...
commit 89baa8a41ab49177bb892b025dc0a8c4df8d02fc 1 parent d9d3e23
@jeremy jeremy authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Rakefile
View
8 Rakefile
@@ -13,12 +13,12 @@ Rake::GemPackageTask.new($gemspec) do |pkg|
pkg.need_tar = true
end
-task :spec => :regenerate_metagrammar
-task :regenerate_metagrammar => 'lib/treetop/compiler/metagrammar.treetop' do |t|
+task :spec => 'lib/treetop/compiler/metagrammar.treetop'
+file 'lib/treetop/compiler/metagrammar.treetop' do |t|
unless $bootstrapped_gen_1_metagrammar
- load File.join(File.dirname(__FILE__), 'lib', 'treetop', 'bootstrap_gen_1_metagrammar.rb')
+ load File.expand_path('../lib/treetop/bootstrap_gen_1_metagrammar.rb', __FILE__)
end
-
+
Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
end
Please sign in to comment.
Something went wrong with that request. Please try again.