fix automatic semicolons
This commit is contained in:
parent
7be878b97a
commit
fcaa0fe5f9
1 changed files with 2 additions and 1 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue