IntExpr.Java
Release Notes
1.0.1 (2025-09-14)
Fix throwing ArrayIndexOutOfBoundsException bug
Requirements to run
- JDK 11
Requirements to build
- JDK 21
Changed
- Update build system
- Modify the exception detail message to include whether the operator is unary or binary when an unknown operator is detected
Fixed
- Fix an issue where
IntExpr.eval(String)
would throwArrayIndexOutOfBoundsException
for expressions like:- Binary operators missing right-hand operand (e.g.,
"1+"
) - Unary operators missing operand (e.g.,
"-"
)
- Binary operators missing right-hand operand (e.g.,
- Fix Javadoc and Checkstyle warnings
1.0 (2022-01-30)
Initial release
Requirements to run
- JDK 11
Requirements to build
- JDK 17
New
- Add APIs to evaluate integer expressions and to visualize the syntax trees representing the expressions in Reverse Polish notation.