The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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