My adventures of making a compiler and not listening to these wonderful textbooks until I get the first iteration complete.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-22 18:39:53 -05:00
src refactor: centralize compiler orchestration 2026-08-22 18:39:53 -05:00
.gitignore BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00
Cargo.lock BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00
Cargo.toml BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00
LICENSE Initial commit 2026-08-22 21:54:09 +00:00
lines.rawk BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00
new.rawk BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00
README.md Update README.md 2026-08-22 21:57:13 +00:00
reee.br BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00
test.rawk BedRawc Initial Commit: Terrible Lexer and Parser 2026-08-22 17:00:26 -05:00

BedRawc

A compiler for the BedRoc programming language.

This is my ongoing adventure in building a compiler from scratch while occasionally ignoring the advice of several wonderful textbooks.

The first iteration comes first. Architecture debates come later.

Status

🚧 Very much in development.

Currently working on the compiler pipeline:

  • Lexing
  • Structural analysis
  • Operator declarations and matching
  • Parsing
  • Semantic representations

The architecture is still evolving. Things will move around. Things will probably get rewritten. That's part of the fun.

Why?

I wanted to make my own language, but these textbooks are boring as fuck. Figured I'd give it a go first, then read the textbook.

Building

cargo build

Run it With:

cargo run

License

MIT