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 dict;
mod scope; mod scope;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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