Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Nov 15, 2023
2 parents 3e7f946 + 42f2171 commit 3b712c7
Show file tree
Hide file tree
Showing 19 changed files with 4,673 additions and 679 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,31 @@

All notable changes to **antlr-calculator** are documented here.

## v2.4.0:

- Square `[]` and curly `{}` parentheses are now also valid for formulas. They are only used to group expressions, and implicit multiplication like `2(3)=6` is not allowed with those

## v2.3.0:

- Added support for ranges, e.g. `#START..#END` to implement custom sum logic

## v2.2.0:

- Added support for `Min` and `Max` formulas

## v2.1.0:

- 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 evaluates `1 + 2` and ignores everything after the semicolon `;`
- Add support for substitutions in formulas

## v2.0.4:

- The internal check for null or empty formulas was changed for better compatibility with Node

## v2.0.3:

- Automatic creation of GitHub releases was added

## v2.0.0:

- The library was updated to use the Antlr TypeScript target instead of the older JavaScript package
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h3 id="resultHeading">Result: </h3>
<div class="row d-block d-sm-none">
<div class="col-md-6 d-block d-sm-none">
<span class="ms-logo">GD</span> Georg Dangl ©
2016 - 2020
2016 - 2023
</div>
<div class="col-md-6 d-block d-sm-none">
<a href="https://blog.dangl.me">
Expand All @@ -127,7 +127,7 @@ <h3 id="resultHeading">Result: </h3>
<p></p>
<p class="d-none d-sm-block">
<span class="ms-logo">GD</span>
Georg Dangl © 2016 - 2020
Georg Dangl © 2016 - 2023
- <a href="https://blog.dangl.me">
Dangl.Blog();
</a>
Expand Down
Loading

0 comments on commit 3b712c7

Please sign in to comment.