fn current(&self) -> Result<Token, &'static str> {
        if self.pos >= self.tokens.len() {
            Err("Unexpected end of file.")
        } else {
            Ok(self.tokens[self.pos].clone())
        }
    }
/// Returns the current `Token`, or an error that
/// indicates that the end of the file has been unexpectedly reached if it is the case.
Returns the current `Token`, or an error that
indicates that the end of the file has been unexpectedly reached if it is the case.
Returns the current ` Token ` or an error that indicates that the end of the file has been unexpectedly reached if it is the case .
fn current(&self) -> Result<Token, &'static str> {
        if self.pos >= self.tokens.len() {
            Err("Unexpected end of file.")
        } else {
            Ok(self.tokens[self.pos].clone())
        }
    }
fn current ( & self ) -> Result < Token , & ' static str > { if self . pos >= self . tokens . len ( ) { Err ( " " ) } else { Ok ( self . tokens [ self . pos ] . clone ( ) ) } }
Returns the current `Token`, or an error that
indicates that the end of the file has been unexpectedly reached if it is the case.
Returns the current ` Token ` or an error that indicates that the end of the file has been unexpectedly reached if it is the case .
&self
&self