summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/Frontend.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-15 22:35:55 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-15 22:35:55 +0100
commit730b76e1aae96f9a5cafc13634d6f014e598abaf (patch)
treeb9c6542602d4fd0138eb7a88e8a9a9d13971e88e /dev/CompilerKit/Frontend.h
parent49064df5303b9a96f6b11dd0aed27dc1e269aa9e (diff)
feat: API and codebase tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/CompilerKit/Frontend.h')
-rw-r--r--dev/CompilerKit/Frontend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/CompilerKit/Frontend.h b/dev/CompilerKit/Frontend.h
index efafae8..8ae43e4 100644
--- a/dev/CompilerKit/Frontend.h
+++ b/dev/CompilerKit/Frontend.h
@@ -11,7 +11,7 @@
#define CK_COMPILER_FRONTEND : public ::CompilerKit::CompilerFrontendInterface
namespace CompilerKit {
-inline static auto kInvalidFrontend = "?";
+inline static auto kInvalidFrontend = "(null)";
struct SyntaxLeafList;
struct SyntaxLeafList;
@@ -113,6 +113,7 @@ class CompilerFrontendInterface {
//! @brief What language are we dealing with?
virtual const char* Language() { return kInvalidFrontend; }
+ /// @brief Checks if language is a valid frontend.
virtual bool IsValid() { return strcmp(this->Language(), kInvalidFrontend) > 0; }
};
} // namespace CompilerKit