Add translator from poyo
This commit is contained in:
@@ -21,4 +21,19 @@ public partial class PoyoLangTranslator
|
||||
|
||||
return output.ToString();
|
||||
}
|
||||
|
||||
public string TranslateFromPoyo(ReadOnlySpan<char> text)
|
||||
{
|
||||
var output = new StringBuilder(text.Length);
|
||||
|
||||
while (text.Length > 0)
|
||||
{
|
||||
// Skip spaces (those are not used in this language)
|
||||
text = text.TrimStart(' ');
|
||||
|
||||
FromPoyo(ref text, output);
|
||||
}
|
||||
|
||||
return output.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user