Beispiel #1
0
 public ServerImpl()
 {
     sqlManager = new SQLManager();
     compiler = new SDSE_Compiler();
     compiler.AddIObjectWithMembers("Max", new Max());
     compiler.AddIObjectWithMembers("Mean", new Mean());
     compiler.AddIObjectWithMembers("Min", new Min());
     compiler.AddIObjectWithMembers("Abs", new Abs());
     compiler.AddIObjectWithMembers("IfElse", new IfElse());
 }
Beispiel #2
0
        public I_Types(SDSE_Compiler compiler, ref Dictionary <string, IObject_Constructor> types)
        {
            constructors = new Dictionary <IObjectType, IObject_Constructor>
            {
                { IObjectType.I_Int, new I_Int_Constructor() },
                { IObjectType.I_String, new I_String_Constructor() },
                { IObjectType.I_Float, new I_Float_Constructor() },
            };

            types.Add("String", GetConstructor(IObjectType.I_String));
            types.Add("Float", GetConstructor(IObjectType.I_Float));
            types.Add("Int", GetConstructor(IObjectType.I_Int));
        }
Beispiel #3
0
        public I_Types(SDSE_Compiler compiler, ref Dictionary<string, IObject_Constructor> types)
        {
            constructors = new Dictionary<IObjectType, IObject_Constructor>
            {
                {IObjectType.I_Int, new I_Int_Constructor()},
                {IObjectType.I_String, new I_String_Constructor()},
                {IObjectType.I_Float, new I_Float_Constructor()},
            };

            types.Add("String", GetConstructor(IObjectType.I_String));
            types.Add("Float", GetConstructor(IObjectType.I_Float));
            types.Add("Int", GetConstructor(IObjectType.I_Int));
        }
Beispiel #4
0
 public IBracketHandler(SDSE_Compiler compiler)
 {
     Name         = "";
     rootCompiler = compiler;
     insideString = new StringBuilder();
 }
Beispiel #5
0
 public IBracketHandler(SDSE_Compiler compiler)
 {
     Name = "";
     rootCompiler = compiler;
     insideString = new StringBuilder();
 }