Skip to content

Instantly share code, notes, and snippets.

View adriangrigore's full-sized avatar
💭
Working on https://mkws.sh

Adrian Emil Grigore adriangrigore

💭
Working on https://mkws.sh
View GitHub Profile

Crafting a Compiler from Scratch: Implementation Notes

For the past two weeks or so, I've been working on a little compiler project in C, mostly for educational purposes, i.e. to understand how a compiler really works. I'm not using any libraries, other than the C runtime library.

Introduction

I have a hand-written lexer and parser, and a simple code generator targetting