Exemplo n.º 1
0
 public override int VisitAND(CASTExpressionAnd node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_AND_LEFT);
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_AND_RIGHT);
     base.VisitAND(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
Exemplo n.º 2
0
        public override int VisitExpr_AND(MINICParser.Expr_ANDContext context)
        {
            ASTComposite      m_parent = m_parents.Peek();
            CASTExpressionAnd newnode  = new CASTExpressionAnd(context.GetText(), m_parents.Peek(), 2);

            m_parent.AddChild(newnode, m_parentContext.Peek());
            m_parents.Push(newnode);

            this.VisitElementInContext(context.expression(0), m_parentContext, contextType.CT_EXPRESSION_AND_LEFT);
            this.VisitElementInContext(context.expression(1), m_parentContext, contextType.CT_EXPRESSION_AND_RIGHT);

            m_parents.Pop();
            return(0);
        }
Exemplo n.º 3
0
 public virtual Result VisitAND(CASTExpressionAnd node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }