public override bool Visit(AstNotEqualComparison node)
 {
     ErrorIfIsNull(node.Left);
     ErrorIfIsNull(node.Right);
     return true;
 }
 public override bool Visit(AstNotEqualComparison node)
 {
     return true;
 }
Esempio n. 3
0
 private void ConstructNotEqualComparison()
 {
     var right = nodes.Pop() as AstSimpleTermExpr;
     var left = nodes.Pop() as AstSimpleTermExpr;
     var node = new AstNotEqualComparison(left, right);
     PushNode(node);
 }
 public override bool Visit(AstNotEqualComparison node)
 {
     node.Left.Accept(this);
     string addLine = " = icmp ne i32 " + GetCurrUnnamedVariable() + ", ";
     node.Right.Accept(this);
     addLine += GetCurrUnnamedVariable();
     codeStream.WriteLine(CreateUnnamedVariable() + addLine);
     SaveArg("i1 " + GetCurrUnnamedVariable());
     return false;
 }
Esempio n. 5
0
 public override bool Visit(AstNotEqualComparison node)
 {
     var leftType = resolver.Resolve(node.Left);
     var rightType = resolver.Resolve(node.Right);
     if (leftType != BuiltInTypes.INT || rightType != BuiltInTypes.INT)
     {
         DispatchError(node.TextPosition, "Comparison operations available only for integer types.");
         return false;
     }
     return true;
 }
Esempio n. 6
0
 public abstract bool Visit(AstNotEqualComparison node);