-added Type-Cast

-added Reinterpret-Cast
This commit is contained in:
Ur Mom 2024-05-12 22:54:58 +02:00
parent cd6ebc60ad
commit eccce505e5
1 changed files with 7 additions and 1 deletions

View File

@ -96,6 +96,10 @@ IOqualifyier: KeyIn
| KeyOut KeyIn
| ;
typecast: expr KeyAs type { DEBUG("Type-Cast"); };
reinterpretcast: '(' type ')' expr { DEBUG("Reinterpret-Cast"); };
paramdecl: type ':' Ident { DEBUG("Param-Declaration"); };
funcall: Ident argumentlist { DEBUG("Function call"); };
@ -131,7 +135,9 @@ identlist: Ident ',' identlist
decl: type ':' identlist;
definition: decl '=' expr { DEBUG("Definition"); };
definition: decl '=' expr { DEBUG("Definition"); }
| decl '=' typecast { DEBUG("Definition"); };
| decl '=' reinterpretcast { DEBUG("Definition"); };
assign: Ident '=' expr { DEBUG("Assignment"); };