summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/Frontend.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-18 10:27:31 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-18 10:27:31 +0200
commitfbbcfd27436fe61799c79aec14f9c2c3fdf73497 (patch)
treed8be437f572605462637007f6bd371b6b4a650cb /dev/LibCompiler/Frontend.h
parent2a1e217019f66b1913034b6bd760052f3b37cea4 (diff)
feat: PEF format update `5.0` and codebase refactors.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/Frontend.h')
-rw-r--r--dev/LibCompiler/Frontend.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/LibCompiler/Frontend.h b/dev/LibCompiler/Frontend.h
index f39c9d4..5628f9a 100644
--- a/dev/LibCompiler/Frontend.h
+++ b/dev/LibCompiler/Frontend.h
@@ -79,22 +79,22 @@ struct SyntaxLeafList final {
std::vector<SyntaxLeaf> fLeafList;
SizeType fNumLeafs;
- size_t SizeOf() { return fNumLeafs; }
+ SizeType SizeOf() { return fNumLeafs; }
std::vector<SyntaxLeaf>& Get() { return fLeafList; }
- SyntaxLeaf& At(size_t index) { return fLeafList[index]; }
+ SyntaxLeaf& At(SizeType index) { return fLeafList[index]; }
};
/// find the perfect matching word in a haystack.
/// \param haystack base string
/// \param needle the string we search for.
/// \return if we found it or not.
-BOOL find_word(std::string haystack, std::string needle) noexcept;
+BOOL find_word(STLString haystack, STLString needle) noexcept;
/// find a word within strict conditions and returns a range of it.
/// \param haystack
/// \param needle
/// \return position of needle.
-std::size_t find_word_range(std::string haystack, std::string needle) noexcept;
+SizeType find_word_range(STLString haystack, STLString needle) noexcept;
/// @brief Compiler backend, implements a frontend, such as C, C++...
/// See Toolchain, for some examples.