davedelong/DDMathParser

Replacing a default operator with a custom operator, or another default operator

tanish2k09 opened this issue · 0 comments

First of all, thanks for the amazing library!

I'm trying to make an app that requires the ^ symbol to be defined as the exponent symbol so that 3 ^ 2 is 9, but the default operator ^ is defined as XOR.

The docs have content about creating custom operators and even operator aliases, but it doesn't say anything about being able to override the default operators completely. Is there a way to define ^ as exponent instead of **?