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

Just a note on ragel: it can be used to create lexers, but that is not its distinguishing characteristic. It is a parser generator for regular languages.


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 Summer 2026 batch! Applications are open till May 4

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

Search: