From: Kurt Stephens Date: 2011-10-26T04:22:44+09:00 Subject: [ruby-core:40370] Re: 2.0 feature questionnaire On 10/25/11 2:12 PM, Jim Weirich wrote: > > On Oct 25, 2011, at 10:33 AM, Thomas E Enebo wrote: > >> wrote: >>>> - Getting source code >>> >>> This is a far, far better way to allow people access to AST. Give them >>> access to the source for a given method or block and provide an >>> implementation-independent parsing library. That's the Javascript way, >>> and it should be the Ruby way too. >> >> yes! Please just give a reference to source code and an API for >> producing a non-implementation dependent source representation. We >> would certainly help in crafting a neutral AST format. > > Yes, please. What he said. > Use OMETA, write a compliant Ruby grammar, then users can craft any AST, compilation or transform they want on Ruby code: https://github.com/aquasync/ruby-ometa -- Kurt