{"name":"chevrotain-allstar","version":"0.3.0","description":"LL(*) lookahead strategy for the Chevrotain parser library","keywords":["parser","lookahead","chevrotain","langium"],"license":"MIT","type":"module","types":"./lib/index.d.ts","exports":{".":{"default":"./lib/index.js","types":"./lib/index.d.ts"}},"scripts":{"test":"vitest","build":"tsc","watch":"tsc -w","clean":"shx rm -rf lib tsconfig.tsbuildinfo"},"dependencies":{"lodash-es":"^4.17.21"},"peerDependencies":{"chevrotain":"^11.0.0"},"devDependencies":{"@types/jest":"^29.2.1","@types/lodash-es":"^4.17.8","shx":"^0.3.4","typescript":"^5.1.6","vitest":"^0.33.0"},"repository":{"type":"git","url":"git+https://github.com/langium/chevrotain-allstar.git"},"bugs":{"url":"https://github.com/langium/chevrotain-allstar/issues"},"author":{"name":"TypeFox","url":"https://www.typefox.io"},"gitHead":"67155f17624f3f12919371102c8d57bd27ee4762","homepage":"https://github.com/langium/chevrotain-allstar#readme","_id":"chevrotain-allstar@0.3.0","_nodeVersion":"16.18.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-ZlkKZb97Jga/2619A5KET+CmvkhvoLlGVpJ7IXd5pHTZweGhr+apCuKHUvlwFeIVxk3A8o9DMjf+DXJKQxUQ/A==","shasum":"e65d41d9796caf1ca51e6144d2acb5b36967e67c","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.3.0.tgz","fileCount":24,"unpackedSize":138887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmQ6jn0TyYvXFNs03Cg+WzOieWQAjSD4Tki9Z0Fv5q9AIgLzxnbxAjjQ88TT6xCdLDamoU1Ij7mvbUv+OdikOHX4c="}],"size":28320,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.3.0.tgz"},"_npmUser":{"name":"msujew","email":"mark.sujew@typefox.io"},"directories":{},"maintainers":[{"name":"msujew","email":"mark.sujew@typefox.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chevrotain-allstar_0.3.0_1689599538438_0.5452683251585426"},"_hasShrinkwrap":false,"readme":"# Chevrotain Allstar\r\n\r\nThis is a lookahead plugin package for the [Chevrotain parser library](https://chevrotain.io/).\r\nIt implements the [ALL(*) lookahead algorithm](https://www.antlr.org/papers/allstar-techreport.pdf) introduced for ANTLR4.\r\nThe algorithm features unbounded lookahead, compared to the normal LL(*k*) behavior of Chevrotain.\r\n\r\n## Usage\r\n\r\nWhen creating your parser, pass an instance of the `LLStarLookaheadStrategy` to the `lookaheadStrategy` property of the base parser constructor options.\r\n\r\n```ts\r\nimport { LLStarLookaheadStrategy } from \"chevrotain-allstar\";\r\n\r\nclass Parser extends EmbeddedActionsParser {\r\n    constructor() {\r\n        super(tokens, {\r\n            lookaheadStrategy: new LLStarLookaheadStrategy()\r\n        });\r\n        this.performSelfAnalysis()\r\n    }\r\n}\r\n```\r\n","publish_time":1689599538665,"_cnpm_publish_time":1689599538665,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}