mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 11:32:07 +00:00
Implement infrastructure around new lexer
The lexer itself is very much incomplete, but this is intended to be a safe point to revert to should further implementation go south.
This commit is contained in:
@@ -82,7 +82,7 @@ static int32_t Callback_NARG(void)
|
||||
|
||||
static int32_t Callback__LINE__(void)
|
||||
{
|
||||
return nLineNo;
|
||||
return lexer_GetLineNo();
|
||||
}
|
||||
|
||||
static int32_t CallbackPC(void)
|
||||
@@ -113,8 +113,9 @@ int32_t sym_GetValue(struct Symbol const *sym)
|
||||
static void updateSymbolFilename(struct Symbol *sym)
|
||||
{
|
||||
if (snprintf(sym->fileName, _MAX_PATH + 1, "%s",
|
||||
tzCurrentFileName) > _MAX_PATH)
|
||||
fatalerror("%s: File name is too long: '%s'\n", __func__, tzCurrentFileName);
|
||||
lexer_GetFileName()) > _MAX_PATH)
|
||||
fatalerror("%s: File name is too long: '%s'\n", __func__,
|
||||
lexer_GetFileName());
|
||||
sym->fileLine = fstk_GetLine();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user