Skip to content

Commit

Permalink
ezrSquared prerelease-1.3.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Uralstech committed Feb 14, 2023
1 parent 6930b8c commit 5f2c246
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ namespace ezrSquared.Constants
{
public static class constants
{
public const string VERSION = "prerelease-1.3.0.0.3";
public const string VERSION_DATE = "12.02.2023";
public const string VERSION = "prerelease-1.3.1.0.0";
public const string VERSION_DATE = "14.02.2023";

public static readonly string[] KEYWORDS = { "item", "and", "or", "invert", "if", "else", "do", "count", "from", "as", "to", "step", "while", "function", "special", "with", "end", "return", "skip", "stop", "try", "error", "in", "object", "global", "include" };
public static readonly string[] QEYWORDS = { "f", "l", "e", "c", "t", "n", "w", "fd", "sd", "od", "i", "s", "d", "g", "v" };
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ Yeah! Check them out [here](https://github.com/Uralstech/ezrSquared/tree/master/
I just need to finish the documentation! If you find any bugs, report them [here](https://github.com/Uralstech/ezrSquared/issues)

## Progress
**For those confused by the versioning: 1st place -> Major; 2nd place -> Feature; 3rd place -> Function; 4th place -> Library; 5th place -> Patch**
**For those confused by the versioning: 1st place -> Major; 2nd place -> Feature; 3rd place -> Quality of Life; 4th place -> Library; 5th place -> Patch**

### Released
**Check the [GitHub Commits](https://github.com/Uralstech/ezrSquared/commits) for all changes in source code**

* **prerelease-1.3.1.0.0** - [14-02-23]
* Fixed a count loop error message
* Better error message for else if statements

* **prerelease-1.3.0.0.3** - [12-02-23]
* Better `undefined` error message for special functions

Expand Down
14 changes: 11 additions & 3 deletions ezr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,11 @@ private parseResult ifExpression()
}

if (!currentToken.matchString(TOKENTYPE.KEY, "do"))
return result.failure(new invalidGrammarError("Expected 'do'", currentToken.startPos, currentToken.endPos));
{
if (isElseIf)
return result.failure(new invalidGrammarError("Expected 'do'", currentToken.startPos, currentToken.endPos));
return result.failure(new invalidGrammarError("Expected 'if' or 'do'", currentToken.startPos, currentToken.endPos));
}
result.registerAdvance();
advance();

Expand Down Expand Up @@ -1281,7 +1285,11 @@ private parseResult ifExpression()
}

if (!currentToken.matchString(TOKENTYPE.KEY, "do"))
return result.failure(new invalidGrammarError("Expected 'do'", currentToken.startPos, currentToken.endPos));
{
if (isElseIf)
return result.failure(new invalidGrammarError("Expected 'do'", currentToken.startPos, currentToken.endPos));
return result.failure(new invalidGrammarError("Expected 'if' or 'do'", currentToken.startPos, currentToken.endPos));
}
result.registerAdvance();
advance();

Expand Down Expand Up @@ -1325,7 +1333,7 @@ private parseResult countExpression()
if (!currentToken.matchString(TOKENTYPE.KEY, "to"))
{
if (start != null)
return result.failure(new invalidGrammarError("Expected 'from'", currentToken.startPos, currentToken.endPos));
return result.failure(new invalidGrammarError("Expected 'to'", currentToken.startPos, currentToken.endPos));
return result.failure(new invalidGrammarError("Expected 'from' or 'to'", currentToken.startPos, currentToken.endPos));
}
result.registerAdvance();
Expand Down

0 comments on commit 5f2c246

Please sign in to comment.