I need to generate Python code to be more specific IronPyton . I also need to be able to parse the code and to load it into AST . I just started looking at some tools. I played with "Oslo" and made a decision that it's not the right tool for me. I just looked very briefly at Coco/R and it looks promising.
Does anyone use Coco/R? If you did what's your experience with the tool Can you recommend some other tool?
IronPython实现本身包括一个解析器和一个 Python程序的AST表示 ,可以使用PythonWalker
。
I think you should look at the Dynamic Language Runtime . This will be a standard part of some later version of .Net and C# (.Net 4 from memory).
I've used it to compile and execute Python code generated at runtime, but I haven't played with all the AST stuff yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.