How to build your own SQL parser?

10,342

ANTLR can be a good choice. Or GOLD Parsing System with SQL grammar. Dragon book has good theoretical background if you want to build your own parser.

Share:
10,342

Related videos on Youtube

georgepsarakis
Author by

georgepsarakis

Software Engineer. Check my open-source projects on Github.

Updated on June 04, 2022

Comments

  • georgepsarakis
    georgepsarakis about 2 years

    I would like to write an SQL Parser. I was considering a high level language (probably Python).

    Is there a good starting point for some theoretical concepts, a tutorial or something more generic on writing parsers ?

    • Howard
      Howard
      Have a look to the right =>. There is a section "related" with some examples on what you might look for.
    • mlg
      mlg
      I wrote a blogpost on this last year that was very well received (#1 google build sql parser right now): marianogappa.github.io/software/2019/06/05/…
    • Bart Kiers
      Bart Kiers
      Is this a learning exercise? If not, I recommend using some existing parser instead.