Beispiel #1
0
 public override int VisitLT(CASTExpressionLt node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_LT_LEFT);
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_LT_RIGHT);
     base.VisitLT(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
        public override int VisitExpr_LT(MINICParser.Expr_LTContext context)
        {
            ASTComposite     m_parent = m_parents.Peek();
            CASTExpressionLt newnode  = new CASTExpressionLt(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_LT_LEFT);
            this.VisitElementInContext(context.expression(1), m_parentContext, contextType.CT_EXPRESSION_LT_RIGHT);

            m_parents.Pop();
            return(0);
        }
 public virtual Result VisitLT(CASTExpressionLt node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }