Add getter for CharStateMachine index

master
trivernis 4 years ago
parent 485d59dd2d
commit 7effac3feb

@ -1,6 +1,6 @@
[package]
name = "charred"
version = "0.1.4"
version = "0.1.5"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
license-file = "LICENSE"

@ -52,6 +52,10 @@ impl CharTapeMachine {
self.text.clone()
}
pub fn get_index(&self) -> usize {
self.index
}
/// Returns the next char
/// if there is any
pub fn next_char(&mut self) -> Option<char> {

Loading…
Cancel
Save