Пример #1
0
 public object Visit(ASTExplicitHighAndBond node, object data)
 {
     System.Console.Out.WriteLine(IndentString() + node);
     ++indent;
     data = node.ChildrenAccept(this, data);
     --indent;
     return(data);
 }
Пример #2
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);
        }
Пример #3
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));
 }