bullet 0.1.2

Supersonic Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate bullet;

use std::io::{stdin, BufRead};
use bullet::eval::EvalContext;

fn main() {
    let mut ctx = EvalContext::new();
    let stdin = stdin();
    let mut lines = stdin.lock().lines();
    while let Some(Ok(line)) = lines.next() {
        match ctx.run(&line) {
            Ok(Some(s)) => println!("{}", s),
            Ok(None) => {},
            Err(e) => println!("{}", e),
        }
    }
}