Would anyone know of a LPeg grammar for SQL? Any flavor/subset of SQL?
Thoughts?
I do not know of any LPeg grammar for SQL, but I would suggest going through the diagrams in [1] linked from [2] and translate to equivalent LPeg grammar. It should be relatively straightforward to translate, but judging from the number of diagrams, it is not a task for one afternoon...