symoxide 0.1.2

Intermediate Representation and Transformations for Computer Algebra Systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use symoxide::mappers::walk::UncachedWalkMapper;
use symoxide::parse;

struct MyWalkMapper;

impl UncachedWalkMapper for MyWalkMapper {
    fn map_variable(&self, name: String) {
        println!("Visiting '{}'.", name);
    }
}

fn main() {
    let expr = parse("x + y + z");

    let var_visitor = MyWalkMapper {};
    var_visitor.visit(&expr);
}