Class FOR_WhileTValElt

java.lang.Object
simula.runtime.FOR_Element
simula.runtime.FOR_WhileTValElt
All Implemented Interfaces:
Iterator<Boolean>

public final class FOR_WhileTValElt extends FOR_Element

For-statement While-element with Text Value Assignment.

		For t:=  while  // Text Value Assignment
  • Field Details

  • Constructor Details

    • FOR_WhileTValElt

      public FOR_WhileTValElt(RTS_NAME<RTS_TXT> cvar, RTS_NAME<RTS_TXT> expr, RTS_NAME<Boolean> cond)
      Create Text Value While-element.
      Parameters:
      cvar - the for-statement control variable
      expr - a Text Value expression
      cond - a Boolean expression
  • Method Details

    • next

      public Boolean next()
      Update the control variable with the next value if any.
      Returns:
      true if the control variable was updated; otherwise false.