Visitor: implemented any possible breakStmt
This commit is contained in:
parent
47bff81942
commit
96847b7a8a
3 changed files with 67 additions and 17 deletions
17
src/test/res/mytest/BasicBreak.java
Normal file
17
src/test/res/mytest/BasicBreak.java
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package mytest;
|
||||
|
||||
public class BasicBreak {
|
||||
public static void main(String[] args) {
|
||||
int x = 0;
|
||||
bucle:
|
||||
while (true) {
|
||||
x++;
|
||||
for (int y = 0; y < 10; y++) {
|
||||
if (y == x) break;
|
||||
if (y * 2 == x) break bucle;
|
||||
}
|
||||
if (x > 10) break;
|
||||
x++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue