public override void Init()
 {
     base.Init();
     //add built-in methods, special form IIF, import Math and Environment methods
     BuiltIns.AddMethod(BuiltInPrintMethod, "print");
     BuiltIns.AddMethod(BuiltInFormatMethod, "format");
     BuiltIns.AddSpecialForm(SpecialFormsLibrary.Iif, "iif", 3, 3);
     BuiltIns.ImportStaticMembers(typeof(System.Math));
     BuiltIns.ImportStaticMembers(typeof(Environment));
 }
Beispiel #2
0
        public override void Init()
        {
            base.Init();

            BuiltIns.ImportStaticMembers(typeof(Math));
        }