It works!
Today the first spaz program was run all the way through! It's a been a long time in the works to get here, starting out with figuring out various methods of tokenization and parsing methods all the way to developing the interpreter to make spaz do something. The program is a simple calculator, which asks for 2 numbers and an operator. Depending on the operator that was entered it performs the given task. Now since the last blog post I've add some stack operations and refined their implementation a little. When you see a period sequence it indicates popping. When you see a comma sequence it indicates peeking. And when you see a semicolon sequence is indicates stack duplication. I'll admit the language is ugly as all hell, BUT the point of this project was to make a functional language and I guess by a sort of loose definition I have achieved that! I'll most likely continue work on Spaz to refine it and add more features. I haven't though about how looping would be ...