{"name":"chevrotain-allstar","version":"0.4.3","keywords":["parser","lookahead","chevrotain","langium"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"chevrotain-allstar@0.4.3","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":"709ac798484ead46cc9c8ffa7a99b13adb870dff","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.4.3.tgz","fileCount":24,"integrity":"sha512-2X4mkroolSMKqW+H22pyPMUVDqYZzPhephTmg/NODKb1IGYPHfxfhcW0EjS7wcPJNbze2i4vBWT7zT5FKF2lrQ==","signatures":[{"sig":"MEUCIQCbRLxE4zBdLu7QGbF0LsIzyU7iChjBW8CdfVUNUfD3GQIgJStF058yLX8BmbjVOB/og6TvI0kNCy/B/rmLI8LQElo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":148132,"size":29790,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.4.3.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.3_1777552238360_0.7836344790911551","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":1777552238575,"_cnpm_publish_time":1777552238575,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}