6 #if defined(__cplusplus)
10 enum isl_token_type
{ ISL_TOKEN_UNKNOWN
= 256, ISL_TOKEN_VALUE
,
11 ISL_TOKEN_IDENT
, ISL_TOKEN_GE
,
12 ISL_TOKEN_LE
, ISL_TOKEN_TO
, ISL_TOKEN_AND
,
16 enum isl_token_type type
;
18 unsigned int on_new_line
: 1;
41 struct isl_token
*tokens
[5];
45 struct isl_stream
* isl_stream_new_file(struct isl_ctx
*ctx
, FILE *file
);
46 struct isl_stream
* isl_stream_new_str(struct isl_ctx
*ctx
, const char *str
);
47 void isl_stream_free(struct isl_stream
*s
);
49 struct isl_token
*isl_stream_next_token(struct isl_stream
*s
);
50 void isl_stream_push_token(struct isl_stream
*s
, struct isl_token
*tok
);
51 int isl_stream_eat(struct isl_stream
*s
, int type
);
53 #if defined(__cplusplus)