Stacker is a declarative programming language, made for counting mathematical expressions.
Stacker is done within Kyiv Polytechnic Institute course of Declarative Programming.
Stacker is written in JavaScript ES6 and runs on Node.js. No aditional packages are neccessary to run the code. All you need is Node.js.
Stacker uses reversed simple polish notation syntax without parenthesis, seperated with linebreaks(\n
). You can find out more about polish notation from here and here.
- Download and install Node.js (if you don't have it).
- Clone this repo to your machine.
- Open any shell in projects root directory.
- Run
npm install
(optional). - Run
node index.js [YOUR_FILE]
ornpm start [YOUR_FILE]
.
You can also run local tests from ./tests
folder.
Example: node index.js tests/test4.txt
.