• posts projects
    • October 22, 2020
    • 1 minute
    • Haskell
    • Programming Languages
    • Parsing
    • Compiler
    Haskell in Haskell

    This is a series I’m writing about implementing a compiler for a subset of Haskell, using nothing else than Haskell itself! We’ll go through the whole process, going from a file containing Haskell code to generating C that we can compile into a functional executable. I’ve only just started working on the series, so stay tuned for new posts as they come along: I’ll update this page whenever they arrive.

    • June 03, 2020
    • 25 minutes
    • Parsing
    • Programming Languages
    Parsing A Whitespace-Sensitive Language

    This post is about how to parse programming languages which define blocks using indentation, instead of braces and semicolons. We’ll end up learning how to infer these blocks based on the indentation, using Typescript to parse a toy functional language.