kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.59k stars 232 forks source link

Uses the exportname correctly in generating the Typescript template. #625

Closed mightymax closed 11 months ago

mightymax commented 2 years ago

When providing the name of the export using the -e, --export [name] option with nearleyc, the names in the generated typescript file do not reflect the value of this parameter. This pull-request should fix that.