nushell / tree-sitter-nu

A tree-sitter grammar for nu-lang, the language of nushell
MIT License
122 stars 27 forks source link

Grammar railroad diagram #18

Closed mingodad closed 2 weeks ago

mingodad commented 1 year ago

Using this page https://meimporta.eu/tree-sitter/json2ebnf.html we can get a navigable railroad diagram for tree-sitter grammars like this project.

See also https://github.com/tree-sitter/tree-sitter/issues/2268 .

Cheers !

fdncred commented 1 year ago

very cool. thanks for sharing.

mrdgo commented 2 weeks ago
  1. The link is dead.
  2. Has anyone ever used this for nu?
  3. If desired, we can add a working link to the README, I don't think that an open issue is the right place for this.
fdncred commented 2 weeks ago

It was cool when I viewed it a year ago. Not sure what it even looks like now. I can't remember. 😆 I wouldn't be opposed to having a working link somewhere.

mingodad commented 2 weeks ago

The link now is https://mingodad.github.io/plgh/json2ebnf.html

fdncred commented 2 weeks ago

Thanks for sharing. This is cool, we could add it to one of our markdown documents if someone is so inclined. It's not really "completed" but it's also not "not planned".