Re: Software maintenance
- From: Nobody <nobody@xxxxxxxxxxx>
- Date: Tue, 21 Sep 2010 12:32:39 +0100
On Sun, 19 Sep 2010 22:20:39 +0200, jacob navia wrote:
Comments do not affect program behavior. Line splicing is done after
comment processing.
Isn't that a very simple rule?
I suspect only for those who do translation phase 3 before phase 2.
This "translations phases" model is wrong. Lines can be put together
only after the comments have been stripped out
Which means that you can't split comments; which means that you have to be
able to recognise comments if you want to split lines.
The benefit of line-splicing being done at such an early stage is that you
can take a 132-column source file and convert it to an equivalent
80-column source file with little more than a one-line sed script (the
only gotcha is that you can't insert a backslash-newline into the middle
of a trigraph). Using trigraphs to convert a US-ASCII source file to one
using the ISO-646 invariant subset is similarly straightforward.
Essentially, the first two phases deal with file encoding issues, not
language issues per se. In the same way that the first six phases can
easily be moved into a separate pre-processor (and often are), the first
two phases could be moved into a pre-pre-processor.
.
- Follow-Ups:
- Re: Software maintenance
- From: jacob navia
- Re: Software maintenance
- References:
- Re: Software maintenance
- From: Brian
- Re: Software maintenance
- From: jacob navia
- Re: Software maintenance
- From: Brian
- Re: Software maintenance
- From: Nick Keighley
- Re: Software maintenance
- From: Brian
- Re: Software maintenance
- From: Malcolm McLean
- Re: Software maintenance
- From: Ian Collins
- Re: Software maintenance
- From: Seebs
- Re: Software maintenance
- From: Malcolm McLean
- Re: Software maintenance
- From: Vincenzo Mercuri
- Re: Software maintenance
- From: Keith Thompson
- Re: Software maintenance
- From: Vincenzo Mercuri
- Re: Software maintenance
- From: Shao Miller
- Re: Software maintenance
- From: Vincenzo Mercuri
- Re: Software maintenance
- From: Keith Thompson
- Re: Software maintenance
- From: jacob navia
- Re: Software maintenance
- From: Nobody
- Re: Software maintenance
- From: jacob navia
- Re: Software maintenance
- From: Ralf Damaschke
- Re: Software maintenance
- From: jacob navia
- Re: Software maintenance
- Prev by Date: Re: i = 10; result = ++i - --i; How result become ZERO
- Next by Date: Re: memleak reported in valgrind
- Previous by thread: Re: Software maintenance
- Next by thread: Re: Software maintenance
- Index(es):