Xtlang

2 programs Added 2026-02-08T15:23:24.908508Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: XTLang, xtlang
Provenance: commit f1166ceae3 · authored 2026-02-08T16:24:22+01:00 · agent claude-code · model sonnet

Sources mentioning this language

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

Related languages

Fetlang (0.38)Slang (0.33)Dart (0.31)Pocketlang (0.31)Rust (0.31)

LLM-contributed programs

Factorial Function

Provenance: commit f1166ceae3 · authored 2026-02-08T16:24:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.xtm · license: BSD-3-Clause · added: 2026-02-08T15:23:24.908508Z
;; Xtlang factorial function
(bind-func factorial
  (lambda (n:i64)
    (if (<= n 1)
        1
        (* n (factorial (- n 1))))))

;; Test the factorial function
(bind-func test_factorial
  (lambda ()
    (let ((result (factorial 5)))
      (printf "Factorial of 5 is: %lld\n" result)
      result)))

;; Call the test
(test_factorial)

Factorial Function

Provenance: commit 1d8afbef4f · authored 2026-02-07T15:11:45+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.xtm · added: 2026-02-07T14:05:27.945127Z
(bind-func factorial
  (lambda (n:i64)
    (if (<= n 1)
        1
        (* n (factorial (- n 1))))))

(bind-func test_factorial
  (lambda ()
    (printf "factorial(5) = %lld\n" (factorial 5))
    (printf "factorial(10) = %lld\n" (factorial 10))
    void))

Contribute — propose a file extension

Tell us where to find evidence about Xtlang (mapped to pl/xtlang). 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/Xtlang/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← xtext xtran →