pub fn eval(&mut self, source: Source) -> Result<Value<'a>, Error> {
        let (file, search_path) = self.assimilate_source(source)?;
        let raw_ast = parser::parse(&file).print_diagnostic(self)?;
        let ast = Ast::build(&self.arenas, file, &search_path, raw_ast).print_diagnostic(self)?;
        debug!("AST={:#?}", ast);

        self.eval_expr(ast.root())
    }
/// Evaluates a Nix expression.
///
/// This will parse the source code in `source` and then perform all
/// necessary operations to return a `Value` corresponding to the top-level
/// expression in the source.
///
/// This process might read and parse more `.nix` files from the file
/// system.
Evaluates a Nix expression.
This will parse the source code in `source` and then perform all
necessary operations to return a `Value` corresponding to the top-level
expression in the source.

This process might read and parse more `.nix` files from the file
system.
Evaluates a Nix expression . This will parse the source code in ` source ` and then perform all necessary operations to return a ` Value ` corresponding to the top - level expression in the source . This process might read and parse more ` . nix ` files from the file system .
pub fn eval(&mut self, source: Source) -> Result<Value<'a>, Error> {
        let (file, search_path) = self.assimilate_source(source)?;
        let raw_ast = parser::parse(&file).print_diagnostic(self)?;
        let ast = Ast::build(&self.arenas, file, &search_path, raw_ast).print_diagnostic(self)?;
        debug!("AST={:#?}", ast);
        self.eval_expr(ast.root())
    }
pub fn eval ( & mut self , source : Source ) -> Result < Value < ' a > , Error > { let ( file , search_path ) = self . assimilate_source ( source ) ? ; let raw_ast = parser :: parse ( & file ) . print_diagnostic ( self ) ? ; let ast = Ast :: build ( & self . arenas , file , & search_path , raw_ast ) . print_diagnostic ( self ) ? ; debug ! ( " " ast ) ; self . eval_expr ( ast . root ( ) ) }
Evaluates a Nix expression.
Evaluates a Nix expression .
&mut self
source
Source
&mut self
source
Source