SYNOPSIS

foldand0rule9_4.pl

Try inputs:

a = 2*3+4   # Reducido a: a = 6
a = 2*[3+b] # syntax error
a = 2*3*b   # Reducido a: a = 6*b

Compile it with

eyapp -m 'Calc' Rule9.yp 
treereg -o T.pm -p 'R::' -m T Transform4