生成并从C#应用程序解析Python代码 [英] Generate and parse Python code from C# application

查看:193
本文介绍了生成并从C#应用程序解析Python代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要生成Python代码更加具体 IronPyton 。我还需要能够解析代码,并将其加载到 AST 。我刚开始看一些工具。我打了奥斯陆并作出决定,这不是我的工具。我只是看着很简单的 / R ,它看起来很有希望。

I need to generate Python code to be more specific IronPyton. I also need to be able to parse the code and load it into AST. I just started looking at some tools. I played with "Oslo" and made decision that it's not the right tool for me. I just looked very briefly at Coco/R and it looks promising.

没有任何一个使用可可/ R?

。如果你做了什么与工具的体验?
你能推荐一些其他的工具

Does any one used Coco/R?
If you did what's your experience with the tool? Can you recommend some other tool?

推荐答案

IronPython的实现本身包括解析器和的an可与的://ironpython.codeplex。 COM / SourceControl /变更/查看/ 59195#992880> PythonWalker

The IronPython implementation itself includes a parser and an AST representation of Python programs which can be walked with a PythonWalker.

这篇关于生成并从C#应用程序解析Python代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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