NetRexx

1 program Added 2025-10-27T13:21:10Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 1fc0752b6b · authored 2025-10-27T14:21:10+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/netrexx
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q6998311

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: object-oriented · procedural · structured
Typingstatic, strong, safe, partly dynamic, everything is a string (for the rexx data type, which handles strings and numbers)
Designed byMike Cowlishaw
First appeared1996
Influenced byPL/I · REXX · ooREXX · Java
LicenseICU License
Homepagehttps://www.netrexx.org/

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.nrxwikipediaproposed8.9K files

Related languages

Rexx (0.33)ARexx (0.20)NetLogo (0.20)ObjectREXX (0.18)Regina REXX (0.16)

LLM-contributed programs

NetRexx Language Demo

Provenance: commit 1fc0752b6b · authored 2025-10-27T14:21:10+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.nrx · license: ICU License · added: 2025-10-27T13:21:10Z
/* nrdemo.nrx -- NetRexx demonstration program                      */
/* Copyright (c) IBM Corporation 1996, 2011. All rights reserved.  */
/* Copyright (c) RexxLA 2011-2023. All rights reserved.            */
/*-----------------------------------------------------------------*/
/* This program is a simple demonstration of some of the features  */
/* of NetRexx.                                                     */
/*                                                                 */
/* To compile this program:                                        */
/*                                                                 */
/*   java com.ibm.netrexx.process.NetRexxC nrdemo                    */
/*                                                                 */
/* To run the program:                                             */
/*                                                                 */
/*   java nrdemo                                                   */
/*                                                                 */
/*-----------------------------------------------------------------*/
options binary strictcase

class nrdemo

 method main(args=String[]) static

  say 'nrdemo -- NetRexx demonstration program'
  say

  /* Simple loop */
  loop i=1 to 5
    say 'This is line' i
    end
  say

  /* Working with a property */
  p=person('Fred', 'Flintstone')
  say 'The person is' p.name
  say

  /* Simple conditional */
  if p.name='Fred Flintstone' then say 'Name is correct.'
                             else say 'Name is not correct.'
  say

  /* Using a select construct */
  select
    when p.name='Barney Rubble' then say 'Hello Barney!'
    when p.name='Fred Flintstone' then do
      say 'Hello Fred!'
      say 'How are you today?'
      end
    otherwise
      say 'I do not know you.'
    end
  say

  /* Catching an exception */
  do
    say 'Let''s try to divide by zero...'
    i=1/0
    say 'The result is' i
  catch ex=ArithmeticException
    say 'Exception caught:' ex.getMessage
  end
  say

  /* Working with Java objects */
  d=Date()
  say 'The time and date is' d.toString
  say

  /* Working with NetRexx strings */
  nrx=Rexx "This is a NetRexx string"
  say 'The third word of "'nrx'" is "'nrx.word(3)'"'
  say

  /* A loop that uses a Java iterator */
  list=ArrayList()
  list.add('First')
  list.add('Second')
  list.add('Third')
  loop e_ over list
    say 'From list:' e_
    end
  say

  return

/* --- A simple class --- */
class person

  properties private
    firstName=String
    lastName=String

  properties public
    name=String

  method person(first=String, last=String)
    this.firstName=first
    this.lastName=last

  method getName returns String
    return firstName lastName

/* A simple example of a binary property */
class binaryprop

  properties indirect
    myprop=boolean

  method getMyprop returns boolean
    say '[getting myprop]'
    return myprop
  method setMyprop(new)
    say '[setting myprop to' new']'
    myprop=new

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

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