On Aug 31, 2018, at 1:55 PM, Scott Robison <[email protected]> wrote:
>
> Is one generated from the other, or are they maintained separately?
They’re separate. Here’s the Tcl source for the bubble diagrams:
https://www.sqlite.org/docsrc/file/?name=art/syntax/bubble-generator-data.tcl
…and here’s the Lemon grammar for SQLite’s SQL parser:
https://www.sqlite.org/src/file?name=src/parse.y
Here’s a brief article on the script that may explain a few things:
https://wiki.tcl.tk/21708
> I...want to do something related to
> identifying SQL syntax at C++ compile time.
In that case, I’d study how ./src/parse.y gets turned into ./parse.[ch] in the
SQLite source tree, then try to reuse as much of parse.y and its associated
bits as you can.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users