Sha256: 1c66c7a64723eade4d0dba626211d2142f65df0fe7933c25d25da2145a6fd239

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

# Find all racc files and generate the parser.
#
RACC_FILES = FileList[ 'lib/**/*.y'].ext( '.rb' )


namespace :bt do

    desc "Generate parser with racc"
    task :racc => RACC_FILES
    rule '.rb' => '.y' do |target|
        sh "racc -g #{target.source} -o #{target.name}"
    end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
build-tool-0.6.9 tasks/racc.rake
build-tool-0.6.8 tasks/racc.rake
build-tool-0.6.7 tasks/racc.rake
build-tool-0.6.6 tasks/racc.rake
build-tool-0.6.5 tasks/racc.rake
build-tool-0.6.4 tasks/racc.rake
build-tool-0.6.3 tasks/racc.rake
build-tool-0.6.2 tasks/racc.rake
build-tool-0.6.1 tasks/racc.rake
build-tool-0.6.0 tasks/racc.rake
build-tool-0.6.0.rc2 tasks/racc.rake
build-tool-0.6.0.rc1 tasks/racc.rake