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 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X Date: Mon, 31 Mar 2014 20:59:11 +0200 Organization: cbb software GmbH Message-ID: <5e0l7vfjo5bv.bngkr07e3jhf.dlg@40tude.net> References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> <1396206120.12713.8.camel@pascal.home.net> <1rmd466o46wkh$.xv2pypcsl4nb.dlg@40tude.net> <1396209566.14855.1.camel@pascal.home.net> <25d23e5d-f9e2-49f1-9c25-9f442042e268@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: KX5nm0jf7du4gHjHR6mb/g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:185435 Date: 2014-03-31T20:59:11+02:00 List-Id: On Mon, 31 Mar 2014 08:13:33 -0700 (PDT), Stoik wrote: > What is needed are subprograms for entering a word (get_word) delimited by > default by spaces. It seems that you are thinking in the paradigm of tokenizing. There are more efficient and easier means of parsing. When writing a compiler you indeed need something like getting an identifier from the source. But, an identifier is not a word and source is not a string, though string could be a source. Other stuff like matching the source against a table of keywords does not need word input either. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de