Command line calculator in D

Joel joelcnz at gmail.com
Sun May 10 09:13:07 UTC 2020


On Saturday, 9 May 2020 at 19:25:44 UTC, Alireza SN wrote:
> On Saturday, 9 May 2020 at 10:38:08 UTC, Joel wrote:
>> Can you add something like 'string result = 
>> evaluateFromString("(1+2)/2");'?
>
> You can do that now :)
>
>> auto p = new Prser();
>> string result = p.evaluateFromString("(1+2)/2");

Thanks Alireza SN :-)


More information about the Digitalmars-d-announce mailing list