コード例 #1
0
 public override int VisitLTE(CASTExpressionLte node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_LTE_LEFT);
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_LTE_RIGHT);
     base.VisitLTE(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
コード例 #2
0
        public override int VisitExpr_LTE(MINICParser.Expr_LTEContext context)
        {
            ASTComposite      m_parent = m_parents.Peek();
            CASTExpressionLte newnode  = new CASTExpressionLte(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_LTE_LEFT);
            this.VisitElementInContext(context.expression(1), m_parentContext, contextType.CT_EXPRESSION_LTE_RIGHT);

            m_parents.Pop();
            return(0);
        }
コード例 #3
0
 public virtual Result VisitLTE(CASTExpressionLte node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }