{"name":"chevrotain-allstar","version":"0.2.1","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.2.1","_nodeVersion":"16.18.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-p0QXIvW6Bh2+HG8mqRQPlWrhsjPXl1R8Kla3JpPw7eDqOeDeC3tx3CxvHMugFleI8NMsQGA/pLgZ/TetHrGKzg==","shasum":"01741b908ef13d1ecba097126a053abe33b052fa","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.2.1.tgz","fileCount":24,"unpackedSize":141914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmc/Dc2jycZUjpLFIxYturL38u1wZjDknD+esMbbdg/wIhANTvEUeSuL/LRj2u6mIT/7UreoYzZZpurIhoBrUBf1ui"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIrPXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqh7A//cx5zIT2Y3ANfGUWm6Ej1afcoUCLZJI4OmOmJ6jb2i+9GbrpP\r\nuogH3GUb+/DyHtDljdlEr69W1GcOEPJdgc5RleDFkvh+uLHUK320XJgdhGt+\r\n9C7MBZ41QIzPCXjmwFt/DoaxZ5HzeYJyO1ZLRFgo99EbRifLV6z87Quji0U7\r\nuiTU1iRMaelpATU2r9ClDIx3ASHv4eHm1TLniTiFwOQTwH3PyqFbTMiEeQ4Q\r\ntd8KO0CA9OpBWXSgSjYDe0FgS39Lt/Ss9GUXwfgVJTwm6iK2sEtpo40x2ub7\r\nuJVES5PPEugGbwaaU8xPeG/lbl3xyF/7ZVRVrpbtE4Sq29/fCTNIzVdbbCB1\r\nig/xjZYKNaiShCQLZ/hWirej9zu1Uh1jkOywoZx+Tv5U5ZtsZwoOjS7YwWNx\r\n+SfWBvjND16tYSUY8yVVwHylfjL3aGL13L5B6bQAnyY1LYuv3NlC8Rzb6K7d\r\nKFI0sPmBhJcrrtECRnMAnNnpGpCQhvnuVNZjWr9ffDDZ/DrMK/f2TEBHh4ii\r\n4O2WDGtZ5JddB1z0MvmuZFFYQkAOz6HBNx7JX07zWhuvnvyeOPow99CuumDZ\r\nSYuF4jarvvgF0yacw9R82l+rFZ/WN7WvSuCRUBUrCVZPmr4Te4zBDmvdLEiJ\r\ncOgjkI/CQInH/9K1zroYXrjmAzIiUjSr7YA=\r\n=U4AO\r\n-----END PGP SIGNATURE-----\r\n","size":28521,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.2.1.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.2.1_1679995863037_0.5211580684696859"},"_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":1679995863248,"_cnpm_publish_time":1679995863248,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}