public object VisitStatementStopTheLoop(StatementStopTheLoop statementStopTheLoop, object o) { var stopTheLoopAddress = (int)o; Emit(Machine.JUMPop, 0, Machine.CBr, stopTheLoopAddress); return(null); }
public object VisitStatementStopTheLoop(StatementStopTheLoop statementStopTheLoop, object o) { if (!idTable.IsInLoopScope()) { throw new Exception("Stop the loop statement must be used only inside a loop"); } return(null); }