Hi, Doug -- That example reminded me of one of my test cases, attached. Mine puts contents in the nodes but isn't as elegant. Some merger might be interesting.
groff -p -e pt.tree Brian On Tue, 1 Sep 2026, Douglas McIlroy wrote:
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
pt.tree
Description: application/vnd.rainstor.data
tree.pdf
Description: Adobe PDF document
