Exemplo n.º 1
0
 public override int VisitMINUS(CASTExpressionMinus node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_EXPRESSION_MINUS);
     base.VisitMINUS(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
Exemplo n.º 2
0
        public override int VisitExpr_MINUS(MINICParser.Expr_MINUSContext context)
        {
            ASTComposite        m_parent = m_parents.Peek();
            CASTExpressionMinus newnode  = new CASTExpressionMinus(context.GetText(), m_parents.Peek(), 1);

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

            this.VisitElementInContext(context.expression(), m_parentContext, contextType.CT_EXPRESSION_MINUS);

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