You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-21Lines changed: 48 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@ Hscript addon with imports, usings, string interpolation and more.
4
4
5
5
## Features:
6
6
7
-
### Package :
7
+
### Package
8
8
package keyword (optional).
9
9
```haxe
10
10
package scripts.hello.world;
11
11
```
12
-
### Import :
12
+
### Import
13
13
```haxe
14
14
import haxe.ds.StringMap;
15
15
16
16
var map = new StringMap();
17
17
map.set("Hello","World");
18
18
trace(map.get("Hello")); // World
19
19
```
20
-
### Import with alias:
20
+
### Import with alias
21
21
you can use `as` or `in` keywords alias.
22
22
```haxe
23
23
import haxe.ds.StringMap as StrMap;
@@ -34,7 +34,7 @@ map.set("Hello","World");
34
34
trace(map.get("Hello")); // World
35
35
```
36
36
37
-
### Using:
37
+
### Using
38
38
```haxe
39
39
using Reflect;
40
40
@@ -43,12 +43,12 @@ var a = {
43
43
};
44
44
trace(a.getProperty("Hello")); // World
45
45
```
46
-
46
+
47
47
### String interpolation (Experimental)
48
48
RuleScript supports [String Interpolation](https://haxe.org/manual/lf-string-interpolation.html), but you can only use identifiers, double quotes string, calls without arguments and `+` operator.
49
49
```haxe
50
50
var a = 'Hello';
51
-
return 'RuleScript: $a World'; // RuleScript: Hello World
51
+
trace('RuleScript: $a World'); // RuleScript: Hello World
0 commit comments