aboutsummaryrefslogtreecommitdiff
path: root/enums.h
blob: 5f693e5add7a01dab5eaae13c22826868603ec37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

// Compilation of tagged unions (enums)

#include <gc/cord.h>

#include "ast.h"
#include "environment.h"

CORD compile_enum_typeinfo(env_t *env, ast_t *ast);
CORD compile_enum_constructors(env_t *env, ast_t *ast);
CORD compile_enum_header(env_t *env, ast_t *ast);

// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0