> > the roff language does not have a formal grammar > > Not true, unless by "formal" you mean "expressed as BNF". The parser > reads input and produces output. Input not conforming to its syntax is > rejected. That couldn't be true without a grammar to compare it to.
Gonna have to go with James here. I have scripts that take troff -ms input and produce slide decks.