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