printfn / fend

Arbitrary-precision unit-aware calculator
https://printfn.github.io/fend
MIT License
587 stars 50 forks source link

Resolve fully-uppercase builtin identifiers #300

Open mlcui-corp opened 1 week ago

mlcui-corp commented 1 week ago

Some users try to use uppercase function names like LOG as they are used to Excel functions, which don't work in fend.

Resolve fully-uppercase builtin identifiers if they are not parsed as units. This ensures that if, for example, "I" becomes a unit in the future, it will be resolved as the unit - not the imaginary number.

printfn commented 2 days ago

Thanks for the PR, and sorry for the delay in reviewing this. I'll try and take a look at this and your other pull request in the next couple days.