예제 #1
0
            public override TResult Accept <TResult>(IParseTreeVisitor <TResult> visitor)
            {
                IExprVisitor <TResult> typedVisitor = visitor as IExprVisitor <TResult>;

                if (typedVisitor != null)
                {
                    return(typedVisitor.VisitAssignment(this));
                }
                else
                {
                    return(visitor.VisitChildren(this));
                }
            }