Returns a peekable adaptor for this lexer.
(self)
| 726 | |
| 727 | /// Returns a peekable adaptor for this lexer. |
| 728 | pub fn peekable(self) -> PeekableLexer<'a> { |
| 729 | PeekableLexer { lexer: self, peeked: None } |
| 730 | } |
| 731 | } |
| 732 | |
| 733 | /// A lexer wrapper that supports peeking at the next token without consuming it. |
no outgoing calls