2 Commits

Author SHA1 Message Date
Marvin Blum
5fe69dc3d4 Grammar in readme and improved structure. 2018-09-03 16:46:32 +02:00
Marvin Blum
611307d68a Typos in readme. 2018-09-03 16:41:48 +02:00

View File

@@ -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