///|
fn main {
let text = "User-agent: *\nDisallow: /\n\nUser-agent: ExampleBot\nAllow: /\n"
match @robots.parse_robots(text) {
Ok(file) => {
println(@robots.evaluate(file, "ExampleBot", "/docs").unwrap().summary())
println(@robots.evaluate(file, "OtherBot", "/docs").unwrap().summary())
}
Err(e) => println(e.to_display())
}
}