Source code for the "Writing Your First Compiler" tutorial series.
This repository contains the code for YFC (Your First Compiler), a compiler written in Python that compiles to x86-64 assembly. The tutorial series walks you through building a complete compiler from scratch.
Read the full tutorial series on dev.to: https://dev.to/frederikgramkortegaard
src/partX/ - Code for each part of the tutorial series
Each part builds on the previous one, starting with a simple lexer and gradually adding more features until you have a complete compiler.
MIT