Skip to content

Commit

Permalink
Merge pull request #41 from codingseb/dev
Browse files Browse the repository at this point in the history
Version 1.4.4.0
  • Loading branch information
codingseb authored Oct 3, 2019
2 parents 0747723 + ad81515 commit dcf5fa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<Product>CodingSeb.ExpressionEvaluator</Product>
<Description>A Simple Math and Pseudo C# Expression Evaluator in One C# File. Can also execute small C# like scripts</Description>
<Copyright>Copyright © Coding Seb 2017</Copyright>
<Version>1.4.3.0</Version>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<FileVersion>1.4.3.0</FileVersion>
<Version>1.4.4.0</Version>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<FileVersion>1.4.4.0</FileVersion>
<OutputPath>bin\$(Configuration)\</OutputPath>
<Authors>Coding Seb</Authors>
<PackageId>CodingSeb.ExpressionEvaluator</PackageId>
Expand All @@ -18,9 +18,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageIconUrl>https://github.com/codingseb/ExpressionEvaluator/blob/master/Icon.png?raw=true</PackageIconUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>Improvement
* Possibility to declare typed variables (Better C# like)
* New Option to allow last expression of a script without semicolon</PackageReleaseNotes>
<PackageReleaseNotes>* Small correction in the text of some exception</PackageReleaseNotes>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
6 changes: 3 additions & 3 deletions CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -2124,9 +2124,9 @@ protected virtual bool EvaluateVarOrFunc(string expression, Stack<object> 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();

Expand Down

0 comments on commit dcf5fa9

Please sign in to comment.