Cleaned up the TokenStringify function and started toying with ways to handle syncing in the parser.

This commit is contained in:
2025-06-26 00:36:37 -05:00
parent b759589e84
commit 3a5788f4ab
6 changed files with 70 additions and 116 deletions
+3 -2
View File
@@ -9,7 +9,7 @@
#include "keywords.h"
typedef enum {
Empty,
Empty = 0,
String,
Number,
Symbol,
@@ -46,8 +46,9 @@ typedef struct _token {
bool Resolved;
} Token;
extern const Token TokenEmpty;
Token* TokenCreate(TokenType type, int lineNumber, int columnNumber, bool resolved);
char* TokenStringify(const Token* token);
int StringifyTokenType(TokenType type, char buffer[32]);
#endif