Introduction to Compilers

This entry is part 1 of 1 in the series Introduction to Compilers

Introduction: Welcome to our series on compiler development using Python! In this series of articles, we will explore the fundamentals of grammars and their role in defining the syntax of programming languages. We’ll also discuss different notation systems used to express grammars, such as BNF, EBNF, and PEG, and their relation to lexical analysis. Understanding

Implementing Stack Oriented Languages – Part 4

This entry is part 4 of 4 in the series Implementing Stack Oriented Languages

Strings and Variable So far we’ve added lots of stack operations and a couple I/O routines with the KEY and EMIT keywords. At the moment if we wanted to write a simple “Hello World” application we would need to place each character on the stack and pop them off using the EMIT keyword. This is

Implementing Stack Oriented Languages – Part 3

Implementing Stack Oriented Languages – Part 3
This entry is part 3 of 4 in the series Implementing Stack Oriented Languages

Before we move on to adding more features to our language, I think it is high time we combine our disparate parts into a single entity.

Implementing Stack Oriented Languages — Part 2

This entry is part 2 of 4 in the series Implementing Stack Oriented Languages

Part 2 – The Parser It’s been some time since the first installment. It amazes me how quickly time flies by when you have so many projects at hand. So let’s jump right in and get coding! Before we get started though, let’s make some changes to our keywords file. First, we won’t need the

Implementing Stack Oriented Languages

This entry is part 1 of 4 in the series Implementing Stack Oriented Languages

TLDR; Warning long post While most software developers have heard of Structural, Imperative, Object-Oriented, Prototypal, and Functional programming paradigms, and the language types that support them. Few have heard of Stack Oriented Programming even though it’s been around for quite some time. while this seemingly obscure programming construct is out of the norm for most