# Find all racc files and generate the parser. # REXICAL_FILES = FileList[ 'lib/**/*.rex'].ext( '.rb' ) namespace :bt do desc "Generate lexer with rexical" task :rexical => REXICAL_FILES rule '.rb' => '.rex' do |target| sh "rex #{target.source} -o #{target.name}" end end