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

Linden Scripting Language

< >

Linden Scripting Language, aka Linden Scripting Language, is a programming language created in 2003.

#802on PLDB 21Years Old 638Repos


Example from hello-world:
default { state_entry() { llSay(0, "Hello World"); } }
Example from Linguist:
/* Testing syntax highlighting for the Linden Scripting Language */ integer someIntNormal = 3672; integer someIntHex = 0x00000000; integer someIntMath = PI_BY_TWO; integer event = 5673;// 'event' is invalid.illegal key someKeyTexture = TEXTURE_DEFAULT; string someStringSpecial = EOF; some_user_defined_function_without_return_type(string inputAsString) { llSay(PUBLIC_CHANNEL, inputAsString); } string user_defined_function_returning_a_string(key inputAsKey) { return (string)inputAsKey; } default { state_entry() { key someKey = NULL_KEY; someKey = llGetOwner(); string someString = user_defined_function_returning_a_string(someKey); some_user_defined_function_without_return_type(someString); } touch_start(integer num_detected) { list agentsInRegion = llGetAgentList(AGENT_LIST_REGION, []); integer numOfAgents = llGetListLength(agentsInRegion); integer index; // defaults to 0 for (; index <= numOfAgents - 1; index++) // for each agent in region { llRegionSayTo(llList2Key(agentsInRegion, index), PUBLIC_CHANNEL, "Hello, Avatar!"); } } touch_end(integer num_detected) { someIntNormal = 3672; someIntHex = 0x00000000; someIntMath = PI_BY_TWO; event = 5673;// 'event' is invalid.illegal someKeyTexture = TEXTURE_DEFAULT; someStringSpecial = EOF; llSetInventoryPermMask("some item", MASK_NEXT, PERM_ALL);// 'llSetInventoryPermMask' is reserved.godmode llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now..."); state other; } } state other { state_entry() { llWhisper(PUBLIC_CHANNEL, "Entered \"state other\", returning to \"default\" again..."); state default; } }

Language features

Feature Supported Example Token
Integers // \d+
Floats // (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d*
Hexadecimals // 0[xX][0-9a-fA-F]+
Strings "Hello world" "
MultiLine Comments /* A comment */ /* */
Comments // A comment
Line Comments // A comment //
Semantic Indentation X

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

Built with Scroll v164.7.0