aboutsummaryrefslogtreecommitdiffstats
path: root/variable.h
blob: 4c7b98740bd9a39f8c92ec7522e4b9e6b94e8092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef VARIABLE_H_
#define VARIABLE_H_

#include <stdint.h>

typedef struct {
	uint8_t tmp    :1;
	uint8_t type   :3;
	uint8_t unused :4;
	union {
		float f;
		uint32_t p;
	} value;
} variable;

enum VARTYPE {
	NUMBER = 0,
	STRING,
	OPERATOR,
	FUNC,
	CFUNC,
};

#endif // VARIABLE_H_