{"name":"chevrotain-allstar","version":"0.1.6","description":"LL(*) lookahead strategy for the Chevrotain parser library","keywords":["parser","lookahead","chevrotain","langium"],"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"vitest","build":"tsc","watch":"tsc -w","clean":"shx rm -rf lib tsconfig.tsbuildinfo"},"dependencies":{"lodash":"^4.17.21"},"peerDependencies":{"chevrotain":"^10.4.1"},"devDependencies":{"@types/jest":"^29.2.1","@types/lodash":"^4.14.186","shx":"^0.3.4","typescript":"^4.8.4","vitest":"^0.24.4"},"repository":{"type":"git","url":"git+https://github.com/langium/chevrotain-allstar.git"},"bugs":{"url":"https://github.com/langium/chevrotain-allstar/issues"},"author":{"name":"TypeFox","url":"https://www.typefox.io"},"gitHead":"bd33d40a6fabc4182cba1156510e76d244971bf6","homepage":"https://github.com/langium/chevrotain-allstar#readme","_id":"chevrotain-allstar@0.1.6","_nodeVersion":"16.18.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-w9Jol4gvc9wIh+EGVwaTR7FrYig7NRSSz4RCZbwD2GO5gr1ivQp8f/i4tyb/Kz3csbgg2u0fYVZdH+of0R1/lQ==","shasum":"53efcbec73bae5aada621ca543fbb99b7daaae62","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.1.6.tgz","fileCount":24,"unpackedSize":141914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdcCnsd4roUHtEfwhFUAvAO28J+jVMxqh8p2M4gr72EAiEAt2IDHwmYpC+0+Sewn6iXKyhw8Jp7cCnrPlKzl9c/27A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIsObACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlIQ//SGeOtsDWbrZkqgwPtlcqiIVxZ/Ia8y5WW7+zKyEgfr/0blnP\r\nj9y9UmLwRX99BoqD+F/GI2w2Y8yZQPEAPouOhcrNUtL1NmKTzWbK+/9m6HZ3\r\nX5/vmrsp0bCgmU0xL2aCzD7SvWuZidlHu5zef/lBPbKlLB3HmztNSTpy7iNt\r\nC5e3xmx8gICIH4KvMq7GuGwJUbZfRbpQTyMaGei928Dp3sqWvJidLEGyA+DL\r\nvajmG92IiS97YegsPuv7s9wCKgySZjkJg5dQlJpDUfyA+ljOrAqr1PRr0mdh\r\nhTlMsHfcNkbmaoxJXgJIfOCtqQohMOOZYBs8A9uU5FhPCirh8xVxL3JyVK73\r\n97MRUzItPYwxyMEfFzlqnwIoJdJJdi8aeFmxNcpm4SoKpoiQzxWTeG3MKlz3\r\nhagliOHMzW8X6TmOiv+cQShg7Ao3jY5E0MGlw7ammwccm7Ggy5m1njgFD6Dg\r\njOyhMKomHAJtlUxiz1kUqD2TqoiGg86cSdr/JWo6NBSFnYcgHMQxKoXC42Av\r\nW0OgHa0yCsZHYdkSiJ1ZkHqM1DAMgwf5pWWK8Hn7mIu0nQTJSau3niz5C+C7\r\n0wh4heAKN89NDQRrf3HmveING8p7hagZO507NUa5LF8Bd7NXlYrU12BqcyOY\r\nqJ+CuAVbKrJNafg24egxiD4FHDBj9JDYtYU=\r\n=SA77\r\n-----END PGP SIGNATURE-----\r\n","size":28524,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.1.6.tgz"},"_npmUser":{"name":"msujew","email":"mark.sujew@typefox.io"},"directories":{},"maintainers":[{"name":"msujew","email":"mark.sujew@typefox.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chevrotain-allstar_0.1.6_1679999899010_0.2661622696896655"},"_hasShrinkwrap":false,"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":1679999899173,"_cnpm_publish_time":1679999899173,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}