From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bb703cc61967d22 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-05 15:14:30 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!dziuxsolim.rutgers.edu!uunet!psinntp!scylla!bischoff From: bischoff@oracorp.com (Kurt Bischoff) Subject: Re: GNAT not 'getting' CR or LF? Message-ID: <1995Jan5.001630.20954@oracorp.com> Organization: ORA Corporation, Ithaca, New York References: <1994Dec29.230538.15695@nmt.edu> <3e8079$552@gnat.cs.nyu.edu> Distribution: na Date: Thu, 5 Jan 1995 00:16:30 GMT Date: 1995-01-05T00:16:30+00:00 List-Id: In article kst@alsys.com (Keith Thompson) writes: >In <3e8079$552@gnat.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes: >> Get will certainly NOT see CR/LF etc, that is its spec. >> For now, until Get_Immediate is implemented, the best thing >> is simply to write an interface to the appropriate C routine getchar or >> whatever. > >This might be true for an interactive application that needs to detect >individual keypresses (or better yet, use the POSIX/Ada interface if >your vendor supports it). > >For the application in question (a Fortran scanner), I think the best >thing is just to use Text_IO.Get_Line and scan characters from the >input string. Ada's Text_IO is perfectly adequate for this kind of thing. > >-- >Keith Thompson (The_Other_Keith) kst@alsys.com >TeleSoft^H^H^H^H^H^H^H^H Alsys, Inc. >10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718 >When you're a nail, every problem looks like a hammer. How about bringing out the big guns and using AFLEX and AYACC? _____________ Kurt Bischoff, Odyssey Research, 301 Dates Drive, Ithaca, NY, 14850 (607) 277-2020 bischoff@oracorp.com