Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded racc parser for portability #1019

Merged
merged 1 commit into from
Jun 8, 2023
Merged

Embedded racc parser for portability #1019

merged 1 commit into from
Jun 8, 2023

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Jun 6, 2023

The current rdoc/rd/inline_parser.rb and rdoc/rd/block_parser.rb have require "racc/parser" for external dependency. We should avoid to depend it for RD parser.

@hsbt
Copy link
Member Author

hsbt commented Jun 6, 2023

Note: racc/parser still have racc/info. We also embed it to racc/parser.

@hsbt hsbt merged commit 0e060c6 into master Jun 8, 2023
42 checks passed
@hsbt hsbt deleted the embed-racc-parser branch June 8, 2023 01:09
@eregon eregon changed the title Embedded racc parser for potability Embedded racc parser for portability Jun 8, 2023
@voxik
Copy link
Contributor

voxik commented Oct 30, 2023

For those who wonders how this impacts RDoc license, there should be no impact IMHO, because Racc explicitly allows to use the embedded parser with whatever license:

https://github.com/ruby/racc/blob/5eb07b28bfb3e193a1cac07798fe7be7e1e246c4/lib/racc/parser.rb#L8-L10

And FTR, maybe this could be mentioned somewhere in LEGAL.rdoc

st0012 added a commit to ruby/irb that referenced this pull request Nov 6, 2023
In ruby/rdoc#1019 RDoc starts embedding Racc. But
Racc in Ruby 3.3 will not be a default gem anymore, which requires explicit
declaration in Gemfile.
tompng pushed a commit to ruby/irb that referenced this pull request Nov 6, 2023
In ruby/rdoc#1019 RDoc starts embedding Racc. But
Racc in Ruby 3.3 will not be a default gem anymore, which requires explicit
declaration in Gemfile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants