fixed: added type to expressions

This commit is contained in:
Sven Vogel 2024-05-29 21:24:17 +02:00
parent 8494df56cd
commit 875574eb69
1 changed files with 2 additions and 0 deletions

View File

@ -404,6 +404,8 @@ typedef enum ExpressionKind_t {
typedef struct Expression_t { typedef struct Expression_t {
ExpressionKind kind; ExpressionKind kind;
// type of resulting data
Type* result;
union ExpressionImplementation_t { union ExpressionImplementation_t {
Operation operation; Operation operation;
TypeCast typecast; TypeCast typecast;