29 lines
424 B
C
29 lines
424 B
C
// Kyler Olsen
|
|
// YREA SLS
|
|
// Lexer Header
|
|
// October 2025
|
|
|
|
#ifndef SLS_LEXER_H
|
|
#define SLS_LEXER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
TOKEN_EOF,
|
|
TOKEN_IDENTIFIER,
|
|
TOKEN_INTEGER,
|
|
TOKEN_FLOAT,
|
|
TOKEN_STRING,
|
|
TOKEN_BOOLEAN,
|
|
TOKEN_ARRAY,
|
|
TOKEN_TOKEN_STRING,
|
|
TOKEN_TYPE_TUPLE,
|
|
} TokenType;
|
|
|
|
typedef struct {
|
|
const char *name;
|
|
uint8_t is_literal;
|
|
} Identifier;
|
|
|
|
#endif // SLS_LEXER_H
|