lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 12 August 2013 19:39, Petite Abeille <petite.abeille@gmail.com> wrote:
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...

[1] http://www.sqlite.org/syntaxdiagrams.html
[2] http://www.sqlite.org/lang.html