Syntax diagram generator from SQLite with a few modifications.
Path to a syntax description file should be specified in the command line.
Original generator reads syntax diagram description from
bubble-generator-data.tcl
file.
Allow single quote/brace tokens in the description:
string {
line "\"" {toploop {optx char}} "\""
}
Original generator fails to process "
, {
and }
tokens.
Recognize bracket expression tokens and render them as a hexagon figure:
char {
line [A-Za-z0-9_]
}
To have a [
string token in the diagram escape it with /
:
list {
line /[ {toploop string ;} ]
}