Cleaned up the TokenStringify function and started toying with ways to handle syncing in the parser.
This commit is contained in:
+3
-2
@@ -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
|
||||
Reference in New Issue
Block a user