From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2002-05-15T07:10:20+09:00 Subject: AST instrospection 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 ;-) So what I would like to be able to do is something like: a = Proc.new { .... some Ruby code .... } procAST = a.AST #get the AST for the proc 'a' #walk thru the AST: procAST.walk { |node| #do something with the nodes } Any plans for introspection down to the AST level? Phil