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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b5cd7bf26d091c6f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news.ecp.fr!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Reading the while standard input into a String Date: Mon, 6 Jun 2011 22:00:22 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <1e5e764d-eb7b-4804-8119-b535ddbe5e7e@32g2000vbe.googlegroups.com> <1a84tm53l1wjx.1xdgsbp25vyd5.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1307415625 27610 69.95.181.76 (7 Jun 2011 03:00:25 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 7 Jun 2011 03:00:25 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-RFC2646: Format=Flowed; Original Xref: g2news2.google.com comp.lang.ada:20634 Date: 2011-06-06T22:00:22-05:00 List-Id: "Shark8" wrote in message news:b6e5b2c3-4b9c-4e47-96d0-ad9add77f7fc@d28g2000yqf.googlegroups.com... >> Of course it is possible for Ada, of which syntax requires neither look >> ahead or roll-back. > > How are Strings handled? In particular, embedding the double-quote. > How does one parse "Bill said, ""I don't care.""" w/o a look-ahead (or > roll back)? > (Especially if, as seems to be the case here, he wants to do such via > streams-of-some-sort.) Ada source text requires one CHARACTER of lookahead (assuming a bit of context is saved). That doesn't not require a lot of buffering. ;-) (Ada.Text_IO.Get_Line requires more lookahead than Ada syntax does. Go figure.) Randy.