home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!rphroy!caen!batcomputer!rpi!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!uw-coco!mdisea!mdivax1!van-bc!rwsys!root
- From: root@rwsys.uucp (Superuser)
- Newsgroups: comp.unix.programmer
- Subject: Re: How to handle NULs in lex ...?
- Message-ID: <921107612@rwsys.uucp>
- Date: 7 Nov 92 16:55:54 GMT
- References: <1d6dl4INNr07@diamond.pgh.wec.com>
- Organization: RWSYS Exporter BBS system
- Lines: 33
-
- oscsf@godel.pgh.wec.com (Chuck Fuller) writes:
- > I need to be able to make my lex application survive (indeed, point
- > out!) the existence of NULs in the input file. Despite much "R'ing of
- > TFM", I am so far unable to get it to do anything other than stop
- > immediately.
- >
- > Your suggestions are appreciated.
- >
- > Thanks.
- > - Chuck
- >
- > --
- > Charles S. Fuller
- > Westinghouse Corporate Computer Services
- > (W): oscsf@godel.pgh.wec.com Internet: fuller@wccs.psc.edu
- >
-
- Suggestion:
-
- There are differences among lexen for various platforms and I don't know
- what yours uses, but you may need to rewrite the input() function. The
- stock one probably will not return until there is a non-zero value in
- the input stream, it may even interprete a null as eof.
-
- Yours Truly,
- Randy Wright
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- root@rwsys.wimsey.bc.ca (Randy Wright) | Exporter BBS 2400 bps
- or | (604) 581-0518 8N1
- Randy_Wright@Mindlink.bc.ca | uucp ogin: uguest
- | interactive login: guest
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-