Add translator from poyo
This commit is contained in:
@@ -7,8 +7,19 @@ Console.OutputEncoding = Encoding.UTF8;
|
||||
|
||||
var text = "Immutable abstract representation of a span of text. For example, in an error diagnostic that reports a location, it could come from a parsed string, text from a tool editor buffer, etc.";
|
||||
|
||||
Console.WriteLine("Original:");
|
||||
Console.WriteLine(text);
|
||||
Console.WriteLine();
|
||||
|
||||
var translator = new PoyoLangTranslator();
|
||||
|
||||
var translated = translator.TranslateToPoyo(text);
|
||||
|
||||
Console.WriteLine(translated);
|
||||
Console.WriteLine("Translated to Poyo:");
|
||||
Console.WriteLine(translated);
|
||||
Console.WriteLine();
|
||||
|
||||
var original = translator.TranslateFromPoyo(translated);
|
||||
|
||||
Console.WriteLine("Translated back from Poyo:");
|
||||
Console.WriteLine(original);
|
||||
Reference in New Issue
Block a user