softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
494 stars 32 forks source link

Online Yacc/Lex editor/tester #422

Closed mingodad closed 9 months ago

mingodad commented 9 months ago

Would be nice if this project could also have something like https://mingodad.github.io/parsertl-playground/playground/ (repository here https://github.com/mingodad/parsertl-playground) to allow edit/debug/test Yacc/Lex grammars online.

Any feed back is welcome !

ltratt commented 9 months ago

If someone wanted to create such a thing, we'd happily link to it, but I doubt I'll find the time myself I'm afraid.

mingodad commented 9 months ago

Have you already looked at it ?

mingodad commented 9 months ago

Also there is several non trivial grammars there that can be used by this project !

ltratt commented 9 months ago

It looks cool. Like I said, it'll take someone other than me to do this I'm afraid.

ratmice commented 9 months ago

Like I said in #385, I have always been planning on porting nimbleparse_lsp to wasm, and making a playground version available. I have at least made various attempts locally but nothing has panned out. If anyone has more rust-wasm and editor-wasm interface familiarity or just wants to help in that regard I would be very grateful, the specific issue for that work is https://github.com/ratmice/nimbleparse_lsp/issues/6 (I should probably leave what I have tried/gotten stuck on in that linked issue). It may be worthwhile looking at other web based editors than vscode which support LSP and see if any others are easier to undertake an initial port on. I haven't actually seen any vscode web-extensions running rust compiled wasm code, so (afaik) there is little in the way of prior art to reference on that undertaking.

Anyhow that is still my plan/focus regarding this issue.

ltratt commented 9 months ago

Thanks @ratmice!