scl/src/include/token.h
2024-10-02 21:06:54 -04:00

19 lines
323 B
C

#ifndef TOKEN_H
#define TOKEN_H
typedef enum {
TOKEN_TYPE_CALL,
TOKEN_TYPE_NUMBER,
} TokenType;
// Token.
typedef struct {
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