@ -1,6 +1,6 @@
[package]
name = "charred"
version = "0.1.7"
version = "0.2.0"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
license-file = "LICENSE"
@ -115,6 +115,15 @@ impl CharTapeMachine {
}
/// Seeks any character of the given group until none is encountered anymore
pub fn seek_any(&mut self, chars: &[char]) -> TapeResult<()> {
while self.check_any(chars) {
self.seek_one()?;
Ok(())
/// Seeks until it encounters a non whitespace character
pub fn seek_whitespace(&mut self) {
if self.current_char.is_whitespace() {