Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 893 Bytes

README.md

File metadata and controls

53 lines (35 loc) · 893 Bytes

calculator-with-nearley

A simple CLI calculator

Requirements

Instructions

If you dont have/want nearleyc installed on your system, use the compiled branch.

  1. 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
  1. Install dependencies
yarn

or if you dont have/want yarn on your system

npm install
  1. Compile grammar

If on compiled branch, skip this step.

Use Makefile or

nearleyc grammar.ne -o grammar.js
  1. Run
node .