Fypp

1 program Added 2026-03-13T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 2e521f4177 · authored 2026-03-13T05:43:36+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Forsp (0.18)C++ (0.15)FlagShip (0.14)FemtoLisp (0.13)FP (0.12)

LLM-contributed programs

Generic math utilities module using type/kind iteration

Provenance: commit 2e521f4177 · authored 2026-03-13T05:43:36+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.fypp · license: BSD-2-Clause · added: 2026-03-13T10:00:00Z
#:set KINDS = ['int32', 'int64', 'sp', 'dp']
#:set TYPES = ['integer', 'integer', 'real', 'real']

module math_utils
  use iso_fortran_env, only: int32, int64, sp => real32, dp => real64
  implicit none

  #:for TYPE, KIND in zip(TYPES, KINDS)
  pure function sum_${TYPE}$_${KIND}$(arr) result(res)
    ${TYPE}$(${KIND}$), intent(in) :: arr(:)
    ${TYPE}$(${KIND}$) :: res
    integer :: i
    res = 0
    do i = 1, size(arr)
      res = res + arr(i)
    end do
  end function sum_${TYPE}$_${KIND}$
  #:endfor

end module math_utils

Contribute — propose a file extension

Tell us where to find evidence about Fypp (mapped to pl/fypp). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Fypp/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← FXYT Fysh →