[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Question] - Is it a good idea to parse groff with Bison?
From: |
John Levine |
Subject: |
Re: [Question] - Is it a good idea to parse groff with Bison? |
Date: |
7 Nov 2015 08:26:14 -0000 |
>Do you believe that its a good idea to use Bison for this?.
Probably not. Groff syntax is really simple, and the nesting
is kludgy enough that I'd suggest doing it by hand rather than
trying to force it into bison.
You'll also probably find that parsing groff is about 5% of the work,
and figuring out how to match up poorly structured groff macros,
directives, and escape sequences into html is the other 95%.
R's,
John