[Nice-commit] Nice/src/bossa/syntax analyse.nice,1.70,1.71
Brought to you by:
bonniot
From: <bo...@us...> - 2003-06-10 19:33:05
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv3807/src/bossa/syntax Modified Files: analyse.nice Log Message: Handle correctly 'break' and 'continue' with unknown labels. Index: analyse.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/analyse.nice,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** analyse.nice 5 Jun 2003 16:06:03 -0000 1.70 --- analyse.nice 10 Jun 2003 19:33:00 -0000 1.71 *************** *** 690,694 **** analyse(b@BreakLabelStmt, info) { ! b.statement = findLabel(notNull(b.label), info); info.setUnreachable(); } --- 690,694 ---- analyse(b@BreakLabelStmt, info) { ! b.statement = mustFindLabel(notNull(b.label), info); info.setUnreachable(); } *************** *** 702,706 **** else { ! LabeledStmt l = findLabel(notNull(c.label), info); c.loop = l.getLoop(); } --- 702,706 ---- else { ! LabeledStmt l = mustFindLabel(notNull(c.label), info); c.loop = l.getLoop(); } |