diff options
author | dan miller | 2007-10-20 02:49:29 +0000 |
---|---|---|
committer | dan miller | 2007-10-20 02:49:29 +0000 |
commit | e36d23a85ebff914d74bb541558c2b6082b78edb (patch) | |
tree | 54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk | |
parent | * Fixed an issue whereby avatar chat distances were being calculated against ... (diff) | |
download | opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.zip opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2 opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz |
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk')
-rw-r--r-- | libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk b/libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk new file mode 100644 index 0000000..b806b1d --- /dev/null +++ b/libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/usr/bin/awk | ||
2 | # | ||
3 | # This script appends additional token codes to the end of the | ||
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 | ||
6 | # the code generator. | ||
7 | # | ||
8 | # | ||
9 | BEGIN { | ||
10 | max = 0 | ||
11 | } | ||
12 | /^#define TK_/ { | ||
13 | print $0 | ||
14 | if( max<$3 ) max = $3 | ||
15 | } | ||
16 | END { | ||
17 | printf "#define TK_%-29s %4d\n", "TO_TEXT", max+1 | ||
18 | printf "#define TK_%-29s %4d\n", "TO_BLOB", max+2 | ||
19 | printf "#define TK_%-29s %4d\n", "TO_NUMERIC", max+3 | ||
20 | printf "#define TK_%-29s %4d\n", "TO_INT", max+4 | ||
21 | printf "#define TK_%-29s %4d\n", "TO_REAL", max+5 | ||
22 | printf "#define TK_%-29s %4d\n", "END_OF_FILE", max+6 | ||
23 | printf "#define TK_%-29s %4d\n", "ILLEGAL", max+7 | ||
24 | printf "#define TK_%-29s %4d\n", "SPACE", max+8 | ||
25 | printf "#define TK_%-29s %4d\n", "UNCLOSED_STRING", max+9 | ||
26 | printf "#define TK_%-29s %4d\n", "COMMENT", max+10 | ||
27 | printf "#define TK_%-29s %4d\n", "FUNCTION", max+11 | ||
28 | printf "#define TK_%-29s %4d\n", "COLUMN", max+12 | ||
29 | printf "#define TK_%-29s %4d\n", "AGG_FUNCTION", max+13 | ||
30 | printf "#define TK_%-29s %4d\n", "AGG_COLUMN", max+14 | ||
31 | printf "#define TK_%-29s %4d\n", "CONST_FUNC", max+15 | ||
32 | } | ||