Cthulhu
0.2.10
Cthulhu compiler collection
|
#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"
Go to the source code of this file.
Functions | |
tree_t * | tree_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_t * | tree_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_t * | tree_module_tag (const tree_t *self, size_t tag) |
tree_cookie_t * | tree_get_cookie (tree_t *sema) |
return a resolution cookie More... | |