Re: EOL in Oberon/F

Douglas G. Danforth (danforth@Csli.Stanford.EDU)
Mon, 28 Oct 1996 09:09:25 -0800

Alan D. Freed wrote:
>
> Hi,
>
> In a lexical scanner I'm porting over from Modula-2 code,
> they utilize the function call
> PROCEDURE IsEOL* (ch: CHAR): BOOLEAN
> where EOL is end-of-line.
>
> In ETH Oberon's, EOL is ASCII character 0DX (or cr - carriage return).
> In UNIX, EOL is ASCII character 0AX (or lf - line feed).
>
> EOL is very much platform dependent. Does anyone know what EOL is
> in Oberon/F? And, is it the same for Windows and Mac versions?
>
> Thanks,
>
> Al Freed

Just a general comment here. Too bad Oberon did not at the onset
adopt a platform independent definition of eol. The MAINSAIL language
allows an abstraction, eol, which is a string. On different platforms
it may be one (or two characters) 0DH, 0AH, (or 0DH 0AH) for example.
It makes transporting ascii files transparent.

-Doug

-- 
Douglas G. Danforth, Ph.D.,              danforth@csli.stanford.edu
Sr Research Eng. Applied Speech Technology Lab   (415)723-2487 x332
Center for the Study of Language and Information (415)725-2166  fax
Ventura Hall, Stanford University, Stanford CA.  94305-4115