Skip to content

Commit

Permalink
Merge pull request #132 from yui-knk/embed_racc_parser
Browse files Browse the repository at this point in the history
Embed racc parser
  • Loading branch information
yui-knk authored Oct 17, 2023
2 parents b470996 + 978c438 commit 87208da
Show file tree
Hide file tree
Showing 4 changed files with 665 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codespell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
check_filenames: true
check_hidden: true
ignore_words_file: .codespellignore
exclude_file: lib/lrama/new_parser.rb
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
matrix:
# '3.0' is the oldest living ruby version
# '2.5' is for BASERUBY
baseruby: ['3.0', '2.5']
baseruby: ['head', '3.0', '2.5']
ruby_branch: ['master']
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ 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`
`bundle exec racc parser.y --embedded -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 --log-file=parser.output`
`bundle exec racc parser.y --embedded -o lib/lrama/new_parser.rb -t --log-file=parser.output`
end
end
Loading

0 comments on commit 87208da

Please sign in to comment.