{"name":"chevrotain-allstar","version":"0.4.0","keywords":["parser","lookahead","chevrotain","langium"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"chevrotain-allstar@0.4.0","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":"b5c215953ec66ae179a4f1dbe095d5b8539bb378","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.4.0.tgz","fileCount":24,"integrity":"sha512-EjZXKIcaHAsVpfVzm7cZKrNXrCiDexI3wu2oalr5rnAq2QPijm3j74vdK8ONHF3bTVftsIJs174f8Zbszc513A==","signatures":[{"sig":"MEUCIQClMAwFOOEYeWxbe0804uTwZ5j3YCJbLNRbMDgXJ1FAXgIgc5WpGst/sC+sHviEVy/K1PiHit8u6UKN6b4qKdHQA/I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":139219,"size":28667,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.4.0.tgz"},"type":"module","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"cccc3ebbf32b35ae8a1210f01961ffd1a035d1e2","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.0_1775120225104_0.060541318652489684","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":1775120225235,"_cnpm_publish_time":1775120225235,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}