Disallow empty input

This commit is contained in:
Yash Karandikar 2021-09-17 12:54:01 -05:00
parent bd41def541
commit 1583671f84

View file

@ -1,7 +1,10 @@
use crate::println; use crate::println;
pub fn evaluate(command: &str) { pub fn evaluate(command: &str) {
println!(); let res = command.trim();
println!(); if res != "" {
println!("[ {} ]", command.trim()); println!();
println!();
println!("[ {:#?} ]", res);
}
} }