summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/types.h b/types.h
index d6143da..84ae982 100644
--- a/types.h
+++ b/types.h
@@ -367,7 +367,8 @@ typedef enum {
EXPR_DSIZEOF,
EXPR_DALIGNOF,
EXPR_SLICE,
- EXPR_TYPE
+ EXPR_TYPE,
+ EXPR_VAL /* a value (it's useful to have this). for now, tuples are not supported. see cgen_set_tuple */
} ExprKind;
typedef enum {
@@ -535,6 +536,10 @@ typedef struct Expression {
};
struct Expression *tuple;
Type typeval;
+ struct {
+ Value val;
+ IdentID val_c_id;
+ };
};
} Expression;