Documentation Source Text

Artifact Content

Artifact b7bab7b538dfce2c404b289386b211844515c2f8:

<title>List of SQLite Syntax Diagrams</title>

<h1 align="center">List of SQLite Syntax Diagrams</h1>

<table border=0 cellspacing=25 width="100%"><tr>
  set n [llength $syntax_order]
  set lx [lsort $syntax_order]
  set ncol 3
  set percol [expr {($n+$ncol-1)/$ncol}]
  for {set ii 0} {$ii<$ncol} {incr ii} {
    hd_putsnl {<td valign='top' width='33%'>}
    hd_putsnl {<ul>}
    set max [expr {($ii+1)*$percol}]
    if {$max>$n} {set max $n}
    for {set jj [expr {$ii*$percol}]} {$jj<$max} {incr jj} {
      set name [lindex $lx $jj]
      hd_putsnl "<li><a href='syntax/$name.html'>$name</a></li>"
    hd_putsnl {</ul></td>}
foreach name $syntax_order {
  file mkdir $::DEST/syntax
  hd_open_aux syntax/$name.html
  hd_enable_main 0
  hd_header "SQLite Syntax: $name"
  hd_keywords $name "$name syntax diagram"
  hd_putsnl "<h1 align='center'>$name</h1>"
  hd_putsnl "<blockquote>"
  hd_puts "<img alt=\"syntax diagram $name\" "
  hd_puts "src=\"../images/syntax/$name.gif\">"
  hd_putsnl "</img><br>"
  foreach {cx px} $syntax_linkage($name) break
  if {[llength $px]>0} {
    hd_puts "\nUsed by:"
    foreach c $px {
      hd_puts "&nbsp;&nbsp; <a href='./$c.html'>$c</a>"
  if {[llength $cx]>0} {
    hd_puts "<br></br>\nReferences:"
    foreach c $cx {
      hd_puts "&nbsp;&nbsp; <a href='./$c.html'>$c</a>"
  if {[info exists ::backlink($name)]} {
    unset -nocomplain bk
    foreach c $::backlink($name) {
      regsub {#.*} $c {} c
      set bk($c) 1
    set bklist [lsort [array names bk]]
    if {[llength $bklist]>0} {
      hd_puts "<br></br>\nSee also:"
      foreach c $bklist {
        hd_puts "&nbsp;&nbsp; <a href='../$c'>$c</a>"
  hd_puts "\n</blockquote>\n\n"