pub fn parse<T: Read>(&mut self, reader: &mut BufReader<T>) -> ReadResult {
        match self.get_char(reader, true) {
            Some(c) => {
                match c {
                    '\'' => self.parse_quoted_sexp(reader),
                    ','  => self.parse_unquoted_sexp(reader),
                    '`'  => self.parse_quasiquoted_sexp(reader),
                    '('  => self.parse_list(reader),
                    _    => {
                        self.unget_char(c);
                        self.parse_atom(reader)
                    }
                }
            },
            None => Ok(Sexp::NoMatch)
        }
    }
// Top-level parse of an S-expression. The empty string is parsed as
// a Nil.
Top-level parse of an S-expression. The empty string is parsed as
a Nil.
Top - level parse of an S - expression . The empty string is parsed as a Nil .
pub fn parse<T: Read>(&mut self, reader: &mut BufReader<T>) -> ReadResult {
        match self.get_char(reader, true) {
            Some(c) => {
                match c {
                    '\'' => self.parse_quoted_sexp(reader),
                    ','  => self.parse_unquoted_sexp(reader),
                    '`'  => self.parse_quasiquoted_sexp(reader),
                    '('  => self.parse_list(reader),
                    _    => {
                        self.unget_char(c);
                        self.parse_atom(reader)
                    }
                }
            },
            None => Ok(Sexp::NoMatch)
        }
    }
pub fn parse < T : Read > ( & mut self , reader : & mut BufReader < T > ) -> ReadResult { match self . get_char ( reader , true ) { Some ( c ) => { match c { '\'' => self . parse_quoted_sexp ( reader ) , ',' => self . parse_unquoted_sexp ( reader ) , '`' => self . parse_quasiquoted_sexp ( reader ) , '(' => self . parse_list ( reader ) , _ => { self . unget_char ( c ) ; self . parse_atom ( reader ) } } } , None => Ok ( Sexp :: NoMatch ) } }
Top-level parse of an S-expression.
Top - level parse of an S - expression .
&mut self
reader
&mut BufReader<T>
&mut self
reader
&mut BufReader<T>