summaryrefslogtreecommitdiff
path: root/library/src/math/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-27 11:57:00 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-27 11:57:00 +0100
commit13efa128c855637a7fe3351a4579383359d1be1b (patch)
treeab4e699eb1ecbb0f8323a05ffdaf9b8be494b500 /library/src/math/mod.rs
parenta8fd64f9289b92614b9e6c16e909ec0c45429027 (diff)
Macro for math operators
Diffstat (limited to 'library/src/math/mod.rs')
-rw-r--r--library/src/math/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs
index 45e33daf..cbe636b1 100644
--- a/library/src/math/mod.rs
+++ b/library/src/math/mod.rs
@@ -53,6 +53,7 @@ pub fn module() -> Module {
let mut math = Scope::deduplicating();
math.def_func::<FormulaNode>("formula");
math.def_func::<LrNode>("lr");
+ math.def_func::<OpNode>("op");
math.def_func::<FloorFunc>("floor");
math.def_func::<CeilFunc>("ceil");
math.def_func::<AbsFunc>("abs");
@@ -75,8 +76,8 @@ pub fn module() -> Module {
math.def_func::<FrakNode>("frak");
math.def_func::<MonoNode>("mono");
math.def_func::<BbNode>("bb");
- define_spacings(&mut math);
- define_operators(&mut math);
+ spacing::define(&mut math);
+ op::define(&mut math);
Module::new("math").with_scope(math)
}