コード例 #1
0
ファイル: TestAppUsingFuel.cs プロジェクト: maze516/fuel-lang
        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);
        }