Expected< ScriptFunction > ParseScript(const std::string &script)
nonstd::expected< T, std::string > Expected
std::function< Any(Ast::Environment &env)> ScriptFunction
std::shared_ptr< EnumsTable > EnumsTablePtr
std::unordered_map< std::string, int > EnumsTable
std::shared_ptr< Blackboard > Ptr
Expected< Any > ParseScriptAndExecute(Ast::Environment &env, const std::string &script)
Result ValidateScript(const std::string &script)
ValidateScript will check if a certain string is valid.
Expected< std::monostate > Result
The Environment class is used to encapsulate the information and states needed by the scripting langu...