Cthulhu  0.2.10
Cthulhu compiler collection
expr.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-3.0-only
2 
3 #pragma once
4 
5 #include "oberon/ast.h"
6 
7 #include "cthulhu/tree/tree.h"
8 
9 tree_t *obr_sema_rvalue(tree_t *sema, obr_t *expr, const tree_t *implicit_type);
10 tree_t *obr_sema_lvalue(tree_t *sema, obr_t *expr);
11 
12 tree_t *obr_default_value(const node_t *node, const tree_t *type);
13 
14 tree_t *obr_sema_stmts(tree_t *sema, const node_t *node, vector_t *stmts);
tree_t * obr_default_value(const node_t *node, const tree_t *type)
Definition: expr.c:197
tree_t * obr_sema_rvalue(tree_t *sema, obr_t *expr, const tree_t *implicit_type)
Definition: expr.c:160
tree_t * obr_sema_lvalue(tree_t *sema, obr_t *expr)
Definition: expr.c:183
tree_t * obr_sema_stmts(tree_t *sema, const node_t *node, vector_t *stmts)
Definition: expr.c:313
a position in a source file
Definition: node.h:23
Definition: ast.h:93
Definition: tree.h:67
a generic vector of pointers
Definition: vector.c:16