0.0.1 • Published 10 years ago

polish-notation v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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