2014-02-26 18:50:16 +00:00
|
|
|
rule '.rb' => '.y' do |task|
|
|
|
|
sh "racc -l -o #{task.name} #{task.source}"
|
|
|
|
end
|
|
|
|
|
2015-02-15 23:59:28 +00:00
|
|
|
rule '.rb' => '.rll' do |task|
|
|
|
|
sh "ruby-ll #{task.source} -o #{task.name}"
|
|
|
|
end
|
|
|
|
|
2014-02-26 18:50:16 +00:00
|
|
|
desc 'Generates the parser'
|
2014-10-02 21:31:58 +00:00
|
|
|
task :parser => [
|
|
|
|
'lib/oga/xml/parser.rb',
|
|
|
|
'lib/oga/xpath/parser.rb',
|
|
|
|
'lib/oga/css/parser.rb'
|
|
|
|
]
|