3 static struct position pos
;
5 struct expression
*zero_expr()
7 static struct expression
*zero
;
12 zero
= alloc_expression(pos
, EXPR_VALUE
);
17 struct expression
*value_expr(long long val
)
19 struct expression
*expr
;
24 expr
= alloc_expression(pos
, EXPR_VALUE
);
29 struct expression
*deref_expression(struct expression
*deref
, int op
, struct ident
*member
)
31 struct expression
*expr
;
33 expr
= alloc_expression(pos
, EXPR_DEREF
);
36 expr
->member
= member
;
40 struct expression
*assign_expression(struct expression
*left
, struct expression
*right
)
42 struct expression
*expr
;
44 expr
= alloc_expression(right
->pos
, EXPR_ASSIGNMENT
);
51 struct expression
*symbol_expression(struct symbol
*sym
)
53 struct expression
*expr
;
55 expr
= alloc_expression(sym
->pos
, EXPR_SYMBOL
);
57 expr
->symbol_name
= sym
->ident
;