How to use IBURG to exchange tree nodes?

whjiang_cn@hotmail.com (Alan Jiang)
21 Nov 2003 00:45:42 -0500

          From comp.compilers

Related articles
How to use IBURG to exchange tree nodes? whjiang_cn@hotmail.com (2003-11-21)
Re: How to use IBURG to exchange tree nodes? lindig+news@lindig.dyndns.org (Christian Lindig) (2003-12-03)
| List of all articles for this month |

From: whjiang_cn@hotmail.com (Alan Jiang)
Newsgroups: comp.compilers
Date: 21 Nov 2003 00:45:42 -0500
Organization: http://groups.google.com
Keywords: tools, question
Posted-Date: 21 Nov 2003 00:45:42 EST

For example: (all variables are int type)
a-c+d is expressed as tree (a-c)+d, but I hope IBURG can transform it
to (a+d)-c.
Another example is: a+b+c+d is originally expressed as tree
((a+b)+c)+d, can I write IBURG rules to change the tree to
(a+b)+(c+d).


Does it possible for IBURG rules to do the above job? Or it is just
above the ability of IBURG?


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.