java.lang.Object
simula.runtime.RTS_RTObject.ForList
- Enclosing class:
RTS_RTObject
The Implementation of the for-statement is a bit tricky.
The basic idea is to create a ForList iterator that iterates over a set of ForElt iterators.
The following subclasses of ForElt are defined:
-
SingleElt<T>
for basic types T control variable -
SingleTValElt
for Text type control variable -
StepUntil
for numeric types -
WhileElt<T>
for basic types T control variable -
WhileTValElt
representing For t:= <TextExpr> while <Cond> With text value assignment
-
Field Summary
Modifier and TypeFieldDescription(package private) RTS_RTObject.ForListIterator
The ForList Iterator. -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
forListIterator
RTS_RTObject.ForListIterator forListIteratorThe ForList Iterator.
-
-
Constructor Details
-
ForList
Create a ForList Iterator.- Parameters:
forElt
- an array of ForElt Iterators.
-
-
Method Details