added some code to compile the break statement
This commit is contained in:
@ -180,8 +180,8 @@ class MyObject(Object)
|
||||
while (true)
|
||||
{
|
||||
a := a + 1.
|
||||
if (a < 9) { continue }.
|
||||
a dump;
|
||||
if (a > 20) { break }.
|
||||
a dump.
|
||||
}.
|
||||
'---------- END ------------' dump.
|
||||
##Processor sleepFor: 20.
|
||||
|
@ -98,6 +98,8 @@ class MyObject(Object)
|
||||
'wrong pool dictionary name'
|
||||
'duplicate pool dictionary name'
|
||||
'literal expected'
|
||||
'break or continue not within a loop'
|
||||
'break or continue within a block'
|
||||
).
|
||||
|
||||
f := Stdio open: 'generr.out' for: 'w'.
|
||||
|
Reference in New Issue
Block a user