Learn. Transform. Build.

Compiler theory, made practical.

Compiler Forge Toolkit is a free, browser-based learning companion for students and educators studying context-free grammars, parsing, and compiler construction.

Toolkit overview

Input grammar

E → E + T | T

Transform

Understand

Go deeper

Learn the concepts behind the calculations.

Use the Compiler Forge Handbook and companion code examples to connect each transformation with the theory behind it.

Compiler Forge academic handbook mockup showing the front and back covers

A clearer way to learn

Everything you need to practise compiler design

Turn difficult grammar transformations into approachable, repeatable exercises with instant, structured feedback.

Left recursion elimination

Rewrite recursive grammar rules into a form that is easier to use in predictive parsers.

Left factoring

Refactor common prefixes in productions to make grammar decisions clearer for LL parsing.

First & Follow sets

Compute essential parsing sets with readable output that helps you verify each result.

Visits: —