From 0a9605b6b13f2e066a69662f5802b397f8b89424 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 16:15:50 +0200 Subject: feat: char and integral_constant types --- sfinae.y | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sfinae.y') diff --git a/sfinae.y b/sfinae.y index 341be36..aa7650b 100644 --- a/sfinae.y +++ b/sfinae.y @@ -32,6 +32,7 @@ void yyerror(const char* message); %token TOK_INT32 %token TOK_BYTE %token TOK_SIZE_T +%token TOK_CHAR_T %token TOK_REMOVE_CV %token TOK_DECLTYPE %token TOK_DIFFERENCE @@ -138,6 +139,10 @@ type { $$ = node_ternary(TYPE_CONDITIONAL, $4, $6, $8); } | TOK_COLONCOLON TOK_DECLTYPE '(' value ')' { $$ = node_unary(TYPE_DECLTYPE, $4); } + | TOK_COLONCOLON TOK_CHAR_T + { $$ = node_leaf(TYPE_CHAR); } + | TOK_COLONCOLON TOK_INTEGRAL_CONSTANT '<' TOK_COLONCOLON TOK_CHAR_T ',' value '>' + { $$ = node_unary(TYPE_CHAR_CONSTANT, $7); } ; value -- cgit v1.3