scl/src/include/token.h
Jacob d95c134a54 Test and stuff.
Need to fix testing functions so that every assert is run in each
function of the registry.
2024-09-30 20:55:46 -04:00

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