Get the latest tech news

Writing a C Compiler: Build a Real Programming Language from Scratch


A fun, hands-on guide to writing your own compiler for a real-world programming language.

This book guides you through a fun and engaging project where you’ll learn what it takes to compile a real-world programming language to actual assembly code. Lexing and parsing: Learn how to write a lexer and recursive descent parser that transform C code into an abstract syntax tree. "It is refreshing to read a book on compiler design with a focus on implementing a practical real-world language, rather than working through dry academic exercises .

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of book

book

Photo of C Compiler

C Compiler

Related news:

News photo

Show HN: SpecOS – A 64 bit OS kernel from scratch

News photo

HTTP/1.0 from Scratch

News photo

In ‘The Book Against Death,’ Elias Canetti rants against mortality