fix automatic semicolons

This commit is contained in:
TriMill 2022-10-18 08:42:50 -04:00
parent 7be878b97a
commit fcaa0fe5f9
1 changed files with 2 additions and 1 deletions

View File

@ -40,8 +40,9 @@ pub fn repl() -> Result<(), Box<dyn std::error::Error>> {
loop { loop {
let readline = rl.readline(">> "); let readline = rl.readline(">> ");
match readline { match readline {
Ok(line) => { Ok(mut line) => {
rl.add_history_entry(&line); rl.add_history_entry(&line);
line.push(';');
let result = interpret(&line, None, Some(env.clone()), true); let result = interpret(&line, None, Some(env.clone()), true);
match result { match result {
Ok(value) => { Ok(value) => {