kach / nearley

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

Unable to build Nearley file to Typescript #605

Closed Just-a-Unity-Dev closed 2 years ago

Just-a-Unity-Dev commented 2 years ago

I'm making a lang with some friends, currently our grammar file uses the Typescript preprocessor and our build command is:

nearleyc src/modules/grammar/arum.ne --o src/modules/grammar/arum.ts

However, instead of writing to src/modules/grammar/arum.ts, it only logs to console. Not sure why this is happening, everything looks like it should work.

If this isn't a good issue, then please let me know as this is my first issue on a big repo like this 😊

Just-a-Unity-Dev commented 2 years ago

Nevermind, here was the fix if anyone else had problems:

nearleyc src\\modules\\grammar\\arum.ne --out src\\modules\\grammar\\arum.ts