示例#1
0
        public static void Doo2()
        {
            var woo    = new Woo();
            var chars1 = "a";
            var chars2 = "b";
            var int1   = Integer.From(11);
            var int2   = Integer.From(12);

            woo.Call(woo, chars1, chars2);
            woo.Call(woo, chars1, chars2);

            Environment.Exit(12);
        }
示例#2
0
        private static void Prompted()
        {
            SetupConsole();

            Woo.Doo();

            var rootBase  = MakeRootFrame(out var root);
            var testBase  = WithTest(root, rootBase);
            var rootScope = rootBase.Chain(Binder.From("prompt"));
            var testScope = testBase.Chain(Binder.From("test"));
            var stack     = Stack.From();

            Capsuled(() => CoreLanguage.Load(testScope, stack, Symbol.Get("tests.all")));
            Capsuled(() => CoreLanguage.Load(rootScope, stack, Symbol.Get("startup")));

            Repl(rootScope, stack);
        }
示例#3
0
 private void Call(Woo woo, string chars1, string chars2)
 {
     ((dynamic)woo).Add(chars1, chars2);
 }