Skip to content

Commit

Permalink
Add rake tasks for building parser
Browse files Browse the repository at this point in the history
  • Loading branch information
junk0612 committed Oct 5, 2023
1 parent 152e9ce commit c9f0cfd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c9f0cfd

Please sign in to comment.