Rexx

1 program Added 2025-10-22T10:00:19Z Model: meta-llama/llama-3.1-70b-instructTemp: 0.4 Evidence Report issue View issues
Aliases: REXX, ARexx, NetRexx, Object REXX
Provenance: commit 0e39627de4 · authored 2025-10-22T12:00:19+02:00 · model meta-llama/llama-3.1-70b-instruct

Sources mentioning this language

8 sources · pl_id: pl/rexx
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q685820

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmultiparadigm: procedural · structured
Typingdynamic
Designed byMike Cowlishaw · IBM
First appeared1979
Influenced byPL/I · ALGOL · EXEC · EXEC 2

Extensions claimed by this language

12 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.batwikidataprimary4.2M files
.cmdwikidataprimary3.5M files
.execwikidataprimary63.7K files
.rexwikidataprimary18.9K files
.rexxlinguistprimary9.6K files
.rexxpygmentsprimary9.6K files
.rexxwikidataprimary9.6K files
.arexxpygmentssecondary14 files
.pprxlinguistsecondary38 files
.rexlinguistsecondary18.9K files
.rexpygmentssecondary18.9K files
.rxpygmentssecondary9.7K files

Related languages

ObjectREXX (0.42)Object REXX (0.41)ooRexx (0.41)Open Object Rexx (0.41)NetRexx (0.33)

LLM-contributed programs

REXX script to calculate factorial

Provenance: commit 0e39627de4 · authored 2025-10-22T12:00:19+02:00 · model meta-llama/llama-3.1-70b-instruct · Temp 0.4
code.rexx · added: 2025-10-22T10:00:19Z
/* calculate factorial */
arg n
if n<0 then signal error
if n==0 | n==1 then return 1
return n*factorial(n-1)

Real programs from Software Heritage

3 samples mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
extractcode.bat · 843 B · ext .bat · seen 3325× in SWH
via fallback
swh:1:cnt:4b7424fc013d5af1a8f695e7e2c50142643f337f;origin=https://github.com/darcyfdu/findlicense;anchor=swh:1:rev:888cfb21a7378408032f60d06ee5598d3228dbc5;path=/extractcode.bat
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
@echo OFF
@rem  Copyright (c) 2015 nexB Inc. http://www.nexb.com/ - All rights reserved.
@rem  


@rem  A minimal shell wrapper to the CLI entry point

set SCANCODE_ROOT_DIR=%~dp0

set SCANCODE_CMD_LINE_ARGS= 
set SCANCODE_CONFIGURED_PYTHON=%SCANCODE_ROOT_DIR%\bin\python.exe

@rem Collect all command line arguments in a variable
:collectarg
 if ""%1""=="""" goto continue
 call set SCANCODE_CMD_LINE_ARGS=%SCANCODE_CMD_LINE_ARGS% %1
 shift
 goto collectarg

:continue


if not exist "%SCANCODE_CONFIGURED_PYTHON%" goto configure
goto scancode

:configure
 echo * Configuring ScanCode for first use...
 set CONFIGURE_QUIET=1
 call "%SCANCODE_ROOT_DIR%\configure" etc/conf
 if %errorlevel% neq 0 (
    exit /b %errorlevel%
 )

:scancode
"%SCANCODE_ROOT_DIR%\bin\extractcode" %SCANCODE_CMD_LINE_ARGS%

:EOS
ToCHT.bat · 1023 B · ext .bat · seen 2801× in SWH
via fallback
swh:1:cnt:2c9538b1775e2d9e5fbc7301d8bb66feb6b8e554;origin=https://github.com/mirbeta/MirClient;anchor=swh:1:rev:3dbba7d20f647e2716a1cacacdfe233e1695c33f;path=/Components/cnvcl/Source/ToCHT.bat
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
@ECHO CnPack Component Package
@ECHO CHT Resource Files will be Copied to overwrite CHS Files 
@PAUSE
copy .\Lang\1028\CnGraphConsts.pas   .\Graphics\CnGraphConsts.pas  /Y
copy .\Lang\1028\CnLangConsts.pas    .\MultiLang\CnLangConsts.pas  /Y
copy .\Lang\1028\CnNetConsts.pas     .\NetComm\CnNetConsts.pas     /Y
copy .\Lang\1028\CnAAFontDialog.dfm  .\Graphics\CnAAFontDialog.dfm /Y
copy .\Lang\1028\CnCompAboutFrm.dfm  .\Common\CnCompAboutFrm.dfm   /Y
copy .\Lang\1028\CnFoxmailMsgFrm.dfm .\ObjRep\CnFoxmailMsgFrm.dfm  /Y
copy .\Lang\1028\CnProgressFrm.dfm   .\ObjRep\CnProgressFrm.dfm    /Y
copy .\Lang\1028\CnRS232Dialog.dfm   .\NetComm\CnRS232Dialog.dfm   /Y
copy .\Lang\1028\CnCompConsts.pas    .\NonVisual\CnCompConsts.pas  /Y
copy .\Lang\1028\CnConsts.pas        .\Common\CnConsts.pas         /Y
copy .\Lang\1028\CnDockGlobal.pas    .\NonVisual\CnDockGlobal.pas  /Y
copy .\Lang\1028\CnDBConsts.pas      .\DbReport\CnDBConsts.pas     /Y
@ECHO CnPack Component Package: CHT Resource Files Copied.
@PAUSE
DEBRUIJN.rex · 1176 B · ext .rex · seen 1× in SWH
via fallback
swh:1:cnt:b9d321a1f4fac8cd81194e62dfc531f181b86fa2;origin=https://github.com/mainframed/DC30_Workshop;anchor=swh:1:rev:3475c8877c0ac9382ffce64e7427cdb51640081a;path=/rexx/DEBRUIJN.rex
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
/* REXX */
/* Simplistic De Brujin pattern generator in REXX                     */
/* SYNTAX: BRUJIN <pattern length>                                    */
/* Author: davide girardi                                             */
/* https://github.com/davidegirardi                                   */
parse arg len
/* Alphabets                                                          */
if len = '' then do                                     
  say "Missing argument length usage: DEBRUIJN <number>"
  exit                                                  
end                                                     
UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
LOWERCASE = "abcdefghijklmnopqrstuvwxyz"
ALLDIGITS = "1234567890"
x = debruijn(len)
say x
exit
debruijn:
  pattern = ""
  do u=1 to length(UPPERCASE)
    do l=1 to length(LOWERCASE)
      do d=1 to length(ALLDIGITS)
        if length(pattern) < len   then
        do
          ucase = substr(UPPERCASE, u, 1)
          lower = substr(LOWERCASE, l, 1)
          digit = substr(ALLDIGITS, d, 1)
          pattern = pattern || ucase || lower || digit
        end
      end
    end
  end
  return substr(pattern, 1, len)

Contribute — propose a file extension

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