Attila's Blog

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

Lexical Analysis

Jun 2, 2018 Comments

Categories: aspl

A tiny source code example

Let’s start with the a very simple source code fragment that will be fed to the interpreter/compiler.

int result = (12 + 56) / 3 * 2;


The first step is lexing or lexical analysis. Also called scanning.

Building Blocks of a Programming Language

May 28, 2018 Comments

Categories: aspl

The easiest way to learn the basics of creating a programming language is examining the necessary steps to transform the source code into executable code. In this post, I’m going to introduce these steps, and I will explain them in detail in future posts. I will also implement these concepts in C.