Class | R2CRewriter |
In: |
lib/rewriter.rb
|
Parent: | SexpProcessor |
R2CRewriter (should probably move this out to its own file) does rewritings that are language specific to C.
REWRITES | = | { [Type.str, :+, Type.str] => proc { |l,n,r| t(:call, nil, :strcat, r.unshift(r.shift, l), Type.str) | REWRITES maps a function signature to a proc responsible for generating the appropriate sexp for that rewriting. |