like indent?

http://www.gnu.org/software/indent/manual/indent.html#SEC12

It's called pretty printing in the literature I think, e.g. wadler combinators:
homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf

One could use the coccinelle infrastructure to write such a pretty
printer indeed.

On Sat, Apr 23, 2011 at 9:25 AM, David Young <[email protected]> wrote:
> Does anyone use Coccinelle to transform the style of C sources?
>
> ISTR that Donald E. Knuth described in a paper (maybe it was "Breaking
> paragraphs into lines") how to format Pascal programs for publication by
> treating tokens as boxes, matching elements of the syntax and annotating
> those with penalties and glue.  Has anyone tried this with Coccinelle?
>
> Dave
>
> --
> David Young             OJC Technologies
> [email protected]      Urbana, IL * (217) 344-0444 x24
> _______________________________________________
> Cocci mailing list
> [email protected]
> http://lists.diku.dk/mailman/listinfo/cocci
> (Web access from inside DIKUs LAN only)
>
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to