-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
5 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @file NameResolutionPass.hpp | ||
* @author Alexandre Plateau ([email protected]) | ||
* @brief | ||
* @version 0.1 | ||
* @version 1.0 | ||
* @date 2024-07-22 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
|
@@ -83,22 +83,6 @@ namespace Ark::internal | |
*/ | ||
[[nodiscard]] bool isRegistered(const std::string& name) const; | ||
|
||
/** | ||
* @brief Returns false if we have only one scope (global), checks the scopes recursively for 'name' | ||
* | ||
* @param name | ||
* @return | ||
*/ | ||
[[nodiscard]] bool isLocalVar(const std::string& name) const; | ||
|
||
/** | ||
* @brief 'name' has to be defined only in the first scope to be considered global | ||
* | ||
* @param name | ||
* @return | ||
*/ | ||
[[nodiscard]] bool isGlobalVar(const std::string& name) const; | ||
|
||
/** | ||
* @brief Checks if 'name' is in the current scope | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @file ValTableElem.hpp | ||
* @author Alexandre Plateau ([email protected]) | ||
* @brief The basic value type handled by the compiler | ||
* @version 0.2 | ||
* @version 1.0 | ||
* @date 2020-10-27 | ||
* | ||
* @copyright Copyright (c) 2020-2024 | ||
|
@@ -39,11 +39,6 @@ namespace Ark::internal | |
std::variant<double, std::string, std::size_t> value; | ||
ValTableElemType type; | ||
|
||
// Numbers | ||
explicit ValTableElem(double num) noexcept; | ||
explicit ValTableElem(long num) noexcept; | ||
// Strings | ||
explicit ValTableElem(const std::string& str) noexcept; | ||
// automatic handling (Number/String/Function) | ||
explicit ValTableElem(const Node& node) noexcept; | ||
// Functions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @file Closure.hpp | ||
* @author Alexandre Plateau ([email protected]) | ||
* @brief Subtype of the value type, handling closures | ||
* @version 1.1 | ||
* @version 2.0 | ||
* @date 2024-04-21 | ||
* | ||
* @copyright Copyright (c) 2020-2024 | ||
|
@@ -36,20 +36,6 @@ namespace Ark::internal | |
class Closure | ||
{ | ||
public: | ||
/** | ||
* @brief Construct a new Closure object | ||
* | ||
*/ | ||
Closure() noexcept; | ||
|
||
/** | ||
* @brief Construct a new Closure object | ||
* | ||
* @param scope the scope of the function turned into a closure | ||
* @param pa the current page address of the function turned into a closure | ||
*/ | ||
Closure(Scope&& scope, PageAddr_t pa) noexcept; | ||
|
||
/** | ||
* @brief Construct a new Closure object | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters