Attila's Blog

About writing your own programming language in C, Go and Swift

Lexing ASPL

Aug 9, 2018 Comments

Categories: aspl
Tags: lexing

We have our minimalistic framework in place, we can now start writing our compiler. The first step in any compiler is lexing. The lexer takes the source code as input and outputs tokens that makes up the grammar of the given language.

Let’s write our lexer for ASPL!