MathExpressionParser v1.0.2
✅ Features released:
- Bitwise operators and (
&
), or (|
) (together with their logical variants), left shift (<<
), right shift (>>
), xor (^
, unary) and not (~
, unary). Note that these will throw when non-integer values are used. More advanced bitwise comparisons like xnor can be done with their respective function. - Logical operators
<
,>
,<=
,>=
,!=
,==
,&&
,||
and!
(unary) which return 1 or 0 for respectively true or false.
- The
^
character was previously used to raise a value to a certain power, it is now used as a bitwise or (xor), this to keep the bitwise operators consistent. For power functionality, use the newpow(x, y)
function. - The
pi()
ande()
functions are removed and replaced by constantspi
ande
. Example usage:3 * e
. Any subsequent uses of those functions will now throw a SyntaxException with messagecannot solve an empty expression
becausee()
will be interpreted ase * ()
.
Planned changes:
- Syntax to dynamically insert variables.
- Support more numeric bases.