We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dedeae9 commit 3ea9283Copy full SHA for 3ea9283
1 file changed
src/main.rs
@@ -573,13 +573,10 @@ impl Executor {
573
"while" => {
574
let cond = self.pop_stack().get_string();
575
let code = self.pop_stack().get_string();
576
- loop {
577
- if {
578
- self.evaluate_program(cond.clone());
579
- !self.pop_stack().get_bool()
580
- } {
581
- break;
582
- }
+ while {
+ self.evaluate_program(cond.clone());
+ self.pop_stack().get_bool()
+ } {
583
self.evaluate_program(code.clone());
584
}
585
0 commit comments