mirror of
https://github.com/sfall-team/sslc.git
synced 2026-07-27 16:52:49 -07:00
Updated changelog in sslc_readme.md
Updated version nummber.
This commit is contained in:
+9
-2
@@ -287,8 +287,7 @@ Syntax which requires sfall for compiled scripts to be interpreted is marked by
|
||||
```
|
||||
__NOTE:__ When using incremental operators like `+=`, `*=`, `++`, `--` compiler will use additional temp variable to get an array at penultimate level in order to avoid making the same chain of `get_array` calls twice.
|
||||
|
||||
- (*) `foreach` loops: A shorthand method of looping over all elements in an array. Syntax is `foreach (<symbol> in <expression>)`.
|
||||
- You can declare varaibles in-place by adding `variable` keyword before symbol name.
|
||||
- (*) `foreach` loops: A shorthand method of looping over all elements in an array. Syntax is `foreach (<symbol> in <expression>)`. You can declare variables in place by adding the `variable` keyword before the symbol name.
|
||||
- new:
|
||||
```
|
||||
procedure bingle begin
|
||||
@@ -349,6 +348,14 @@ There are several changes in this version of sslc which may result in problems f
|
||||
|
||||
### Changelog
|
||||
|
||||
**sfall 4.4.4:**
|
||||
- fixed stringified procedure names shifting when the same name is called more than once
|
||||
- syntax improvements:
|
||||
- `foreach`: allow to declare variables for key & value header
|
||||
- `foreach`: allow to use expressions after `in` that start with a symbol without mandatory parentheses
|
||||
- variables: allow to declare variables anywhere a statement is expected
|
||||
- expressions: display useful error messages when an expression is expected but nothing is parsed
|
||||
|
||||
**sfall 4.4:**
|
||||
- fixed compiler crash when trying to define an exported procedure with variables
|
||||
- fixed compiler giving "symbol or string expected" error when trying to call procedure using a string literal
|
||||
|
||||
@@ -590,7 +590,7 @@ static int defineVariable(VariableList *v, char **namelist, int type, char allow
|
||||
} else if (expectToken(T_ASSIGN) != -1) {
|
||||
char buf[1024];
|
||||
int allowExpr = (allowMulti && type == V_LOCAL);
|
||||
|
||||
|
||||
strcpy(buf, symbol.stringData);
|
||||
symbol.stringData = buf;
|
||||
|
||||
|
||||
+2
-2
@@ -6,10 +6,10 @@
|
||||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 4
|
||||
#define VERSION_BUILD 0
|
||||
#define VERSION_BUILD 4
|
||||
#define VERSION_REV 0
|
||||
|
||||
#define VERSION_STRING "4.4"
|
||||
#define VERSION_STRING "4.4.4"
|
||||
|
||||
#ifdef BUILDING_DLL
|
||||
#define FILE_STRING "parser.dll"
|
||||
|
||||
Reference in New Issue
Block a user