mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 20:12:07 +00:00
Color verbose output as magenta
Output RGBASM's lexed tokens at level 5 (TRACE)
This commit is contained in:
@@ -2255,8 +2255,9 @@ yy::parser::symbol_type yylex() {
|
||||
lexerState->lastToken = token.type;
|
||||
lexerState->atLineStart = token.type == T_(NEWLINE) || token.type == T_(EOB);
|
||||
|
||||
// Uncomment this if you want to debug what the lexer is lexing:
|
||||
// fprintf(stderr, "{lexing %s}\n", yy::parser::symbol_type(token.type).name());
|
||||
// LCOV_EXCL_START
|
||||
verbosePrint(VERB_TRACE, "Lexed '%s' token\n", yy::parser::symbol_type(token.type).name());
|
||||
// LCOV_EXCL_STOP
|
||||
|
||||
if (std::holds_alternative<uint32_t>(token.value)) {
|
||||
return yy::parser::symbol_type(token.type, std::get<uint32_t>(token.value));
|
||||
|
||||
@@ -100,6 +100,8 @@ static void verboseOutputConfig(int argc, char *argv[]) {
|
||||
return;
|
||||
}
|
||||
|
||||
style_Set(stderr, STYLE_MAGENTA, false);
|
||||
|
||||
fprintf(stderr, "rgbasm %s\n", get_package_version_string());
|
||||
|
||||
printVVVVVVerbosity();
|
||||
@@ -216,6 +218,8 @@ static void verboseOutputConfig(int argc, char *argv[]) {
|
||||
// [-MG] [-MC]
|
||||
}
|
||||
fputs("Ready.\n", stderr);
|
||||
|
||||
style_Reset(stderr);
|
||||
}
|
||||
// LCOV_EXCL_STOP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user