![]() |
ArkScript
A small, fast, functional and scripting language for video games
|
Create string error context for AST errors. More...
Go to the source code of this file.
Classes | |
struct | Ark::internal::LineColorContextCounts |
Namespaces | |
namespace | Ark |
namespace | Ark::internal |
Functions | |
std::string | Ark::internal::makeNodeBasedErrorCtx (const std::string &message, const Node &node) |
Construct an error message based on a given node. | |
std::string | Ark::internal::makeTokenBasedErrorCtx (const std::string &match, std::size_t line, std::size_t col, const std::string &code) |
Construct an error message based on a given match in the code. | |
std::string | Ark::internal::colorizeLine (const std::string &line, LineColorContextCounts &line_color_context_counts) |
Add colors to highlight matching parentheses/curly braces/square braces on a line. | |
bool | Ark::internal::isPairableChar (const char c) |
Check if the character passed in can be paired (parentheses, curly braces, or square braces) | |
Create string error context for AST errors.
Definition in file makeErrorCtx.hpp.