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<()> {
|
fn main() -> std::io::Result<()> {
|
||||||
let eval = deriv::pipeline!(
|
let mut repl = deriv::Repl::new(
|
||||||
eval::Normaliser::new(),
|
std::io::stdin(),
|
||||||
eval::Differentiator::new('x'),
|
std::io::stdout(),
|
||||||
eval::ConstFolder::new(),
|
deriv::evaluator('x'));
|
||||||
eval::Simplifier::new(),
|
|
||||||
eval::ConstFolder::new(),
|
|
||||||
eval::Canonicaliser::new()
|
|
||||||
);
|
|
||||||
let mut repl = Repl::new(std::io::stdin(), std::io::stdout(), eval);
|
|
||||||
repl.run()
|
repl.run()
|
||||||
}
|
}
|
||||||
+1
-3
@@ -5,9 +5,7 @@ pub mod binding;
|
|||||||
pub mod read;
|
pub mod read;
|
||||||
pub mod eval;
|
pub mod eval;
|
||||||
pub mod print;
|
pub mod print;
|
||||||
|
|
||||||
pub mod repl;
|
pub mod repl;
|
||||||
|
|
||||||
pub use expression::Expression;
|
|
||||||
pub use eval::Evaluator;
|
|
||||||
pub use repl::Repl;
|
pub use repl::Repl;
|
||||||
|
pub use eval::evaluator;
|
||||||
Reference in new issue
Block a user