summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 2564011..8976597 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,13 +1,15 @@
pub mod ast;
pub mod taiga;
-use std::io::{self, BufRead};
+use std::io::{self, BufRead, Write};
fn main() {
let stdin = io::stdin();
let mut handle = stdin.lock();
loop {
let mut input = String::new();
+ print!("taiga> ");
+ io::stdout().flush().unwrap();
if let Ok(n) = handle.read_line(&mut input) {
if n == 0 { break; }
println!("{:?}", taiga::parse_Program(&input));