包详细信息

@tannin/postfix

aduth364.7kMIT1.1.0

Convert a C expression to an array of postfix terms

自述文件

@tannin/postfix

Given a C expression, returns the equivalent postfix (Reverse Polish) notation terms as an array.

If a postfix string is desired, simply .join( ' ' ) the result.

Installation

Using npm as a package manager:

npm install @tannin/postfix

Otherwise, download a pre-built copy from unpkg:

https://unpkg.com/@tannin/postfix/dist/postfix.min.js

Usage

import postfix from '@tannin/postfix';

postfix( 'n > 1' );
// ⇒ [ 'n', '1', '>' ]

License

Copyright 2019-2020 Andrew Duthie

Released under the MIT License.

更新日志

1.1.0 (2020-03-07)

New Features

  • Add TypeScript definitions

1.0.3 (2019-11-27)

Internal

  • Update project inter-dependencies

1.0.2 (2019-03-07)

Internal

  • Add repository.directory to package.json

1.0.1 (2019-01-19)

Documentation

  • Correct documentation unpkg links

Internal

  • Use Lerna for managing mono-repo