Started to add special function to inline code (issue #6).

This commit is contained in:
Marvin Blum
2015-10-28 17:59:38 +01:00
parent bba215cd8d
commit 1cbcda4261
5 changed files with 24 additions and 5 deletions

View File

@@ -171,6 +171,18 @@ waitUntil {condition};
waitUntil {expression;condition};
```
**code**
The code function is used to compile inline code. This does **not** replace SQF compile buildin function, but will return the contained ASL code as SQF.
```
// input:
var x = code("var y = 5;"); // pass as string
// output:
x = {y = 5;};
```
## List of all keywords
Keywords should not be used as identifiers. Here is a full list of all keywords in ASL. Remember that build in function names should not be used neither.