Skip to content

SimonFJ20/calculator-with-nearley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

CLI calculator made with Nearley and NodeJS

Resources

License

Stars

Watchers

Forks