aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/type.h
blob: 455f243817b41c39a170ed210aff015e12b991bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef TYPE_H
#define TYPE_H

#include "lex.h"
#include "prv.h"
#include "parse.h"

const struct type *type_ufind(const struct fn *fn, const char *s);
const struct type *type_find(const struct fn *fn, const char *s);
const struct type *type_insert(struct prv *p, struct type *a);
char *type_name(const struct type *t);
int type(const struct lex *l, struct prv *p,
    int (*fn)(const struct lex *, struct prv *p, const struct type *t));
void type_free(struct type *t);
void type_lfree(struct type *t);

#endif