Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: third_party/sqlite/src/addopcodes.awk

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/VERSION ('k') | third_party/sqlite/src/art/2005osaward.gif » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/awk 1 #!/usr/bin/awk
2 # 2 #
3 # This script appends additional token codes to the end of the 3 # This script appends additional token codes to the end of the
4 # parse.h file that lemon generates. These extra token codes are 4 # parse.h file that lemon generates. These extra token codes are
5 # not used by the parser. But they are used by the tokenizer and/or 5 # not used by the parser. But they are used by the tokenizer and/or
6 # the code generator. 6 # the code generator.
7 # 7 #
8 # 8 #
9 BEGIN { 9 BEGIN {
10 max = 0 10 max = 0
11 } 11 }
12 /^#define TK_/ { 12 /^#define TK_/ {
13 print $0 13 print $0
14 if( max<$3 ) max = $3 14 if( max<$3 ) max = $3
15 } 15 }
16 END { 16 END {
17 printf "#define TK_%-29s %4d\n", "TO_TEXT", ++max 17 printf "#define TK_%-29s %4d\n", "TO_TEXT", ++max
18 printf "#define TK_%-29s %4d\n", "TO_BLOB", ++max 18 printf "#define TK_%-29s %4d\n", "TO_BLOB", ++max
19 printf "#define TK_%-29s %4d\n", "TO_NUMERIC", ++max 19 printf "#define TK_%-29s %4d\n", "TO_NUMERIC", ++max
20 printf "#define TK_%-29s %4d\n", "TO_INT", ++max 20 printf "#define TK_%-29s %4d\n", "TO_INT", ++max
21 printf "#define TK_%-29s %4d\n", "TO_REAL", ++max 21 printf "#define TK_%-29s %4d\n", "TO_REAL", ++max
22 printf "#define TK_%-29s %4d\n", "ISNOT", ++max
22 printf "#define TK_%-29s %4d\n", "END_OF_FILE", ++max 23 printf "#define TK_%-29s %4d\n", "END_OF_FILE", ++max
23 printf "#define TK_%-29s %4d\n", "ILLEGAL", ++max 24 printf "#define TK_%-29s %4d\n", "ILLEGAL", ++max
24 printf "#define TK_%-29s %4d\n", "SPACE", ++max 25 printf "#define TK_%-29s %4d\n", "SPACE", ++max
25 printf "#define TK_%-29s %4d\n", "UNCLOSED_STRING", ++max 26 printf "#define TK_%-29s %4d\n", "UNCLOSED_STRING", ++max
26 printf "#define TK_%-29s %4d\n", "FUNCTION", ++max 27 printf "#define TK_%-29s %4d\n", "FUNCTION", ++max
27 printf "#define TK_%-29s %4d\n", "COLUMN", ++max 28 printf "#define TK_%-29s %4d\n", "COLUMN", ++max
28 printf "#define TK_%-29s %4d\n", "AGG_FUNCTION", ++max 29 printf "#define TK_%-29s %4d\n", "AGG_FUNCTION", ++max
29 printf "#define TK_%-29s %4d\n", "AGG_COLUMN", ++max 30 printf "#define TK_%-29s %4d\n", "AGG_COLUMN", ++max
30 printf "#define TK_%-29s %4d\n", "CONST_FUNC", ++max 31 printf "#define TK_%-29s %4d\n", "CONST_FUNC", ++max
32 printf "#define TK_%-29s %4d\n", "UMINUS", ++max
33 printf "#define TK_%-29s %4d\n", "UPLUS", ++max
31 } 34 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/VERSION ('k') | third_party/sqlite/src/art/2005osaward.gif » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698