Kyy

Implementing a Python from scratch, for show

Kyy

Kyy logo

Aura kultainen kuvoa, hope’inen huolittele!
Sillä kynnät kyisen pellon, käärmehisen käännättelet.

Forge thyself a plough all golden, cunningly bedecked with silver!
Then go plough the field of serpents, where the writhing snakes are swarming.

– Kalevala, 19. poem

An educational and efficient Python implementation. The goal is to teach advanced programming language and VM implementation, so compatibility may be compromised for clarity or efficiency.

I document my progress and give background explanations in this blog, structured like a follow-along tutorial:

  1. Starting Out: Echo REPL
  2. Lexing Arithmetic Expressions
  3. Parsing Arithmetic Expressions
  4. Evaluating Arithmetic Expressions