This is an automated email from the ASF dual-hosted git repository. henrib pushed a change to branch JEXL-367 in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
from b7a89c98 JEXL-367: adding fat-arrow vs thin-arrow lambda syntax; add named function syntax; add bb04b40c Merge pull request #94 from apache/JEXL-368 add b0d5bf41 Bump github/codeql-action from 1 to 2 add 38c0b841 Merge pull request #93 from apache/dependabot/github_actions/github/codeql-action-2 add 33bc10c1 JEXL-366: compare will try and convert a string to number when one argument is a number add fa3e3db7 JEXL-342: extend arithmetic to dereference references (sic); add 42eefe6f JEXL-366: homogenize conversion from string to numbers; add 207eb701 JEXL-367: add fat-arrow to syntax add a2e1aaa3 JEXL-369: add fat-arrow to syntax add 75f9fe97 JEXL-369: initial feature drop, lacks serious tests; add 55aad518 JEXL-369: add fat-arrow to syntax add 4182a621 Merge remote-tracking branch 'origin/JEXL-369' into JEXL-369 add 10fc2f15 JEXL-369: initial feature drop, lacks serious tests; add 8549308a JEXL-369: let/const disallow any redeclaration of a variable within lexical scope; added let/const for parameters as well; refactored badly named internal fields (frame vs scope); add e227afaf JEXL-369: disable single-statement variable declarations in lexical mode add c4b15d0e JEXL-369: documentation add 72490fa5 Merge pull request #95 from apache/JEXL-369 add 57b6a5a4 JEXL-360: missed a few test cases; - opportunistic fix of '%=' not being controlled for side-effects; new 46273739 JEXL-367: adding fat-arrow vs thin-arrow lambda syntax; add named function syntax; new 840b9d6c JEXL-367: function f() {} creates a const f variable; - checked the thin vs fat arrow feature; new 247bbdd4 Merge remote-tracking branch 'origin/JEXL-367' into JEXL-367 The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .github/workflows/codeql-analysis.yml | 6 +- RELEASE-NOTES.txt | 1 + .../org/apache/commons/jexl3/JexlArithmetic.java | 156 ++++++++----- .../org/apache/commons/jexl3/JexlFeatures.java | 4 +- .../apache/commons/jexl3/internal/Debugger.java | 8 +- .../apache/commons/jexl3/internal/Engine32.java | 2 +- .../apache/commons/jexl3/internal/Interpreter.java | 32 +-- .../commons/jexl3/internal/InterpreterBase.java | 8 +- .../org/apache/commons/jexl3/internal/Scope.java | 55 ++++- .../apache/commons/jexl3/parser/ASTIdentifier.java | 20 ++ .../commons/jexl3/parser/FeatureController.java | 5 + .../apache/commons/jexl3/parser/JexlParser.java | 185 ++++++++------- .../org/apache/commons/jexl3/parser/Parser.jjt | 91 +++++--- src/site/xdoc/reference/syntax.xml | 57 ++++- .../org/apache/commons/jexl3/ArithmeticTest.java | 100 +++++++-- .../org/apache/commons/jexl3/FeaturesTest.java | 4 + .../org/apache/commons/jexl3/JexlTestCase.java | 23 +- .../java/org/apache/commons/jexl3/LambdaTest.java | 47 ++++ .../java/org/apache/commons/jexl3/LexicalTest.java | 247 +++++++++++++++++---- .../apache/commons/jexl3/ShiftOperatorsTest.java | 12 +- .../org/apache/commons/jexl3/SideEffectTest.java | 12 + .../commons/jexl3/jexl342/OptionalArithmetic.java | 231 +++++++++++++++++++ .../apache/commons/jexl3/jexl342/OptionalTest.java | 22 +- 23 files changed, 1051 insertions(+), 277 deletions(-) create mode 100644 src/test/java/org/apache/commons/jexl3/jexl342/OptionalArithmetic.java