Пример #1
0
        public override int VisitExpr_ASSIGNMENT(firstParser.Expr_ASSIGNMENTContext context)
        {
            ASTComposite   m_parent = m_parents.Peek();
            CASTAssignment newnode  = new CASTAssignment(context.GetText(), nodeType.NT_ASSIGNMENT, m_parents.Peek(), 2);

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

            this.VisitTerminalInContext(context, context.IDENTIFIER().Symbol, m_parentContext, contextType.CT_ASSIGNMENT_LEFT);
            this.VisitElementInContext(context.expr(), m_parentContext, contextType.CT_ASSIGNMENT_RIGHT);

            m_parents.Pop();
            return(0);
        }
 public virtual T VisitAssignment(CASTAssignment node)
 {
     VisitChildren(node);
     return(default(T));
 }
Пример #3
0
 public override int VisitAssignment(CASTAssignment node)
 {
     return(base.VisitAssignment(node));
 }