(&mut self, c: char)
| 39 | fn err(&self, msg: &'static str) -> ParseError { ParseError { msg, pos: self.pos } } |
| 40 | |
| 41 | fn expect(&mut self, c: char) -> Result<(), ParseError> { |
| 42 | if self.peek() == Some(c) { self.bump(); Ok(()) } |
| 43 | else { Err(self.err("missing closing parenthesis")) } |
| 44 | } |
| 45 | |
| 46 | /* Lowest precedence, branches split on the pipe. */ |
| 47 | fn alternation(&mut self) -> Result<Node, ParseError> { |
no test coverage detected