Releases: Muqsit/arithmexp
Releases · Muqsit/arithmexp
v0.1.12
BinaryOperatorRegistry
no longer ends up in an invalid state when anInvalidArgumentException
thrown byBinaryOperatorRegistry::register()
is handled- Numbers with multiple decimal points (such as
3..2
,3.2.1
, etc.) are no longer parsed as numeric literals - Function call token's "end pos" is now at closing parenthesis of its argument list
- Parse exceptions arising from function calls are more comprehensible
// before > tan(x) + tan(y) tan(z) ** tan(w) Unexpected Function Call token encountered at "tan" (16:19) in "tan(x) + tan(y) tan(z) ** tan(w)" // after > tan(x) + tan(y) tan(z) ** tan(w) Unexpected Function Call token encountered at "tan(z)" (16:22) in "tan(x) + tan(y) tan(z) ** tan(w)"
- Parse exceptions arising from function calls are more comprehensible
v0.1.11
- Parser now throws a
ParseException
when encountering tokens that cannot be resolved to expression tokens- This fixes several cases where unexpected tokens are encountered (such as
,
outside fcall) where aRuntimeException
would have instead been thrown with the message "Don't know how to convert * token"
- This fixes several cases where unexpected tokens are encountered (such as
v0.1.10
v0.1.9
- Parser now throws
ParseException
when secluded tokens are encountered (such as2 3 + 4
ortan(x) tan(y)
) instead of silently ignoring - Fix
ParseException
being incorrectly thrown for specific nested binary operations - Fix operators in function arguments incorrectly throwing a
ParseException
v0.1.8
v0.1.7
v0.1.6
v0.1.5
ParseException
is now thrown when a missing opening/closing parenthesis is encounteredParseException
is now thrown when no lvalue or rvalue is supplied for a binary operatorParseException
is now thrown when no rvalue is supplied for a unary operatorParseException
is now thrown when the supplied expression is emptyParseException
now extendsException
- This change lets IDEs hint developers to catch
ParseException
whenParser::parse()
is invoked
- This change lets IDEs hint developers to catch