LALR(1)/Lex online editor/tester for grammars #22941
mingodad
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just added this project grammar on https://mingodad.github.io/parsertl-playground/playground/ that is an editor/tester for yacc/lex grammars, select
TDengine SQL parser
fromExamples
then clickParse
to see the parser tree of the sql inInput source
.I hope it'll help document/debug/develop/test the grammar .
For it to work on the online playground I needed to add
NK_SEMI
that was not defined/used in the grammar and add 2 new rules to allow parse multiple statements.Any feedback is welcome !
Beta Was this translation helpful? Give feedback.
All reactions