Ejemplo n.º 1
0
 public override int VisitOR(CASTExpressionOr node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_OR_LEFT);
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_OR_RIGHT);
     base.VisitOR(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
Ejemplo n.º 2
0
        public override int VisitExpr_OR(MINICParser.Expr_ORContext context)
        {
            ASTComposite     m_parent = m_parents.Peek();
            CASTExpressionOr newnode  = new CASTExpressionOr(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_OR_LEFT);
            this.VisitElementInContext(context.expression(1), m_parentContext, contextType.CT_EXPRESSION_OR_RIGHT);

            m_parents.Pop();
            return(0);
        }
Ejemplo n.º 3
0
 public virtual Result VisitOR(CASTExpressionOr node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }