So this is awesome by the way. I added the import and
casting-to-an-interface code back in and it works like a charm. I'm
generating python code purely via AST!
On Thu, Apr 15, 2010 at 1:25 PM, Justin Chase wrote:
> SUCCESS!
>
> Here's the final code:
> var runtime = Python.CreateRuntime();
>
>
SUCCESS!
Here's the final code:
var runtime = Python.CreateRuntime();
var functionDefinition = new FunctionDefinition(
"Do",
new[] { new Parameter("self") },
new ReturnStatement(new ConstantExpression("hello python!")));
var classDefinition = new IronPython.Compiler.Ast.ClassDefinition(
"Example