| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** Compile and run this standalone program in order to generate code that | 2 ** Compile and run this standalone program in order to generate code that |
| 3 ** implements a function that will translate alphabetic identifiers into | 3 ** implements a function that will translate alphabetic identifiers into |
| 4 ** parser token codes. | 4 ** parser token codes. |
| 5 */ | 5 */ |
| 6 #include <stdio.h> | 6 #include <stdio.h> |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <assert.h> | 9 #include <assert.h> |
| 10 | 10 |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 printf(" }\n"); | 593 printf(" }\n"); |
| 594 printf(" return TK_ID;\n"); | 594 printf(" return TK_ID;\n"); |
| 595 printf("}\n"); | 595 printf("}\n"); |
| 596 printf("int sqlite3KeywordCode(const unsigned char *z, int n){\n"); | 596 printf("int sqlite3KeywordCode(const unsigned char *z, int n){\n"); |
| 597 printf(" return keywordCode((char*)z, n);\n"); | 597 printf(" return keywordCode((char*)z, n);\n"); |
| 598 printf("}\n"); | 598 printf("}\n"); |
| 599 printf("#define SQLITE_N_KEYWORD %d\n", nKeyword); | 599 printf("#define SQLITE_N_KEYWORD %d\n", nKeyword); |
| 600 | 600 |
| 601 return 0; | 601 return 0; |
| 602 } | 602 } |
| OLD | NEW |