Class ForStmt
Statement representing a FOR loop with optional STEP.
Assembly: VM.dll
Syntax
public class ForStmt : StatementNode
Fields
Body
Declaration
public List<StatementNode> Body
Field Value
From
Declaration
public required ExprNode From
Field Value
Step
Declaration
Field Value
To
Declaration
public required ExprNode To
Field Value
Variable
Declaration
public required string Variable
Field Value
Methods
Accept<T>(IAstVisitor<T>)
Accepts a visitor that returns a value.
Declaration
public override T Accept<T>(IAstVisitor<T> visitor)
Parameters
Returns
Type Parameters
Overrides
ToString()
Returns a string representation of the AST node for debugging.
Declaration
public override string ToString()
Returns
Overrides