ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

编程实战:类C语法的编译型脚本解释器(四)

2026/9/13 3:10:13 拓冰建站 浏览量
编程实战:类C语法的编译型脚本解释器(四)

系列入口:

           编程实战:类C语法的编译型脚本解释器(系列)-CSDN博客

        本文介绍总入口和使用方法。

一、总入口

	class IScript{private:CScript* m_p;string m_msg;public:IScript() :m_p(nullptr) {}string GetMessage()const;//连接bool AttachScript(CScript* p);//编译bool Compile(char const* _source, vector<pair<string, Variable > >* pEnvs = NULL);//执行string const& GetSource()const;bool IsCompiled()const;string& Report(string& ret)const;bool Execute(Variable& ret, vector<pair<string, Variable > >* pEnvs = NULL, void* pe = NULL);long GetExecCount()const;};

(我还没写完)

(这里是结束)