You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
307 B
C
25 lines
307 B
C
7 years ago
|
#ifndef TOKEN_H_
|
||
|
#define TOKEN_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
typedef struct {
|
||
|
uint16_t nameidx;
|
||
|
uint8_t type;
|
||
|
uint8_t info;
|
||
|
uint32_t value;
|
||
|
} variable;
|
||
|
|
||
|
#define INFO_ARGS(x) ((x) & 0x07)
|
||
|
#define INFO_RET (1 << 3)
|
||
|
|
||
|
enum vartype {
|
||
|
VALUE = 0,
|
||
|
VARIABLE,
|
||
|
OPERATOR,
|
||
|
FUNCTION,
|
||
|
CFUNCTION
|
||
|
};
|
||
|
|
||
|
#endif // TOKEN_H_
|