Added FileInfo struct
This commit is contained in:
parent
373255ecf2
commit
cdfbab75c2
|
|
@ -107,6 +107,7 @@ typedef struct LexerTokenResult {
|
|||
Token result;
|
||||
SlsError error;
|
||||
};
|
||||
FileInfo file_info;
|
||||
struct LexerTokenResult *next;
|
||||
} LexerTokenResult;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,12 @@ typedef enum {
|
|||
SLS_RESULT,
|
||||
} SlsResultType;
|
||||
|
||||
typedef struct {
|
||||
const char *filename;
|
||||
size_t line;
|
||||
size_t column;
|
||||
size_t length;
|
||||
size_t lines;
|
||||
} FileInfo;
|
||||
|
||||
#endif // SLS_ERROR_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue