mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Move eval.rs to context
This commit is contained in:
parent
fadce087c5
commit
1b4c9aa9c3
6 changed files with 5 additions and 4 deletions
|
@ -23,8 +23,8 @@ use erg_type::value::ValueObj;
|
||||||
use erg_type::{HasType, TypeCode, TypePair};
|
use erg_type::{HasType, TypeCode, TypePair};
|
||||||
|
|
||||||
use crate::compile::{AccessKind, Name, StoreLoadKind};
|
use crate::compile::{AccessKind, Name, StoreLoadKind};
|
||||||
|
use crate::context::eval::eval_lit;
|
||||||
use crate::error::{CompileError, CompileErrors, CompileResult};
|
use crate::error::{CompileError, CompileErrors, CompileResult};
|
||||||
use crate::eval::eval_lit;
|
|
||||||
use crate::hir::{
|
use crate::hir::{
|
||||||
Accessor, Args, Array, Block, Call, DefBody, Expr, Local, Signature, SubrSignature, Tuple,
|
Accessor, Args, Array, Block, Call, DefBody, Expr, Local, Signature, SubrSignature, Tuple,
|
||||||
VarSignature, HIR,
|
VarSignature, HIR,
|
||||||
|
|
|
@ -23,9 +23,9 @@ use erg_type::typaram::{IntervalOp, TyParam, TyParamOrdering};
|
||||||
use erg_type::value::ValueObj;
|
use erg_type::value::ValueObj;
|
||||||
use erg_type::{HasType, ParamTy, Predicate, SubrKind, TyBound, Type};
|
use erg_type::{HasType, ParamTy, Predicate, SubrKind, TyBound, Type};
|
||||||
|
|
||||||
|
use crate::context::eval::eval_lit;
|
||||||
use crate::context::{Context, RegistrationMode};
|
use crate::context::{Context, RegistrationMode};
|
||||||
use crate::error::TyCheckResult;
|
use crate::error::TyCheckResult;
|
||||||
use crate::eval::eval_lit;
|
|
||||||
use crate::hir;
|
use crate::hir;
|
||||||
use RegistrationMode::*;
|
use RegistrationMode::*;
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
//! `Context` is used for type inference and type checking.
|
//! `Context` is used for type inference and type checking.
|
||||||
pub mod cache;
|
pub mod cache;
|
||||||
pub mod compare;
|
pub mod compare;
|
||||||
|
pub mod eval;
|
||||||
pub mod hint;
|
pub mod hint;
|
||||||
pub mod initialize;
|
pub mod initialize;
|
||||||
pub mod inquire;
|
pub mod inquire;
|
||||||
|
|
|
@ -19,8 +19,8 @@ use erg_type::typaram::TyParam;
|
||||||
use erg_type::value::ValueObj;
|
use erg_type::value::ValueObj;
|
||||||
use erg_type::{impl_t, impl_t_for_enum, HasType, Type};
|
use erg_type::{impl_t, impl_t_for_enum, HasType, Type};
|
||||||
|
|
||||||
|
use crate::context::eval::type_from_token_kind;
|
||||||
use crate::error::readable_name;
|
use crate::error::readable_name;
|
||||||
use crate::eval::type_from_token_kind;
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Literal {
|
pub struct Literal {
|
||||||
|
|
|
@ -7,8 +7,8 @@ pub use compile::*;
|
||||||
mod codegen;
|
mod codegen;
|
||||||
pub mod effectcheck;
|
pub mod effectcheck;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod eval;
|
|
||||||
pub mod hir;
|
pub mod hir;
|
||||||
|
pub mod link;
|
||||||
pub mod lower;
|
pub mod lower;
|
||||||
pub use lower::ASTLowerer;
|
pub use lower::ASTLowerer;
|
||||||
pub mod context;
|
pub mod context;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue