# # Run this TCL script to generate HTML for the goals.html file. # set rcsid {$Id: optoverview.tcl,v 1.5 2005/11/24 13:15:34 drh Exp $} source common.tcl header {The SQLite Query Optimizer Overview} proc CODE {text} { puts "
" } proc SYNTAX {text} { puts "" puts $text puts "
" } proc IMAGE {name {caption {}}} { puts "" set t2 [string map {& & < < > >} $text] regsub -all "/(\[^\n/\]+)/" $t2 {\1} t3 puts "$t3" puts "
$t3
\n" } set level(0) 0 set level(1) 0 proc HEADING {n name {tag {}}} { if {$tag!=""} { puts "" } global level incr level($n) for {set i [expr {$n+1}]} {$i<10} {incr i} { set level($i) 0 } if {$n==0} { set num {} } elseif {$n==1} { set num $level(1).0 } else { set num $level(1) for {set i 2} {$i<=$n} {incr i} { append num .$level($i) } } incr n 1 puts "