Drag is a minimal compiler written in C++ to explore and understand the inner workings of compilers. Inspired by Rust's syntax and expression-based evaluation, Drag is designed to be educational, lightweight, and easy to extend.
- 🧠 Expression evaluation
- 🦀 Rust-inspired syntax
- ⚙️ Simple lexer, parser, and code generation pipeline
- 🧩 Minimal dependencies, pure C++
- 🛠️ CMake-based build system
- C++17 or later
- CMake 3.16+
- A POSIX-compatible system (tested on Linux)
git clone https://github.com/biscuitrescue/drag.git
cd drag
cmake -B build
cmake --build build