mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fe69dc3d4 | ||
|
|
611307d68a |
22
README.md
22
README.md
@@ -80,7 +80,7 @@ var array = [1, 2, 3];
|
||||
var one = array[0];
|
||||
|
||||
// accessing using a statement:
|
||||
var zwo = array[33/3-2];
|
||||
var two = array[33/3-2];
|
||||
|
||||
// it is possble to use arrays in expressions:
|
||||
var emptyArray = one-[1];
|
||||
@@ -153,7 +153,7 @@ func add(_a = 0, _b = 0) {
|
||||
var _x = add(); // result in _x is 0
|
||||
```
|
||||
|
||||
When trying to define a function with a name that exists in SQF's build in function set, you'll get an compile error. So declaring "func hint()..." won't compile.
|
||||
When trying to define a function with a name that exists in SQF's build in function set, you'll get an compile error. So declaring `func hint()...` won't compile.
|
||||
|
||||
### Call build in commands
|
||||
|
||||
@@ -271,15 +271,19 @@ Keywords must not be used as identifiers. Here is a full list of all keywords in
|
||||
|
||||
## What's missing?
|
||||
|
||||
The following features are not implemented yet, but maybe will be in 1.3.0 or a future version:
|
||||
The following features are not implemented yet, but might be in a future version:
|
||||
|
||||
* scopes
|
||||
* else if
|
||||
* selector in expression
|
||||
**scopes**
|
||||
|
||||
scopes won't be supported, since it's a stupid concept and can be replaced by functions.
|
||||
Scopes won't be supported, since it's a stupid concept and can be replaced by functions.
|
||||
|
||||
Selectors in expressions do not work (yet), so this is not possible:
|
||||
**else if**
|
||||
|
||||
Planned.
|
||||
|
||||
**Selector in expression**
|
||||
|
||||
Selectors in expressions do not work yet, so this is not possible:
|
||||
|
||||
```
|
||||
var x = ([1, 2, 3]-[1, 2])[0]; // should result in 3
|
||||
@@ -287,7 +291,7 @@ var x = ([1, 2, 3]-[1, 2])[0]; // should result in 3
|
||||
|
||||
## Contribute
|
||||
|
||||
To contribute please create pull requests or explain your ideas in the issue section on GitHub. Report any bugs or incompatible ASL <-> SQF syntax you can find.
|
||||
To contribute, please create pull requests or explain your ideas in the issue section on GitHub. Report any bugs or incompatible ASL <-> SQF syntax you can find with a short example.
|
||||
|
||||
## Further information
|
||||
|
||||
|
||||
Reference in New Issue
Block a user