Skip to content
/ rpn Public

Reverse Polish Notation implementation.

License

Notifications You must be signed in to change notification settings

kenany/rpn

Repository files navigation

rpn

Reverse Polish Notation implementation.

Example

var rpn = require('rpn');

rpn('3 4 +');
// => 7

Installation

$ npm install rpn

API

var rpn = require('rpn');

rpn(expression)

Evaluates the postfix expression and returns the result.