-
-
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.
Merge pull request #457 from ArkScript-lang/error-messages
Error messages
- Loading branch information
Showing
71 changed files
with
306 additions
and
273 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
* @file Closure.hpp | ||
* @author Alexandre Plateau ([email protected]) | ||
* @brief Subtype of the value type, handling closures | ||
* @version 0.2 | ||
* @date 2020-10-27 | ||
* @version 1.0 | ||
* @date 2024-04-21 | ||
* | ||
* @copyright Copyright (c) 2020-2021 | ||
* @copyright Copyright (c) 2020-2024 | ||
* | ||
*/ | ||
|
||
|
@@ -15,6 +15,7 @@ | |
#include <memory> | ||
#include <vector> | ||
#include <iostream> | ||
#include <string> | ||
|
||
#include <Ark/Platform.hpp> | ||
|
||
|
@@ -65,33 +66,10 @@ namespace Ark::internal | |
*/ | ||
Closure(const std::shared_ptr<Scope>& scope_ptr, PageAddr_t pa) noexcept; | ||
|
||
/** | ||
* @brief Return the scope held by the object | ||
* | ||
* @return const Scope& | ||
*/ | ||
[[nodiscard]] inline const Scope& scope() const noexcept { return *m_scope.get(); } | ||
|
||
/** | ||
* @brief Return a reference to the scope held by the object | ||
* | ||
* @return Scope& | ||
*/ | ||
[[nodiscard]] inline Scope& refScope() noexcept { return *m_scope.get(); } | ||
|
||
/** | ||
* @brief Return a reference to the shared pointer representing the scope | ||
* @details The scope has to be kept alive somewhere or all its variables will be destroyed. | ||
* | ||
* @return const std::shared_ptr<Scope>& | ||
*/ | ||
[[nodiscard]] inline const std::shared_ptr<Scope>& scopePtr() const { return m_scope; } | ||
|
||
/** | ||
* @brief Return the page address of the object | ||
* | ||
* @return PageAddr_t | ||
*/ | ||
[[nodiscard]] inline PageAddr_t pageAddr() const { return m_page_addr; } | ||
|
||
/** | ||
|
@@ -100,7 +78,7 @@ namespace Ark::internal | |
* @param os | ||
* @param vm | ||
*/ | ||
void toString(std::ostream& os, VM& vm) const noexcept; | ||
std::string toString(VM& vm) const noexcept; | ||
|
||
friend ARK_API bool operator==(const Closure& A, const Closure& B) noexcept; | ||
friend ARK_API_INLINE bool operator<(const Closure& A, const Closure& B) noexcept; | ||
|
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
Oops, something went wrong.