summaryrefslogtreecommitdiff
path: root/src/prelude.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-02 19:37:10 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-02 19:37:10 +0100
commit1c40dc42e7bc7b799b77f06d25414aca59a044ba (patch)
treeea8bdedaebf59f5bc601346b0108236c7264a29d /src/prelude.rs
parent8cad78481cd52680317032c3bb84cacda5666489 (diff)
Dynamic values, Types, Arrays, and Dictionaries 🚀
- Identifiers are now evaluated as variables instead of being plain values - Constants like `left` or `bold` are stored as dynamic values containing the respective rust types - We now distinguish between arrays and dictionaries to make things more intuitive (at the cost of a bit more complex parsing) - Spans were removed from collections (arrays, dictionaries), function arguments still have spans for the top-level values to enable good diagnostics
Diffstat (limited to 'src/prelude.rs')
-rw-r--r--src/prelude.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/prelude.rs b/src/prelude.rs
index b9cf561d..5d446e8c 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -2,7 +2,10 @@
pub use crate::diag::{Feedback, Pass};
#[doc(no_inline)]
-pub use crate::eval::{Args, Dict, Eval, EvalContext, Value, ValueDict};
+pub use crate::eval::{
+ Args, CastResult, Eval, EvalContext, Value, ValueAny, ValueArray, ValueContent,
+ ValueDict,
+};
pub use crate::geom::*;
#[doc(no_inline)]
pub use crate::layout::LayoutNode;