public override string ToString() { if (type == null) { return("<null>" + value); } return("<" + type.ToString() + ">" + value); }
public ICLS_Type GetType(CLType type) { if (type == null) return typess["null"]; if (types.ContainsKey(type) == false) { logger.Log_Error("(CLScript)类型未注册:" + type.ToString()); } return types[type]; }
public ICLS_Type GetType(CLType type) { if (type == null) { return(typess["null"]); } if (types.ContainsKey(type) == false) { logger.Log_Error("(CLScript)类型未注册:" + type.ToString()); } return(types[type]); }
public ICLS_Type GetType(CLType type) { if (type == null) { return(typess["null"]); } if (types.ContainsKey(type) == false) { logger.Log_Warn("(CLScript)类型未注册,将自动注册一份匿名:" + type.ToString()); RegType(new RegHelper_Type(type, "")); } return(types[type]); }
public void DefineAndSet(string name, CLType type, object value) { if (values.ContainsKey(name)) { throw new Exception(type.ToString() + ":" + name + "已经定义过"); } Value v = new Value(); v.type = type; v.value = value; values[name] = v; if (tvalues.Count > 0) { tvalues.Peek().Add(name);//暂存临时变量 } }
public ICLS_Type GetType(CLType type) { if (type == null) { return(typess["null"]); } ICLS_Type ret = null; if (types.TryGetValue(type, out ret) == false) { logger.Log_Warn("(CLScript)类型未注册,将自动注册一份匿名:" + type.ToString()); ret = RegHelper_Type.MakeType(type, ""); RegType(ret); } return(ret); }
public ICLS_Type GetType(CLType type) { if (type == null) { return(dictTypeKeywords["null"]); } ICLS_Type iType; if (dictTypes.TryGetValue(type, out iType)) { return(iType); } logger.Log_Warn("类型未注册, 这里将自动注册一份匿名:" + type.ToString()); RegType(new RegHelper_Type(type, "")); return(dictTypes[type]); }
public void DefineAndSet(string name,CLType type,object value) { if (values.ContainsKey(name)) throw new Exception(type.ToString()+":"+name+"已经定义过"); Value v = new Value(); v.type = type; v.value = value; values[name] = v; if(tvalues.Count>0) { tvalues.Peek().Add(name);//暂存临时变量 } }
public ICLS_Type GetType(CLType type) { if (type == null) return typess["null"]; if (types.ContainsKey(type) == false) { logger.Log_Warn("(CLScript)类型未注册,将自动注册一份匿名:" + type.ToString()); RegType(new RegHelper_Type(type, "")); } return types[type]; }
public ICLS_Type GetType(CLType type) { if (type == null) return dictTypeKeywords["null"]; ICLS_Type iType; if (dictTypes.TryGetValue(type, out iType)) return iType; logger.Log_Warn("类型未注册, 这里将自动注册一份匿名:" + type.ToString()); RegType(new RegHelper_Type(type, "")); return dictTypes[type]; }
public ICLS_Type GetType(CLType type) { if (type == null) return typess["null"]; ICLS_Type ret = null; if (types.TryGetValue(type, out ret) == false) { logger.Log_Warn("(CLScript)类型未注册,将自动注册一份匿名:" + type.ToString()); ret = RegHelper_Type.MakeType(type, ""); RegType(ret); } return ret; }