diff options
author | dan miller | 2007-10-21 08:36:32 +0000 |
---|---|---|
committer | dan miller | 2007-10-21 08:36:32 +0000 |
commit | 2f8d7092bc2c9609fa98d6888106b96f38b22828 (patch) | |
tree | da6c37579258cc965b52a75aee6135fe44237698 /libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk | |
parent | * Committing new PolicyManager based on an ACL system. (diff) | |
download | opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.zip opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.gz opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.bz2 opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.xz |
libraries moved to opensim-libs, a new repository
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, 0 insertions, 32 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk b/libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk deleted file mode 100644 index b806b1d..0000000 --- a/libraries/sqlite/unix/sqlite-3.5.1/addopcodes.awk +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | } | ||