We're going to start with a basic RPN interpreter and add function definitions to it. That will serve as a good starting point for adding on JIT compilation later. There are only going to be a few primitives to start with:
- Integer constants
- Arithmetic operators:
+
,-
,*
,/
,%
- Stack manipulation:
swap
,dup
,drop
- Display:
print