diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 20:50:28 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 20:50:28 +0200 |
| commit | 6487b5b5301f6cb37c95c3571578d5a42adb2a1a (patch) | |
| tree | bf90b803c6fa43058d54190fd1b52d835901bbcd /sfinae.y | |
| parent | c6aab10e74d58fbcad723c5f074a0bb51e9f2283 (diff) | |
feat: declval
Diffstat (limited to 'sfinae.y')
| -rw-r--r-- | sfinae.y | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -33,6 +33,7 @@ void yyerror(const char* message); %token TOK_SEQUENCE %token TOK_NAME %token TOK_VALUE_OF +%token TOK_DECLVAL %token TOK_VOID %token TOK_INT32 %token TOK_BYTE @@ -197,6 +198,8 @@ value { $$ = node_binary(VALUE_QUOTIENT, $4, $6); } | TOK_COLONCOLON TOK_VALUE_OF '<' name '>' { $$ = node_named(VALUE_VARIABLE, &$4, NULL); } + | TOK_COLONCOLON TOK_DECLVAL '<' type '>' '(' ')' + { $$ = node_unary(VALUE_DECLVAL, $4); } | TOK_COLONCOLON TOK_EXTENT '<' type '>' TOK_COLONCOLON TOK_VALUE { $$ = node_unary(VALUE_EXTENT, $4); } | TOK_COLONCOLON TOK_TUPLE_SIZE '<' type '>' TOK_COLONCOLON TOK_VALUE |
