{"name":"chevrotain-allstar","version":"0.2.0","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.2.0","_nodeVersion":"16.18.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-3Xdi+Z7X3FJ4wuiPj0mJlk8R68qyuw7Pt29vpjvPWoenDXc9zLgLddj7BL99FhfCLtJxYu5+v+sqHzLT4JVDXg==","shasum":"4a4c0eec4f6bda0fcb2265760bbb7320c5c9cd93","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.2.0.tgz","fileCount":24,"unpackedSize":141884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaQYt3hMb1Az0p+3Dp2SYyLmWZV1kLpf6BpZH5flezKwIgErJoCvLwCbre/aksSN0tPTC76mAR038B9aDQgoFqA4M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHXyOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmovug/9E4RTOy8Okci5ohTeOL51FZZ8V97zfPhglB1XwZqw/ZxeM4YP\r\nM33Ipftna9MhZhgNaUUWJOi9GucOFtLde/BzR0Nmr2gtEw0NqSn9y7YvdjVw\r\n5FJnoE3D8uOhOXOpN7+PGpM1S3UoY1nZkYiVTO6tsrN/xh69ftHuOS+rEhnP\r\nZhPocoLU+mm/VURDKJYtuIYxE1Ks3tTTGL9G7gQr8pu8R7u+Kg4G2FBysdhl\r\nMDPiu+0d3k/RrmATZQCnbbYQwELAzr+OV9NL9orzPS7dv9cdGYo29JJuNxFg\r\nLCfif0IzeiAIRMRJuz8trKAo/dNhWI/zTW/W0Gz1JESkdbzx3AVQWyzx/JKe\r\nemKbhQaEVspwhqdrbDLeQ5hYBxu+NrEwTLctAfvEBz3rs2595ePh8ygJFxEQ\r\n1oTmXBQVpOGsEBjztqOAIYXp14QxhwpjsieVnijMlH9G8U9jL3l1r5+vvj1O\r\noK4wyBigoTNtGhIItfFdTr3P6LKP3v7g6aCofsZao1e/rpdu6tEQdz7MVJRm\r\n4585NKp99ENS5i95Bq2E4LiYVpNEQxOz5EKBrG738no4O9Z0UmblLPJn4I4X\r\nu1SqIzqsweAQFrTWAbFe6RCkFSuafufw4F8lPNq2o2Wno39yhTjyPATXspoQ\r\nItaVHa4xm31KNH2+Ph0R6pTG/Z79zfQhUEc=\r\n=IEhI\r\n-----END PGP SIGNATURE-----\r\n","size":28515,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.2.0.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.0_1679654029918_0.10560905872418425"},"_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":1679654030106,"_cnpm_publish_time":1679654030106,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}