> I'm in search of any documentation that provides insight > into the design and implementation of a *roff.
Not sure if this helps more than it confuses, but perhaps looking into the "amazingly workable formatter", an nroff-workalike written in awk, might offer some enlightenment... There's also a C version of awf that used to be the default formatter on Minix.