5 require './lib/ruby_lexer.rb'
7 hoe = Hoe.new('ruby_parser', RubyParser::VERSION) do |p|
8 p.rubyforge_name = 'parsetree'
9 p.author = 'Ryan Davis'
10 p.email = 'ryand-ruby@zenspider.com'
11 p.summary = p.paragraphs_of('README.txt', 2).join("\n\n")
12 p.description = p.paragraphs_of('README.txt', 2..6).join("\n\n")
13 p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[-1]
14 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
15 p.extra_deps << 'ParseTree'
18 hoe.spec.files += ['lib/ruby_parser.rb'] # jim.... cmon man
20 module Rake::TaskManager
26 Rake.application.all_tasks["default"].prerequisites.clear
28 task :default => :parser
31 path = "pkg/ruby_parser-#{RubyParser::VERSION}"
32 task path => :parser do
38 task :parser => ["lib/ruby_parser.rb"]
40 rule '.rb' => '.y' do |t|
41 sh "racc -g -o #{t.name} #{t.source}"
47 Dir["lib/ruby_parser.rb"] +
51 # require 'rcov/rcovtask'
52 # Rcov::RcovTask.new do |t|
53 # t.test_files = FileList['test/test_ruby_lexer.rb']