Cthulhu  0.2.10
Cthulhu compiler collection
sema.c File Reference
#include "arena/arena.h"
#include "common.h"
#include "cthulhu/tree/query.h"
#include "std/vector.h"
#include "std/map.h"
#include "memory/memory.h"
#include "base/panic.h"
Include dependency graph for sema.c:

Go to the source code of this file.

Functions

tree_ttree_module_root (logger_t *reports, tree_cookie_t *cookie, const node_t *node, const char *name, size_t decls, const size_t *sizes, arena_t *arena)
 
tree_ttree_module (tree_t *parent, const node_t *node, const char *name, size_t decls, const size_t *sizes)
 create a new module More...
 
void * tree_module_get (tree_t *self, size_t tag, const char *name)
 recursively search for a declaration in a module More...
 
void * tree_module_find (tree_t *sema, size_t tag, const char *name, tree_t **module)
 search for a declaration in a module also returns the module that the declaration was found in More...
 
void * tree_module_set (tree_t *self, size_t tag, const char *name, void *value)
 set a declaration in the current module More...
 
map_ttree_module_tag (const tree_t *self, size_t tag)
 
tree_cookie_ttree_get_cookie (tree_t *sema)
 return a resolution cookie More...