0.2.0 • Published 2 years ago

ppjs-parser v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

PPJS Parser (Pipe JS)

Experimental implement pipe operator to Javascript. This will be a parser for ppjs (read as pipe js).

Installation

npm install ppjs-parser

Usage

import { convertPipeToJS } from "ppjs-parser";

convertPipeToJS(`
"text"
|> capitalName()
|> print()
`); // print(capitalName("text"))

Concept

Parser will convert code to Esprima AST then use Escodegen to convert to Javascript code.

TO DO

  • Support array type

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

0.2.0

2 years ago

0.1.0

2 years ago