Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit dd97ff7

Browse files
committed
22.1.2
1 parent e4c5837 commit dd97ff7

4 files changed

Lines changed: 29 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 22.1.2
2+
## Fixes
3+
- Fixed backward compatability
4+
- Fixed grammar issues in README
5+
16
# 22.1.1
27
## Additions
38
- Added `FULL` as a Preset mode

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SuperlativeScript is a fork of HScript with fixes and improvements.
77
## Installation
88
`haxelib install SScript`
99

10-
Enter this command in command prompt to get the latest release from Haxe library.
10+
Enter this command in the command prompt to get the latest release from the Haxe library.
1111

1212
After installing SScript, don't forget to add it to your Haxe project.
1313

@@ -28,7 +28,7 @@ Add this to `build.hxml` to add SScript to your Haxe build.
2828
Haxe definition `hscriptPos` is deprecated and shouldn't be used unless you also want to use vanilla HScript.
2929

3030
## Usage
31-
To use SScript, you will need a file or a script. Using a file is recommended.
31+
To use SScript, you will need either a file or a script. Using a file is recommended.
3232

3333
### Using without a file
3434
```haxe
@@ -53,7 +53,7 @@ import hscript.SScript;
5353
5454
class Main {
5555
static function main() {
56-
var script:SScript = new SScript("script.hx"); // Has the same contents with the script above
56+
var script:SScript = new SScript("script.hx"); // Contains the same code as the script above
5757
var randomNumber:Float = script.call('returnRandom').returnValue;
5858
}
5959
}
@@ -72,7 +72,7 @@ class Main {
7272
var script:SScript = new SScript();
7373
script.doString("
7474
import Date;
75-
trace(Data.now());
75+
trace(Date.now());
7676
");
7777
}
7878
}
@@ -114,7 +114,7 @@ class Main
114114
```
115115

116116
#### String Interpolation
117-
SScript supports string interpolation. Just like normal haxe, special identifiers, denoted by the dollar sign `$` within a String enclosed by single-quote `'` characters, are evaluated as if they were concatenated identifiers.
117+
SScript supports string interpolation. Just like in Haxe, special identifiers denoted by the dollar sign `$` within a string (enclosed by single quotes `'`) are evaluated as expressions.
118118

119119
```haxe
120120
import hscript.SScript;
@@ -163,14 +163,15 @@ class Main {
163163
}
164164
```
165165

166-
You can still create regular expression with regular syntax:
166+
You can still create regular expressions using the standard syntax:
167167
```haxe
168168
var r = new EReg("haxe", "i");
169169
```
170170

171171
##### Limitations
172-
With faulty EReg's, Haxe may show corrupted error messages. These errors are uncatchable and will crash the session.
173-
Sometimes, Haxe may not show error messages. If this happens, session will be caught in a loop and it will become unresponsive.
172+
With faulty EReg instances, Haxe may produce corrupted error messages. These errors cannot be caught and may crash the session.
173+
174+
Sometimes, Haxe may not display error messages. If this happens, the session may enter a loop and become unresponsive.
174175

175176
Platform limitations also apply here, the flag `u` is only available in C++ and Neko.
176177
Flag `s` is not available in C# and JavaScript.
@@ -221,12 +222,13 @@ class Main {
221222
## Presetting System
222223
Presets are the variables that get set before the script gets executed.
223224

224-
SScript has a presetting system where you can set multiple preset modes
225-
to customize presetting. Currently it has 4 modes, `NONE`, `MINI`, `REGULAR` and `FULL`.
225+
SScript has a presetting system that allows you to configure multiple preset modes.
226+
227+
Currently, it includes 4 modes: `NONE`, `MINI`, `REGULAR`, and `FULL`.
226228

227-
- `MINI` only contains basic classes and extremely lightweight,
228-
- `REGULAR` contains slightly more and it includes more common classes aswell.
229-
- `FULL` contains all existing classes, expensive when there are many scripts being handled. (Avaiable only if `DISABLED_MACRO_SUPERLATIVE` is undefined)
229+
- `MINI` contains only basic classes and is extremely lightweight.
230+
- `REGULAR` includes more commonly used classes.
231+
- `FULL` includes all available classes and can be expensive when handling many scripts. (Available only if `DISABLED_MACRO_SUPERLATIVE` is not defined)
230232

231233
Example:
232234
```haxe

haxelib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"script"
1010
],
1111
"description": "SScript (also known as SuperlativeScript), fork of HScript with fixes and improvements.",
12-
"version": "22.1.1",
12+
"version": "22.1.2",
1313
"classPath": "src/",
1414
"releasenote": "Check CHANGELOG.md",
1515
"contributors": [

src/tea/backend/TeaPreset.hx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package tea.backend;
2+
3+
import hscript.backend.Preset;
4+
5+
@:deprecated('Use hscript.backend.Preset instead')
6+
typedef TeaPreset = Preset;
7+
@:deprecated('Use hscript.backend.Preset.PresetMode instead')
8+
typedef TeaPresetMode = PresetMode;

0 commit comments

Comments
 (0)