fn read_eval(
    context: &Context,
    metas: &mut meta::Env,
    file: &File,
) -> Result<(Rc<syntax::Term>, Rc<domain::Type>), Diagnostic<FileSpan>> {
    let lexer = Lexer::new(&file);
    let concrete_term = parser::parse_term(lexer)?;;

    let (core_term, ty) =
        mltt_elaborate::synth_term(MetaInsertion::Yes, &context, metas, &concrete_term)?;

    let term_span = concrete_term.span();
    let term = context.normalize_term(metas, term_span, &core_term)?;

    Ok((term, ty))
}
/// Read and evaluate the given file.
Read and evaluate the given file.
Read and evaluate the given file .
fn read_eval(
    context: &Context,
    metas: &mut meta::Env,
    file: &File,
) -> Result<(Rc<syntax::Term>, Rc<domain::Type>), Diagnostic<FileSpan>> {
    let lexer = Lexer::new(&file);
    let concrete_term = parser::parse_term(lexer)?;;
    let (core_term, ty) =
        mltt_elaborate::synth_term(MetaInsertion::Yes, &context, metas, &concrete_term)?;
    let term_span = concrete_term.span();
    let term = context.normalize_term(metas, term_span, &core_term)?;
    Ok((term, ty))
}
fn read_eval ( context : & Context , metas : & mut meta :: Env , file : & File , ) -> Result < ( Rc < syntax :: Term > , Rc < domain :: Type > ) , Diagnostic < FileSpan > > { let lexer = Lexer :: new ( & file ) ; let concrete_term = parser :: parse_term ( lexer ) ? ; ; let ( core_term , ty ) = mltt_elaborate :: synth_term ( MetaInsertion :: Yes , & context , metas , & concrete_term ) ? ; let term_span = concrete_term . span ( ) ; let term = context . normalize_term ( metas , term_span , & core_term ) ? ; Ok ( ( term , ty ) ) }
Read and evaluate the given file.
Read and evaluate the given file .
context
&Context
metas
&mut meta::Env
file
&File
context
&Context
metas
&mut meta::Env
file
&File