public ktContext(ktString Name) : base("ktContext", 0) { m_Name = Name; m_Parent = null; m_Aliases = null; m_Variables = null; m_Functions = null; m_AddIfNotSet = true; }
public ktContext(ktString Name, ktString Aliases, ktList Classes, ktList Variables, ktList Functions, ktContext Parent, bool AddIfNotSet) : base("ktContext", 0) { m_Name = Name; m_Parent = Parent; m_Aliases = Aliases; m_Variables = Variables; m_Functions = Functions; m_AddIfNotSet = AddIfNotSet; }
public bool AddContext(ktContext Context) { if (Context == null) { return false; } if (m_Contexts == null) { m_Contexts = new ktList(); } return m_Contexts.Add(Context.Name, Context); }
public ktIDEContext(ktContext con) : base("ktIDE") { con.AddFunction(new ktDelegateFunction("output", new ktFunction_Delegate(Output))); con.AddFunction(new ktDelegateFunction("print", new ktFunction_Delegate(Output))); }