Difference between revisions of "Matrix stack language"

From ScienceZero
Jump to: navigation, search
Line 1: Line 1:
 +
[[image:Matrix2emulator.png|right|thumb]
 +
 
A stack based programming language with a two-dimensional program counter
 
A stack based programming language with a two-dimensional program counter
  

Revision as of 19:43, 3 February 2007

[[image:Matrix2emulator.png|right|thumb]

A stack based programming language with a two-dimensional program counter

This is a stack based language with a two-dimensional program pointer. It has no practical purpose except for making you think. It was made for exploring the feasability of constructing a two-dimensional microcontroller. The concept of two-dimensional programs fits well with the human mind but seems to have no real benefits for a CPU. This project may surface again as a two-dimensional compiler. It uses Reverse Polish Notation.

Using reverse Polish notation makes it possible to make a language that is almost syntax free as opposed to the syntax quagmire of C++.

Interpreter and some samples: matrix2.zip (1.9 MB)