Sha256: 2ececceeeca21b2fc190f966fed7b00b0e0ed186124947db714cfc0fc621cfe1

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

require "bundler/gem_tasks"
require 'treetop'
require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
end

desc 'Compile treetop to ruby'
task :compile do
  compiler = Treetop::Compiler::GrammarCompiler.new
  treetop_file = File.expand_path('../lib/methic.tt', __FILE__)
  compiler.compile(treetop_file)
end

task :default => [:compile, :test]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
methic-0.0.1 Rakefile