Sha256: c4b54f3eac18bb3f124fa945924520b60a0c5a4f43d75a547cfcb3465710a8a8
Contents?: true
Size: 747 Bytes
Versions: 13
Compression:
Stored size: 747 Bytes
Contents
namespace :scan do desc 'Generate the parser' task 'build' => ['lib/radius/parser/scan.rb'] desc 'Generate a PDF state graph from the parser' task 'graph' => ['doc/scan.pdf'] desc 'turn the scan.rl file into a ruby file' file 'lib/radius/parser/scan.rb' => ['lib/radius/parser/scan.rl'] do |t| cd 'lib/radius/parser' do sh "ragel -R -F1 scan.rl" end end desc 'pdf of the ragel scanner' file 'doc/scan.pdf' => 'lib/radius/parser/scan.dot' do |t| cd 'lib/radius/parser' do sh "dot -Tpdf -o ../../../doc/scan.pdf scan.dot" end end file 'lib/radius/parser/scan.dot' => ['lib/radius/parser/scan.rl'] do |t| cd 'lib/radius/parser' do sh "ragel -Vp scan.rl > scan.dot" end end end
Version data entries
13 entries across 13 versions & 6 rubygems