阅读背景:

数学解析器的智能设计?

来源:互联网 

What is the smartest way to design a math parser? What I mean is a function that takes a math string (like: "2 + 3 / 2 + (2 * 5)") and returns the calculated value? I did write one in VB6 ages ago but it ended up being way to bloated and not very portable (or smart for that matter...). General ideas, psuedo code or real code is appreciated. What is the smartest way to design a math parse




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: