jsdoc-type-pratt-parser
Advanced tools
Comparing version 1.0.0-alpha.8.0 to 1.0.0-alpha.9.0
@@ -11,1 +11,2 @@ /** | ||
export { stringify, stringifyRules } from './transforms/stringify'; | ||
export * from './traverse'; |
{ | ||
"name": "jsdoc-type-pratt-parser", | ||
"version": "1.0.0-alpha.8.0", | ||
"version": "1.0.0-alpha.9.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,6 +6,6 @@ [![Test Status](https://github.com/simonseyock/jsdoc-type-pratt-parser/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/simonseyock/jsdoc-type-pratt-parser/actions?query=branch%3Amain) | ||
This project is a parser for jsdoc types. It is heavily inspired by the existing libraries catharsis and | ||
jsdoctypeparser, but does not use PEG.js, but is written as a pratt parser. | ||
* http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/ | ||
jsdoctypeparser, but does not use PEG.js, instead it is written as a pratt parser. | ||
* https://github.com/hegemonic/catharsis | ||
* https://github.com/jsdoctypeparser/jsdoctypeparser | ||
* http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/ | ||
@@ -79,3 +79,3 @@ Live Demo | ||
// `result` is the current node and `transform` is function to transform child nodes. | ||
// `result` is the current node and `transform` is a function to transform child nodes. | ||
rules.NAME = (result, transform) => 'something else' | ||
@@ -96,4 +96,4 @@ | ||
// an onEnter and/or an onLeave function can be supplied | ||
traverse({ type: 'NAME', value: 'name'}, onEnter, console.log) | ||
// an onEnter and/or an onLeave function can be supplied | ||
``` | ||
@@ -100,0 +100,0 @@ |
@@ -12,1 +12,2 @@ /** | ||
export { stringify, stringifyRules } from './transforms/stringify' | ||
export * from './traverse' |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
443547
13982