Exemplo n.º 1
0
 public Method(Block superBlock, string name, string returnType, Parameter[] parameters)
     : base(superBlock)
 {
     this.name = name;
     this.returnType = returnType;
     this.parameters = parameters;
 }
Exemplo n.º 2
0
 public AssignStatement(Block superBlock, string name, string type, IExpression value)
     : base(superBlock)
 {
     this.name = name;
     this.type = type;
     this.value = value;
     this.superBlock = superBlock;
 }
Exemplo n.º 3
0
 public Variable(Block block, VariableType type, string name, object value)
     : base(type, value)
 {
     this.block = block;
     this.name = name;
 }
Exemplo n.º 4
0
 public PrintStatement(Block superBlock, IExpression expression)
     : base(null)
 {
     this.expression = expression;
 }
Exemplo n.º 5
0
 public void AddBlock(Block block)
 {
     subBlocks.Add(block);
 }
Exemplo n.º 6
0
 public Block(Block superBlock)
 {
     this.superBlock = superBlock;
     subBlocks = new List<Block>();
     variables = new List<Variable>();
 }