mparser icon indicating copy to clipboard operation
mparser copied to clipboard

allow adjacent prefix/postfix operators of the same precedence

Open medovina opened this issue 1 year ago • 0 comments

The documentation for mparser's expression parser says

Adjacent prefix and postfix operators of the same precedence are not well-formed. For example, if (-) denotes prefix negation, --x is not a well-formed expression (if (--) does not denote an operator on its own).

This limitation is inconvenient. As a feature request, it would be nice to remove this limitation, so that e.g. - - x would mean - (- x) for a prefix operator -.

medovina avatar Feb 25 '24 09:02 medovina