{"_id":"chevrotain-allstar@0.5.0","bugs":{"url":"https://github.com/langium/chevrotain-allstar/issues"},"dist":{"shasum":"439dde76f970f2ce549a8b6eb4298dba7ef00466","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.5.0.tgz","fileCount":24,"integrity":"sha512-KV7jVd28Qp4Kg9Ovhwlx5vyucoQxqxB22DLpxqRR2YDsHUHirr/NHAHx5bYk+bhJCD88xrLvOrfjlrrZRVa2Mg==","signatures":[{"sig":"MEYCIQCeowcOVrGB0ZKYTPiDkmM0LyztJazE30qskVl6mHZeywIhALRxALI/mt9u23BvlYxuUAvjswSwGmIQtUliaBwjOwrb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE+SKCdi9l1HdHv0RfAXhyz1JTke06CKgfVVTmp7Vo01AiEA+1aX7QXjvwEJzl4oH0JTQ53eq9LqaW458kUI30WzWqo="}],"unpackedSize":160300,"size":32565,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.5.0.tgz"},"name":"chevrotain-allstar","type":"module","types":"./lib/index.d.ts","author":{"url":"https://www.typefox.io","name":"TypeFox"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"ed08cee314ddab07636940f7222d39ab24053c91","license":"MIT","scripts":{"test":"vitest","build":"tsc","clean":"shx rm -rf lib tsconfig.tsbuildinfo","watch":"tsc -w"},"version":"0.5.0","_npmUser":{"name":"msujew","email":"mark.sujew@typefox.io"},"homepage":"https://github.com/langium/chevrotain-allstar#readme","keywords":["parser","lookahead","chevrotain","langium"],"repository":{"url":"git+https://github.com/langium/chevrotain-allstar.git","type":"git"},"_npmVersion":"11.14.1","description":"LL(*) lookahead strategy for the Chevrotain parser library","directories":{},"maintainers":[{"name":"msujew","email":"mark.sujew@typefox.io"}],"_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":"^13.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chevrotain-allstar_0.5.0_1785921847850_0.5970245431037293"},"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":1785921847944,"_cnpm_publish_time":1785921847944,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}