Added FileInfo struct

This commit is contained in:
Kyler Olsen 2025-10-28 22:46:44 -06:00
parent 373255ecf2
commit cdfbab75c2
2 changed files with 9 additions and 0 deletions

View File

@ -107,6 +107,7 @@ typedef struct LexerTokenResult {
Token result; Token result;
SlsError error; SlsError error;
}; };
FileInfo file_info;
struct LexerTokenResult *next; struct LexerTokenResult *next;
} LexerTokenResult; } LexerTokenResult;

View File

@ -16,4 +16,12 @@ typedef enum {
SLS_RESULT, SLS_RESULT,
} SlsResultType; } SlsResultType;
typedef struct {
const char *filename;
size_t line;
size_t column;
size_t length;
size_t lines;
} FileInfo;
#endif // SLS_ERROR_H #endif // SLS_ERROR_H