12 lines
276 B
Rust
12 lines
276 B
Rust
use std::io::Read;
|
|
|
|
fn main() {
|
|
let mut src = String::new();
|
|
std::io::stdin()
|
|
.read_to_string(&mut src)
|
|
.expect("failed to read unicode file");
|
|
|
|
let p = jotdown::Parser::new(&src);
|
|
let v = p.iter().collect::<Vec<_>>();
|
|
print!("{:?}", v);
|
|
}
|