From ad81515b320b7ae861748528446c235c3bf87359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geiser?= Date: Thu, 3 Oct 2019 08:17:21 +0200 Subject: [PATCH] Version 1.4.4.0 --- .../CodingSeb.ExpressionEvaluator.csproj | 10 ++++------ CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CodingSeb.ExpressionEvaluator/CodingSeb.ExpressionEvaluator.csproj b/CodingSeb.ExpressionEvaluator/CodingSeb.ExpressionEvaluator.csproj index ff0d63c..5c927b2 100644 --- a/CodingSeb.ExpressionEvaluator/CodingSeb.ExpressionEvaluator.csproj +++ b/CodingSeb.ExpressionEvaluator/CodingSeb.ExpressionEvaluator.csproj @@ -5,9 +5,9 @@ CodingSeb.ExpressionEvaluator A Simple Math and Pseudo C# Expression Evaluator in One C# File. Can also execute small C# like scripts Copyright © Coding Seb 2017 - 1.4.3.0 - 1.4.3.0 - 1.4.3.0 + 1.4.4.0 + 1.4.4.0 + 1.4.4.0 bin\$(Configuration)\ Coding Seb CodingSeb.ExpressionEvaluator @@ -18,9 +18,7 @@ true https://github.com/codingseb/ExpressionEvaluator/blob/master/Icon.png?raw=true false - Improvement -* Possibility to declare typed variables (Better C# like) -* New Option to allow last expression of a script without semicolon + * Small correction in the text of some exception LICENSE.md diff --git a/CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs b/CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs index fa100f3..c341555 100644 --- a/CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs +++ b/CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs @@ -1,6 +1,6 @@ /****************************************************************************************************** Title : ExpressionEvaluator (https://github.com/codingseb/ExpressionEvaluator) - Version : 1.4.3.0 + Version : 1.4.4.0 (if last digit (the forth) is not a zero, the version is an intermediate version and can be unstable) Author : Coding Seb @@ -2124,9 +2124,9 @@ protected virtual bool EvaluateVarOrFunc(string expression, Stack stack, if (Variables.ContainsKey(varFuncName)) throw new ExpressionEvaluatorSyntaxErrorException($"Can not declare a new variable named [{varFuncName}]. A variable with this name already exists"); else if (varFuncMatch.Groups["varKeyword"].Success) - throw new ExpressionEvaluatorSyntaxErrorException("Can not declare a variable wih type and var keyword."); + throw new ExpressionEvaluatorSyntaxErrorException("Can not declare a variable with type and var keyword."); else if (varFuncMatch.Groups["dynamicKeyword"].Success) - throw new ExpressionEvaluatorSyntaxErrorException("Can not declare a variable wih type and dynamic keyword."); + throw new ExpressionEvaluatorSyntaxErrorException("Can not declare a variable with type and dynamic keyword."); stack.Pop();