elastic / tinymath

A tiny arithmetic expression evaluator with pluggable functions
Apache License 2.0
21 stars 16 forks source link

Subtraction sometimes doesn't work as expected #35

Open lukasolson opened 6 years ago

lukasolson commented 6 years ago

For example, the expression "value-mod(value, 10)" fails, as does "-mod(value, 10)".

I think part of it has to do with the fact that the "-" sign is part of the allowable characters in identifiers.