pub fn next_word(&mut self) -> Result<Word, Diag> {
        while is_whitespace(self.peek_ch) {
            self.bump();
        }

        if self.is_eof() {
            Ok(Word::eof())
        } else {
            self.scan_word()
        }
    }
/// Parses a word from the source file, and advances the text buffer
/// cursor.
///
/// Usage comes down to calling `next_word` in order to parse one word
/// from the source file at a time. This function returns either a
/// successfully scanned word, or a parsing error, which can be
/// reported by a diagnostic handler.
Parses a word from the source file, and advances the text buffer
cursor.

Usage comes down to calling `next_word` in order to parse one word
from the source file at a time. This function returns either a
successfully scanned word, or a parsing error, which can be
reported by a diagnostic handler.
Parses a word from the source file and advances the text buffer cursor . Usage comes down to calling ` next_word ` in order to parse one word from the source file at a time . This function returns either a successfully scanned word or a parsing error which can be reported by a diagnostic handler .
pub fn next_word(&mut self) -> Result<Word, Diag> {
        while is_whitespace(self.peek_ch) {
            self.bump();
        }
        if self.is_eof() {
            Ok(Word::eof())
        } else {
            self.scan_word()
        }
    }
pub fn next_word ( & mut self ) -> Result < Word , Diag > { while is_whitespace ( self . peek_ch ) { self . bump ( ) ; } if self . is_eof ( ) { Ok ( Word :: eof ( ) ) } else { self . scan_word ( ) } }
Parses a word from the source file, and advances the text buffer
cursor.
Parses a word from the source file and advances the text buffer cursor .
&mut self
&mut self