@ -1,6 +1,6 @@
[package]
name = "charred"
version = "0.1.5"
version = "0.1.6"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
license-file = "LICENSE"
@ -48,14 +48,22 @@ impl CharTapeMachine {
}
#[inline]
pub fn get_text(&self) -> Vec<char> {
self.text.clone()
pub fn get_index(&self) -> usize {
self.index
/// Creates an error at the current position
pub fn err(&self) -> TapeError {
TapeError::new(self.index)
/// Returns the next char
/// if there is any
pub fn next_char(&mut self) -> Option<char> {