SYNOPSIS

Execute it with:

eyapp TSwithtreetransformations2.eyp; ./usetswithtreetransformations2.pl

Give it as input s.t. like: a=b*(2-2). The Optimizing transformations reduce the AST to:

PROG(EXP(ASSIGN(TERMINAL[a],NUM(TERMINAL[0]))))

This is a rather complicated example that combines translation schemes and tree transformations.