示例#1
0
        public static Dictionary <string, dynamic> Transpile(string rubyScript)
        {
            RubyTops rubyTops = new RubyTops {
                RubyScript = rubyScript
            };

            rubyTops.Transpile();
            return(rubyTops.GeneratedDictionary);
        }
示例#2
0
        public void Compile()
        {
            RubyTops rubyTops = new RubyTops {
                RubyScript = RubyStack
            };

            rubyTops.Transpile();
            AstRootNode          = rubyTops.AstRootNode;
            CompiledJson         = rubyTops.CompiledJson;
            SyntaxErrors         = rubyTops.SyntaxErrors;
            TranspiledPowerShell = rubyTops.TranspiledPowerShell;
            ImportTranspiledPowerShell();
        }