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

Pretty much all the good compilers (gcc,clang,...) have a hand-written parser. An exception is javac, but that one is a minimalistic parser.

Handwritten parsers have better error reporting and might even be faster.



Yes, that's called a production compiler.

If you glance in my profile you will see I'm well aware of the practices of production compilers and also how few people ever even look inside one.




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: