Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5365 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
10 changed files with 179 additions and 84 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
|
||||
using ICSharpCode.NRefactory; |
||||
using ICSharpCode.PythonBinding; |
||||
|
||||
namespace ICSharpCode.CodeConversion |
||||
{ |
||||
public class PythonHelpers |
||||
{ |
||||
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage) |
||||
{ |
||||
NRefactoryToPythonConverter converter = new |
||||
NRefactoryToPythonConverter(inputLanguage); |
||||
|
||||
string convertedCode = converter.Convert(ProvidedSource); |
||||
|
||||
ConvertedSource = convertedCode; |
||||
ErrorMessage = ""; |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
|
||||
using ICSharpCode.NRefactory; |
||||
using ICSharpCode.RubyBinding; |
||||
|
||||
namespace ICSharpCode.CodeConversion |
||||
{ |
||||
public class RubyHelpers |
||||
{ |
||||
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage) |
||||
{ |
||||
NRefactoryToRubyConverter converter = new |
||||
NRefactoryToRubyConverter(inputLanguage); |
||||
|
||||
string convertedCode = converter.Convert(ProvidedSource); |
||||
|
||||
ConvertedSource = convertedCode; |
||||
ErrorMessage = ""; |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue