Add Identifier struct to lexer header

This commit is contained in:
Kyler Olsen 2025-10-27 17:34:53 -06:00
parent 66858c5474
commit a7d2b1c421
1 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,8 @@
#ifndef SLS_LEXER_H #ifndef SLS_LEXER_H
#define SLS_LEXER_H #define SLS_LEXER_H
#include <stdint.h>
typedef enum { typedef enum {
TOKEN_EOF, TOKEN_EOF,
TOKEN_IDENTIFIER, TOKEN_IDENTIFIER,
@ -18,4 +20,9 @@ typedef enum {
TOKEN_TYPE_TUPLE, TOKEN_TYPE_TUPLE,
} TokenType; } TokenType;
typedef struct {
const char *name;
uint8_t is_literal;
} Identifier;
#endif // SLS_LEXER_H #endif // SLS_LEXER_H