zakirullin/tiny-compiler
A tiny compiler for a language featuring LL(2) grammar. With Lexer, Parser, ASM-like codegen and VM. Complex enough to give you a flavour of how the "real" thing works whilst not being a mere toy example
143 best points · 24 comments · 9 Hacker News posts · 580 GitHub stars · View on GitHub
Hacker News discussions
- Simple Tiny Compiler in C (143 points, 23 comments, by zakirullin, 2020-01-08)
- Simple compiler and Virtual Machine implemented in pure C (18 points, 0 comments, by zakirullin, 2019-07-16)
- Simple compiler (3 points, 0 comments, by zakirullin, 2018-08-17)
- Small compiler in a few steps (3 points, 0 comments, by zakirullin, 2019-02-16)
- Simple full-featured compiler (2 points, 0 comments, by zakirullin, 2018-06-23)
- Implementing simple compiler (2 points, 0 comments, by zakirullin, 2019-01-08)
- Tiny Compiler (2 points, 0 comments, by zakirullin, 2019-03-13)
- Simple Virtual Machine and compiler implemented in pure C (2 points, 0 comments, by zakirullin, 2019-08-26)
- A compiler and virutal machine in a few lines (1 points, 1 comments, by zakirullin, 2019-11-08)