ratmice / nimbleparse_lsp

lsp server for grmtools lex & yacc
Other
7 stars 1 forks source link

railroad diagrams #8

Closed ratmice closed 2 years ago

ratmice commented 2 years ago

vscode can preview svg's via plugins such as svg, None of the svg extensions I've looked at export a public api¹ for other plugins to use

but perhaps they wouldn't be opposed to a patch which implements one.

Then we could generate an svg with railroad, and pass it off to the svg plugin. This would probably be useful as a separate command line tool, so this should probably be done as a standalone crate. but it seems fine to keep it within the workspace.

ratmice commented 2 years ago

I went ahead and did a first stab at this, it can certainly be improved, but closing anyways

https://github.com/ratmice/nimbleparse_lsp/commit/a18c7e3dd828f31e00415fa5d2f885f804ee4247