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.82.1 with SMTP id e1mr12670wiy.1.1359684347835; Thu, 31 Jan 2013 18:05:47 -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:29:05 +0100 Organization: cbb software GmbH Message-ID: 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:29:05+01:00 List-Id: On Tue, 29 Jan 2013 10:46:36 -0800 (PST), Lucretia wrote: > Also, the method of breaking up the buffer into tokens which have start > and end characters is a good one, until you have the AST at this point you > should make copies of the lexemes you need and store them in the AST Copying would be wasting resources. Nodes of the AST keep operators, identifiers and literals instead (+ their source locations), at this stage lexemes are gone. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de