{"name":"chevrotain-allstar","version":"0.4.2","keywords":["parser","lookahead","chevrotain","langium"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"chevrotain-allstar@0.4.2","maintainers":[{"name":"msujew","email":"mark.sujew@typefox.io"}],"homepage":"https://github.com/langium/chevrotain-allstar#readme","bugs":{"url":"https://github.com/langium/chevrotain-allstar/issues"},"dist":{"shasum":"026aaae6fbf8608bcd40229823e2032cbd3d239e","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.4.2.tgz","fileCount":24,"integrity":"sha512-J3WoNdejJDlmUR0XXgmJK2GnCYKp2eWHnaG1fGkvnBVQw9Y6piP4Q30ETz47bfvPTeaN/DV0V5jqLDgX4PCygg==","signatures":[{"sig":"MEUCIEU7oWC3Ks6BxEBnWkjs0dEGh84C8c52RaRo04WezaJlAiEA/Q6Aa4w4XO+N3Hc6y51BJXr5ne3+2i7WoQpPKBPqVnU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":143813,"size":29039,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.4.2.tgz"},"type":"module","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"55aea954ad99919c5870f8a4c87b5af61f96fefb","scripts":{"test":"vitest","build":"tsc","clean":"shx rm -rf lib tsconfig.tsbuildinfo","watch":"tsc -w"},"_npmUser":{"name":"msujew","email":"mark.sujew@typefox.io"},"repository":{"url":"git+https://github.com/langium/chevrotain-allstar.git","type":"git"},"_npmVersion":"11.8.0","description":"LL(*) lookahead strategy for the Chevrotain parser library","directories":{},"_nodeVersion":"22.21.1","dependencies":{"lodash-es":"^4.18.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","vitest":"^4.1.2","typescript":"^5.9.3","@types/lodash-es":"^4.17.12"},"peerDependencies":{"chevrotain":"^12.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chevrotain-allstar_0.4.2_1777542629402_0.47536168138286783","host":"s3://npm-registry-packages-npm-production"},"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":1777542629528,"_cnpm_publish_time":1777542629528,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}