tokenizer: accept "and" keyword
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 21 Jan 2010 20:21:28 +0000 (21:21 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 25 Jan 2010 16:45:12 +0000 (17:45 +0100)
isl_stream.c

index d22d3fa..2cc4854 100644 (file)
@@ -238,6 +238,8 @@ struct isl_token *isl_stream_next_token(struct isl_stream *s)
                isl_stream_push_char(s, '\0');
                if (!strcasecmp(s->buffer, "exists"))
                        tok->type = ISL_TOKEN_EXISTS;
+               else if (!strcasecmp(s->buffer, "and"))
+                       tok->type = ISL_TOKEN_AND;
                else {
                        tok->type = ISL_TOKEN_IDENT;
                        tok->u.s = strdup(s->buffer);