public Commands(Position position, Command[] commands) : base(position) { _commands = commands; foreach (Command command in _commands) command.Parent = this; }
public WhileCommand(Position position, Expression expression, Command command) : base(position) { _expression = expression; _expression.Parent = this; _command = command; _command.Parent = this; }
public IfCommand(Position position, Expression expression, Command @if, Command @else) : base(position) { _expression = expression; _expression.Parent = this; _if = @if; _if.Parent = this; _else = @else; _else.Parent = this; }
public LetCommand(Position position, Declaration[] declarations, Command command) : base(position) { _declarations = declarations; if (_declarations != null) { foreach (Declaration declaration in _declarations) declaration.Parent = this; } _command = command; _command.Parent = this; }