Added FileInfo struct
This commit is contained in:
parent
373255ecf2
commit
cdfbab75c2
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue