Skip to content

Commit

Permalink
git init
Browse files Browse the repository at this point in the history
  • Loading branch information
buildersbrewery committed Nov 16, 2017
0 parents commit f177e67
Show file tree
Hide file tree
Showing 1,435 changed files with 108,126 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
@@ -0,0 +1,3 @@
* text=auto
*.pdf diff=astextplain
*.PDF diff=astextplain
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,15 @@
### Issue Summary

This causes an issue because ... !

### Steps to Reproduce

1. This is the first step.
2. This is the second step.
3. This is the third step.

### Technical details

* Editor:
* Version:
* Operating System:
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,4 @@
Yes, I have checked the following before requesting to pull this:

* [ ] line endings in files have not changed (CR / LF / CRLF)
* [ ] all grammar changes only apply to the Linden Scripting Language
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
*.bak
*.cache
*.elc
*.pyc
*.pyo
*.sublime-workspace
.DS_Store
Desktop.ini
Thumbs.db
46 changes: 46 additions & 0 deletions README.md
@@ -0,0 +1,46 @@
# [Linden Scripting Language (LSL)](https://wiki.secondlife.com/wiki/LSL_Portal) syntax grammar, syntax highlighting and snippet files.

![Maintained](https://img.shields.io/maintenance/yes/2017.svg?style=flat-square)
[![Open issues](https://img.shields.io/github/issues-raw/buildersbrewery/linden-scripting-language.svg?style=flat-square)](https://github.com/buildersbrewery/linden-scripting-language/issues)
[![Open pull requests](https://img.shields.io/github/issues-pr-raw/buildersbrewery/linden-scripting-language.svg?style=flat-square)](https://github.com/buildersbrewery/linden-scripting-language/pulls)

## About

In this repository you can find the syntax grammar, syntax highlighting and snippet files for the [Linden Scripting Language (LSL)](https://wiki.secondlife.com/wiki/LSL_Portal) of [Second Life](https://www.secondlife.com) for different kinds of software.

## Usage

### Quick start

* Download:
* [`buildersbrewery/linden-scripting-language@master` as `*.zip`](https://github.com/buildersbrewery/linden-scripting-language/archive/master.zip)
* [`buildersbrewery/linden-scripting-language@master` as `*.tar.gz`](https://github.com/buildersbrewery/linden-scripting-language/archive/master.tar.gz)
* Clone the repo:

```bash
# recommended to use ssh
git clone git@github.com:buildersbrewery/linden-scripting-language.git
```

* Check source:
* [commits to master](https://github.com/buildersbrewery/linden-scripting-language/commits/master/)
* [branches](https://github.com/buildersbrewery/linden-scripting-language/branches/)
* [compare branches, commits, tags (across forks)](https://github.com/buildersbrewery/linden-scripting-language/compare/)

### Bugs, issues & feature requests

* Please [search for existing issues and pull requests](https://github.com/buildersbrewery/linden-scripting-language/issues/?q=is%3Aopen) before [using this link to open a new issue](https://github.com/buildersbrewery/linden-scripting-language/issues/new/?labels=discussion,watchlist&assignee=buildersbrewery).

## Disclaimer

```text
Second Life®, Linden Scripting Language and the inSL logo are trademarks of
Linden Research, Inc. The Builder's Brewery is neither affiliated with nor
sponsored by Linden Research.
```

---

<p align="center">
<img src="http://s3.amazonaws.com/static-secondlife-com/_img/brand_center/insl_logo_color.gif" alt="inSL logo" width="204px" height="120px">
</p>
5 changes: 5 additions & 0 deletions ace/README.md
@@ -0,0 +1,5 @@
## Ace Editor

Here you can find the syntax grammar, syntax highlighting and snippet files for the [Linden Scripting Language (LSL)](https://wiki.secondlife.com/wiki/LSL_Portal) of [Second Life](https://www.secondlife.com) for the [Ace Editor](http://ace.c9.io/) which can also be found on Github under [ajaxorg/ace](https://github.com/ajaxorg/ace).

For maintenance reasons all files here are LSL related only.
75 changes: 75 additions & 0 deletions ace/demo/kitchen-sink/docs/lsl.lsl
@@ -0,0 +1,75 @@
/*
Testing syntax highlighting
of Ace Editor
for the Linden Scripting Language
*/

integer someIntNormal = 3672;
integer someIntHex = 0x00000000;
integer someIntMath = PI_BY_TWO;

integer event = 5673; // 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; // invalid.illegal

someKeyTexture = TEXTURE_DEFAULT;
someStringSpecial = EOF;

llSetInventoryPermMask("some item", MASK_NEXT, PERM_ALL); // 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;
}
}

0 comments on commit f177e67

Please sign in to comment.