Add translator from poyo

This commit is contained in:
2025-05-16 14:07:02 +02:00
parent f83f59c05a
commit f39d936024
3 changed files with 219 additions and 75 deletions

View File

@@ -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();
}
}