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