/// Parses the content of the parser.
Parses the content of the parser.
Parses the content of the parser .
pub fn parse(&mut self) -> Result<Function, &'static str> {
        let result = match self.current()? {
            Def => self.parse_def(),
            Extern => self.parse_extern(),
            _ => self.parse_toplevel_expr(),
        };
        match result {
            Ok(result) => {
                if !self.at_end() {
                    Err("Unexpected token after parsed expression.")
                } else {
                    Ok(result)
                }
            }
            err => err,
        }
    }
pub fn parse ( & mut self ) -> Result < Function , & ' static str > { let result = match self . current ( ) ? { Def => self . parse_def ( ) , Extern => self . parse_extern ( ) , _ => self . parse_toplevel_expr ( ) , } ; match result { Ok ( result ) => { if ! self . at_end ( ) { Err ( " " ) } else { Ok ( result ) } } err => err , } }
Parses the content of the parser.
Parses the content of the parser .
&mut self