{"name":"chevrotain-allstar","version":"0.1.7","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.7","_nodeVersion":"16.18.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-oMSHkXVCDQxnj3tDCqcEoMnNIEiYlAYT0FVja1PaLrT3njXGvg5JXTXs/tk2NI42SR3LMJyqTNgjR4VyDIf19w==","shasum":"66cb0eed6ce53c9ef07621a29fcf149a9f3bc48d","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.1.7.tgz","fileCount":24,"unpackedSize":141914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3SV0S4o4JoKEwe+QdDYG75mbH/c4bYqMl/KygptaXVwIgXrWkpqX1eXk4wGvFUkdvfVR8jjZRM8ETvjMzuQsaY88="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIsQTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQOg//XXoHzaBhHmOeVeFCSLGXVIfDLlDmuPLSciuNsvvrx/59wepI\r\nNhKdTG4ArhQSJWVHRz7mMrmNWtj0gznA3MR4G7OTPLF58VFWDF+hTPHJp9Hy\r\nKUmAYxKFbqIMYwDuOfIR5dXrRXpSnapPXZAr8JywjKEDivfu+wWbbr/0Po6q\r\nI/KA3z9iYy7STe1YfvSonYr71M+18JKLXpeGAVu4LTIUkR55uXbcswLamJv0\r\n8bxbX1Uc9jMGqormRMZ3iF53dcpBJO6pE4SZlq2UqmaE+wtAtXeBArwmK0Oy\r\nu5AKfTrF9Qe8UV7AuwMLN8HR3mtFcVRpLo+n2STB4ytwlhlI1zMD9C8RF49H\r\nnaEiaKAwd5f/KIPCXUDxmFGkxDmj5Ys/Lur1qINBgQGuaN5QP6VKp8gVztha\r\nctajyz2lANVEWGZ/6cYhAsFUTgvMSUcvyKH/x9v4jW2aUNCY4fvg0UDeyNfh\r\ngh0jxMeotyzdHXlpHxSVRpcGtkIm8vxkYIdfG9+fU78qGx+nmsIxU/q46dQH\r\nq4rDI3PoZboD4M6q3lUZa2VVYkD7P900rcWlTBJBCQY0fqVyguqBNwdjPeXN\r\nDlNXXok2vEr+yoB005mMMouskFIxydk8ckwpIiUT3BsZkYiXeV9TjdQEpDFw\r\nbUCPd4b8Ak8aie1e9/THnz3GB1D3iPjSe+c=\r\n=mfeg\r\n-----END PGP SIGNATURE-----\r\n","size":28526,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.1.7.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.7_1680000019393_0.37364040646926"},"_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":1680000019580,"_cnpm_publish_time":1680000019580,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}