diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-17 11:00:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 11:00:30 +0100 |
| commit | 2e9741a0af3ffcc613101b47ba39b883e26e39ea (patch) | |
| tree | 73c05e9d2e51488d895e9d899eaf29640265e552 /dev/CompilerKit/Frontend.h | |
| parent | 215f6fc35253a2326888b49a618f5cb758813977 (diff) | |
| parent | 0cca08fb5a26a9c50632d2a2a7cd49e8db55badc (diff) | |
Merge pull request #18 from nekernel-org/dev
version: v0.0.7
Diffstat (limited to 'dev/CompilerKit/Frontend.h')
| -rw-r--r-- | dev/CompilerKit/Frontend.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dev/CompilerKit/Frontend.h b/dev/CompilerKit/Frontend.h index 0f81342..4b03651 100644 --- a/dev/CompilerKit/Frontend.h +++ b/dev/CompilerKit/Frontend.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved + Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0 ------------------------------------------- */ @@ -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; @@ -85,7 +85,7 @@ struct SyntaxLeafList final { /// \param haystack base string /// \param needle the string we search for. /// \return if we found it or not. -BOOL find_word(STLString haystack, STLString needle) noexcept; +Bool find_word(STLString haystack, STLString needle) noexcept; /// find a word within strict conditions and returns a range of it. /// \param haystack @@ -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 |
