예제 #1
0
 /// <summary>
 /// Checks the static semantic constraints of a BinOpNode.
 /// </summary>
 /// <returns>An ISemanticCheckValue.</returns>
 /// <param name="node">Node.</param>
 public ISemanticCheckValue VisitBinOpNode(BinOpNode node)
 {
     // This is not a statement so it needs not to be actually checked here.
     // So, we pass it to the TypeCheckerVisitor instead.
     return(node.Accept(this.typeChecker));
 }
예제 #2
0
 /// <summary>
 /// Visits the bin op node.
 /// </summary>
 /// <returns>An ISemanticCheckValue.</returns>
 /// <param name="node">Node.</param>
 public ISemanticCheckValue VisitBinOpNode(BinOpNode node)
 {
     // let the evaluator evaluate this node
     return(node.Accept(evaluator));
 }