{"name":"chevrotain-allstar","version":"0.1.4","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":"8e223ad4d0e792a9f29dd2920e00a1d9ba944e4e","homepage":"https://github.com/langium/chevrotain-allstar#readme","_id":"chevrotain-allstar@0.1.4","_nodeVersion":"16.18.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-gr5PNT8keiOTt19r+XkRY19unZw7rUE/erXgfFMEJnk1ZTuiVGWREfzVPSlz9u6DxbR0zJ9NQzdQS0a/3SVKFw==","shasum":"59e6d139eb211f6292888a29ceced43df4bc9eb2","tarball":"http://registry-npm.ywwl.com/chevrotain-allstar/download/chevrotain-allstar-0.1.4.tgz","fileCount":24,"unpackedSize":141884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQhhum9bVSwQkIQdb3WzyB1Iey08/0bQKaTEsJem+kDAiBpHuIo8adW7ten9xkfpo8T7lv1sIyEujoIaszUYrrmwA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsvjWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrH0w//ffhLXoUaBiWUoKwo5WCilUCeRQTRumAdFtRFUctNnLPNQIlW\r\nytcohcy2VT80hke1eX2g4ow75KDKx3tgGYZo6B4q/a7zFEhsQGfjS5K0l+ta\r\nKwxV/UK2j6MOgqKnKjE8lG2s2jNRbVApx4FiLY3d+CTdooNPWhuQNiw1sjv7\r\nWwwkL6iCtIJfgCucCTmaoKY39dSjfD7L/RmlzLeKIgLgFxZHBFkDoxeYhNeb\r\nw71JfEfPp73uvaKnXktQ/32AYQuzfLIb/sl9a4oW2J49YAl/F0cyGv65GYIV\r\nA9B9TlmVyXTnvxoGd7vxINIr0aFlS9u1kMh9t6D+0TWvSuhWknuTsQ5Ifuni\r\nQduPzQ4B+pHhgz1kOZuaMUysq9dfE7kEjKmUt7Kyc5K3C67hua32ir31HOtN\r\n691t9jpQ/tVYdOqh+J7AeTN5kbdOGKzeoNTDLbAdOS5gew3gA9BgBHHQSqqm\r\nPaxgC9SzpGg1hYO3BnIC7iDn0D2vgx3RkLea6rll+ckFoMybw2Vp2PscrGzk\r\npv2Yz0Dw9pfG3dV+/JTlTROFGWx7p8UsFw/5XuHM1zvGPE20a9fLGitcS/6I\r\nc/Dp5Zkx5/4soB4RKo3hcT0hhuKO6823WdDJTULlmEc0qc3O336KJ69smf3Y\r\nBuqu9mc7BCrJDLr4nnyaxvdj/Zvblr5KPsY=\r\n=20Vp\r\n-----END PGP SIGNATURE-----\r\n","size":28511,"noattachment":false,"key":"/chevrotain-allstar/-/chevrotain-allstar-0.1.4.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.4_1672673493862_0.1772829547374284"},"_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":1672673494079,"_cnpm_publish_time":1672673494079,"dist-tags":{"latest":"0.5.0","next":"0.1.6-next.1"}}