示例#1
0
        public TranspilersPlugin(Engine engine)
        {
            var transpiler = new Transpiler(engine);

            _transpiler = new Dictionary <String, Object>
            {
                { "toJavaScript", Wrap(transpiler.Js) },
            };
        }
示例#2
0
        public TranspilersPlugin(Engine engine)
        {
            var transpiler = new Transpiler(engine);

            _transpiler = new Dictionary <String, Object>
            {
                { "toJavaScript", Wrap(transpiler.Js) },
                { "toCsharp", Wrap(transpiler.Cs) },
                { "toCplusplus", Wrap(transpiler.Cpp) }
            };
        }