{"name":"chevrotain-allstar","version":"0.1.3","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"},"dependencies":{"chevrotain":"^10.4.1","lodash":"^4.17.21"},"devDependencies":{"@types/jest":"^29.2.1","@types/lodash":"^4.14.186","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":"b4a6882ecf72e8505d278ee594ae2fe24c6d14cc","homepage":"https://github.com/langium/chevrotain-allstar#readme","_id":"chevrotain-allstar@0.1.3","_nodeVersion":"16.18.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-mKpm/XPHilyaX27z5gSQDKlyY5IFBCqRBjPLdWoa5Y4jRDjMZJ/hFmgIsV4Y35ytdkuQQC9Mhgiz5JTKnSPpBA==","shasum":"abbdbf93ecce91939de68cd49d3e14bad168cca9","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.1.3.tgz","fileCount":24,"unpackedSize":141624,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt8H0nfGJqkIp7fNf6UZSuq1LGaXfAyI6f5C5Ma00fTgIgeDqg2XBcPNMM9Tb/Mwsiw0fquf2nzZdh17C5CrfDKmg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkH8bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqfyg/9HmVu4l3+wnVV8Dz0vl6SNRaSosg6gSSapYlaSH7vpesXtphq\r\nv4R2d6DRQhGVo5mK8sk3AcEvWjq8rJZd4y3aHojPJbLX2Iir35l42P/Iaoks\r\nW8/aPeUyfbthFVwHfa9o7dGpxW95V51ZEvbauJQXh20Ny+1Q9SnEbov6wus6\r\n6HZU5xoy1UdsGiHHBDNnkK4kuw0XanU8bTL+3bsybYqXulfOzyMj6+hhB47Z\r\nEB9Kil7eOO44U2eDqCrj5qokdsxh4HMwjESWwISPn8bZqz1f18aH0pQYj/4C\r\nzGnVdL8Ouodw20fBx/cNUN+PZC2Avpsr2cojheTbmmXXb3ZNNjfM2zXUr1sg\r\nxwesgjcmjncJ14xLv8olfBZzNDv1bhq1054/Pgs3mi1ZtrNfp39BWY31Pu5q\r\nkPVCW4Ihr+01Y6rQNF9juXgY7OEO872FJz5JN6khMjQ10G1IXigcrqFES2qZ\r\ngpivhI+H8XivUkZid305PV2AfVVAMhNEwRCFcC7lSsBbverLFh+B4c5LKOZ6\r\nYgWN+aXhRFpyfY3wMWY5EGyOB3Inv9TVbFWR60TooR6lF2KfE7Y/KpoX4sr7\r\nRv16un52+iKXal4tUsWIkNBlAsfn1Qq9ntCXCnbe+zlL4BMbc1H+XaxlHK68\r\nlHd0MqX24uNeKZjaj5WV2Y2EWZzB0xQGpDM=\r\n=038Y\r\n-----END PGP SIGNATURE-----\r\n","size":28445,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.1.3.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.3_1670414107023_0.5245226529475548"},"_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":1670414107162,"_cnpm_publish_time":1670414107162,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}