Re: help with an AST

2017-02-20 Thread Ed Clark
Ok, poking around the source for VariableScopeVisitor didn't provide me with any insights. It did lead me to try VariableScopeVisitor scopeVisitor = new VariableScopeVisitor( source, true) but I still get the error: BUG! exception in phase 'class generation' in source unit

Re: help with an AST

2017-02-16 Thread Ed Clark
cNode is a closure's classNode? Cheers, Paul. On Thu, Feb 16, 2017 at 9:35 PM, Ed Clark <eacl...@ameritech.net> wrote: Ok, a little more headbanging and I seem to have gotten farther (maybe?). At least the error message has changed. Now I'm getting: BUG! exception in phase 'class gene

Re: help with an AST

2017-02-18 Thread Ed Clark
f your closure(s)? Where cNode is a closure's classNode? Cheers, Paul. On Thu, Feb 16, 2017 at 9:35 PM, Ed Clark <eacl...@ameritech.net> wrote: Ok, a little more headbanging and I seem to have gotten farther (maybe?). At least the error message has changed. Now I'm getting: BUG! exception in pha

Re: help with an AST

2017-02-23 Thread Ed Clark
though I am not sure we really use it. On Thu, Feb 23, 2017 at 2:08 AM, Ed Clark <eacl...@ameritech.net> wrote: I can report progress. Turns out there were two problems. The error message that I was getting concerning : "=" not being supported had to do with how I

Re: help with an AST

2017-02-22 Thread Ed Clark
lean up my remaining problem with scoping issues. Yeah! On to the next wall, how to generate a table of method signatures (at transform time) for all the methods defined in the user written classes (marked with my annotation)... Many thanks, Ed On 02/20/2017 12:06 PM, Ed Clark wrote

Re: help with an AST

2017-02-14 Thread Ed Clark
On 02/14/2017 12:16 PM, Jochen Theodorou wrote: On 14.02.2017 12:41, Ed Clark wrote: Hi Jochen, Well, I've been slowly making progress on this; kind of feels like bashing my head against a wall at times, but I have made a small hole in the wall through which I can see my goal. ;-) making

Re: help with an AST

2017-02-14 Thread Ed Clark
ead banging hasn't helped either. :\ Any illuminating insight, or direction pointing, or example would be greatly appreciated! Thanks Ed On 12/31/2016 06:36 PM, Jochen Theodorou wrote: On 31.12.2016 17:32, Ed Clark wrote: [...] Assuming you still want to do something like this with more...

Re: problem with GroovyLab startup at some platforms?

2017-01-19 Thread Ed Clark
On 01/19/2017 08:44 AM, sterg wrote: On 01/19/2017 03:39 PM, Jochen Theodorou wrote: On 19.01.2017 12:57, sterg wrote: Hi all, a user reported me, that GroovyLab (https://github.com/sterglee/GroovyLab) fails silently at startup, at his platform. no error at all? yes, with no error

help with an AST

2016-12-30 Thread Ed Clark
(with ctx2 chaining to ctx3 chaining to Ctx1 above), but is there a better way? - what might I be breaking in Groovy by doing this? - what help/hints can I get from the compiler vs. doing this all at runtime? Thanks for your time, Ed Clark

more help with an AST

2017-07-11 Thread Ed Clark
bleExpression) making up the subtrees for the two lines. Obviously I'm doing something wrong. But I can't see what it is. Any suggestions? Regards, Ed Clark

Re: more help with an AST

2017-07-12 Thread Ed Clark
Hi Jochen, Thanks for getting back to me. Responses inline. On 07/12/2017 02:02 AM, Jochen Theodorou wrote: On 11.07.2017 22:07, Ed Clark wrote: [...] the browser shows a post-xform output of: sum = myCtx.multiply( le, re) <--- this executes sum = myCtx.multiply(