A Compiler Writing Journey: Building a Self-Compiling C Subset Compiler
By
ibobev
Fresh out the oven, still warm. Top of the tray.
Summary
A GitHub repository documenting a personal journey to write a self-compiling compiler for a subset of the C language. The project provides practical, step-by-step guidance on compiler development, covering topics from lexical scanning and parsing to operator precedence and actual compilation, with explanations of implementation decisions and references to compiler theory.
Key quotes
· 4 pulledI'm documenting my journey to write a self-compiling compiler for a subset of the C language.
I'm also writing out the details so that, if you want to follow along, there will be an explanation of what I did, why, and with some references back to the theory of compilers.
But not too much theory, I want this to be a practical journey.
Here are the steps I've taken so far: Part 0: Introduction to the Journey, Part 1: Introduction to Lexical Scanning, Part 2: Introduction to Parsing, Part 3: Operator Precedence, Part 4: An Actual Compiler
You might also wanna read
A 7-line interpreter: Implementing a functional programming language in minutes
The article presents a minimal 7-line interpreter for a functional programming language, demonstrating the eval/apply design pattern from St
Guide to Building a Complete Scripting Language from Scratch
The article describes 'Crafting Interpreters,' a comprehensive guide to implementing a full-featured scripting language from scratch. It cov
The Enduring Legacy of Jack Crenshaw's "Let's Build a Compiler" Tutorial Series
The article examines why Jack Crenshaw's "Let's Build a Compiler" tutorial series from 1988-1995 remains influential and frequently discusse
A Practical Guide to Programming Language Design and Implementation
This article provides a comprehensive guide to programming language design, covering the iterative process of language creation through four
The History of Pipes, Forks, and Zombies in Unix Systems
This article discusses the history and concept of pipes in Unix systems, focusing on Doug McIlroy's original vision of coupling programs lik
Demystifying Floating Point Numbers: An Interactive Guide
An in-depth technical blog post that demystifies floating point numbers, explaining their internal representation and behavior. The author i
