yds12 / mexe

Simple and fast arithmetic expression parser
MIT License
8 stars 0 forks source link

How about support parse '×' as '*' and '÷' as '/' in expressions? #14

Open mhfan opened 2 years ago

yds12 commented 2 years ago

Hi mhfan, thanks for your suggestion. For now, a replace can be done to make '×' into '*' and '÷' into '/'. But it would be nice to have direct support. I'll think about a design that could include this. At first glance, I think it probably would not be enabled by default to avoid slowing down the parser for a usecase that is not so common, but I think we should support custom symbols.