{"name":"chevrotain-allstar","version":"0.2.2","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.2","_nodeVersion":"16.18.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-3aQhHStAO0nXd16r5oY2PxuBTGscPAapicwhHCOSO4O06ZEOpWXDaWTzEkzSGPzIE2nEb8HptX197y1gUSc3xQ==","shasum":"76ffa7c9456ee881be043a6a7ae19e521d0519de","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.2.2.tgz","fileCount":24,"unpackedSize":141914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICPMKRx9HASkDeBrQ6SAnea8+BbXrryYs47zHX7ewTISAiBpoTlny/OK/gA6sLMdDV3Z/HpIcvFCfq3vWSNjIVEZIw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIsQnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrccw//YJYh6ilB6uEoGoRArkcTX4SFpYHXSQBgRulDs4GVJQRQxV59\r\n3vXY540ZiS7MJFV1CsxcG9h6v+41pFE4qhdP7ycDHpBG4Ks8qCWPYFsuf8RJ\r\nE45zy8jn0p4y9DrLg0DxXCC2BHhCGowpH61xrq1aGpkIjPWR0/rRZK5AMLr1\r\nb3XC58eo9HS+FXiAlzpJJwtlPpbgqxcBLySU7EbEv3OM27iT7FA2SmH3z6tB\r\nlvdo82SaKJcjzbGRrTPCztDZ5h1DamRiENeS62p0OxKJoyp6oNxpqjQ68wm3\r\nA1IRr/Kix93Gkkh0cMesx0941P5OMUuUmARCat4bVsieIlaj6hilHOw1d8BL\r\nT+LEYIjGeboCSSgTrzWh540b0YCMTSrmrXN2fHUHDpmFlyxS/KDLsPPm+O2O\r\nnKUkv3FJO/FrKwegZG9z6gbQ4M9n1zHMQRxnxCtLDBkjEcl5GkseOOj1M9X7\r\nu16Sp288yl3EnXfN7Kz3kaY4J8oYHLAwEv+RIM4G+AczRYzlwZ0Cdo36oKwm\r\nC+iFwNUcIvuaK/X6yc0BfPzxAlx1YB3z7H9VxruL6ywi/xXOhloyHYFCraZO\r\n2YmaDHGZCvriVwiVUknGb84gYAUTTo92vkyYZoL/50AC2LYrmCDPENK+f2fi\r\nLlNLR1KJrIdpjA2oZNqWxukOxtxZ1pTyWho=\r\n=rrHY\r\n-----END PGP SIGNATURE-----\r\n","size":28527,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.2.2.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.2_1680000039348_0.6011748099355603"},"_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":1680000039496,"_cnpm_publish_time":1680000039496,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}