From: Joel VanderWerf Date: 2002-05-15T07:35:23+09:00 Subject: Re: AST instrospection Phil Tomson wrote: > > I know this isn't something that's available yet, but I'd certainly like > it to be on the wishlist... > > If I could get the AST of a Proc object, I could do some real cool stuff > with RHDL (like logic synthesis in addition to just simulation ;-) I'll second that wish. In my application/library, user code has blocks that can assign to C struct members using accessors. But it is very easy to forget about Ruby and type "x = 3" instead of "self.x = 3". IIUC, having the Proc's AST would let me at least warn about this kind of mistake, or even correct it. Also, there would be the possibility of generating C code from the AST... very cool!