예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
        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);
        }
예제 #4
0
 public ktIDEContext(ktContext con)
     : base("ktIDE")
 {
     con.AddFunction(new ktDelegateFunction("output", new ktFunction_Delegate(Output)));
     con.AddFunction(new ktDelegateFunction("print", new ktFunction_Delegate(Output)));
 }