Rename compute to eval ✏

This commit is contained in:
Laurenz 2020-10-01 15:13:04 +02:00
parent 7c12f0c07f
commit e676ab53dd
12 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
//! Building blocks for the computational part.
//! Evaluation of syntax trees.
mod dict;
mod scope;

View File

@ -21,7 +21,7 @@ pub mod prelude {
pub use primitive::*;
pub use tree::layout_tree as layout;
use crate::compute::Scope;
use crate::eval::Scope;
use crate::font::SharedFontLoader;
use crate::geom::{Margins, Size};
use crate::style::{LayoutStyle, PageStyle, TextStyle};

View File

@ -27,7 +27,7 @@ mod macros;
pub mod diagnostic;
pub mod color;
pub mod compute;
pub mod eval;
pub mod export;
pub mod font;
pub mod geom;
@ -44,8 +44,8 @@ use std::fmt::Debug;
use std::future::Future;
use std::pin::Pin;
use crate::compute::{Scope, Value};
use crate::diagnostic::Diagnostic;
use crate::eval::{Scope, Value};
use crate::font::SharedFontLoader;
use crate::layout::{Commands, MultiLayout};
use crate::style::{LayoutStyle, PageStyle, TextStyle};

View File

@ -16,7 +16,7 @@ pub use spacing::*;
use std::rc::Rc;
use crate::compute::Scope;
use crate::eval::Scope;
use crate::prelude::*;
macro_rules! std {

View File

@ -13,7 +13,7 @@ pub use tokens::*;
use std::str::FromStr;
use crate::color::RgbaColor;
use crate::compute::DictKey;
use crate::eval::DictKey;
use crate::syntax::*;
use crate::{Feedback, Pass};

View File

@ -6,7 +6,7 @@ use std::fmt::Debug;
use super::parse;
use crate::color::RgbaColor;
use crate::compute::DictKey;
use crate::eval::DictKey;
use crate::length::Length;
use crate::syntax::*;

View File

@ -1,7 +1,7 @@
//! A prelude for building custom functions.
pub use super::*;
pub use crate::compute::*;
pub use crate::eval::*;
pub use crate::layout::prelude::*;
pub use crate::layout::Command::{self, *};
pub use crate::layout::Commands;

View File

@ -2,7 +2,7 @@
use super::span::{SpanWith, Spanned};
use super::{Decoration, Ident, Lit, LitDict};
use crate::compute::Value;
use crate::eval::Value;
use crate::layout::LayoutContext;
use crate::Feedback;

View File

@ -2,7 +2,7 @@
use super::{Expr, Ident, SpanWith, Spanned, SynTree};
use crate::color::RgbaColor;
use crate::compute::{DictKey, DictValue, SpannedEntry, Value};
use crate::eval::{DictKey, DictValue, SpannedEntry, Value};
use crate::layout::LayoutContext;
use crate::length::Length;
use crate::{DynFuture, Feedback};