ruby / racc

Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates ruby programs.
Other
541 stars 88 forks source link

Embedded parser uses load racc/info #199

Closed jwillemsen closed 1 year ago

jwillemsen commented 1 year ago

When using an embedded parser the generated rb uses require racc/info to get ::Racc::VERSION. As far as I understand it, when using an embedded parser I shouldn't need racc itself anymore, so why include racc/info?

To reproduce run in the sample directory racc -o calc.rb -E calc.y and check the generated calc.rb, see line 23 for the generated require

hsbt commented 1 year ago

Fixed at https://github.com/ruby/racc/pull/218