1.2.2 • Published 5 years ago

tcl-rpn v1.2.2

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

tcl-rpn

A library that deals with RPN expressions suitable for the TCL compliance protocol

Installation

npm install tcl-rpn
yarn add tcl-rpn

Usage

console.log(postfix('A AND B OR ( C AND D )')) // A B AND C D AND OR postfix
console.log(infix('A B AND C D AND OR')) // A AND B OR ( C AND D ) infix

console.log(postfix('A AND B OR ( C AND D ) AND ( F OR D )'))
console.log(infix('A B AND C D AND OR F D OR AND'));

console.log(postfix('A AND ( B OR C ) AND D'))
console.log(infix('A B C OR AND D AND'));

Currently it supports the AND and OR operators. Note! the logical expression should have spaces between the each token.

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago