39#define MAX_TOKEN_LEN 11
45#define X(str) str, ARRAY_SIZE(str) - 1
47 {
X(
L"ADD"), TK_ADD },
48 {
X(
L"ALTER"), TK_ALTER },
49 {
X(
L"AND"), TK_AND },
51 {
X(
L"CHAR"), TK_CHAR },
52 {
X(
L"CHARACTER"), TK_CHAR },
53 {
X(
L"CREATE"), TK_CREATE },
54 {
X(
L"DELETE"), TK_DELETE },
55 {
X(
L"DISTINCT"), TK_DISTINCT },
56 {
X(
L"DROP"), TK_DROP },
57 {
X(
L"FREE"), TK_FREE },
58 {
X(
L"FROM"), TK_FROM },
59 {
X(
L"HOLD"), TK_HOLD },
60 {
X(
L"INSERT"), TK_INSERT },
61 {
X(
L"INT"), TK_INT },
62 {
X(
L"INTEGER"), TK_INT },
63 {
X(
L"INTO"), TK_INTO },
65 {
X(
L"KEY"), TK_KEY },
66 {
X(
L"LIKE"), TK_LIKE },
67 {
X(
L"LOCALIZABLE"), TK_LOCALIZABLE },
68 {
X(
L"LONG"), TK_LONG },
69 {
X(
L"LONGCHAR"), TK_LONGCHAR },
70 {
X(
L"NOT"), TK_NOT },
71 {
X(
L"NULL"), TK_NULL },
72 {
X(
L"OBJECT"), TK_OBJECT },
74 {
X(
L"ORDER"), TK_ORDER },
75 {
X(
L"PRIMARY"), TK_PRIMARY },
76 {
X(
L"SELECT"), TK_SELECT },
77 {
X(
L"SET"), TK_SET },
78 {
X(
L"SHORT"), TK_SHORT },
79 {
X(
L"TABLE"), TK_TABLE },
80 {
X(
L"TEMPORARY"), TK_TEMPORARY },
81 {
X(
L"UPDATE"), TK_UPDATE },
82 {
X(
L"VALUES"), TK_VALUES },
83 {
X(
L"WHERE"), TK_WHERE },
91 const struct keyword *k1 = m1, *k2 = m2;
95 if (k1->
len < k2->len)
return -1;
96 else if (k1->
len > k2->len)
return 1;
133 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
134 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
135 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
136 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
137 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
138 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1,
139 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
140 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
141 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
142 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
143 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
144 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
145 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
146 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
147 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
148 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
156 return c >=
'0' &&
c <=
'9';
164 return c ==
' ' ||
c ==
'\t' ||
c ==
'\n' ||
c ==
'\f';
177 case ' ':
case '\t':
case '\n':
case '\f':
182 if(
z[1]==0 )
return -1;
201 }
else if(
z[1]==
'>' ){
230 case '`':
case '\'': {
249 case '0':
case '1':
case '2':
case '3':
case '4':
250 case '5':
case '6':
case '7':
case '8':
case '9':
255 for(
i=1;
z[
i] &&
z[
i-1]!=
']';
i++){}
GLdouble GLdouble GLdouble r
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const struct keyword aKeywordTable[]
static int sqliteKeywordCode(const WCHAR *z, int n)
int sqliteGetToken(const WCHAR *z, int *tokenType, int *skip)
static const char isIdChar[]
static int isDigit(WCHAR c)
static int isSpace(WCHAR c)
static int __cdecl compKeyword(const void *m1, const void *m2)