Fix bugs and add new statement

- Add clear call stack (`ccs`) statement
- Use `\v` instead of `\r` to support escape sequences in the future
This commit is contained in:
Stone_Red
2022-03-31 21:51:31 +02:00
parent 1dfa39492f
commit c1b581e2db
3 changed files with 14 additions and 8 deletions
@@ -11,14 +11,14 @@ namespace YesNt.Interpreter.Utilities
StringBuilder output = new StringBuilder();
foreach (char c in input)
{
output.Append($"\r{c}\r");
output.Append($"\v{c}\v");
}
return output.ToString();
}
public static string FromSaveString(this string input)
{
return input.Replace("\r", "");
return input.Replace("\v", "");
}
public static bool ToStandardizedNumber(this string input, out double result)