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

Been working on a series of toy compilers to get the basics down. I just pushed gamma, the most advanced one yet. It features a Ruby-like syntax which supports mutable variables, basic flow control with if/else, loops using the while statement, and functions. I also wrote an interpreter, bytecode compiler and VM to execute it.

Check it out: https://github.com/mattgreen/learning-language-design/tree/m...

My next toy language will probably be homoiconic in nature. Afterwards, I plan to move on to doing more toy languages in Haskell.



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

Search: