On 05/18/2010 04:24 AM, Sandeep Soni wrote: > On Tue, May 18, 2010 at 2:34 AM, Andrew Haley <a...@redhat.com> wrote: > >>> For example: >>> A textual GIMPLE tuple for the statement a=b+c can be like >>> <GIMPLE_ASSIGN<PLUS_EXPR,a,b,c>> (As demonstrated by the internal >>> manual also). >>> Is such a representation easy to parse? >> >> S-expressions are easier to parse and more compact, and are consistent >> with gcc's back end. Also, there are editors that already know how to >> edit and indent S-expressions. > > Thanks Andrew . Any thoughts on the 3rd point?
Your suggestion for 3 is perfectly sensible, and is a good way to start. It's quite possible that, whatever you do, you'll find that the file structure will need to be changed, so it makes sense to do something as simple and straightforward as possible. If your code is well-factored it can be reorganized later. Andrew.