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); }
public override int VisitExpr_MINUS(MINICParser.Expr_MINUSContext context) { int serial = ms_serialCounter++; string s = "Expr_MINUS_" + serial; outFile.WriteLine("\"{0}\"->\"{1}\";", m_labels.Peek(), s); m_labels.Push(s); base.VisitChildren(context); m_labels.Pop(); return(0); }