Reorganise root exports and update demo
This commit is contained in:
1 parent
d7bcac7092
commit
7a8ef1a485
2 files changed
+5
-15
No files matched your search
+4
-12
@@ -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()
|
||||
}
|
||||
+1
-3
@@ -5,9 +5,7 @@ pub mod binding;
|
||||
pub mod read;
|
||||
pub mod eval;
|
||||
pub mod print;
|
||||
|
||||
pub mod repl;
|
||||
|
||||
pub use expression::Expression;
|
||||
pub use eval::Evaluator;
|
||||
pub use repl::Repl;
|
||||
pub use eval::evaluator;
|
||||
Reference in new issue
Block a user