diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-20 09:19:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-20 09:19:44 -0500 |
| commit | 274936aa8c14c09239f771bce5b5cc5b6ae507a2 (patch) | |
| tree | 6c16ac05bb73c7aea0bb4a69f5bc77c2f6ca2d77 /dev/CompilerKit/Frontend.h | |
| parent | 3cc0546417ed38c69a5ba0af1d7fd4c47af1401f (diff) | |
| parent | 56db5137ddd10f476b9820944b47ab72c6f8e019 (diff) | |
Merge pull request #25 from nekernel-org/dev
first set of patches to stable.
Diffstat (limited to 'dev/CompilerKit/Frontend.h')
| -rw-r--r-- | dev/CompilerKit/Frontend.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/CompilerKit/Frontend.h b/dev/CompilerKit/Frontend.h index 225de96..500f952 100644 --- a/dev/CompilerKit/Frontend.h +++ b/dev/CompilerKit/Frontend.h @@ -18,7 +18,7 @@ struct SyntaxLeafList; struct CompilerKeyword; /// =========================================================== /// -/// we want to do that because to separate keywords. +/// @note we want to do that to separate keywords. /// =========================================================== /// enum KeywordKind { @@ -79,7 +79,7 @@ struct SyntaxLeafList final { }; std::vector<SyntaxLeaf> fLeafList; - SizeType fNumLeafs; + SizeType fNumLeafs{0}; SizeType SizeOf() { return fNumLeafs; } std::vector<SyntaxLeaf>& Get() { return fLeafList; } @@ -116,7 +116,7 @@ class CompilerFrontendInterface { /// =========================================================== /// // NOTE: cast this to your user defined ast. /// =========================================================== /// - typedef void* AstType; + typedef VoidPtr AstType; /// =========================================================== /// //! @brief Compile a syntax tree ouf of the text. |
