Skip to content
Snippets Groups Projects
Unverified Commit 7aff1fe6 authored by Michael Gattozzi's avatar Michael Gattozzi
Browse files

Repl basics

repl will read in from stdin and output what was typed. What should
be noted is that read_line() from the stdlib does not accept keyboard
interupts and work on a pure rust implementation should be worked on
as soon as possible.

Changes to be committed:
	modified:   src/bin/ion.rs
	modified:   src/lib.rs
parent 08472842
No related branches found
No related tags found
No related merge requests found
extern crate ion;
fn main() {
ion::repl()
loop {
ion::repl()
}
}
pub fn repl() {}
use std::io;
pub fn repl() {
let mut input = String::new();
let _unused = io::stdin().read_line(&mut input);
println!("You typed: {}", input.trim());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment