公式解析器....... [英] formula parser .......

查看:126
本文介绍了公式解析器.......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我想创建一个公式解析器,可以解析与Excel中创建的公式类似的公式...
例如类似...
的公式 If(条件,ValueIfTrue,ValuIfFalse)

谁能告诉我是否可以得到这样的解析器....

hi...
I want to create a formula parser which can parse formulas similar to the ones created in Excel...
for example formula like...
If(Condition(s),ValueIfTrue,ValuIfFalse)

can anyone please tell me if I can get such a parser....

推荐答案

您可以避免创建自己的解析器.您可以使用已经可用的C#或VB.NET编译器,它们是Framework可再发行组件的一部分,并且始终可以通过CodeDOM使用.

这是操作方法:
使用CodeDom生成代码 [创建使用可重载插件的WPF应用程序... [ ^ ].

—SA
You can avoid creating your own parser. You can use the one already available as a C# or VB.NET compiler, which are the part of Framework redistributable and are always available via CodeDOM.

Here is how to do it:
code generating using CodeDom[^];
See also:
Create WPF Application that uses Reloadable Plugins...[^].

—SA


本文可能对您很有趣:^ ]
This article could be interesting for you: Evaluation Engine[^]


还可以查看简单数学解析器 [
Have also a look at Simple Math Parser[^].
:-)


这篇关于公式解析器.......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆