Parsing a string formula to an integer result

ぃ、小莉子 提交于 2019-12-01 13:19:51

Parser10, written originally by Renate Schaaf for Delphi 1 and later upgraded to Delphi2 and 3 by Alin Flaider and Stefan Hoffmeister, is a fairly simple math parser. It will do the job for simple expressions and can serve as a boilerplate for more complex work.

It is not built for speed though.

Update :

Hallvard Vassbotn made an update of Parser10 and added some documentation. Load it from here.

List of Parsers, Mathematical Expression Evaluators, Calculators: here

[Edit] Or a TBindExpression in Delphi XE2, not sure if its apply PEMDAS

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!