summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/Parser.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-08 15:26:11 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-08 15:26:11 +0100
commitb4bcdc8482f8deae2d25018b4f91593570cf9cf5 (patch)
tree7d989bda9f09274e7235087a6bd1e7ec3cb4ba9d /dev/LibCompiler/Parser.h
parent0350589847a0a5bbce5556a62ea5f5df7de29641 (diff)
ADD: Assembler frontend tweaks and other refactors.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/Parser.h')
-rw-r--r--dev/LibCompiler/Parser.h4
1 files changed, 2 insertions, 2 deletions
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;
}
};