Skip to content

Latest commit

 

History

History
86 lines (53 loc) · 2.69 KB

CHANGELOG.md

File metadata and controls

86 lines (53 loc) · 2.69 KB

CHANGELOG

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[1.1.1] 2017.11.02

Fixed

  • An interpreter context can now be replaced by another one with the same name.

[1.1.0] 2017.09.11

Added

  • Added global variables support (variables that are common to all instances of Interpreter).
  • Implemented the disposal code (#24).
  • Added an console calculator example project (#25).

Changed

  • The number of cached nodes is now limited to 64. (#21).

Fixed

  • The regular expression that matches context variables now behaves as intended (#23).
  • Setting an existing variable no longer raises an exception (#27).

[1.0.0] 2017.09.03

Added

  • Added binary operators <<, >>, & and |.
  • Added comparison operator != (with alias ne).
  • Added new operators floor, ceil, trunc.
  • Added new operators e, log, log10.
  • Added aliases to existing operators <, <=, > and >=.

Changed

  • Operators priority is now from lowest (0) to highest (int.Max);
  • Formula syntax: Alphanumeric operators should now be separated from operants by a blanck space or brackets (e.g.: e2 should be written e 2 or e(2)).

Removed

  • Removed some deprecated operation aliases (degrad and raddeg).
  • Removed some deprecated functions related to unnamed contexts :
    • Constructor Interpreter(IInterpreterContext).
    • Function SetContext(IInterpreterContext).

Fixed

  • Operators that contain digits in their names no longer fail (e.g.: deg2rad).
  • Fixed an issue related to mixed operators (i.e.: ! was mixed to !=).

[0.2.0-alpha] - 2017.08.29

Added

  • The interpreter now handles the use of multiple contexts (identified by name).
  • Some operators now accept a function-style writer (eg. min(1, 2) instead of min 1 2.
  • Copies of all previously prcessed formulae are now kept in cache (optimization).

Changed

  • Operations and values are now stored a tree (optimization).

Fixed

  • Fixed precedence issues related to | and & boolean operations. 2`).

Deprecated

  • Constructor Interpreter(IInterpreterContext) is now deprecated. Use Interpreter.SetContext(string, IINterpreterContext) instead.
  • Function SetContext(IInterpreterContext) is now deprecated. Use Interpreter.SetContext(string, IINterpreterContext) instead.

[0.1.1-alpha] - 2017.08.22

Added

  • Added new operations : tan, cosh, sinh, tanh, acos, asin, atan, deg2rad, rad2deg, and, or, &, |
  • Added new constants : true, false.

[0.1.0-alpha] - 2017.08.20