From b4bcdc8482f8deae2d25018b4f91593570cf9cf5 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 8 Feb 2025 15:26:11 +0100 Subject: ADD: Assembler frontend tweaks and other refactors. Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/Parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/LibCompiler/Parser.h') diff --git a/dev/LibCompiler/Parser.h b/dev/LibCompiler/Parser.h index 4ca1c75..779bf36 100644 --- a/dev/LibCompiler/Parser.h +++ b/dev/LibCompiler/Parser.h @@ -10,7 +10,7 @@ namespace LibCompiler { - inline auto kInvalidFrontend = "NoLang"; + inline auto kInvalidFrontend = "NA"; /// @brief Compiler backend, implements a frontend, such as C, C++... /// See Toolchain, for some examples. @@ -38,7 +38,7 @@ namespace LibCompiler virtual bool IsValid() { - return strcmp(this->Language(), kInvalidFrontend); + return strcmp(this->Language(), kInvalidFrontend) > 0; } }; -- cgit v1.2.3