comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Token package update
Date: 1999/02/02
Date: 1999-02-02T00:00:00+00:00	[thread overview]
Message-ID: <7974ap$632$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 794u47$snh$3@plug.news.pipex.net

In article <794u47$snh$3@plug.news.pipex.net>,
  "Nick Roberts" <Nick.Roberts@dial.pipex.com> 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    




      reply	other threads:[~1999-02-02  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-22  0:00 Token package update dennison
1999-01-31  0:00 ` Nick Roberts
1999-02-02  0:00   ` dennison [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox