forked from PuqiAR/Fig-TreeWalker
[Fix] 修复科学表达式数字解析的问题(Lexer引起) 由 Satklomi发现,感谢 [Feat] 增加Compiler相关定义,将开发BytecodeVM [Tip] Evaluator进入Bug fix阶段,新功能延缓开发。转向VM
17 lines
479 B
C++
17 lines
479 B
C++
#pragma once
|
|
|
|
#include <Error/error.hpp>
|
|
|
|
namespace Fig
|
|
{
|
|
class ValueError : public UnaddressableError
|
|
{
|
|
public:
|
|
using UnaddressableError::UnaddressableError;
|
|
virtual FString toString() const override
|
|
{
|
|
std::string msg = std::format("[ValueError] {} in [{}] {}", std::string(this->message.begin(), this->message.end()), this->src_loc.file_name(), this->src_loc.function_name());
|
|
return FString(msg);
|
|
}
|
|
};
|
|
}; |