Writing a programming language

In these few tutorials I hope to be able to show you how to write your own simple and interpreted programming language capable of subroutines, variables, conditions, IFs and many types of loop.

All code will be written in Visual Basic 6 :-) to allow optimum readability and features.

Without further ado...

Part 1 - Recognising keywords

This section shows you have to create a simple language that reacts to keywords within code.

read this | download code

Part 2 - Memory and variables

This section shows you how to define temporary storage space, plus how to go about dealing with variables.

read this | download code

Part 3 - Labels and dealing with subroutines

This section shows you how to let programmers declare labels in your language, jump to them as well as using a stack to manage nested subroutines.

read this | download code