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

It's actually really easy to take the JIT-compilation engine from LuaJit and use it for the compiler of your own programming language. The LuaJIT code is surprisingly modular, and you can pretty much take what you need.

For scanner/parser generation Lemon and Ragel are terrific. That takes care of building the AST for you. LuaJIT does the heavy lifting and takes care of the architecture specific edge cases. That just leaves the fun part in the middle where you decide on the semantics and syntax of your language.



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

Search: