Hacker News new | past | comments | ask | show | jobs | submit login

Because this is a more interesting conversation than the grandparent comment --- what's the difference between a lexer generator and a parser generator for regular languages? What can I do with Ragel that I can't do with a (probably clumsy) application of Flex?

I don't mean to snipe at Ragel, just Shaw's use of it as an amulet against vulnerabilities.




You can define a full grammar for a language and embed actions in arbitrary places. It is compiled to a very fast DFA. Think of it as a yacc for regular languages.

Zed's advocacy for Ragel is really about using parser generators to implement internet-facing parsers.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: