예제 #1
0
 public override dynamic Evaluate(SymbolTable table)
 {
     return((LeftNode.GetType() == RightNode.GetType()) && (LeftNode.Evaluate(table) == RightNode.Evaluate(table)));
 }
예제 #2
0
 public override string ToString() =>
 $"{this.GetType().Name}"
 + $" | Data: {this.Data.ToString()}"
 + $" | Parent: {(this.Parent?.GetType().Name) ?? "Null"}"
 + $" | L: {LeftNode.GetType().Name}"
 + $" | R: {RightNode.GetType().Name}";