Skip to content

Commit 4e3e635

Browse files
committed
Add "rake clean" task to erase generated parser files
1 parent a177377 commit 4e3e635

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ task "#{path}.gem" => package_parser_files
9090
desc "Generate all files used racc and kpeg"
9191
task :generate => parsed_files
9292

93+
task :clean do
94+
parsed_files.each do |path|
95+
File.delete(path) if File.exist?(path)
96+
end
97+
end
98+
9399
begin
94100
require 'rubocop/rake_task'
95101
rescue LoadError

0 commit comments

Comments
 (0)