isl_stream: parse infty
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 3 Mar 2010 21:22:21 +0000 (22:22 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 4 Mar 2010 18:04:56 +0000 (19:04 +0100)
include/isl_stream.h
isl_stream.c

index 76f81f0..b69e8ab 100644 (file)
@@ -23,7 +23,7 @@ enum isl_token_type { ISL_TOKEN_ERROR = -1,
                        ISL_TOKEN_LE, ISL_TOKEN_GT, ISL_TOKEN_LT,
                        ISL_TOKEN_TO, ISL_TOKEN_AND,
                        ISL_TOKEN_OR, ISL_TOKEN_EXISTS,
-                       ISL_TOKEN_DEF,
+                       ISL_TOKEN_DEF, ISL_TOKEN_INFTY,
                        ISL_TOKEN_LAST };
 
 struct isl_token {
index a24b2f8..fe5ee87 100644 (file)
@@ -209,6 +209,10 @@ static enum isl_token_type check_keywords(struct isl_stream *s)
                return ISL_TOKEN_AND;
        if (!strcasecmp(s->buffer, "or"))
                return ISL_TOKEN_OR;
+       if (!strcasecmp(s->buffer, "infty"))
+               return ISL_TOKEN_INFTY;
+       if (!strcasecmp(s->buffer, "infinity"))
+               return ISL_TOKEN_INFTY;
 
        if (!s->keywords)
                return ISL_TOKEN_IDENT;