Ejemplo n.º 1
0
        public object Visit(ASTExplicitHighAndBond 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);
        }
Ejemplo n.º 2
0
 // TODO: Accept only one bond. Need to find out whether MQL supports
 // logical bonds
 public object Visit(ASTExplicitHighAndBond node, object data)
 {
     return(node.JjtGetChild(0).JjtAccept(this, data));
 }