blob: 2564011497d64977479fd93ec57a1054a58a2670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
pub mod ast;
pub mod taiga;
use std::io::{self, BufRead};
fn main() {
let stdin = io::stdin();
let mut handle = stdin.lock();
loop {
let mut input = String::new();
if let Ok(n) = handle.read_line(&mut input) {
if n == 0 { break; }
println!("{:?}", taiga::parse_Program(&input));
}
else {
break;
}
}
}
|