nixpulvis

Parser Combinator

Lexers and Parsers are at the core of every language. The main goal is to turn a stream of text into something structured and spesific to the language at hand. Here I show how the parser library I wrote works by combining small parsers into larger ones with only a few kinds of combinators.