Path: utzoo!attcan!uunet!dino!sharkey!mailrus!cornell!rochester!dibble From: dibble@cs.rochester.edu (Peter C. Dibble) Newsgroups: comp.os.os9 Subject: Re: Flex on OS-9 Message-ID: <1989Sep23.050241.1990@cs.rochester.edu> Date: 23 Sep 89 05:02:41 GMT References: <550@materna.uucp> Reply-To: dibble@cs.rochester.edu.UUCP (Peter C. Dibble) Organization: U of Rochester, CS Dept, Rochester, NY Lines: 11 The distributed flex initscan.c file will only work on systems that use a LF for newline. To port initscan.c to OS-9 find the array yy_ec in initscan.c. copy the value in the yy_ec[10] to yy_ec[13]. That's it. Now CR is equivalent to LF. When you use flex to make your own scanner you'll find that LF is not equivalent to CR, but that's OK, the initscan.c fix is only a quick-and-dirty. Peter