Exemple #1
0
 public object Visit(ASTLowAndBond node, object data)
 {
     System.Console.Out.WriteLine(IndentString() + node);
     ++indent;
     data = node.ChildrenAccept(this, data);
     --indent;
     return(data);
 }
Exemple #2
0
        public object Visit(ASTLowAndBond node, object data)
        {
            object left = node.JjtGetChild(0).JjtAccept(this, data);

            if (node.JjtGetNumChildren() == 1)
            {
                return(left);
            }
            LogicalOperatorBond bond = new LogicalOperatorBond(builder)
            {
                Operator = "and",
                Left     = (IQueryBond)left
            };
            IQueryBond right = (IQueryBond)node.JjtGetChild(1).JjtAccept(this, data);

            bond.Right = right;
            return(bond);
        }
Exemple #3
0
 // TODO: Accept only one bond. Need to find out whether MQL supports
 // logical bonds
 public object Visit(ASTLowAndBond node, object data)
 {
     return(node.JjtGetChild(0).JjtAccept(this, data));
 }