From: | Hans-Peter Diettrich <DrDiettrich1@netscape.net> |
Newsgroups: | comp.compilers |
Date: | Tue, 30 Aug 2016 13:13:42 +0200 |
Organization: | Compilers Central |
References: | 16-08-007 16-08-008 16-08-009 16-08-011 |
Injection-Info: | miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="16509"; mail-complaints-to="abuse@iecc.com" |
Keywords: | translator |
Posted-Date: | 30 Aug 2016 09:59:01 EDT |
BartC schrieb:
> On 29/08/2016 09:28, Hans-Peter Diettrich wrote:
> Take, for example, a C-like language with //-comments to end of line.
> Such a language is free-format so it could be written as one token per
> line, with a comment on each line plus comments on their own lines.
In the worst case the auther implemented a two-column layout, with a
code block in the left and a comment block in the right column. Who'll know?
> Even if translating to normalised code in the same language, it can be
> challenging knowing where the comments are going to go.
Even comment-based document generators often have problems with the
unintended use of control tags by the coders. Even worse without such
hints :-(
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.