Beispiel #1
0
 public object visitBreakStatement(Statement.breakStmt breakStmt)
 {
     if (!isInLoop)
     {
         Lox.error(breakStmt.keyword, "Cannot use break statement outside of a loop.");
     }
     return(null);
 }
Beispiel #2
0
 public object visitBreakStatement(Statement.breakStmt breakStmt)
 {
     _break = true;
     return(null);
 }