/// <summary> /// numeric : /// number DOT number /// ; /// </summary> /// <param name="context"></param> /// <returns></returns> public override object VisitNumeric([NotNull] WorkflowParser.NumericContext context) { Stop(); var numerics = context.number(); var l = Int64.Parse(numerics[0].GetText(), this._currentCulture); var r = Double.Parse("0" + numerics[1].GetText(), this._currentCulture); r = r + l; return(r); }
/// <summary> /// Visit a parse tree produced by <see cref="WorkflowParser.numeric"/>. /// <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 VisitNumeric([NotNull] WorkflowParser.NumericContext context) { return(VisitChildren(context)); }
/// <summary> /// numeric : /// number DOT number /// ; /// </summary> /// <param name="context"></param> /// <returns></returns> public override object VisitNumeric([NotNull] WorkflowParser.NumericContext context) { return(base.VisitNumeric(context)); }