build-tool 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/tasks/genfiles.rake DELETED
@@ -1,28 +0,0 @@
1
- PARSER = Dir["lib/build-tool/*.y", "lib/build-tool/cfg/*.y"].map { |f| f.chomp(".y") }
2
-
3
- rule '.rb' => [ '.y' ] do |t|
4
- puts "generating #{t.source}"
5
- sh "racc -o#{t.name} #{t.source}"
6
- end
7
-
8
- PARSER.each do |parser| # need closure
9
- # file "#{parser}.rb" => [ "#{parser}.y" ]
10
- task :genfiles => [ "#{parser}.rb" ]
11
- end
12
-
13
-
14
- LEXER = Dir["lib/build-tool/*.rex", "lib/build-tool/cfg/*.rex"].map { |f| f.chomp(".rex") }
15
- rule '.rb' => [ '.rex' ] do |t|
16
- puts "generating #{t.source}"
17
- sh "rex -o#{t.name} #{t.source}"
18
- end
19
-
20
- LEXER.each do |lexer| # need closure
21
- # file "#{lexer}.rb" => [ "#{lexer}.rex" ]
22
- task :genfiles => [ "#{lexer}.rb" ]
23
- end
24
-
25
- task :test => :genfiles
26
-
27
- desc 'Regenerate all rex and racc files if necessary.'
28
- task :genfiles