fn read_name(&mut self) -> Result<String> {
        let mut res = String::new();

        loop {
            match self.input.peek() {
                Some(&c) if !is_delimiter(c) => {
                    self.next();
                    res.push(c)
                },
                _ => break,
            }
        }

        if res.chars().skip(1).all(|c| is_name_char(c)) {
            Ok(res)
        } else {
            Err(
                self.err(
                    ErrorKind::MalformedToken,
                    format!("cannot parse {} as a name", res),
                )
            )
        }
    }
/// Reads a name from the input.
///
/// Names can be either keywords or identifiers.
Reads a name from the input.
Names can be either keywords or identifiers.
Reads a name from the input . Names can be either keywords or identifiers .
fn read_name(&mut self) -> Result<String> {
        let mut res = String::new();
        loop {
            match self.input.peek() {
                Some(&c) if !is_delimiter(c) => {
                    self.next();
                    res.push(c)
                },
                _ => break,
            }
        }
        if res.chars().skip(1).all(|c| is_name_char(c)) {
            Ok(res)
        } else {
            Err(
                self.err(
                    ErrorKind::MalformedToken,
                    format!("cannot parse {} as a name", res),
                )
            )
        }
    }
fn read_name ( & mut self ) -> Result < String > { let mut res = String :: new ( ) ; loop { match self . input . peek ( ) { Some ( & c ) if ! is_delimiter ( c ) => { self . next ( ) ; res . push ( c ) } , _ => break , } } if res . chars ( ) . skip ( 1 ) . all ( | c | is_name_char ( c ) ) { Ok ( res ) } else { Err ( self . err ( ErrorKind :: MalformedToken , format ! ( " " res ) , ) ) } }
Reads a name from the input.
Reads a name from the input .
&mut self
&mut self