Esempio n. 1
0
 public Commands(Position position, Command[] commands)
     : base(position)
 {
     _commands = commands;
     foreach (Command command in _commands)
         command.Parent = this;
 }
Esempio n. 2
0
 public WhileCommand(Position position, Expression expression, Command command)
     : base(position)
 {
     _expression = expression;
     _expression.Parent = this;
     _command = command;
     _command.Parent = this;
 }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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;
        }