RWL

1 program Added 2026-03-12T08:30:47Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: Recursive World Language
Provenance: commit 0499cd9832 · authored 2026-03-12T09:31:26+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

Rez (0.32)Eve (0.29)Rell (0.29)Rev (0.28)Io (0.26)

LLM-contributed programs

Closed Loop Corridor World

Provenance: commit 0499cd9832 · authored 2026-03-12T09:31:26+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.rwl · added: 2026-03-12T08:30:47Z
// ---------------------------------------------------------------
// A first demonstration of the Recursive World Language (RWL)
//  Defines a corridor-like square closed loop
//
//  Author: Jose Luis Blanco Claraco, Oct 25 2011.
// ---------------------------------------------------------------

// Description of the language:
//  - Comments (like these) start with a C style comment "//"
//  - Multi-line comments (/* ... */) are not allowed.
//  - The central component of RWL programs are "lists", sequenecs of
//     primitives and calls to other lists.
//  - A list is always declared as:
//      LIST <NAME>
//        <primitives>
//      ENDLIST
//  - The entrance point is always a list named "main"
//

LIST corridor_1  // A simple corridor segment of length=1m
	LM +0.2 -0.4 0
	LM +0.2 +0.4 0
	LM +0.6 -0.4 0
	LM +0.6 +0.4 0
	X+= 1
ENDLIST

LIST corridor_10  // A 10m corridor
	CALL *10 corridor_1
	NODE
ENDLIST

LIST main
	// At the origin there is always a "node", there is no need to
	//  manually create it.
	// Start creating the corridors:
	CALL corridor_10
	YAW+= 90
	CALL corridor_10
	YAW+= 90
	CALL corridor_10
	YAW+= 90
	CALL corridor_10
ENDLIST

Contribute — propose a file extension

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