LSL

1 program Added 2026-02-22T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Linden Scripting Language, LSL2
Provenance: commit cc629d9652 · authored 2026-02-22T21:53:08+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

8 sources · pl_id: pl/lsl
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q1185543

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.lsllinguistprimary50.2K files
.lslpygmentsprimary50.2K files
.lslplinguistsecondary3.0K files

Related languages

Linden Scripting Language (0.86)Halon (0.44)JSL (0.44)GMSH (0.43)pgScript (0.43)

LLM-contributed programs

FizzBuzz

Provenance: commit cc629d9652 · authored 2026-02-22T21:53:08+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lsl · license: GNU FDL · added: 2026-02-22T00:00:00Z
default
{
    state_entry()
    {
        integer i;
        for (i = 1; i <= 100; ++i)
        {
            if (!(i % 15))
                llOwnerSay("FizzBuzz");
            else if (!(i % 3))
                llOwnerSay("Fizz");
            else if (!(i % 5))
                llOwnerSay("Buzz");
            else
                llOwnerSay((string)i);
        }
    }
}

Real programs from Software Heritage

2 samples mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
llResetLandBanList.lsl · 1984 B · ext .lsl · seen 8× in SWH
via unique-primary
swh:1:cnt:19ad7048a33e175737297b11dc0988d3826b364d;origin=https://github.com/holoneon/opensim-tranquillity-work;anchor=swh:1:rev:7f6d2752512288d6475be246fee67a937e1fe446;path=/bin/assets/ScriptsAssetSet/llResetLandBanList.lsl
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
//Commands are:
///5 ban:full_avatar_name
///5 tempban:full_avatar_name
///5 unban:full_avatar_name
///5 pass:full_avatar_name
///5 unpass:full_avatar_name
///5 clearban
///5 clearpass

string command;

default
{
    state_entry()
    {
        llListen(5, "", llGetOwner(), "");
    }
    
    on_rez(integer param)
    {
        llResetScript();
    }

    listen(integer chan, string name, key id, string message)
    {
        if (command != "")
        {
            llOwnerSay("Sorry, still processing last command, try again in a second.");
        }
        
        list args = llParseString2List(message,[":"],[]);
        command = llToLower(llList2String(args,0));
        
        if (command == "clearbans")
        {
            llResetLandBanList();
        }
        if (command == "clearpass")
        {
            llResetLandPassList();
        }
        else
        {
            llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI);
        }
    }
    
    no_sensor()
    {
        command = "";
    }
    
    sensor(integer num)
    {
        integer i;
        for (i=0; i< num; ++i)
        {
            if (command == "ban")
            {
                // Ban indefinetely 
                llAddToLandBanList(llDetectedKey(i),0.0);
            }
            if (command == "tempban")
            {
                // Ban for 1 hour.
                llAddToLandBanList(llDetectedKey(i),1.0);
            }
            if (command == "unban")
            {
                llRemoveFromLandBanList(llDetectedKey(i));
            }
            if (command == "pass")
            {
                // Add to land pass list for 1 hour
                llAddToLandPassList(llDetectedKey(i),1.0);
            }
            if (command == "unpass")
            {
                llRemoveFromLandPassList(llDetectedKey(i));
            }
        }
        command = "";
    }
}
llAvatarOnSitTarget.lsl · 505 B · ext .lsl · seen 8× in SWH
via unique-primary
swh:1:cnt:b4ab5327b8144eca32858e3cb56cf81c91751752;origin=https://github.com/holoneon/opensim-tranquillity-work;anchor=swh:1:rev:7f6d2752512288d6475be246fee67a937e1fe446;path=/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
default
{
    state_entry()
    {
        // set sit target, otherwise this will not work 
        llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
    }
    changed(integer change)
    {
        if (change & CHANGED_LINK)
        { 
            key av = llAvatarOnSitTarget();
            //evaluated as true if not NULL_KEY or invalid
            if (av)
            {
                llSay(0, "Hello " + llKey2Name(av) + ", thank you for sitting down");
            }
        }
    }
}

Contribute — propose a file extension

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