We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69457a0 commit 55974f5Copy full SHA for 55974f5
src/main.rs
@@ -39,7 +39,16 @@ fn main() {
39
let mut executor = Executor::new(Mode::Debug);
40
// REPL実行
41
loop {
42
- executor.evaluate_program(input("> "))
+ let mut code = String::new();
43
+ loop {
44
+ let inputed = input("> ");
45
+ code += &format!("{inputed}\n");
46
+ if inputed.is_empty() {
47
+ break;
48
+ }
49
50
+
51
+ executor.evaluate_program(code)
52
}
53
54
0 commit comments