库来解析字符串作为一个公式,即随着Windows Phone 7的工作原理 [英] Library to Parse a string as a formula, that works with Windows Phone 7
本文介绍了库来解析字符串作为一个公式,即随着Windows Phone 7的工作原理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何.NET库,在那里,将分析字符串为公式?
Are there any .NET libraries out there that will parse a string as a formula?
也就是说, 如果用户输入(2 + 5)* 2,该库将能制定出计算?
ie; "if the user inputs "(2 +5) * 2", the library will be able to work out the calculation?
编辑:!preferably东西,将与Windows Phone 7的工作,没有太多摆弄就好了
Preferably something that will work with Windows Phone 7 without too much fiddling would be nice!
推荐答案
我贴源$ C $下一个支持EX pressions,变量和函数。
I posted source code for one that supports expressions, variables and functions.
您可以在<一个看到它href="http://www.blackbelt$c$cr.com/Articles/algorithms/a-c-ex$p$pssion-evaluator">http://www.blackbelt$c$cr.com/Articles/algorithms/a-c-ex$p$pssion-evaluator.
这篇关于库来解析字符串作为一个公式,即随着Windows Phone 7的工作原理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文