diff --git a/Rakefile b/Rakefile index 29955274..10e14b23 100644 --- a/Rakefile +++ b/Rakefile @@ -1 +1,13 @@ require "bundler/gem_tasks" + +namespace "build" do + desc "build parser from parser.y by using Racc" + task :racc_parser do + `bundle exec racc parser.y -o lib/lrama/new_parser.rb` + end + + desc "build parser for debugging" + task :racc_verbose_parser do + `bundle exec racc parser.y -o lib/lrama/new_parser.rb -t -v` + end +end