Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think Ruby does? IIRC its source code includes a 10,000+ line “parse.y” file which is converted to C code using Yacc.


Excitingly, Ruby 3.3+ shipped with a new alternative parser called Prism[0]! See also: [1][2].

[0]: https://github.com/ruby/prism

[1]: https://railsatscale.com/2023-06-12-rewriting-the-ruby-parse...

[2]: https://railsatscale.com/2024-04-16-prism-in-2024/


Interesting, I'll have to look into this because I'd never heard that before and now I'm curious.

A language with as much going on as Ruby was not one I would have picked as a candidate for yacc


Just went and looked in the github repo. 16,000+ line .y file. I can't imagine that is pleasant to maintain.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: