pub fn parse_eof(&mut self) -> Result<()> {
        self.skip_empty();
        loop {
            match self.current_char {
                b' ' => self.advance(),
                b'\n' => self.consume_newline()?,
                0 => return Ok(()),
                _ => return Err(Error::Expected(self.pos, "end of input")),
            }
        }
    }
/// Make sure the parser has reached the end of input (spaces, newlines, and comments allowed)
Make sure the parser has reached the end of input (spaces, newlines, and comments allowed)
Make sure the parser has reached the end of input ( spaces newlines and comments allowed )
pub fn parse_eof(&mut self) -> Result<()> {
        self.skip_empty();
        loop {
            match self.current_char {
                b' ' => self.advance(),
                b'\n' => self.consume_newline()?,
                0 => return Ok(()),
                _ => return Err(Error::Expected(self.pos, "end of input")),
            }
        }
    }
pub fn parse_eof ( & mut self ) -> Result < ( ) > { self . skip_empty ( ) ; loop { match self . current_char { b' ' => self . advance ( ) , b'\n' => self . consume_newline ( ) ? , 0 => return Ok ( ( ) ) , _ => return Err ( Error :: Expected ( self . pos , " " ) ) , } } }
Make sure the parser has reached the end of input (spaces, newlines, and comments allowed)
Make sure the parser has reached the end of input ( spaces newlines and comments allowed )
&mut self
&mut self