Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 354 Bytes
#ifndef D20_TOKEN_H
#define D20_TOKEN_H
typedef enum {
TOKEN_INT,
TOKEN_DICE,
TOKEN_SIGN
} TOKEN_TYPE;
typedef struct token Token;
Token * token_new(char *s, TOKEN_TYPE t, unsigned loc);
void token_free(void *self);
char * token_str(Token *self);
TOKEN_TYPE token_type(Token *self);
unsigned token_loc(Token *self);
#endif // D20_TOKEN_H