#Ruby, 126.9 129.6 (144 - 10%)
Ruby, 126.9 129.6 (144 - 10%)
Uses recursion to convert decimal into curly form. Removing the check for ignoring characters outside of /[;{}]/
increases the score by 0.4
at the moment.
f=->s{s=~/^\d+$/?(n=s.to_i
"{#{n<1?'':f[(n/4).to_s].gsub('{}','')}}#{?;*(n%4)}"):eval(s.tr("^{;}","").gsub(/./){|c|c<?A?"+1":c>?|?")*4":"+(0"})}