summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index ec6afaa..f3415cf 100644
--- a/parse.c
+++ b/parse.c
@@ -85,9 +85,12 @@ typedef struct {
unsigned long out_var; /* which out variable is used for this call (used by cgen) */
} CallExpr;
+#define EXPR_FLAG_FOUND_TYPE 0x01
+
typedef struct Expression {
Location where;
ExprKind kind;
+ uint16_t flags;
Type type;
union {
Floating floatl;
@@ -609,6 +612,7 @@ static bool parse_args(Parser *p, Array *args) {
static bool parse_expr(Parser *p, Expression *e, Token *end) {
Tokenizer *t = p->tokr;
+ e->flags = 0;
if (end == NULL) return false;
e->where = t->token->where;
if (end <= t->token) {