{"name":"chevrotain-allstar","version":"0.4.4","keywords":["parser","lookahead","chevrotain","langium"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"chevrotain-allstar@0.4.4","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":"a08aff66d0a3767de057528838edbc61838922ab","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.4.4.tgz","fileCount":24,"integrity":"sha512-HKjrnG6rGOkaxoOx8B4oKRYoD8Gdt6wCL5ItwAtZPgS5kI6rKyezUyWKCFVr6nLYQXT6/BLVVp5b00xBbnjakQ==","signatures":[{"sig":"MEUCIEZ+fjavf68Zmk/ySDF03skXX3B4ApdN3w8UoB4dYs/8AiEAhUj/nlF7w2stTqfIACT2GhLHUCir0xADhLGfNNJyrVY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160300,"size":32564,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.4.4.tgz"},"type":"module","types":"./lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"5bd4b30242b774f8787abe4ab061cfb3f4378cc9","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.14.1","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.4_1784557231494_0.46518352917227723","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":1784557231640,"_cnpm_publish_time":1784557231640,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}