This package has been deprecated

Author message:

Other libraries like mathjs.org have more functionality and are tested better

shunting-yard

2.1.0 • Public • Published

Usage

npm install shunting-yard
var sy = require("shunting-yard");

// 8
var result = sy.compute("2 * (2 * (1 + 1))");

See test.js for the usage of readNumber, readToken, readTokens, shuntingYard and evaluatePostfix.

Feel free to report any issues :)

License

GPL3

Package Sidebar

Install

npm i shunting-yard

Weekly Downloads

0

Version

2.1.0

License

GPL3

Last publish

Collaborators

  • leonvv