kach / nearley

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

add alternative railroad library #531

Closed Floffah closed 4 years ago

Floffah commented 4 years ago

this is a suggestion but you can put this where you like

kach commented 4 years ago

You should update the docs by updating the markdown source in md and then running npm run make. That way the markdown and html stay in sync!

kach commented 4 years ago

PS do you have an online example of better-nearley-railroad output?

Floffah commented 4 years ago

no but i can make one

Floffah commented 4 years ago

I have put 2 examples of the output here

kach commented 4 years ago

Very nice! Instead of "(lexer)" you may consider prefixing that symbol with "%".

Once you update the PR to change the markdown and recompile, I'll merge it. Also, to attract more users you can be more specific about the additional features you provide (as opposed to simply "more in-depth").

Floffah commented 4 years ago

I cant actually get the nearley dependencies to install but i can give it a go :) also i will write a list of added features rn

edit: i found out nearley stuff only builds on node v10.22.0 so i had to install nvm to use that. would it be possible to update in time for v10 to no longer be supported? i think its just a microtime issue which surely must have an updated version

Floffah commented 4 years ago

for some reason this seems to have bumped the docs version from 2.19.4 to 2.19.5. actually it looks like a lot changed an im not sure why

Floffah commented 4 years ago

ok ive tried to fix as much as i could this is confusion

kach commented 4 years ago

Okay, I separately added it to the docs. Thanks for your contribution!

Floffah commented 4 years ago

thank you!