kach / nearley

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

Rewrite Nearley in TypeScript #596

Open gajus opened 2 years ago

gajus commented 2 years ago

I am open to contribute. @kach Would you accept a rewrite in TypeScript?

0x6563 commented 2 years ago

@gajus I managed to get a bare minimum port to typescript https://github.com/0x6563/nearley-ts

I added a couple scripts "build"... naturally and "cli" which uses ts-node to test the cli.. npm run cli -- .\builtin\cow.ne

But I am looking at doing some aggressive rewriting that may or may not follow the design of this project.

0x6563 commented 2 years ago

As an update I've created a new repo where I've extensive refactoring and have been able to get profiling, benchmarks and tests working https://github.com/0x6563/grammar-well

gajus commented 1 year ago

@kach Could we deprecate Nearley in favor of grammar-well?

or add @0x6563 to nearley as a maintainer, so the project could continue living.