{"name":"chevrotain-allstar","version":"0.1.5","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":{"chevrotain":"~10.4.1","lodash":"^4.17.21"},"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":"7d0240611a43cdae07ffc67bdb43478fef38c470","homepage":"https://github.com/langium/chevrotain-allstar#readme","_id":"chevrotain-allstar@0.1.5","_nodeVersion":"16.18.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-S0FH95AUD4pYELTyEtEWnQqDIxEW0WPxdPMFhHKA6AlRkmvON3WgcJPRA80R10Vvgp18SRgXQ6uPodiFoB4+jg==","shasum":"0248ff17f54e8b8429c9936c47ac8855af8aa458","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.1.5.tgz","fileCount":24,"unpackedSize":141884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0adIWMuU3KFfyfoURvsu0/6YsC9pI6TOBfX12C+4CoAiA+yEImQn3fa3F8RqoP6RwnghnAkYNGjWBwL07ltpGAkg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHX2WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8WRAApPRirjkIUQMGODuDVPQQtQXM7UWzv66LbhoH7sO/R9C6X4ck\r\nVB18k11LFouzl8AULZOZNIjDMbtDuoqXKH4EOhbFHulyDnUe9k7mAQ11Awck\r\nX2PwuNE3o5VnBRdtr5K10r+9+3YLnO/0lCfHX4mRzAB1Ozl9jsHnhaeYgUdf\r\nGSXAnTJmM/k2Pxhh0He+ZhtZZETC5idS3mCbBVAz/rnoG/YkOs/yZ8yk4uf4\r\n0uLvlDufisHxuPoda1praVpVd0Y5D7Qb/JiP6RQePdbq5si5NkRwQyrmrl+3\r\nUS8R/7ob5a70Jj0WWm9BtAZ07HBc9hc1Qj6Ursc8GUcKcPMR6HRSKyVorDPD\r\nUdKqPF/gnTv5o/AY4IzEDiLR2bVqwBtp5hhC8vfDUbjhd3r0R5Md6Z1Mnj+h\r\nJXj7S3dHBLknVdd8n366S/YayAmWu7dg4wEWuIUYkbEVPMsyl+piKswrgvgE\r\nSh6RymZ37sxCB31vSYEz/W2BqTZEs6t5z4aI/lGx8Zo1ILNdpEjcj6XInpeq\r\njgBrXO5x6SuKSXWd5XPui68qorWuTP2uu3pL8FbMLe4b9Kc+278xrbFU7n2g\r\nL5Rf4BKbrPfwCdj6buyTWPbvHm61vls8pvCiuptQRuPqHpgzg0Wcxl742/Wf\r\nquYoXLlZAjX9xD56iR9NXb79zQnrXbeSafI=\r\n=JvOY\r\n-----END PGP SIGNATURE-----\r\n","size":28514,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.1.5.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.5_1679654294034_0.3829396870492783"},"_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":1679654294213,"_cnpm_publish_time":1679654294213,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}