From d0ca03c84bcad3dc42fd173b0baf3a15e9b52f9b Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 13:47:08 +0200 Subject: feat: add conditionals --- sfinae.l | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sfinae.l') 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; -- cgit v1.3