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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b8cf35a2055dbfd9 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Token package update Date: 1999/02/02 Message-ID: <7974ap$632$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 439755847 References: <78b2nl$poj$1@nnrp1.dejanews.com> <794u47$snh$3@plug.news.pipex.net> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Feb 02 15:07:14 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-02-02T00:00:00+00:00 List-Id: In article <794u47$snh$3@plug.news.pipex.net>, "Nick Roberts" wrote: > This is excellent news. Ada programs which present an interface to a user > often need to have some kind of 'macro' facility, or command interface, or > the like. I think your packages may well be a part of a way to easily > provide such facilities for Ada programs. The token packages were originally designed to help parse text files. However, I took a page out of lex's book and made the text feeder routine to the analyzer a function pointer. That way you can write your own routine to feed in the text from any source you choose, and the analyizer will call the function as its needs arise. Theoreticly you can even change the feeder routine on the fly, but that has not been tested. I had toyed with the idea of making a default text feeder routine. But the only sensible default I could come up with is "stdin", which is what lex's "input()" does. But for my purposes the standard lex feeder has always been next to useless, so I didn't bother. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own