changed node-name according to ast.h

This commit is contained in:
Ur Mom 2024-05-16 11:34:51 +02:00
parent 2757132cf2
commit e57682d717
1 changed files with 2 additions and 4 deletions

View File

@ -283,12 +283,10 @@ boxcall: boxaccess argumentlist {AST_NODE_PTR boxcall = AST_new_node(AST_Call, N
$$ = boxcall;}; $$ = boxcall;};
typecast: expr KeyAs type %prec KeyAs {AST_NODE_PTR reinterpretcast = AST_new_node(AST_reinterpretcast, NULL); typecast: expr KeyAs type %prec KeyAs {$$ = AST_new_node(AST_Typecast, $1);
$$ = typecast;
DEBUG("Type-Cast"); }; DEBUG("Type-Cast"); };
reinterpretcast: '(' type ')' expr {AST_NODE_PTR reinterpretcast = AST_new_node(AST_reinterpretcast, NULL); reinterpretcast: '(' type ')' expr {$$ = AST_new_node(AST_Transmute, $4);
$$ = reinterpretcast;
DEBUG("Reinterpret-Cast"); }; DEBUG("Reinterpret-Cast"); };