From be43ea893018090044cd411bc5b50787b99087b8 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 15:51:57 +0200 Subject: feat: add reapts and loops --- sfinae.y | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sfinae.y') diff --git a/sfinae.y b/sfinae.y index f97147f..341be36 100644 --- a/sfinae.y +++ b/sfinae.y @@ -24,6 +24,7 @@ void yyerror(const char* message); %token TOK_DECLARE %token TOK_UNDECLARE %token TOK_ENABLE_IF +%token TOK_REPEAT %token TOK_SEQUENCE %token TOK_NAME %token TOK_VALUE_OF @@ -79,6 +80,8 @@ statement { $$ = node_named(STMT_UNDECLARE, &$4, NULL); } | TOK_COLONCOLON TOK_ENABLE_IF '<' condition ',' sequence '>' TOK_COLONCOLON TOK_COMMIT { $$ = node_block(STMT_ENABLE_IF, $4, $6); } + | TOK_COLONCOLON TOK_REPEAT '<' value ',' sequence '>' TOK_COLONCOLON TOK_COMMIT + { $$ = node_block(STMT_REPEAT, $4, $6); } ; // the statements inside are committed one by one, without the semicolons -- cgit v1.3