Help for this page

Select Code to Download


  1. or download this
    $tree = <>; chop($tree); 
    while ($tree=~s/\(?([A-Z])([A-Z])\)?/\1/) {
        print $tree;
        print "\n";
    }
    
  2. or download this
    (A(BD)(EF))
    (AB(EF))
    A(EF))
    AE)
    A