hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/sfinae.l
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 11:52:25 +0200
committerhachem <im@hachem.wtf>2026-09-19 11:52:25 +0200
commitb20c46c555986a99be70de61d91bc225e53f31d2 (patch)
tree7c3b94ca7cd894e0597bcef65f5f19ea9f1e7ecd /sfinae.l
parentdd52ccd9319aa847cddc486519075b806c9e9092 (diff)
eval: sum product and quotient
Diffstat (limited to 'sfinae.l')
-rw-r--r--sfinae.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfinae.l b/sfinae.l
index 5c67f3c..5857a2b 100644
--- a/sfinae.l
+++ b/sfinae.l
@@ -36,6 +36,9 @@ static int fail(const char* message)
"commit" return TOK_COMMIT;
"decltype" return TOK_DECLTYPE;
"difference" return TOK_DIFFERENCE;
+"sum" return TOK_SUM;
+"product" return TOK_PRODUCT;
+"quotient" return TOK_QUOTIENT;
[<>(),;] return yytext[0];
'\\.' yylval.character = unescape(yytext[2]); return TOK_CHAR;
'.' yylval.character = yytext[1]; return TOK_CHAR;