public override object VisitFloating_point_value(RosMessageParser.Floating_point_valueContext context) { var strValue = context.GetText(); var value = double.Parse(strValue, CultureInfo.InvariantCulture); return(value); }
/// <summary> /// Visit a parse tree produced by <see cref="RosMessageParser.floating_point_value"/>. /// <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 VisitFloating_point_value([NotNull] RosMessageParser.Floating_point_valueContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="RosMessageParser.floating_point_value"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFloating_point_value([NotNull] RosMessageParser.Floating_point_valueContext context) { }