Re: [IronPython] Building via AST

2010-04-15 Thread Justin Chase
of IronPython *Subject:* Re: [IronPython] Building via AST Ok awesome! So now I have: dynamic example = globals[Example]; dynamic instance = example(); Console.WriteLine(instance.Do()); But I'm getting an exception about a line number. Any idea how I can get past that? I've tried

Re: [IronPython] Building via AST

2010-04-15 Thread Justin Chase
*To:* Discussion of IronPython *Subject:* Re: [IronPython] Building via AST Ok awesome! So now I have: dynamic example = globals[Example]; dynamic instance = example(); Console.WriteLine(instance.Do()); But I'm getting an exception about a line number. Any idea how I can get past

Re: [IronPython] Building via AST

2010-04-14 Thread Justin Chase
*From:* users-boun...@lists.ironpython.com [mailto: users-boun...@lists.ironpython.com] *On Behalf Of *Justin Chase *Sent:* Monday, April 12, 2010 4:09 PM To: Discussion of IronPython Subject: Re: [IronPython] Building via AST Ok, so at risk of being a nuissance I have one last question

Re: [IronPython] Building via AST

2010-04-14 Thread Dino Viehland
of IronPython Subject: Re: [IronPython] Building via AST Ok, so at risk of being a nuissance I have one last question because I feel like I'm half way t... ___ Users mailing list Users@lists.ironpython.commailto:Users@lists.ironpython.com http

Re: [IronPython] Building via AST

2010-04-14 Thread Justin Chase
*Subject:* Re: [IronPython] Building via AST I feel like I'm so close but something isn't quite working. Here is my current code: var runtime = Python.CreateRuntime(); runtime.LoadAssembly(typeof(IExample).Assembly

Re: [IronPython] Building via AST

2010-04-14 Thread Dino Viehland
To: Discussion of IronPython Subject: Re: [IronPython] Building via AST Ok awesome! So now I have: dynamic example = globals[Example]; dynamic instance = example(); Console.WriteLine(instance.Do()); But I'm getting an exception about a line number. Any idea how I can get past that? I've tried a bunch

[IronPython] Building via AST

2010-04-12 Thread Justin Chase
Suppose I would like to build an AST programmatically and compile that into an assembly dynamically (meaning an assembly flagged with RunAndCollect) from C#. How would I do that with IronPython's help? I do not what to author Python code and compile that I would like to just deal directly with the

Re: [IronPython] Building via AST

2010-04-12 Thread Dino Viehland
Of Justin Chase Sent: Monday, April 12, 2010 1:21 PM To: users@lists.ironpython.com Subject: [IronPython] Building via AST Suppose I would like to build an AST programmatically and compile that into an assembly dynamically (meaning an assembly flagged with RunAndCollect) from C#. How would I do

Re: [IronPython] Building via AST

2010-04-12 Thread Justin Chase
PM *To:* users@lists.ironpython.com *Subject:* [IronPython] Building via AST Suppose I would like to build an AST programmatically and compile that into an assembly dynamically (meaning an assembly flagged with RunAndCollect) from C#. How would I do that with IronPython's help? I do

Re: [IronPython] Building via AST

2010-04-12 Thread Dino Viehland
: [IronPython] Building via AST Ok so I'm wondering if I'm perhaps using the wrong words to try to say what I mean. Because when I look into the IronPython source code I see a class called Microsoft.Scripting.Generation.TypeGen (http://ironpython.codeplex.com/SourceControl/changeset/view/65328

Re: [IronPython] Building via AST

2010-04-12 Thread Justin Chase
not a big deal. *From:* users-boun...@lists.ironpython.com [mailto: users-boun...@lists.ironpython.com] *On Behalf Of *Justin Chase *Sent:* Monday, April 12, 2010 2:03 PM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Building via AST Ok so I'm wondering if I'm perhaps using

Re: [IronPython] Building via AST

2010-04-12 Thread Dino Viehland
...@lists.ironpython.com] On Behalf Of Justin Chase Sent: Monday, April 12, 2010 4:09 PM To: Discussion of IronPython Subject: Re: [IronPython] Building via AST Ok, so at risk of being a nuissance I have one last question because I feel like I'm half way there. I have the following example that seems to work

Re: [IronPython] Building via AST

2010-04-12 Thread Justin Chase
if it works! J *From:* users-boun...@lists.ironpython.com [mailto: users-boun...@lists.ironpython.com] *On Behalf Of *Justin Chase *Sent:* Monday, April 12, 2010 4:09 PM To: Discussion of IronPython Subject: Re: [IronPython] Building via AST Ok, so at risk of being a nuissance I have one last question