Add Identifier struct to lexer header
This commit is contained in:
parent
66858c5474
commit
a7d2b1c421
|
|
@ -6,6 +6,8 @@
|
|||
#ifndef SLS_LEXER_H
|
||||
#define SLS_LEXER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum {
|
||||
TOKEN_EOF,
|
||||
TOKEN_IDENTIFIER,
|
||||
|
|
@ -18,4 +20,9 @@ typedef enum {
|
|||
TOKEN_TYPE_TUPLE,
|
||||
} TokenType;
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
uint8_t is_literal;
|
||||
} Identifier;
|
||||
|
||||
#endif // SLS_LEXER_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue