public override Result VisitExpr_additive([NotNull] STGrammerParser.Expr_additiveContext context) { string lStr = Visit(context.lhs).Info as string; string rStr = (Visit(context.rhs).Info) as string; string test = context.op.Text; return(new Result(true, lStr + test + rStr)); }
/// <summary> /// Visit a parse tree produced by the <c>expr_additive</c> /// labeled alternative in <see cref="STGrammerParser.expr"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitExpr_additive([NotNull] STGrammerParser.Expr_additiveContext context) { return(VisitChildren(context)); }