mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Rename compute to eval ✏
This commit is contained in:
parent
7c12f0c07f
commit
e676ab53dd
@ -1,4 +1,4 @@
|
||||
//! Building blocks for the computational part.
|
||||
//! Evaluation of syntax trees.
|
||||
|
||||
mod dict;
|
||||
mod scope;
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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 {
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user