www.digitalmars.com         C & C++   DMDScript  

D - limited end of line

reply "Jeffrey Drake" <jpt.d home.com> writes:
In the spec:
 EndOfLine:
		\u000D
		\u000A
		\u000D \u000A
		EndOfFile

I think that is the wrong way of doing it. I recall the mac has an lfcr
terminator.
I think the best generalization should be:

[] means optional
D[A] || A[D]
Aug 17 2001
next sibling parent "Sheldon Simms" <sheldon semanticedge.com> writes:
Im Artikel <9lifhr$teh$1 digitaldaemon.com> schrieb "Jeffrey Drake"
<jpt.d home.com>:

 In the spec:
  EndOfLine:
 		\u000D
 		\u000A
 		\u000D \u000A
 		EndOfFile
 
 I think that is the wrong way of doing it. I recall the mac has an lfcr
 terminator.
It uses 0x0A -- Sheldon Simms / sheldon semanticedge.com
Aug 17 2001
prev sibling parent Christophe de Dinechin <descubes earthlink.net> writes:
No, the Mac has "\r" only. Unix has "\n" only. Now that the Mac is Unix,
guess what... it deals with both, depending on the program you talk about.
DOS and derivatives have LFCR.


Christophe

Jeffrey Drake wrote:

 In the spec:
  EndOfLine:
                 \u000D
                 \u000A
                 \u000D \u000A
                 EndOfFile

 I think that is the wrong way of doing it. I recall the mac has an lfcr
 terminator.
 I think the best generalization should be:

 [] means optional
 D[A] || A[D]
Aug 17 2001