Sha256: 88892dfb4c128626e4aa0eafdf698d858a5a0f35910f236a4d9e415426ab8e78

Contents?: true

Size: 754 Bytes

Versions: 1

Compression:

Stored size: 754 Bytes

Contents

dir = File.dirname(__FILE__)
require 'rubygems'
require 'rake'
$LOAD_PATH.unshift(File.join(dir, 'vendor', 'rspec', 'lib'))
require 'spec/rake/spectask'

require 'rake/gempackagetask'

task :default => :spec

Spec::Rake::SpecTask.new do |t|
  t.pattern = 'spec/**/*spec.rb'
end

load "./treetop.gemspec"

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|
  unless $bootstrapped_gen_1_metagrammar
    load File.join(File.dirname(__FILE__), 'lib', 'treetop', 'bootstrap_gen_1_metagrammar.rb')
  end
  
  Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
end

task :version do
  puts RUBY_VERSION
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
treetop-1.4.4 Rakefile