pganalyze / libpg_query

C library for accessing the PostgreSQL parser outside of the server environment
BSD 3-Clause "New" or "Revised" License
1.16k stars 169 forks source link

PostgreSQL grammar online #209

Closed mingodad closed 11 months ago

mingodad commented 11 months ago

We can test the PostgreSQL grammar online at https://mingodad.github.io/parsertl-playground/playground/ (select PostgreSQL parser (be patient) from Examples then click Parse to see a parser tree for the content in Input source editor).

I hope it can help debug/develop/test Yacc/Lex grammars like the one from PostgreSQL used by this project.

The main repository is here https://github.com/mingodad/parsertl-playground .

There is there grammars for:

Any feedback is welcome !

lfittl commented 11 months ago

Interesting project!

However it appears you are not utilizing libpg_query though, but rather are importing the raw Postgres grammar files? (https://github.com/mingodad/parsertl-playground/blob/main/playground/postgres16.g)

Whilst I think this is neat, it does seem offtopic for this project, so I will close this issue for now.