A simple CLI calculator
- NodeJS & NPM
- (Optional) Yarn
- (Optional) Nearley
If you dont have/want nearleyc
installed on your system, use the compiled branch.
- Clone repo
main
branch:
git clone https://github.com/SimonFJ20/calculator-with-nearley.git
compiled
branch:
git clone https://github.com/SimonFJ20/calculator-with-nearley.git -b compiled
- Install dependencies
yarn
or if you dont have/want yarn
on your system
npm install
- Compile grammar
If on compiled
branch, skip this step.
Use Makefile
or
nearleyc grammar.ne -o grammar.js
- Run
node .