Exemplo n.º 1
0
 public static string ConvertToString(this SoulError soul)
 {
     // JP - Japan
     // RU - Russian
     // EN - English
     return(XDocument.Load($"libSoul-1.5-[{System.Globalization.RegionInfo.CurrentRegion.TwoLetterISORegionName}].xml").Element("SoulLibrary").Element(soul.ToString()).Attribute("value").Value);
 }
Exemplo n.º 2
0
 public static void ErrorSyntax(SoulError er)
 => Terminal.WriteLine($"[{line}:{pos}]:{er.ConvertToString()}");