beltoforion/muparser

Postfix operator with numbers

tonka3000 opened this issue ยท 2 comments

Hey,

it seems that a postfix operator with a number is not possible. I try to model 2cm2, but I always get an error. 2cm works great ๐Ÿ˜„ .

Is there any way to get this working in muparser?

muparser: 2.2.6.1

Greetings
Michael

I guess it's technically possible by adding numbers to the operator character set using DefineOprtChars. This will also allow them in binary operators which will introduce some parsing ambiguities when actually used in binary operators.

Thanks for your answer, it works ๐Ÿ˜„