{"name":"chevrotain-allstar","version":"0.4.1","keywords":["parser","lookahead","chevrotain","langium"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"chevrotain-allstar@0.4.1","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":"04e1429faca94a14d4572e0107c4865beac36298","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.4.1.tgz","fileCount":24,"integrity":"sha512-PvVJm3oGqrveUVW2Vt/eZGeiAIsJszYweUcYwcskg9e+IubNYKKD+rHHem7A6XVO22eDAL+inxNIGAzZ/VIWlA==","signatures":[{"sig":"MEQCIH8zog+sUuu+KxedHxoTAQMP2cwCm38TVbmvqOknLGTtAiBhfurbs7WXZOf7ZjVtKRAcuQnNMPUuvNRxmJKupCswvg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":139259,"size":28657,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.4.1.tgz"},"type":"module","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"36375bf9eb96db36432a3741add6aeb44feb7cdb","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.17.21"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","vitest":"^4.1.2","typescript":"^5.1.6","@types/jest":"^29.2.1","@types/lodash-es":"^4.17.8"},"peerDependencies":{"chevrotain":"^12.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chevrotain-allstar_0.4.1_1775120366500_0.6820898596416449","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":1775120366632,"_cnpm_publish_time":1775120366632,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}