From c9f0cfd99f37c45e3ce2c9295fc38bcca1c33d96 Mon Sep 17 00:00:00 2001 From: Junichi Kobayashi Date: Thu, 5 Oct 2023 23:54:55 +0900 Subject: [PATCH] Add rake tasks for building parser --- Rakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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