Sha256: 7fa78276bcb4c668269aefac15257c85b17c8d0c3fd67d836f8d65930bc481a2

Contents?: true

Size: 827 Bytes

Versions: 6

Compression:

Stored size: 827 Bytes

Contents

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

file 'lib/liquor/grammar/lexer.rb' => 'lib/liquor/grammar/lexer.rl' do
  sh "ragel -R lib/liquor/grammar/lexer.rl -o lib/liquor/grammar/lexer.rb"
end

file 'lib/liquor/grammar/parser.rb' => 'lib/liquor/grammar/parser.racc' do
  sh "racc lib/liquor/grammar/parser.racc -o lib/liquor/grammar/parser.rb"
end

file 'doc/language-spec.html' => 'doc/language-spec.md' do
  sh "kramdown --template document doc/language-spec.md >doc/language-spec.html"
end

desc "Regenerate everything (grammar, docs) and run specs."
task :default => [
  'lib/liquor/grammar/lexer.rb',
  'lib/liquor/grammar/parser.rb',
  'doc/language-spec.html',
  :spec
]

desc "Run specs"
RSpec::Core::RakeTask.new do |t|
  t.pattern = FileList['spec/**/*_spec.rb']
  t.rspec_opts = %w(-fs --color)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
liquor-0.9.6 Rakefile
liquor-0.9.5 Rakefile
liquor-0.9.4 Rakefile
liquor-0.9.3 Rakefile
liquor-0.9.2 Rakefile
liquor-0.9.1 Rakefile