Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.y:
$$ = create_loop(ctx, LOOP_DO_WHILE, &$1, NULL, $6, NULL, $3, &@2);
$$ = create_loop(ctx, LOOP_DO_WHILE, &$1, NULL, $7, NULL, $4, &@3);
hlsl_pop_scope(ctx); }
- | attribute_list_optional KW_FOR '(' scope_start expr_statement expr_statement expr_optional ')' statement
- | attribute_list_optional loop_scope_start KW_FOR '(' expr_statement expr_statement expr_optional ')' statement {
$$ = create_loop(ctx, LOOP_FOR, &$1, $5, $6, $7, $9, &@2);
$$ = create_loop(ctx, LOOP_FOR, &$1, $5, $6, $7, $9, &@3); hlsl_pop_scope(ctx); }
- | attribute_list_optional KW_FOR '(' scope_start declaration expr_statement expr_optional ')' statement
- | attribute_list_optional loop_scope_start KW_FOR '(' declaration expr_statement expr_optional ')' statement {
$$ = create_loop(ctx, LOOP_FOR, &$1, $5, $6, $7, $9, &@2);
$$ = create_loop(ctx, LOOP_FOR, &$1, $5, $6, $7, $9, &@3);
Here too.