Ejemplo n.º 1
0
        static void ExecuteFuelScript(string script)
        {
            var model = new TestModel("fuel");

            // create a dictionary with name <--> object pairs
            // the objects will be registered under the name in the fuel interpreter
            var nativeItems = new Dictionary <string, object>();

            nativeItems["model"] = model;

            LispVariant result = Lisp.Eval(script, nativeItems: nativeItems);

            Console.WriteLine("Script result={0}", result);
        }