Le 2026-09-01 à 23:56, Douglas McIlroy a écrit :
For the edification of pic fans, I have posted
a pic program that lays out binary trees from
one-line functional descriptions like this:

         node(leaf,node(leaf,leaf))

The program is a lovely example of the
power of pic macros and blocks, unlike
anything in the tutorial literature.

Get it from www.cs.dartmouth.ed/~doug/tree.pic.
Try it with  groff -p -ms tree.pic.

Doug


Thank you for this example.  I added it on my list of groff examples here:

https://froude.eu/groff/examples/binary-tree-in-pic.html


  • ... Douglas McIlroy
    • ... Damian McGuckin
    • ... Thomas DUPOND via discussion of the GNU roff typesetting system and related software
    • ... Brian Kernighan

Reply via email to