complete all introductory documentation, except for the Easy Patterns

section
Also, removed some stray debug lines and added a printed newline
inbetween prompt and output
This commit is contained in:
Ava Hahn 2023-03-16 15:14:24 -07:00
parent 67af8bbd47
commit 20821057f2
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
3 changed files with 126 additions and 13 deletions

View file

@ -112,8 +112,8 @@ fn main() -> ! {
let user_doc = rl.read_line(&readline_prompt).unwrap();
match user_doc {
Signal::Success(line) => {
println!(""); // add a new line before output gets printed
let l = line.as_str().to_owned();
match lex(&l) {
Ok(a) => match eval(&a, &mut syms) {
Ok(a) => println!("{}", a),