This project was developed during the second semester of the 1st year of the Software Engineering degree @ University of Minho.
The project consisted of developing a stack-oriented programming language, using C. You can learn more about this paradigm here.
Examples of expressions that can be evaluated by the language itself:
1 2 +
, evaluated to3
[ 3 5 7 1 2 ] 2 =
, evaluated to7
- basically, it is returning the element in the 2nd position of the given array.2 { 3 * } ~
, evaluated to6
- basically, it is applying the block (or function)3 *
to its predecessor(s).
Note: More examples can be seen at the assignment.
$ git clone git@github.com:ruilopesm/Stack-Machine-LI2.git
$ cd Stack-Machine-LI2
$ make
$ make run
Note: There are a couple more make
commands, useful in some situations, available. Check them out at the Makefile.