Jacob
d95c134a54
Need to fix testing functions so that every assert is run in each function of the registry.
19 lines
347 B
C
19 lines
347 B
C
#ifndef TOKEN_H
|
|
#define TOKEN_H
|
|
|
|
typedef enum TokenType {
|
|
TOKEN_TYPE_CALL,
|
|
TOKEN_TYPE_NUMBER,
|
|
} TokenType;
|
|
|
|
// Token.
|
|
typedef struct Token {
|
|
TokenType type; // The type of the Token.
|
|
char* val; // The text of the Token.
|
|
} Token;
|
|
|
|
Token* token_init(TokenType type, char* val);
|
|
void token_destroy(Token* token);
|
|
|
|
#endif
|