0.0.1 • Published 10 years ago
polish-notation v0.0.1
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
0.0.1
10 years ago