public override GamaValueRef VisitExprLiteralFloating([NotNull] GamaParser.ExprLiteralFloatingContext context) { return(new GamaValueRef(InstanceTypes.F32, LLVMValueRef.CreateConstReal(InstanceTypes.F32.UnderlyingType, float.Parse(context.FloatingLiteral().GetText())), false)); }
/// <summary> /// Visit a parse tree produced by the <c>ExprLiteralFloating</c> /// labeled alternative in <see cref="GamaParser.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 VisitExprLiteralFloating([NotNull] GamaParser.ExprLiteralFloatingContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by the <c>ExprLiteralFloating</c> /// labeled alternative in <see cref="GamaParser.expr"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitExprLiteralFloating([NotNull] GamaParser.ExprLiteralFloatingContext context) { }