Frederik Gram Kortegaard /

Your First Compiler

A tutorial series on building a compiler from scratch in Python. We'll build a simple functional language called YFC (Your First Compiler) that compiles to x86-64 assembly.

Code repository: github.com/frederikgramkortegaard/yfc

Table of Contents

  1. Introduction
  2. What Is a Compiler?
  3. Lexical Analysis
  4. Abstract Syntax Trees
  5. Building the Parser
  6. Extending the Language
  7. Taking Stock

Coming Soon


Back to home