Tag: Let's build a compiler
-
Chapter 3: Communicate with the Raspberry Pi GPIO – LED Blink
Introduction We are now ready to start talking to the Raspberry Pi GPIO unit and implement the “mandatory”, for beginners, Raspberry Pi application that blinks a LED. And we will do this by using exclusively Tinsel, my very own programming language, for all the functions that we need, but the very low level ones that…
-
Chapter 2b: Tinsel Enhancements – Part2
Introduction As mentioned at the end of the previous part, in this second part of this chapter we will complete the Tinsel extensions by implementing bit-wise operations and pointers. Bit-wise Operations I will implement bit-wise And, Or, Xor and Not operations. And will be at the same level of priority as multiply, divide, shift and…
-
Chapter 2a: Tinsel Enhancements – Part 1
Introduction It is now time to do something specific to the Raspberry Pi and this will be to talk to its GPIO unit and, through this, read the state of a button and turn a LED on and off. But to achieve this, we will need to develop some extensions to Tinsel first. We will…
-
Chapter 1: TINSEL on the Raspberry Pi – The Beginning
Introduction In my “Let’s Build a Compiler” blog (which was based on Jack Crenshaw’s original series) I developed an experimental compiler in Kotlin and in this process I developed TINSEL, my own programming language. That version of the compiler would produce assembly code for X86 architecture, which could run on Linux. In this new series…