added some code to compile the break statement

This commit is contained in:
hyunghwan.chung
2017-01-29 07:14:36 +00:00
parent 10ca940d72
commit 03ddf6b68d
6 changed files with 152 additions and 113 deletions

View File

@ -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.

View File

@ -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'.