예제 #1
0
파일: Commands.cs 프로젝트: bencz/Beryl
 public Commands(Position position, Command[] commands)
     : base(position)
 {
     _commands = commands;
     foreach (Command command in _commands)
         command.Parent = this;
 }
예제 #2
0
파일: WhileCommand.cs 프로젝트: bencz/Beryl
 public WhileCommand(Position position, Expression expression, Command command)
     : base(position)
 {
     _expression = expression;
     _expression.Parent = this;
     _command = command;
     _command.Parent = this;
 }
예제 #3
0
파일: IfCommand.cs 프로젝트: bencz/Beryl
        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;
        }
예제 #4
0
파일: LetCommand.cs 프로젝트: bencz/Beryl
        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;
        }