monte-language / typhon

A virtual machine for Monte.
Other
67 stars 10 forks source link

can't break / return out of while loop? #193

Closed dckc closed 7 years ago

dckc commented 7 years ago

calling f() loops forever; is this by design?

def f() { var x := 0; while(true) { x +=1; if(x > 3) { break } } }
erights commented 7 years ago

IIUC this loop should correctly terminate. Why does it not?

dckc commented 7 years ago

misparse of ExitExpr

fixed in 2cf6176