groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] [patch] do not strip mdoc macros


From: John Gardner
Subject: Re: [groff] [patch] do not strip mdoc macros
Date: Sun, 17 Mar 2019 02:31:29 +1100

Hi James,

*> **So I don't think it's an even comparison.*

Ralph's right. Awk, sed, and Perl can't programmatically change what syntax
is used for comments, whereas Roff *can*:

.ec A
.de test
This is a line. \" This is a comment
..
.test


The above snippet outputs:

This is a line. \" This is a comment


As you can see, comments can't be optimised away as "junk syntax", meaning
the lexer/parser **has** to take them into consideration.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]