(&mut self)
| 43 | } |
| 44 | |
| 45 | pub fn read_string(&mut self) -> Option<String> { |
| 46 | match self.source.next_token() { |
| 47 | Some(Token::Str(string)) => Some(string), |
| 48 | Some(other) => panic!("Expected String, got {other:?}"), |
| 49 | None => None, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | pub fn read_int(&mut self) -> Option<u64> { |
| 54 | match self.source.next_token() { |