public static Dictionary <string, dynamic> Transpile(string rubyScript) { RubyTops rubyTops = new RubyTops { RubyScript = rubyScript }; rubyTops.Transpile(); return(rubyTops.GeneratedDictionary); }
public void Compile() { RubyTops rubyTops = new RubyTops { RubyScript = RubyStack }; rubyTops.Transpile(); AstRootNode = rubyTops.AstRootNode; CompiledJson = rubyTops.CompiledJson; SyntaxErrors = rubyTops.SyntaxErrors; TranspiledPowerShell = rubyTops.TranspiledPowerShell; ImportTranspiledPowerShell(); }