Skip to content

Kyukyu-Project/arithmetics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PEG solver for simple arithmetics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages