[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.
- Re: [groff] [patch] do not strip mdoc macros, Doug McIlroy, 2019/03/14
- Re: [groff] [patch] do not strip mdoc macros, Colin Watson, 2019/03/14
- Re: [groff] [patch] do not strip mdoc macros, Ralph Corderoy, 2019/03/14
- Re: [groff] [patch] do not strip mdoc macros, James K. Lowden, 2019/03/15
- Re: [groff] [patch] do not strip mdoc macros, Ralph Corderoy, 2019/03/15
- Re: [groff] [patch] do not strip mdoc macros, James K. Lowden, 2019/03/17
- Re: [groff] [patch] do not strip mdoc macros, Ralph Corderoy, 2019/03/17
- Re: [groff] [patch] do not strip mdoc macros, Ingo Schwarze, 2019/03/18
- Re: [groff] [patch] do not strip mdoc macros, Ralph Corderoy, 2019/03/18
- Re: [groff] [patch] do not strip mdoc macros, Ingo Schwarze, 2019/03/18
- Re: [groff] [patch] do not strip mdoc macros,
John Gardner <=