Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Rexx

< >

Rexx is a programming language created in 1979 by Mike Cowlishaw.

#307on PLDB 45Years Old 263Repos
REPL · Try It Online · Wikipedia · Docs

Rexx (Restructured Extended Executor) is an interpreted programming language developed at IBM by Mike Cowlishaw. It is a structured, high-level programming language designed for ease of learning and reading. Proprietary and open source REXX interpreters exist for a wide range of computing platforms; compilers exist for IBM mainframe computers. Read more on Wikipedia...


Example from Riju:
say "Hello, world!"
Example from hello-world:
<<hello.rexx>>= Say "Hello World"
Example from Linguist:
/* rexx */ PARSE ARG filnamn IF filnamn='' THEN DO filnamn='raw' filnamn='font.shapes' end IF ~open(fil,filnamn,r) THEN EXIT 10 pixwidth=48 ebwidth=pixwidth/8 pixheight=48 depth=4 SAY "Skriver utfil..." CALL open utfil,"RAM:utfil",W CALL skriv pixwidth,2 CALL skriv pixheight,2 CALL skriv depth,2 CALL skriv ebwidth,2 bltsize=Right(C2B(D2C(pixheight)),10,"00") bltsize=bltsize || Right(C2B(D2C(ebwidth)),6,"00") /* SAY bltsize */ CALL skriv C2D(B2C(bltsize)),2 CALL skriv 0,4 /* xhandle, yhandle*/ CALL skriv 0,4 /* datapekare */ CALL skriv 0,4 /* cookiepekare */ CALL skriv ebwidth*pixheight,2 /* onebpmem */ CALL skriv ebwidth*pixheight+pixheight*2,2 /* onebpmemx */ CALL skriv ebwidth*pixheight*depth,2 /* allbpmem */ CALL skriv ebwidth*pixheight*depth+pixheight*2*depth,2 /* allbpmemx */ CALL skriv 0,2 /* padding */ CALL Close utfil EXIT skriv: say "Skriver TEMPLATEquot;D2X(arg(1)) "("arg(2) "byte)" call writech utfil,right(D2C(ARG(1)),ARG(2),"00"x) return visacookie: rad=copies('00'x,pixheight*ebwidth) say "Initierar bitmap till" pixheight*ebwidth*depth say "Ett bitplan =" pixheight*ebwidth bmap.='' say "laser in" do bitplan=1 to depth say "laser plan" bitplan rad=bitor(rad,readch(fil,pixheight*ebwidth)) end ln=1 say "skriver ut" do for pixheight say c2b(substr(rad,ln,bredd/8)) ln=ln+bredd/8 end return
Example from Wikipedia:
ChangeCodePage: procedure /* protect SIGNAL settings */ signal on syntax name ChangeCodePage.Trap return SysQueryProcessCodePage() ChangeCodePage.Trap: return 1004 /* windows-1252 on OS/2 */

Language features

Feature Supported Example Token
Strings ✓ "Hello world" "
MultiLine Comments ✓ /* A comment */ /* */
Print() Debugging ✓ say
Comments ✓ * => 1000000000 */
Semantic Indentation X
Line Comments X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v161.0.4