← Back to Labs

Compiler Pipeline

Walk the same fragment through lexing, parsing, IR lowering, and machine code generation.

Input FormOutput Formint total = price + tax;KW_INT IDENT(total) = IDENT(price) + IDENT(tax) ;
Step 1 / 4Lexing turns text into tokens

The compiler first groups raw characters into pieces such as keywords, names, operators, and literals.

Arrow keys to navigate · R to reset

Tap dots to jump to any step

Read the full article →Take the quiz →