aboutsummaryrefslogtreecommitdiff
path: root/include/literal.h
blob: 912dce06a125184322abfc5d7f412d9325850c54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CERC_LITERAL_H
#define CERC_LITERAL_H
enum litkind {
	LIT_INT,
	LIT_FLOAT,
	LIT_CHR,
	LIT_STR,
};

struct literal {
	enum litkind kind;
	union {
		int n;
		double x;
		int c;
		const char *s;
	} v;
};

#endif