1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Small size reduction and performance increase in the parser.

FossilOrigin-Name: d62cd757a69cc49c2d309e27c948610b5868632f
This commit is contained in:
drh
2015-11-09 02:08:09 +00:00
parent edd2260b40
commit 0739e45bcd
4 changed files with 28 additions and 33 deletions

View File

@ -18,7 +18,8 @@ while {![eof $in]} {
}
close $in
# The following are the extra token codes to be added
# The following are the extra token codes to be added. SPACE and
# ILLEGAL *must* be the last two token codes and they must be in that order.
#
set extras {
TO_TEXT
@ -28,8 +29,6 @@ set extras {
TO_REAL
ISNOT
END_OF_FILE
ILLEGAL
SPACE
UNCLOSED_STRING
FUNCTION
COLUMN
@ -38,6 +37,12 @@ set extras {
UMINUS
UPLUS
REGISTER
SPACE
ILLEGAL
}
if {[lrange $extras end-1 end]!="SPACE ILLEGAL"} {
error "SPACE and ILLEGAL must be the last two token codes and they\
must be in that order"
}
foreach x $extras {
incr max