comp.lang.ada
 help / color / mirror / Atom feed
From: bischoff@oracorp.com (Kurt Bischoff)
Subject: Re: GNAT not 'getting' CR or LF?
Date: Thu, 5 Jan 1995 00:16:30 GMT
Date: 1995-01-05T00:16:30+00:00	[thread overview]
Message-ID: <1995Jan5.001630.20954@oracorp.com> (raw)
In-Reply-To: D1t6tx.G59@alsys.com

In article <D1t6tx.G59@alsys.com> 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 



  reply	other threads:[~1995-01-05  0:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-29 23:05 GNAT not 'getting' CR or LF? Smilin' Ron Finkbine
1994-12-30 15:23 ` Kevin Weise
1994-12-30 17:39 ` Michael Feldman
1995-01-02  4:42 ` Robert Dewar
1995-01-03  2:56   ` Keith Thompson
1995-01-05  0:16     ` Kurt Bischoff [this message]
1995-01-06  3:21       ` Keith Thompson
1995-01-04 11:47 ` Joerg Rodemann
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox