require "bundler/gem_tasks" require 'rake/testtask' Rake::TestTask.new do |t| t.libs << "test" t.test_files = FileList['./test/**/*_test.rb'] end desc "Generate Lexer" task :lexer do `rex lib/lucid-tdl/parser/lucid-tdl.rex -o lib/lucid-tdl/parser/lexer.rb` end desc "Generate Parser" task :parser do `racc lib/lucid-tdl/parser/lucid-tdl.y -o lib/lucid-tdl/parser/parser.rb` end desc "Generate Lexer and Parser" task :generate => [:lexer, :parser]