24#include "AstScript/Expr.hpp"
25#include "AstUtil/StringView.hpp"
41 const std::string&
name()
const {
return name_; }
47 Expr* exec() const final;
48 errc_t setValue(
Value* value) final;
virtual Value * eval() const =0
求值
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:86
const std::string & name() const
获取对象的名称
定义 Object.hpp:133
std::string getExpression(Object *object) const override
获取表达式的字符串表示
定义 Symbol.hpp:43