mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-08 07:56:06 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user