Documentation Source Text

Check-in [a51c22424f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Demonstrate the ability to include syntax diagram GIFs in requirements.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a51c22424fc245073e684f76bc1f5854c1143066
User & Date: drh 2009-02-20 14:08:02
Context
2009-02-22
16:52
Typo: change "what" to "want" in limits.html. check-in: 4c0e0cc065 user: drh tags: trunk
2009-02-20
14:08
Demonstrate the ability to include syntax diagram GIFs in requirements. check-in: a51c22424f user: drh tags: trunk
2009-02-19
14:38
Update and reformat the requirements documents. check-in: 1112ebf74b user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pages/fileio.in.

1
2
3
4
5
6
7
8
9
10

<tcl>
hd_keywords {file IO}
proc hd_assumption {id text} {
  # hd_requirement $id $text
}
unset -nocomplain fioreq
hd_read_requirement_file $::DOC/req/hlr35000.txt fioreq
proc fileio_noop {args} {}



|







1
2
3
4
5
6
7
8
9
10

<tcl>
hd_keywords {file I/O}
proc hd_assumption {id text} {
  # hd_requirement $id $text
}
unset -nocomplain fioreq
hd_read_requirement_file $::DOC/req/hlr35000.txt fioreq
proc fileio_noop {args} {}

Changes to req/hlr40000.txt.

520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
HLR H41845 
SQLite shall recognize the 4-character sequenence "WHEN" in any combination of upper and lower case letters as the keyword token WHEN.

HLR H41848 
SQLite shall recognize the 5-character sequenence "WHERE" in any combination of upper and lower case letters as the keyword token WHERE.

HLR H42000 
The SQLite parser shall accept SQL statements consisting of an SQL command
followed by a semicolon.
<blockquote><pre>
sql_statement ::= cmd SEMI.
</pre></blockquote>

HLR H42002 
The preparation of an SQL statement that is not accepted by
the SQLite parser shall fail with an error.

HLR H42004 
SQLite shall use the built-in NOCASE collating sequence when comparing







|
|
|
<
<







520
521
522
523
524
525
526
527
528
529


530
531
532
533
534
535
536
HLR H41845 
SQLite shall recognize the 4-character sequenence "WHEN" in any combination of upper and lower case letters as the keyword token WHEN.

HLR H41848 
SQLite shall recognize the 5-character sequenence "WHERE" in any combination of upper and lower case letters as the keyword token WHERE.

HLR H42000 
The SQLite parser shall accept SQL statements conforming to the following
syntax:
<center>[syntax/sql-stmt.gif]</center>



HLR H42002 
The preparation of an SQL statement that is not accepted by
the SQLite parser shall fail with an error.

HLR H42004 
SQLite shall use the built-in NOCASE collating sequence when comparing

Changes to wrap.tcl.

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
..
95
96
97
98
99
100
101



102
103
104
105
106
107
108
...
109
110
111
112
113
114
115



116
117
118
119
120
121
122
  }
  set x2 [split $x |]
  set kw [string trim [lindex $x2 0]]
  if {[llength $x2]==1} {
    set content $kw
    regsub {\([^)]*\)} $content {} kw
    regsub {=.*} $kw {} kw
    regsub -all {[^a-zA-Z0-9_.# -]} $kw {} kw
  } else {
    regsub -all {[^a-zA-Z0-9_.# -]} $kw {} kw
    set content [string trim [lindex $x2 1]]
  }
  global hd llink glink backlink
  if {$hd(enable-main)} {
    set fn $hd(fn-main)
    if {$hd(fragment)!=""} {
      set srcurl $fn#$hd(fragment)
................................................................................
        "<a href=\"$url\">$content</a>"
    } elseif {[info exists llink($fn:$kw)]} {
      puts -nonewline $hd(main) \
        "<a href=\"$hd(rootpath-main)$llink($fn:$kw)\">$content</a>"
    } elseif {[info exists glink($kw)]} {
      puts -nonewline $hd(main) \
        "<a href=\"$hd(rootpath-main)$glink($kw)\">$content</a>"



    } else {
      puts stderr "ERROR: unknown hyperlink target: $kw"
      puts -nonewline $hd(main) "<font color=\"red\">$content</font>"
    }
    lappend backlink($kw) $srcurl
  }
  if {$hd(enable-aux)} {
................................................................................
    if {[regexp {^[Tt]icket #(\d+)$} $kw all tktid]} {
      set url http://www.sqlite.org/cvstrac/tktview?tn=$tktid
      puts -nonewline $hd(aux) \
        "<a href=\"$url\">$content</a>"
    } elseif {[info exists glink($kw)]} {
      puts -nonewline $hd(aux) \
        "<a href=\"$hd(rootpath-aux)$glink($kw)\">$content</a>"



    } else {
      puts stderr "ERROR: unknown hyperlink target: $kw"
      puts -nonewline $hd(aux) "<font color=\"red\">$content</font>"
    }
    lappend backlink($kw) $hd(fn-aux)
  }
}







|

|







 







>
>
>







 







>
>
>







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
..
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
...
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
  }
  set x2 [split $x |]
  set kw [string trim [lindex $x2 0]]
  if {[llength $x2]==1} {
    set content $kw
    regsub {\([^)]*\)} $content {} kw
    regsub {=.*} $kw {} kw
    regsub -all {[^a-zA-Z0-9_.#/ -]} $kw {} kw
  } else {
    regsub -all {[^a-zA-Z0-9_.#/ -]} $kw {} kw
    set content [string trim [lindex $x2 1]]
  }
  global hd llink glink backlink
  if {$hd(enable-main)} {
    set fn $hd(fn-main)
    if {$hd(fragment)!=""} {
      set srcurl $fn#$hd(fragment)
................................................................................
        "<a href=\"$url\">$content</a>"
    } elseif {[info exists llink($fn:$kw)]} {
      puts -nonewline $hd(main) \
        "<a href=\"$hd(rootpath-main)$llink($fn:$kw)\">$content</a>"
    } elseif {[info exists glink($kw)]} {
      puts -nonewline $hd(main) \
        "<a href=\"$hd(rootpath-main)$glink($kw)\">$content</a>"
    } elseif {[regexp {\.gif$} $kw]} {
      puts -nonewline $hd(main) \
        "<img src=\"$hd(rootpath-main)images/$kw\">"
    } else {
      puts stderr "ERROR: unknown hyperlink target: $kw"
      puts -nonewline $hd(main) "<font color=\"red\">$content</font>"
    }
    lappend backlink($kw) $srcurl
  }
  if {$hd(enable-aux)} {
................................................................................
    if {[regexp {^[Tt]icket #(\d+)$} $kw all tktid]} {
      set url http://www.sqlite.org/cvstrac/tktview?tn=$tktid
      puts -nonewline $hd(aux) \
        "<a href=\"$url\">$content</a>"
    } elseif {[info exists glink($kw)]} {
      puts -nonewline $hd(aux) \
        "<a href=\"$hd(rootpath-aux)$glink($kw)\">$content</a>"
    } elseif {[regexp {\.gif$} $kw]} {
      puts -nonewline $hd(main) \
        "<img src=\"$hd(rootpath-aux)images/$kw\">"
    } else {
      puts stderr "ERROR: unknown hyperlink target: $kw"
      puts -nonewline $hd(aux) "<font color=\"red\">$content</font>"
    }
    lappend backlink($kw) $hd(fn-aux)
  }
}