fn parse_toplevel_expr(&mut self) -> Result<Function, &'static str> {
        match self.parse_expr() {
            Ok(expr) => Ok(Function {
                prototype: Prototype {
                    name: ANONYMOUS_FUNCTION_NAME.to_string(),
                    args: vec![],
                    is_op: false,
                    prec: 0,
                },
                body: Some(expr),
                is_anon: true,
            }),

            Err(err) => Err(err),
        }
    }
/// Parses a top-level expression and makes an anonymous function out of it,
/// for easier compilation.
Parses a top-level expression and makes an anonymous function out of it,
for easier compilation.
Parses a top - level expression and makes an anonymous function out of it for easier compilation .
fn parse_toplevel_expr(&mut self) -> Result<Function, &'static str> {
        match self.parse_expr() {
            Ok(expr) => Ok(Function {
                prototype: Prototype {
                    name: ANONYMOUS_FUNCTION_NAME.to_string(),
                    args: vec![],
                    is_op: false,
                    prec: 0,
                },
                body: Some(expr),
                is_anon: true,
            }),
            Err(err) => Err(err),
        }
    }
fn parse_toplevel_expr ( & mut self ) -> Result < Function , & ' static str > { match self . parse_expr ( ) { Ok ( expr ) => Ok ( Function { prototype : Prototype { name : ANONYMOUS_FUNCTION_NAME . to_string ( ) , args : vec ! [ ] , is_op : false , prec : 0 , } , body : Some ( expr ) , is_anon : true , } ) , Err ( err ) => Err ( err ) , } }
Parses a top-level expression and makes an anonymous function out of it,
for easier compilation.
Parses a top - level expression and makes an anonymous function out of it for easier compilation .
&mut self
&mut self