Skip to content

zetslief/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

Simple calculator built for educational purposes.

Run

node main.js 1 + 1

Test

npm test

Grammar

Expression <- Sum
Sum <- Product (+ | -) Product*
Product <- Value (* | /) Value*
Value <- (-)? ([0-9]+) (.[0-9]+)? 
    | (++ | --) Value
    | Value (++ | --)
    | '(' Expression ')'

About

Simple calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published