hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/sfinae.l
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 13:47:08 +0200
committerhachem <im@hachem.wtf>2026-09-19 13:47:08 +0200
commitd0ca03c84bcad3dc42fd173b0baf3a15e9b52f9b (patch)
tree89fa494129849e23b1d760466e87ef6046cbfcb4 /sfinae.l
parenta79c97e04562b171780a24cba2cb1a71acfa4bbb (diff)
feat: add conditionals
Diffstat (limited to 'sfinae.l')
-rw-r--r--sfinae.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/sfinae.l b/sfinae.l
index 98da1cf..4832ed0 100644
--- a/sfinae.l
+++ b/sfinae.l
@@ -49,6 +49,13 @@ static int fail(const char* message)
"tuple_size" return TOK_TUPLE_SIZE;
"integral_constant" return TOK_INTEGRAL_CONSTANT;
"value" return TOK_VALUE;
+"conditional_t" return TOK_CONDITIONAL_T;
+"conditional" return TOK_CONDITIONAL;
+"true_type" return TOK_TRUE_TYPE;
+"false_type" return TOK_FALSE_TYPE;
+"is_same" return TOK_IS_SAME;
+"equal" return TOK_EQUAL;
+"less" return TOK_LESS;
[<>(),;] return yytext[0];
'\\.' yylval.character = unescape(yytext[2]); return TOK_CHAR;
'.' yylval.character = yytext[1]; return TOK_CHAR;