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
@@ -190,5 +190,11 @@ namespace YesNt.Interpreter.Statements
RuntimeInfo.Exit("No function in stack", true);
}
}
[Statement("ccs", SearchMode.Exact, SpaceAround.None, ConsoleColor.Red)]
public void ClearCallStack(string _)
{
RuntimeInfo.FunctionCallStack.Clear();
}
}
}