partiql-spec icon indicating copy to clipboard operation
partiql-spec copied to clipboard

Add Full BNF Grammar

Open almann opened this issue 6 years ago • 3 comments

We currently extend the SQL-92 grammar within the spec and have BNF elements to describe those extension. The Kotlin implementation uses a hand coded lexer/parser (a decision which was purely a pragmatic one when we first built it). We should have a full BNF (or equivalent) for PartiQL in the specification.

almann avatar Aug 06 '19 23:08 almann

May I suggest an ANTLR4 grammar?

ahachete avatar Aug 08 '19 13:08 ahachete

It is a very reasonable suggestion and I think ANTLR4 is probably the strongest contender here, though I do want to keep our options open (e.g. maybe some form of PEG).

almann avatar Aug 08 '19 16:08 almann

I would love to see Lemon compatible grammar so that I could use it together with Sqlite, but ANTLR4 is also great option.

mitar avatar Oct 06 '20 05:10 mitar