peggyjs / peggy

Peggy: Parser generator for JavaScript
https://peggyjs.org/
MIT License
883 stars 63 forks source link

Code completion for Peggy grammar #510

Open alex-klimov opened 3 months ago

alex-klimov commented 3 months ago

Here is code completion core, which can be generated from ANTL4 grammar: https://github.com/mike-lischke/antlr4-c3

Is there analogous solution for Peggy? What is recommended way to provide auto-completion for Monaco-based editors for Peggy?

hildjj commented 3 months ago

Not that I know of. It would be an interesting project for someone to tackle.

alex-klimov commented 3 months ago

Got it, thank you for quick response!

hildjj commented 3 months ago

I'm going to leave this here as an enhancement, but in this case I mean that we should link to whatever external library ends up implementing this, and use it in the online editor.