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

Judging by the author's advices, he's referring to a toy compiler, not a production ready compiler.

Language architecture and writing a compiler are very difficult tasks if the intent is to come up with a production ready compiler.

I suppose that if you want to do a toy compiler for a very small and limited language, there are simpler ways than getting into lexers and parsers. You can str replace with assembly language or C instructions and function and compile to C or assembler.



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

Search: