Cthulhu  0.2.10
Cthulhu compiler collection
main.c File Reference
#include "cthulhu/broker/broker.h"
#include "cthulhu/tree/tree.h"
#include "base/log.h"
#include "driver/driver.h"
Include dependency graph for main.c:

Go to the source code of this file.

Variables

CT_DRIVER_API const language_t kExampleModule
 

Variable Documentation

◆ kExampleModule

CT_DRIVER_API const language_t kExampleModule
Initial value:
= {
.info = {
.id = "lang/example",
.name = "Example",
.version = {
.license = "GPLv3",
.desc = "Example language driver",
.author = "Elliot Haisley",
.version = CT_NEW_VERSION(1, 0, 2)
},
},
.builtin = {
.name = CT_TEXT_VIEW("example\0lang"),
.decls = kDeclSizes,
.length = eSemaCount,
},
.exts = kLangNames,
.fn_create = ex_create,
.fn_destroy = ex_destroy,
.fn_passes = {
[ePassForwardDecls] = ex_forward_symbols,
[ePassImportModules] = ex_compile_imports,
[ePassCompileTypes] = ex_compile_types,
[ePassCompileDecls] = ex_compile_symbols
}
}
#define CT_TEXT_VIEW(str)
create a text view from a string literal
Definition: text.h:39
#define CT_NEW_VERSION(major, minor, patch)
creates a new ctu_version_t from major, minor and patch
Definition: version_def.h:20
@ eSemaCount
Definition: tree.h:47

Definition at line 50 of file main.c.