Reorganise root exports and update demo

This commit is contained in:
cdo committed 2026-09-26 13:46:52 +01:00
1 parent d7bcac7092
commit 7a8ef1a485
2 files changed
+5 -15

No files matched your search

+4 -12
View File
@@ -1,15 +1,7 @@
use deriv::Repl;
use deriv::eval;
fn main() -> std::io::Result<()> {
let eval = deriv::pipeline!(
eval::Normaliser::new(),
eval::Differentiator::new('x'),
eval::ConstFolder::new(),
eval::Simplifier::new(),
eval::ConstFolder::new(),
eval::Canonicaliser::new()
);
let mut repl = Repl::new(std::io::stdin(), std::io::stdout(), eval);
let mut repl = deriv::Repl::new(
std::io::stdin(),
std::io::stdout(),
deriv::evaluator('x'));
repl.run()
}