]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fixed metacharacter coloring with LP, RP, PLUS.
authorjplyon <jplyon@noemail.net>
Sat, 10 May 2003 02:54:02 +0000 (02:54 +0000)
committerjplyon <jplyon@noemail.net>
Sat, 10 May 2003 02:54:02 +0000 (02:54 +0000)
Added more links. (CVS 962)

FossilOrigin-Name: 2bbb08049508829419dd9a3729241b97b017cf36

manifest
manifest.uuid
www/lang.tcl

index 3c74c739502b638b5482622dde426e3d54b324d4..5d41f5fe4f0334eeb07e3ff99691dda4b25cfc11 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Format\skeyword\slists\sin\slang.html\susing\sa\sTCL\sproc.\s(CVS\s961)
-D 2003-05-07T13:37:31
+C Fixed\smetacharacter\scoloring\swith\sLP,\sRP,\sPLUS.\nAdded\smore\slinks.\s(CVS\s962)
+D 2003-05-10T02:54:02
 F Makefile.in 004acec253ecdde985c8ecd5b7c9accdb210378f
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -155,7 +155,7 @@ F www/faq.tcl 12d1788d4abcfe1ff3054e17605df2418883bf6f
 F www/fileformat.tcl d9b586416c0d099b82e02e469d532c9372f98f3f
 F www/formatchng.tcl cbaf0f410096c71f86a7537cf9249fa04b9a659c
 F www/index.tcl b155eba45136d19e7aa6ba979d4093180c335cf7
-F www/lang.tcl 4cec7ec64b805f42a43603f13ebeabeca24cfa3b
+F www/lang.tcl bb945a1081928d9de8f08fa15632ac42c73c0c13
 F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c
 F www/nulls.tcl 29497dac2bc5b437aa7e2e94577dad4d8933ed26
 F www/omitted.tcl 118062f40a203fcb88b8d68ef1d7c0073ac191ec
@@ -165,7 +165,7 @@ F www/speed.tcl cb4c10a722614aea76d2c51f32ee43400d5951be
 F www/sqlite.tcl ffde644361e1d8e2a44a235ff23ad3b43d640df2
 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
-P 55ae7b35ee2dcebc99256d4b1e22a87ea75e3d03
-R 849b94043a42ea202d2d3a2e258a557f
-U drh
-Z e811bb2e7df7f5cfb03940a1ebd0bc01
+P ca75f1ca12cd88dce688e272d73c3c2282079547
+R 0a8fe2a8e044cb4f18a061cc4a59a233
+U jplyon
+Z 66852ddc0c84a5e900bfd52905e03852
index ef1e219399c82798f29b3dd99aa8f0ab8e55b875..9f9a9ba8d3d180f5bd266febaac367fde37508b7 100644 (file)
@@ -1 +1 @@
-ca75f1ca12cd88dce688e272d73c3c2282079547
\ No newline at end of file
+2bbb08049508829419dd9a3729241b97b017cf36
\ No newline at end of file
index 6a218df4922f9e1475ad79a589d80f86d2ddc952..299e2a007cf80c6dba6f74f32801d24b5ab8f5f0 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Run this Tcl script to generate the sqlite.html file.
 #
-set rcsid {$Id: lang.tcl,v 1.56 2003/05/07 13:37:31 drh Exp $}
+set rcsid {$Id: lang.tcl,v 1.57 2003/05/10 02:54:02 jplyon Exp $}
 
 puts {<html>
 <head>
@@ -21,7 +21,8 @@ language.  But it does <a href="omitted.html">omit some features</a>
 while at the same time
 adding a few features of its own.  This document attempts to
 describe percisely what parts of the SQL language SQLite does
-and does not support.</p>
+and does not support.  A list of <a href="#keywords">keywords<a/> is 
+given at the end.</p>
 
 <p>In all of the syntax diagrams that follow, literal text is shown in
 bold blue.  Non-terminal symbols are shown in italic red.  Operators
@@ -88,6 +89,12 @@ proc Syntax {args} {
     regsub -all {[|,.*()]} $body {<big>&</big>} body
     regsub -all { = } $body { <big>=</big> } body
     regsub -all {STAR} $body {<big>*</big>} body
+    ## These metacharacters must be handled to undo being
+    ## treated as SQL punctuation characters above.
+    regsub -all {RPPLUS} $body {</font></b>)+<b><font color="#2c2cf0">} body
+    regsub -all {LP} $body {</font></b>(<b><font color="#2c2cf0">} body
+    regsub -all {RP} $body {</font></b>)<b><font color="#2c2cf0">} body
+    ## Place the left-hand side of the rule in the 2nd table column.
     puts "<td><b><font color=\"#2c2cf0\">$body</font></b></td></tr>"
   }
   puts {</table>}
@@ -754,7 +761,7 @@ Syntax {expr} {
 <expr> [NOT] IN ( <value-list> ) |
 <expr> [NOT] IN ( <select-statement> ) |
 ( <select-statement> ) |
-CASE [<expr>] ( WHEN <expr> THEN <expr> )+ [ELSE <expr>] END
+CASE [<expr>] LP WHEN <expr> THEN <expr> RPPLUS [ELSE <expr>] END
 } {like-op} {
 LIKE | GLOB | NOT LIKE | NOT GLOB
 }
@@ -801,6 +808,7 @@ The operator [Operator %] outputs the remainder of its left
 operand modulo its right operand.</p>"
 puts {
 
+<a name="like"></a>
 <p>The LIKE operator does a wildcard comparision.  The operand
 to the right contains the wildcards.}
 puts "A percent symbol [Operator %] in the right operand
@@ -814,13 +822,18 @@ side against lower case characters on the other.
 characters.  Hence the LIKE operator is case sensitive for
 8-bit iso8859 characters or UTF-8 characters.  For example,
 the expression <b>'a'&nbsp;LIKE&nbsp;'A'</b> is TRUE but
-<b>'&aelig;'&nbsp;LIKE&nbsp;'&AElig;'</b> is FALSE.)
+<b>'&aelig;'&nbsp;LIKE&nbsp;'&AElig;'</b> is FALSE.).  The infix 
+LIKE operator is identical the user function <a href="#likeFunc">
+like(<i>X</i>,<i>Y</i>)</a>.
 </p>
 
+<a name="glob"></a>
 <p>The GLOB operator is similar to LIKE but uses the Unix
 file globbing syntax for its wildcards.  Also, GLOB is case
 sensitive, unlike LIKE.  Both GLOB and LIKE may be preceded by
-the NOT keyword to invert the sense of the test.</p>
+the NOT keyword to invert the sense of the test.  The infix GLOB 
+operator is identical the user function <a href="#globFunc">
+glob(<i>X</i>,<i>Y</i>)</a>.</p>
 
 <p>A column name can be any of the names defined in the CREATE TABLE
 statement or one of the following special identifiers: "<b>ROWID</b>",
@@ -888,13 +901,14 @@ all arguments are NULL then NULL is returned.</td>
 </tr>
 
 <tr>
+<a name="globFunc"></a>
 <td valign="top" align="right">glob(<i>X</i>,<i>Y</i>)</td>
 <td valign="top">This function is used to implement the
 "<b>Y GLOB X</b>" syntax of SQLite.  The
 <a href="c_interface.html#cfunc">sqlite_create_function()</a> 
 interface can
 be used to override this function and thereby change the operation
-of the GLOB operator.</td>
+of the <a href="#glob">GLOB</a> operator.</td>
 </tr>
 
 <tr>
@@ -912,13 +926,14 @@ characters is returned, not the number of bytes.</td>
 </tr>
 
 <tr>
+<a name="likeFunc"></a>
 <td valign="top" align="right">like(<i>X</i>,<i>Y</i>)</td>
 <td valign="top">This function is used to implement the
 "<b>Y LIKE X</b>" syntax of SQL.  The
 <a href="c_interface.html#cfunc">sqlite_create_function()</a> 
 interface can
 be used to override this function and thereby change the operation
-of the LIKE operator.</td>
+of the <a href="#like">LIKE</a> operator.</td>
 </tr>
 
 <tr>
@@ -1046,7 +1061,7 @@ If no column-list is specified then the number of values must
 be the same as the number of columns in the table.  If a column-list
 is specified, then the number of values must match the number of
 specified columns.  Columns of the table that do not appear in the
-column list are fill with the default value, or with NULL if not
+column list are filled with the default value, or with NULL if not
 default value is specified.
 </p>
 
@@ -1375,9 +1390,9 @@ with caution.</p>
 
 <a name="pragma_temp_store"></a>
 <li><p><b>PRAGMA temp_store;
-       <br>PRAGMA temp_store = default;
-       <br>PRAGMA temp_store = memory;
-       <br>PRAGMA temp_store = file;</b></p>
+       <br>PRAGMA temp_store = DEFAULT;
+       <br>PRAGMA temp_store = MEMORY;
+       <br>PRAGMA temp_store = FILE;</b></p>
     <p>Query or change the setting of the "temp_store" flag affecting
     the database for the duration of the current database connection.
     The temp_store flag reverts to its default value when the database
@@ -1422,7 +1437,7 @@ SELECT [ALL | DISTINCT] <result> [FROM <table-list>]
 [HAVING <expr>]
 [<compound-op> <select>]*
 [ORDER BY <sort-expr-list>]
-[LIMIT <integer> [OFFSET <integer>]]
+[LIMIT <integer> [LP OFFSET | , RP <integer>]]
 } {result} {
 <result-column> [, <result-column>]*
 } {result-column} {
@@ -1567,7 +1582,7 @@ puts {
 <p>The following keywords are used by SQLite. Most are either reserved 
 words in SQL-92 or were listed as potential reserved words.  Those which 
 aren't are shown in italics.  Not all of these words are actually used
-by SQLite.  Keywords are not reserved in SQLite.  Any Keyword can be used 
+by SQLite.  Keywords are not reserved in SQLite.  Any keyword can be used 
 as an identifier for SQLite objects (columns, databases, indexes, tables, 
 triggers, views, ...) but must generally be enclosed by brackets or 
 quotes to avoid confusing the parser.  Keyword matching in SQLite is