Raku Books

Creating a Compiler in Raku cover

Creating a Compiler in Raku

A step-by-step coding essay that builds a working compiler in Raku — from a tiny translator through grammars, actions, and an abstract syntax tree to a full calculator and interpreter.

Author
Andrew Shitov
Published
1 November 2018 · DeepText, Amsterdam
ISBN
978-90-821568-1-2

Get the book →

📝 This book is not yet published — the text here is still under proofreading.

Creating a Simple Translator

Parsing a Number

Creating a Calculator

A Better Translator

Working on Grammar

Dealing with Strings

Arrays and Hashes

Building AST

Evaluating AST

Test suite

Control Flow

Functions

Optimising the AST

Afterword

Course navigation

What’s next?   |   Creating a Simple Translator