hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/sfinae.l
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 12:38:43 +0200
committerhachem <im@hachem.wtf>2026-09-19 12:38:43 +0200
commita79c97e04562b171780a24cba2cb1a71acfa4bbb (patch)
tree412642f948a30eb220512c304b34d60356f23b42 /sfinae.l
parent74a8a2b10a0513f5346ec47aa9b463e30f2b972e (diff)
types: array, extent, tuple_size, integral_constant
Diffstat (limited to 'sfinae.l')
-rw-r--r--sfinae.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/sfinae.l b/sfinae.l
index 37ddd1a..98da1cf 100644
--- a/sfinae.l
+++ b/sfinae.l
@@ -44,6 +44,11 @@ static int fail(const char* message)
"sum" return TOK_SUM;
"product" return TOK_PRODUCT;
"quotient" return TOK_QUOTIENT;
+"array" return TOK_ARRAY;
+"extent" return TOK_EXTENT;
+"tuple_size" return TOK_TUPLE_SIZE;
+"integral_constant" return TOK_INTEGRAL_CONSTANT;
+"value" return TOK_VALUE;
[<>(),;] return yytext[0];
'\\.' yylval.character = unescape(yytext[2]); return TOK_CHAR;
'.' yylval.character = yytext[1]; return TOK_CHAR;