oga/task/parser.rake

7 lines
140 B
Ruby
Raw Normal View History

2014-02-26 18:50:16 +00:00
rule '.rb' => '.y' do |task|
sh "racc -l -o #{task.name} #{task.source}"
end
desc 'Generates the parser'
task :parser => [PARSER_OUTPUT]