code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(14 lines)
1 // This file defines how to compile enums
3 #pragma once
5 #include "../ast.h"
6 #include "../environment.h"
7 #include "../stdlib/datatypes.h"
8 #include "../types.h"
10 Text_t compile_empty_enum(type_t *t);
11 Text_t compile_enum_constructors(env_t *env, const char *name, tag_ast_t *tags);
12 Text_t compile_enum_field_access(env_t *env, ast_t *ast);
13 Text_t compile_enum_header(env_t *env, const char *name, tag_ast_t *tags);
14 Text_t compile_enum_typeinfo(env_t *env, const char *name, tag_ast_t *tags);