I am pleasantly surprised with the capability of Grok, most of the time it spits out working code, sometimes a minor modification is needed
I asked Grok in regard to the function EvaluateExpression, can it be modified so that it will evaluate partial expressions between '(' and ')' and replace that part of the expression with the value as soon as the ')' is encountered ?
and it explained and provided the changes needed, it's integration was quite easy and it works, the expression "2*(5+6)" is promptly replaced with "2*11"
trig functions are next and after that add the tricky keyboard support