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
☆580May 11, 2025Updated 9 months ago
Alternatives and similar repositories for tiny-compiler
Users that are interested in tiny-compiler are comparing it to the libraries listed below
Sorting:
- A Compiler Writing Journey☆12,810Sep 24, 2025Updated 5 months ago
- Simple, zero-dependency garbage collection for C☆1,288Aug 4, 2024Updated last year
- A tiny, embeddable language implemented in ANSI C☆1,468Jul 4, 2024Updated last year
- clex is a simple lexer generator☆108Feb 9, 2026Updated 3 weeks ago
- A minimalist C compiler with x86_64 code generation☆537Oct 9, 2020Updated 5 years ago
- A simple, self-hosting C compiler☆979May 21, 2022Updated 3 years ago
- A minimal stack-based VM☆182Sep 10, 2020Updated 5 years ago
- Small C Compiler generating ELF executable Arm architecture, supporting JIT execution☆1,052Aug 5, 2025Updated 6 months ago
- simple java virtual machine☆270Nov 2, 2021Updated 4 years ago
- subset c compiler☆37Oct 10, 2020Updated 5 years ago
- A small C compiler☆10,959Oct 30, 2023Updated 2 years ago
- A Small C Compiler☆6,359May 2, 2024Updated last year
- A Small C Compiler☆1,927Nov 28, 2020Updated 5 years ago
- A simple way to write standalone C programs for i386☆257Feb 22, 2026Updated last week
- An educational software system of a tiny self-compiling C compiler, a tiny self-executing RISC-V emulator, and a tiny self-hosting RISC-V…☆2,488Feb 11, 2026Updated 2 weeks ago
- Simple C compiler☆1,546Dec 22, 2024Updated last year
- A set of minimal dependency bootstrap binaries☆1,027May 23, 2025Updated 9 months ago
- bootOS is a monolithic operating system in 512 bytes of x86 machine code.☆2,031Jan 11, 2026Updated last month
- C11 compiler (mirror)☆811Jan 13, 2026Updated last month
- A Tiny Garbage Collector for C☆1,080Jun 26, 2023Updated 2 years ago
- small self hosting C compiler☆490Oct 21, 2021Updated 4 years ago
- Platform independent low-level JIT compiler☆1,062Feb 15, 2026Updated 2 weeks ago
- Compiler for a small language into x86-64 Assembly☆249Oct 19, 2022Updated 3 years ago
- A tiny hand crafted CPU emulator, C compiler, and Operating System☆1,113Dec 16, 2020Updated 5 years ago
- a simple tiny C Compiler using Lex & Yacc☆92Sep 21, 2025Updated 5 months ago
- A small and simple static analysis tool for C in C☆32Oct 4, 2024Updated last year
- A Simple Unix-like operating system☆979Sep 20, 2025Updated 5 months ago
- C in four functions☆10,563Dec 26, 2023Updated 2 years ago
- All-inclusive Buffer for C☆415Nov 16, 2023Updated 2 years ago
- A self-hosting and educational C optimizing compiler☆1,350Feb 9, 2026Updated 2 weeks ago
- A small, easily embedded language implemented in a single .c file☆307Sep 7, 2023Updated 2 years ago
- A Bestiary of Single-File Implementations of Programming Languages☆1,034Feb 5, 2026Updated 3 weeks ago
- Q3VM - Single file (vm.c) bytecode virtual machine/interpreter for C-language input☆923Jul 24, 2024Updated last year
- Extremely minimal vmm for linux written in C. Hopefully someday will spin linux-vm for you.☆262Oct 7, 2021Updated 4 years ago
- Non-preemptive Thread Hierarchy Manager☆56Oct 26, 2024Updated last year
- Parser, code model, interpreter and navigable browser for the original Xerox Smalltalk-80 v2 sources and virtual image file☆314Jul 19, 2025Updated 7 months ago
- How to write a very simple JIT compiler☆1,915May 3, 2021Updated 4 years ago
- S-expressions in Python. Python cross-version compiler. Clean and efficient LISP back end.☆17Jun 6, 2020Updated 5 years ago
- Small portable regex in C☆1,469Oct 25, 2024Updated last year