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
Tag: Compiler
Implementing Stack Oriented Languages – Part 4
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
Continue Reading “Implementing Stack Oriented Languages – Part 4”
Implementing Stack Oriented Languages – Part 3
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.
Continue Reading “Implementing Stack Oriented Languages – Part 3”
Implementing Stack Oriented Languages — Part 2
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
Continue Reading “Implementing Stack Oriented Languages — Part 2”
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
Recent Comments