polish-notation

0.0.1 • Public • Published

Polish Notation Calculator

A basic polish notation calculator used convert an expression into a numerical result. Can be used from a node.js app and AMD compatible.

Example Usage

var Calculator = require('polish-notation'),
    calculator = new Calculator();
    
// Returns 4
calculator.calculate('(+ 2 2)');
 
// Returns 8
calculator.calculate('(* 2 (+ 2 2))');

Tests

Run tests from the command line:

npm install && npm test

Readme

Keywords

none

Package Sidebar

Install

npm i polish-notation

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • paulredmond