All notable changes to Dangl.Calculator are documented here.
- The calculator now supports trailing comments in a formula, separated by a semicolon
;
at the end of the actual formula input. For example,1 + 2; Hello World!
now just evaluates1 + 2
and ignores everything after the semicolon;
- Updates to README
- Add support for substitutions in formulas
- Add
net40
as target framework - Drop tests for
netcoreapp2.2
and add tests fornetcoreapp3.1
- The generated assemblies now have a strong name. This is a breaking change of the binary API and will require recompilation on all systems that consume this package. The strong name of the generated assembly allows compatibility with other, signed tools. Please note that this does not increase security or provide tamper-proof binaries, as the key is available in the source code per Microsoft guidelines
- CI tests are now also run on Linux
- Added capability to detect missing multiplication signs, e.g. the formula
3pi
is now recognized as3*pi
or2(3)
as2*(3)
- Added support for formulas ending with an equals sign
=
- Dropped tests for
netcoreapp2.0
, added tests fornetcoreapp2.2
- Update of dependencies
- Bugfix: Fixed operator precedence for exponential expression, e.g.
1e+2*2 == 200
- Bugfix: Unary minus signs were not always evaluated to the nearest matching expression, e.g.
-3+5
was evaluated as-(3+5)
. See GitHub Issue #1
- Dropped test support for .NET Core 1.0 and 1.1
- Updated Antlr4 to latest stable version
- Add
netstandard2.0
target - Switch build system to NUKE
- Downgrade to netstandard1.1 and net45 for broader compatibility
- Update ANTLR to latest version
- Target NETStandard 1.3