All notable changes to antlr-calculator are documented here.
- Square
[]and curly{}parentheses are now also valid for formulas. They are only used to group expressions, and implicit multiplication like2(3)=6is not allowed with those
- Added support for ranges, e.g.
#START..#ENDto implement custom sum logic
- Added support for
MinandMaxformulas
- 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 + 2and ignores everything after the semicolon; - Add support for substitutions in formulas
- The internal check for null or empty formulas was changed for better compatibility with Node
- Automatic creation of GitHub releases was added
- The library was updated to use the Antlr TypeScript target instead of the older JavaScript package