Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 572 Bytes

readme.md

File metadata and controls

36 lines (26 loc) · 572 Bytes

Simple Arithmetic Parser

A arithmetic parser written in JavaScript, generated with PEG grammar.

Build

To build, run

npm install
npm run build

Command-line interface

To use the command-line interface, run

npm run cli

Command-line interface

Supported Syntax

The parser supports basic arithmetics operations (+ - * / ^) and some common functions:

  • sqrt
  • max, min
  • floor, ceiling
  • round
  • sum, average
  • power
  • log, ln
  • abs