Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!dkuug!harald.ruc.dk!jba From: jba@harald.ruc.dk (Jan B. Andersen) Newsgroups: comp.sys.mac Subject: Re: YACC and LEX for Macs Message-ID: <201@harald.UUCP> Date: 15 Jan 90 18:24:36 GMT References: <1990Jan9.021314.5308@esegue.segue.boston.ma.us> <1990Jan10.021257.11269@esegue.segue.boston.ma.us> <10223@microsoft.UUCP> Organization: RUC - Roskilde University Center, Denmark Lines: 12 earleh@microsoft.UUCP (Earle HORTON) writes: eh>Flex uses a hard-coded '\n' in numerous places to denote newline, and eh>'\n' is equal to 10 in most non-weird C implementations. To make Flex eh>work with Macintosh 'TEXT' files, either filter the input and output so eh>that Flex sees an end of line as a '\n', or change Flex to use '\r' eh>instead of '\n' everywhere. Shouldn't '\n' be 'whatever-this-system-uses-to-seperate-textlines'? Just curious... Jan B. Andersen ("SIMULA does it with CLASS")