(&mut self)
| 32 | fn peek(&self) -> Option<char> { self.p.get(self.pos).copied() } |
| 33 | fn at(&self, i: usize) -> Option<char> { self.p.get(self.pos + i).copied() } |
| 34 | fn bump(&mut self) -> Option<char> { |
| 35 | let c = self.peek(); |
| 36 | if c.is_some() { self.pos += 1; } |
| 37 | c |
| 38 | } |
| 39 | fn err(&self, msg: &'static str) -> ParseError { ParseError { msg, pos: self.pos } } |
| 40 | |
| 41 | fn expect(&mut self, c: char) -> Result<(), ParseError> { |
no test coverage detected