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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8143b93889fe9472 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.96.3 with SMTP id do3mr39773wib.1.1359684342772; Thu, 31 Jan 2013 18:05:42 -0800 (PST) Path: bp2ni9291wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada standard and maximum line lengths Date: Tue, 29 Jan 2013 22:22:56 +0100 Organization: cbb software GmbH Message-ID: <15vb0qqqhjfhw.1oh0ihxfbhw5a.dlg@40tude.net> References: <8dfcf819-e1d0-4578-a795-a4bf724b5014@googlegroups.com> <80a5c765-e5ff-4e7d-bc1b-e35f92a710a7@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: cDN0fd8KlIeJLyErIrSf0A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-01-29T22:22:56+01:00 List-Id: On Tue, 29 Jan 2013 10:46:36 -0800 (PST), Lucretia wrote: > I will be implementing a scanner for Ada 2012 and then a parser, You don't need a separate scanner. Ada (as well as any other language) can be parsed in single pass, including reading the source. > I will read the entire file into a buffer and then scan the buffer. A better approach would be to have an abstract type representing the source with multiple implementations of, e.g. backed by a stream, by a file, by a text buffer etc. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de