This is a WIP weekend project. There is no error handling and very minimal functionality. This is simply an exercise exploring how a compiler works. View an online demonstration of this project here.
All variables are considered static. If one wants to update a variable's property they must create a new variable and assign the old variable plus whatever operation they desire. A variable must be a positive integer.
The only mathematical operation available is addition of positive numbers. One can add saved variables and integers.
The print command is the only way to output variables. The print method only takes variables.
All commands must end with a semicolon.
var a = 10;
var a = 10;
var b = a + 30;
var a = 10;
var b = a + 30;
print(b);
var a = 10;var b = a + 30;print(b);